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:
379bbd9
)
action: update 'reads_from' field before synchronization
author
Brian Norris
<banorris@uci.edu>
Mon, 20 Aug 2012 22:59:25 +0000
(15:59 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 23 Aug 2012 01:36:50 +0000
(18:36 -0700)
As the ModelChecker's release/acquire functionality gets more complex,
it makes more sense to assign the ModelAction::reads_from field before
checking synchronization. Currently, this makes no change in behavior.
action.cc
patch
|
blob
|
history
diff --git
a/action.cc
b/action.cc
index 5c036ef1cf92e8376ffa7958b0c2b3660f3f3d27..b9e9c02c533a0eb9850c9a77a142cd9b549ce3db 100644
(file)
--- a/
action.cc
+++ b/
action.cc
@@
-165,10
+165,10
@@
void ModelAction::create_cv(const ModelAction *parent)
void ModelAction::read_from(const ModelAction *act)
{
ASSERT(cv);
+ reads_from = act;
if (act!=NULL && act->is_release() && this->is_acquire()) {
synchronize_with(act);
}
- reads_from = act;
}
/**