Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert simgrid::mc::snapshot_equal() into Snapshot::operator==()
[simgrid.git] / src / mc / explo / DFSExplorer.cpp
index 1bd4125..f2fb7ab 100644 (file)
@@ -41,7 +41,7 @@ xbt::signal<void(RemoteApp&)> DFSExplorer::on_log_state_signal;
 void DFSExplorer::check_non_termination(const State* current_state)
 {
   for (auto state = stack_.rbegin(); state != stack_.rend(); ++state)
-    if (Api::get().snapshot_equal((*state)->get_system_state(), current_state->get_system_state())) {
+    if (*(*state)->get_system_state() == *current_state->get_system_state()) {
       XBT_INFO("Non-progressive cycle: state %ld -> state %ld", (*state)->get_num(), current_state->get_num());
       XBT_INFO("******************************************");
       XBT_INFO("*** NON-PROGRESSIVE CYCLE DETECTED ***");