model: add check_recency()
[cdsspec-compiler.git] / model.h
diff --git a/model.h b/model.h
index b2f7897a310f7dc66fa88ce970893c43c252059c..70ec80427a7e7a0995defb0978e6025e49b4143a 100644 (file)
--- a/model.h
+++ b/model.h
@@ -28,6 +28,7 @@ class Promise;
  * the model checker.
  */
 struct model_params {
+       int maxreads;
 };
 
 /**
@@ -103,6 +104,7 @@ private:
 
        bool take_step();
 
+       void check_recency(ModelAction *curr, bool already_added);
        ModelAction * get_last_conflict(ModelAction *act);
        void set_backtracking(ModelAction *act);
        Thread * get_next_replay_thread();
@@ -176,6 +178,7 @@ private:
         */
        CycleGraph *mo_graph;
        bool failed_promise;
+       bool too_many_reads;
        bool asserted;
 };