X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/02a6df2bc7e1c28a70a33e28bf5589f6f90e4404..0f0aacb167ddc9427ea1da1c8f1b66ef2d6f532e:/src/mc/api/State.hpp diff --git a/src/mc/api/State.hpp b/src/mc/api/State.hpp index 0852cd27ff..6603ff0831 100644 --- a/src/mc/api/State.hpp +++ b/src/mc/api/State.hpp @@ -13,10 +13,6 @@ #include "src/mc/explo/odpor/WakeupTree.hpp" #include "src/mc/transition/Transition.hpp" -#if SIMGRID_HAVE_STATEFUL_MC -#include "src/mc/sosp/Snapshot.hpp" -#endif - namespace simgrid::mc { /* A node in the exploration graph (kind-of) */ @@ -32,9 +28,6 @@ class XBT_PRIVATE State : public xbt::Extendable { /** Sequential state ID (used for debugging) */ long num_ = 0; - /** Snapshot of system state (if needed) */ - std::shared_ptr system_state_; - /** Unique parent of this state. Required both for sleep set computation and for guided model-checking */ std::shared_ptr parent_state_ = nullptr; @@ -98,9 +91,6 @@ public: unsigned long get_actor_count() const { return strategy_->actors_to_run_.size(); } bool is_actor_enabled(aid_t actor) const { return strategy_->actors_to_run_.at(actor).is_enabled(); } - Snapshot* get_system_state() const { return system_state_.get(); } - void set_system_state(std::shared_ptr state) { system_state_ = std::move(state); } - /** * @brief Computes the backtrack set for this state * according to its definition in SimGrid. @@ -153,7 +143,9 @@ public: * `N` running actor `p` of this state's wakeup tree */ void remove_subtree_using_current_out_transition(); + void remove_subtree_at_aid(aid_t proc); bool has_empty_tree() const { return this->wakeup_tree_.empty(); } + std::string string_of_wut() const { return this->wakeup_tree_.string_of_whole_tree(); } /** * @brief