From: Maxwell Pirtle Date: Fri, 5 May 2023 12:21:17 +0000 (+0200) Subject: Fix ObjectAccess dependency check X-Git-Tag: v3.34~68^2~51 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c5dcd81fd82271cedcf16224ddbd331ae97830c6 Fix ObjectAccess dependency check The ObjectAccess transition should defer dependency computation to the ActorJoin action. Previously, it only decided dependency by simply checking if the `other` transition were simply another object access on the same object --- diff --git a/src/mc/transition/TransitionObjectAccess.cpp b/src/mc/transition/TransitionObjectAccess.cpp index 63a7d92fc3..12f315ec9f 100644 --- a/src/mc/transition/TransitionObjectAccess.cpp +++ b/src/mc/transition/TransitionObjectAccess.cpp @@ -34,6 +34,9 @@ std::string ObjectAccessTransition::to_string(bool verbose) const } bool ObjectAccessTransition::depends(const Transition* o) const { + if (o->type_ < type_) + return o->depends(this); + if (const auto* other = dynamic_cast(o)) return objaddr_ == other->objaddr_; // dependent only if it's an access to the same object return false;