nodestack: create ModelAction clock vectors
authorBrian Norris <banorris@uci.edu>
Sat, 26 May 2012 02:16:06 +0000 (19:16 -0700)
committerBrian Norris <banorris@uci.edu>
Sat, 26 May 2012 03:39:00 +0000 (20:39 -0700)
Only create the clock vector if the ModelAction will be retained in our
nodestack, and hence will be used for synchronization, etc.

nodestack.cc

index 379fb3b1fc15f219cdd870b4976af0e394fd2263..4cbd7cea820fa6ce7e4764a8fd758d87621d3ec2 100644 (file)
@@ -139,6 +139,7 @@ ModelAction * NodeStack::explore_action(ModelAction *act)
 
                /* Record action */
                get_head()->explore_child(act);
+               act->create_cv(get_head()->get_action());
                node_list.push_back(new Node(act, get_head()));
                iter++;
        }