X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/46f34f3267630e5f6b0e01509626ff06c18d2015..76fd6cc1330945172740464411a0b2f1170dcb2a:/src/mc/explo/Exploration.hpp diff --git a/src/mc/explo/Exploration.hpp b/src/mc/explo/Exploration.hpp index c027256ade..824adcd3f7 100644 --- a/src/mc/explo/Exploration.hpp +++ b/src/mc/explo/Exploration.hpp @@ -8,6 +8,7 @@ #include "simgrid/forward.h" #include "src/mc/api/RemoteApp.hpp" +#include "src/mc/mc_exit.hpp" #include "src/mc/mc_record.hpp" #include @@ -34,7 +35,7 @@ class Exploration : public xbt::Extendable { FILE* dot_output_ = nullptr; public: - explicit Exploration(const std::vector& args); + explicit Exploration(const std::vector& args, bool need_memory_introspection); virtual ~Exploration(); static Exploration* get_instance() { return instance_; } @@ -46,24 +47,19 @@ public: virtual void run() = 0; /** Produce an error message indicating that the application crashed (status was produced by waitpid) */ - void report_crash(int status); + XBT_ATTRIB_NORETURN void report_crash(int status); /** Produce an error message indicating that a property was violated */ - void report_assertion_failure(); - - /** Kill the application and the model-checker (which exits with `status`)*/ - XBT_ATTRIB_NORETURN void system_exit(int status); + XBT_ATTRIB_NORETURN void report_assertion_failure(); /* These methods are callbacks called by the model-checking engine * to get and display information about the current state of the * model-checking algorithm: */ - /** Show the current trace/stack - * - * Could this be handled in the Session/ModelChecker instead? */ + /** Retrieve the current stack to build an execution trace */ virtual RecordTrace get_record_trace() = 0; /** Generate a textual execution trace of the simulated application */ - virtual std::vector get_textual_trace() = 0; + std::vector get_textual_trace(); /** Log additional information about the state of the model-checker */ virtual void log_state();