1 /* Copyright (c) 2007-2023. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_MODEL_CHECKER_HPP
7 #define SIMGRID_MC_MODEL_CHECKER_HPP
9 #include "src/mc/remote/CheckerSide.hpp"
10 #include "src/mc/remote/RemotePtr.hpp"
11 #include "src/mc/sosp/PageStore.hpp"
16 namespace simgrid::mc {
18 /** State of the model-checker (global variables for the model checker)
21 std::unique_ptr<RemoteProcessMemory> remote_process_memory_;
24 ModelChecker(ModelChecker const&) = delete;
25 ModelChecker& operator=(ModelChecker const&) = delete;
26 explicit ModelChecker(std::unique_ptr<RemoteProcessMemory> remote_simulation);
28 RemoteProcessMemory& get_remote_process_memory() { return *remote_process_memory_; }
30 void handle_waitpid(pid_t pid_to_wait); // FIXME move to RemoteApp
31 bool handle_message(const char* buffer, ssize_t size); // FIXME move to RemoteApp
34 } // namespace simgrid::mc