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_UDPOR_GLOBAL_HPP
7 #define SIMGRID_MC_UDPOR_GLOBAL_HPP
9 #include "src/mc/api/State.hpp"
10 #include "src/mc/explo/udpor/udpor_forward.hpp"
14 namespace simgrid::mc::udpor {
18 using Handle = StateHandle;
20 Handle current_handle_ = 1ul;
21 std::unordered_map<Handle, std::unique_ptr<State>> state_map_;
24 Handle record_state(std::unique_ptr<State>);
25 std::optional<std::reference_wrapper<State>> get_state(Handle);
28 } // namespace simgrid::mc::udpor