temporarily remove assertion for 'lock access before initialization'; to be improve...
[c11tester.git] / model.h
diff --git a/model.h b/model.h
index 2a505c3d0251064710a85f1b75aca17d912bd23e..1269e76e1edf00d47951bc3c60001fee8658fe33 100644 (file)
--- a/model.h
+++ b/model.h
@@ -33,7 +33,7 @@ class ModelChecker {
 public:
        ModelChecker();
        ~ModelChecker();
-       void setParams(struct model_params params);
+       model_params * getParams();
        void run();
 
        /** Restart the model checker, intended for pluggins. */
@@ -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. */
@@ -72,6 +75,8 @@ private:
        Scheduler * const scheduler;
        NodeStack * const node_stack;
        ModelExecution *execution;
+       Thread * init_thread;
+       ModelHistory *history;
 
        int execution_number;
 
@@ -103,5 +108,4 @@ private:
 };
 
 extern ModelChecker *model;
-
 #endif /* __MODEL_H__ */