return heap_bytes_used;
}
-void Api::mc_inc_visited_states() const
-{
- mc_model_checker->inc_visited_states();
-}
-
-unsigned long Api::mc_get_visited_states() const
-{
- return mc_model_checker->get_visited_states();
-}
-
void Api::restore_state(const simgrid::mc::Snapshot* system_state) const
{
system_state->restore(&mc_model_checker->get_remote_process());
// REMOTE APIs
std::size_t get_remote_heap_bytes() const;
- // MODEL CHECKER APIs
- void mc_inc_visited_states() const;
- unsigned long mc_get_visited_states() const;
-
// STATE APIs
void restore_state(const Snapshot* system_state) const;
on_log_state_signal();
XBT_INFO("DFS exploration ended. %ld unique states visited; %ld backtracks (%lu transition replays, %lu states "
"visited overall)",
- State::get_expanded_states(), backtrack_count_, Api::get().mc_get_visited_states(),
+ State::get_expanded_states(), backtrack_count_, mc_model_checker->get_visited_states(),
Transition::get_replayed_transitions());
}
XBT_DEBUG("Exploration depth=%zu (state:%ld; %zu interleaves)", stack_.size(), state->get_num(),
state->count_todo());
- Api::get().mc_inc_visited_states();
+ mc_model_checker->inc_visited_states();
// Backtrack if we reached the maximum depth
if (stack_.size() > (std::size_t)_sg_mc_max_depth) {
state->get_transition()->replay();
on_transition_replay_signal(state->get_transition());
/* Update statistics */
- Api::get().mc_inc_visited_states();
+ mc_model_checker->inc_visited_states();
}
}