I am transitioning from class TreeNode to another class (perhaps class
Node?), so rename these members to avoid collision.
void * get_location() { return location; }
int get_seq_number() { return seq_number; }
- TreeNode * get_node() { return node; }
- void set_node(TreeNode *n) { node = n; }
+ TreeNode * get_treenode() { return treenode; }
+ void set_node(TreeNode *n) { treenode = n; }
bool is_read();
bool is_write();
void *location;
thread_id_t tid;
int value;
- TreeNode *node;
+ TreeNode *treenode;
int seq_number;
};
next = exploring->get_state();
if (next == exploring->get_diverge()) {
- TreeNode *node = next->get_node();
+ TreeNode *node = next->get_treenode();
/* Reached divergence point; discard our current 'exploring' */
DEBUG("*** Discard 'Backtrack' object ***\n");
if (prev == NULL)
return;
- node = prev->get_node();
+ node = prev->get_treenode();
while (t && !node->is_enabled(t))
t = t->get_parent();