Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix some more doc bugs
[simgrid.git] / src / mc / transition / TransitionRandom.hpp
index ba00821584252c0e36943d419c4d2243180b6a2b..27d9757a2736f4601cb537db3696e02cf3f78831 100644 (file)
@@ -17,7 +17,14 @@ class RandomTransition : public Transition {
 public:
   std::string to_string(bool verbose) const override;
   RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream);
-  bool depends(const Transition* other) const override { return aid_ == other->aid_; } // Independent with any other transition
+  bool depends(const Transition* other) const override
+  {
+    if (other->type_ < type_)
+      return other->depends(this);
+
+    return aid_ == other->aid_;
+  } // Independent with any other transition
+  bool reversible_race(const Transition* other) const override;
 };
 
 } // namespace simgrid::mc