Finally wire up the model-checker so that it builds the may_read_from set
for every 'read' action. I think this is working OK, although I don't have
much to really test it on yet.
Also, improve comments to describe the process in check_current_action().
tmp = node_stack->explore_action(curr);
if (tmp) {
- /* Discard duplicate ModelAction */
+ /* Discard duplicate ModelAction; use action from NodeStack */
delete curr;
curr = tmp;
} else {
+ /*
+ * Perform one-time actions when pushing new ModelAction onto
+ * NodeStack
+ */
curr->create_cv(get_parent_action(curr->get_tid()));
+ /* Build may_read_from set */
+ if (curr->is_read())
+ build_reads_from_past(curr);
}
/* Assign 'creation' parent */