schedule: print debug info
[model-checker.git] / model.h
diff --git a/model.h b/model.h
index db1360124eb9f6da159ac0182ea247a34f25dc6a..2a4082b1cdf0c79933b0cdb0aab409c5511e99d7 100644 (file)
--- a/model.h
+++ b/model.h
@@ -74,10 +74,9 @@ public:
        void add_system_thread(Thread *t);
 
        void set_current_action(ModelAction *act) { current_action = act; }
-       ModelAction *get_last_conflict(ModelAction *act);
        void check_current_action(void);
-       void set_backtracking(ModelAction *act);
        void print_trace(void);
+       Thread *schedule_next_thread();
 
        int add_thread(Thread *t);
        Thread *get_thread(thread_id_t tid) { return thread_map[tid]; }
@@ -87,7 +86,16 @@ public:
        int switch_to_master(ModelAction *act);
 private:
        int used_thread_id;
+
+       ModelAction *get_last_conflict(ModelAction *act);
+       void set_backtracking(ModelAction *act);
+       thread_id_t advance_backtracking_state();
+       thread_id_t get_next_replay_thread();
+
        class ModelAction *current_action;
+       Backtrack *exploring;
+       thread_id_t nextThread;
+
        action_list_t *action_trace;
        std::map<thread_id_t, class Thread *> thread_map;
        class TreeNode *rootNode, *currentNode;