-std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
-
-/**
- * \brief Save the current state
- * \return Snapshot of the current state.
- */
-VisitedState::VisitedState()
-{
- simgrid::mc::Process* process = &(mc_model_checker->process());
- this->heap_bytes_used = mmalloc_get_bytes_used_remote(
- process->get_heap()->heaplimit,
- process->get_malloc_info());
-
- this->nb_processes =
- mc_model_checker->process().simix_processes().size();
-
- this->system_state = simgrid::mc::take_snapshot(mc_stats->expanded_states);
- this->num = mc_stats->expanded_states;
- this->other_num = -1;
+/** @brief Save the current state */
+VisitedState::VisitedState(unsigned long state_number) : num(state_number)
+{
+ this->heap_bytes_used = mcapi::get().get_remote_heap_bytes();
+ this->actors_count = mcapi::get().get_actors_size();
+ this->system_state = std::make_shared<simgrid::mc::Snapshot>(state_number);