X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/790db8801f3ba7fd9001e6c8f31efcd9971980d5..cc5bf26ad13a2d285a6f416a4e54ce95a01bf180:/src/mc/explo/odpor/Execution.hpp diff --git a/src/mc/explo/odpor/Execution.hpp b/src/mc/explo/odpor/Execution.hpp index cfe24bd544..bbdaf971fd 100644 --- a/src/mc/explo/odpor/Execution.hpp +++ b/src/mc/explo/odpor/Execution.hpp @@ -262,6 +262,25 @@ public: */ std::unordered_set get_racing_events_of(EventHandle handle) const; + /** + * @brief Returns a set of events which are in a reversible + * race with the given event handle `handle` + * + * Two events `e` and `e'` in an execution `E` are said to + * be in a reversible race iff + * + * 1. `e` and `e'` race + * 2. In any equivalent execution sequence `E'` to `E` + * where `e` occurs immediately before `e'`, the actor + * running `e'` was enabled in the state prior to `e` + * + * @param handle the event with respect to which + * reversible races are computed + * @returns a set of event handles from which are in a reversible + * race with `handle` + */ + std::unordered_set get_reversible_races_of(EventHandle handle) const; + /** * @brief Computes `pre(e, E)` as described in ODPOR [1] *