X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c0066756813cabe50a74ef326ec88eb71984556a..976687c46605cb7f3513a3f9549ef43f737e4b7d:/src/mc/explo/DFSExplorer.cpp diff --git a/src/mc/explo/DFSExplorer.cpp b/src/mc/explo/DFSExplorer.cpp index f21297cb7d..2c72764301 100644 --- a/src/mc/explo/DFSExplorer.cpp +++ b/src/mc/explo/DFSExplorer.cpp @@ -304,6 +304,9 @@ void DFSExplorer::run() // NOTE: To incorporate the idea of attempting to select the "best" // backtrack point into SDPOR, instead of selecting the `first` initial, // we should instead compute all choices and decide which is best + // + // Here, we choose the actor with the lowest ID to ensure + // we get deterministic results const auto q = std::min_element(choices.begin(), choices.end(), [](const aid_t a1, const aid_t a2) { return a1 < a2; }); prev_state->consider_one(*q);