void Api::s_close()
{
- remote_app_.reset();
if (simgrid::mc::property_automaton != nullptr) {
xbt_automaton_free(simgrid::mc::property_automaton);
simgrid::mc::property_automaton = nullptr;
RemoteApp::~RemoteApp()
{
- this->close();
+ initial_snapshot_ = nullptr;
+ if (model_checker_) {
+ model_checker_->shutdown();
+ model_checker_ = nullptr;
+ mc_model_checker = nullptr;
+ }
}
void RemoteApp::restore_initial_state() const
}
}
-void RemoteApp::close()
-{
- initial_snapshot_ = nullptr;
- if (model_checker_) {
- model_checker_->shutdown();
- model_checker_ = nullptr;
- mc_model_checker = nullptr;
- }
-}
-
unsigned long RemoteApp::get_maxpid() const
{
return model_checker_->get_remote_process().get_maxpid();
res = SIMGRID_MC_EXIT_LIVENESS;
}
simgrid::mc::Api::get().s_close();
- checker.release(); // FIXME: this line should not exist, but it segfaults in liveness
return res;
}