/* 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. */
-#ifndef MC_MODEL_CHECKER_H
-#define MC_MODEL_CHECKER_H
+#ifndef SIMGRID_MC_MODEL_CHECKER_HPP
+#define SIMGRID_MC_MODEL_CHECKER_HPP
#include <sys/types.h>
#include <simgrid_config.h>
-#include <xbt/dynar.h>
+#include <xbt/dict.h>
-#include "mc_forward.h"
+#include "mc_forward.hpp"
#include "mc_process.h"
#include "PageStore.hpp"
#include "mc_protocol.h"
* on the model-checker heap, we avoid those issues.
*/
class ModelChecker {
- // This is the parent snapshot of the current state:
- s_mc_pages_store_t page_store_;
- s_mc_process_t process_;
/** String pool for host names */
// TODO, use std::unordered_set with heterogeneous comparison lookup (C++14)
xbt_dict_t /* <hostname, NULL> */ hostnames_;
+ // This is the parent snapshot of the current state:
+ PageStore page_store_;
+ Process process_;
public:
ModelChecker(ModelChecker const&) = delete;
ModelChecker& operator=(ModelChecker const&) = delete;
ModelChecker(pid_t pid, int socket);
~ModelChecker();
- s_mc_process_t& process()
+ Process& process()
{
return process_;
}