action: use proper location comparison
authorBrian Norris <banorris@uci.edu>
Sat, 26 May 2012 02:00:37 +0000 (19:00 -0700)
committerBrian Norris <banorris@uci.edu>
Sat, 26 May 2012 02:05:03 +0000 (19:05 -0700)
Now that snapshotting is in place for the initial state, stack allocation is
deterministic across executions, so we can compare stack-allocated addresses
again.

action.cc

index eb2f0c61f024e64fed76bc85131c47193cfe4d8f..bd9e29fcdda3929c8a18fa539220e73daa1ec3df 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -52,8 +52,7 @@ bool ModelAction::is_release()
 
 bool ModelAction::same_var(ModelAction *act)
 {
-       return true;
-       // TODO: fix stack allocation... return location == act->location;
+       return location == act->location;
 }
 
 bool ModelAction::same_thread(ModelAction *act)