Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Better warning message for max-depth
authormlaurent <mathieu.laurent@ens-rennes.fr>
Wed, 7 Jun 2023 12:39:42 +0000 (14:39 +0200)
committermlaurent <mathieu.laurent@ens-rennes.fr>
Wed, 7 Jun 2023 12:39:42 +0000 (14:39 +0200)
src/mc/api/strategy/BasicStrategy.hpp

index 1754252..ef7bee3 100644 (file)
@@ -21,7 +21,7 @@ public:
     const BasicStrategy* cast_strategy = dynamic_cast<BasicStrategy const*>(strategy);
     xbt_assert(cast_strategy != nullptr);
     depth_ = cast_strategy->depth_ - 1;
-    xbt_assert(depth_ > 0, "The exploration reached a depth greater than 100000. We will stop here to prevent weird interaction with DFSExplorer.");
+    xbt_assert(depth_ > 0, "The exploration reached a depth greater than %d. We will stop here to prevent weird interaction with DFSExplorer. If you want to change that behaviour, you should augment the size of the search by using --cfg=model-check/max-depth:", _sg_mc_max_depth.get());
   }
   BasicStrategy()                     = default;
   ~BasicStrategy() override           = default;