towards not calling system malloc
[c11tester.git] / model.h
diff --git a/model.h b/model.h
index dc325d71744398e28b75d2cfa0929c34d78e9cc8..1269e76e1edf00d47951bc3c60001fee8658fe33 100644 (file)
--- a/model.h
+++ b/model.h
@@ -46,6 +46,7 @@ public:
        ucontext_t * get_system_context() { return &system_context; }
 
        ModelExecution * get_execution() const { return execution; }
+       ModelHistory * get_history() const { return history; }
 
        int get_execution_number() const { return execution_number; }
 
@@ -63,6 +64,8 @@ public:
        model_params params;
        void add_trace_analysis(TraceAnalysis *a) {     trace_analyses.push_back(a); }
        void set_inspect_plugin(TraceAnalysis *a) {     inspect_plugin=a;       }
+       void startMainThread();
+       void startChecker();
        MEMALLOC
 private:
        /** Flag indicates whether to restart the model checker. */
@@ -73,6 +76,7 @@ private:
        NodeStack * const node_stack;
        ModelExecution *execution;
        Thread * init_thread;
+       ModelHistory *history;
 
        int execution_number;
 
@@ -104,5 +108,4 @@ private:
 };
 
 extern ModelChecker *model;
-extern bool modelchecker_started;
 #endif /* __MODEL_H__ */