]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/explo/LivenessChecker.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
There is no need to declare the default constructors here.
[simgrid.git] / src / mc / explo / LivenessChecker.cpp
index 3638fd67a3276b81f3c0286cefc8ad5b0f3d7731..1cd43885b7193d5b12db7b475fae3b86c9bf3516 100644 (file)
@@ -289,7 +289,8 @@ std::vector<std::string> LivenessChecker::get_textual_trace() // override
 {
   std::vector<std::string> trace;
   for (std::shared_ptr<Pair> const& pair : exploration_stack_)
-    trace.push_back(pair->app_state_->get_transition()->to_string());
+    if (pair->app_state_->get_transition() != nullptr)
+      trace.push_back(pair->app_state_->get_transition()->to_string());
 
   return trace;
 }
@@ -384,7 +385,7 @@ void LivenessChecker::run()
       reached_pair = this->insert_acceptance_pair(current_pair.get());
       if (reached_pair == nullptr) {
         this->show_acceptance_cycle(current_pair->depth);
-        throw LivenessError();
+        throw McError(ExitStatus::LIVENESS);
       }
     }