projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc59ac3
)
action: use proper location comparison
author
Brian Norris
<banorris@uci.edu>
Sat, 26 May 2012 02:00:37 +0000
(19:00 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/action.cc
b/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)