1 #ifndef __NODESTACK_H__
2 #define __NODESTACK_H__
14 Node(ModelAction *act = NULL, int nthreads = 1);
16 /* return true = thread choice has already been explored */
17 bool has_been_explored(thread_id_t tid);
18 /* return true = backtrack set is empty */
19 bool backtrack_empty();
20 void explore_child(ModelAction *act);
21 /* return false = thread was already in backtrack */
22 bool set_backtrack(thread_id_t id);
23 thread_id_t get_next_backtrack();
24 bool is_enabled(Thread *t);
25 ModelAction * get_action() { return action; }
31 void explore(thread_id_t tid);
35 std::vector< bool, MyAlloc<bool> > explored_children;
36 std::vector< bool, MyAlloc<bool> > backtrack;
39 typedef std::list<class Node *, MyAlloc< class Node * > > node_list_t;
45 ModelAction * explore_action(ModelAction *act);
48 void reset_execution();
50 int get_total_nodes() { return total_nodes; }
56 node_list_t node_list;
57 node_list_t::iterator iter;
62 #endif /* __NODESTACK_H__ */