From: Brian Norris Date: Fri, 20 Apr 2012 17:47:10 +0000 (-0700) Subject: model: add prototypes to header X-Git-Tag: pldi2013~529 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=00372fb761d9f0e4a15764c7bd45f9ad3ecad8aa;hp=cd3c3b85485b68891c2024b50c08443736aa7268;p=model-checker.git model: add prototypes to header I will implement these functions in the next few commits. --- diff --git a/model.cc b/model.cc index 17ff0f9..4307b39 100644 --- a/model.cc +++ b/model.cc @@ -14,6 +14,8 @@ ModelChecker::ModelChecker() this->scheduler = new Scheduler(); this->current_action = NULL; + this->exploring = NULL; + this->nextThread = THREAD_ID_T_NONE; rootNode = new TreeNode(NULL); currentNode = rootNode; diff --git a/model.h b/model.h index db13601..01cf29b 100644 --- a/model.h +++ b/model.h @@ -78,6 +78,7 @@ public: 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 +88,14 @@ public: int switch_to_master(ModelAction *act); private: int used_thread_id; + + 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_map; class TreeNode *rootNode, *currentNode;