X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5add7e277a4ba8daf72d96046cdd50d94882ba67..ee3aa92a3bb4209e12bb7f8b628cb47e68cae081:/src/mc/explo/Exploration.hpp diff --git a/src/mc/explo/Exploration.hpp b/src/mc/explo/Exploration.hpp index 179ebaf903..64114d4bf2 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_config.hpp" #include "src/mc/mc_exit.hpp" #include "src/mc/mc_record.hpp" #include @@ -40,7 +41,7 @@ public: static Exploration* get_instance() { return instance_; } // No copy: - Exploration(Exploration const&) = delete; + Exploration(Exploration const&) = delete; Exploration& operator=(Exploration const&) = delete; /** Main function of this algorithm */ @@ -51,20 +52,15 @@ public: /** Produce an error message indicating that a property was violated */ XBT_ATTRIB_NORETURN void report_assertion_failure(); - /** Kill the application and the model-checker (which exits with `status`)*/ - XBT_ATTRIB_NORETURN void system_exit(ExitStatus status) const; - /* 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(); @@ -77,8 +73,8 @@ public: // External constructors so that the types (and the types of their content) remain hidden XBT_PUBLIC Exploration* create_liveness_checker(const std::vector& args); -XBT_PUBLIC Exploration* create_dfs_exploration(const std::vector& args, bool with_dpor); -XBT_PUBLIC Exploration* create_communication_determinism_checker(const std::vector& args, bool with_dpor); +XBT_PUBLIC Exploration* create_dfs_exploration(const std::vector& args, ReductionMode mode); +XBT_PUBLIC Exploration* create_communication_determinism_checker(const std::vector& args, ReductionMode mode); XBT_PUBLIC Exploration* create_udpor_checker(const std::vector& args); } // namespace simgrid::mc