X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/50753d5f8442a47c17c4035724201a18a7ff6146..122a5a2813fd6d64d4db8ee7f1fdb5a62b7e0d6a:/src/mc/explo/Exploration.hpp diff --git a/src/mc/explo/Exploration.hpp b/src/mc/explo/Exploration.hpp index aa6d420245..64114d4bf2 100644 --- a/src/mc/explo/Exploration.hpp +++ b/src/mc/explo/Exploration.hpp @@ -8,6 +8,8 @@ #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 @@ -39,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 */ @@ -50,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(int 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(); @@ -76,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