class ModelAction;
-typedef std::list< const ModelAction *, MyAlloc< const ModelAction * > > readfrom_set_t;
+typedef std::vector< const ModelAction *, MyAlloc< const ModelAction * > > readfrom_set_t;
/**
* @brief A single node in a NodeStack
bool has_been_explored(thread_id_t tid);
/* return true = backtrack set is empty */
bool backtrack_empty();
+ bool readsfrom_empty();
void explore_child(ModelAction *act);
/* return false = thread was already in backtrack */
bool set_backtrack(thread_id_t id);
Node * get_parent() const { return parent; }
void add_read_from(const ModelAction *act);
+ const ModelAction * get_read_from();
+ bool increment_read_from();
void print();
void print_may_read_from();
/** The set of ModelActions that this the action at this Node may read
* from. Only meaningful if this Node represents a 'read' action. */
readfrom_set_t may_read_from;
+ unsigned int read_from_index;
};
typedef std::list< Node *, MyAlloc< Node * > > node_list_t;
Node * get_head();
Node * get_next();
void reset_execution();
-
+ void pop_restofstack(int numAhead);
int get_total_nodes() { return total_nodes; }
void print();