X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c7df79fb2ff6e105b83092e142fbe74214fd3b75..335550e32fc61941c4a9e84ed1fc54b465212157:/src/mc/mc_snapshot.h diff --git a/src/mc/mc_snapshot.h b/src/mc/mc_snapshot.h index a7b4b0051b..e224509304 100644 --- a/src/mc/mc_snapshot.h +++ b/src/mc/mc_snapshot.h @@ -128,23 +128,12 @@ typedef struct XBT_PRIVATE s_mc_snapshot_stack { int process_index; } s_mc_snapshot_stack_t, *mc_snapshot_stack_t; -typedef struct s_mc_global_t { - std::shared_ptr snapshot; - int prev_pair = 0; - char *prev_req = nullptr; - int initial_communications_pattern_done = 0; - int recv_deterministic = 0; - int send_deterministic = 0; - char *send_diff = nullptr; - char *recv_diff = nullptr; -}s_mc_global_t, *mc_global_t; - namespace simgrid { namespace mc { class XBT_PRIVATE Snapshot final : public AddressSpace { public: - Snapshot(Process* process); + Snapshot(Process* process, int num_state); ~Snapshot(); const void* read_bytes(void* buffer, std::size_t size, RemotePtr address, int process_index = ProcessIndexAny, @@ -213,8 +202,8 @@ XBT_PRIVATE int MC_snapshot_memcmp( static inline __attribute__ ((always_inline)) const void* mc_snapshot_get_heap_end(simgrid::mc::Snapshot* snapshot) { - if(snapshot==NULL) - xbt_die("snapshot is NULL"); + if(snapshot==nullptr) + xbt_die("snapshot is nullptr"); return mc_model_checker->process().get_heap()->breakval; }