Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Start moving classes into the mc/api directory
[simgrid.git] / src / mc / Session.cpp
index 1bba77a4f407bfb6f10317c6145838f211e14e62..02cb8a754d09c61f446b364b3519ab34b5fe7e06 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2015-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 #include "smpi/smpi.h"
 #include "src/smpi/include/private.hpp"
 #endif
+#include "src/mc/api/State.hpp"
 #include "src/mc/mc_private.hpp"
-#include "src/mc/mc_state.hpp"
 #include "xbt/log.h"
 #include "xbt/system_error.hpp"
 
+#include "signal.h"
 #include <array>
 #include <memory>
 #include <string>
@@ -106,12 +107,6 @@ void Session::take_initial_snapshot()
   initial_snapshot_ = std::make_shared<simgrid::mc::Snapshot>(0);
 }
 
-void Session::execute(Transition const& transition) const
-{
-  model_checker_->handle_simcall(transition);
-  model_checker_->wait_for_requests();
-}
-
 void Session::restore_initial_state() const
 {
   this->initial_snapshot_->restore(&model_checker_->get_remote_process());