Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC: warn the users when reaching max-depth with DPOR
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 15 Jul 2021 19:22:51 +0000 (21:22 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 15 Jul 2021 19:24:49 +0000 (21:24 +0200)
src/mc/checker/SafetyChecker.cpp

index ac21b5f..fb87859 100644 (file)
@@ -89,7 +89,11 @@ void SafetyChecker::run()
 
     // Backtrack if we reached the maximum depth
     if (stack_.size() > (std::size_t)_sg_mc_max_depth) {
-      XBT_WARN("/!\\ Max depth reached ! /!\\ ");
+      if (reductionMode_ == ReductionMode::dpor) {
+        XBT_ERROR("/!\\ Max depth reached! THIS WILL PROBABLY BREAK the dpor reduction /!\\");
+        XBT_ERROR("/!\\ If bad things happen, disable dpor with --cfg=model-check/reduction:none /!\\");
+      } else
+        XBT_WARN("/!\\ Max depth reached ! /!\\ ");
       this->backtrack();
       continue;
     }