From: Brian Demsky <bdemsky@uci.edu>
Date: Thu, 25 Oct 2012 04:37:02 +0000 (-0700)
Subject: embarrassing bug...fixed...
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d2cbbe4ce6d8f6e1aa23b8fe639ed58edf1789b7;p=cdsspec-compiler.git

embarrassing bug...fixed...
---

diff --git a/model.cc b/model.cc
index 134e457..e592673 100644
--- a/model.cc
+++ b/model.cc
@@ -1815,6 +1815,7 @@ void ModelChecker::compute_promises(ModelAction *curr)
 				act->is_read() &&
 				!act->could_synchronize_with(curr) &&
 				!act->same_thread(curr) &&
+				act->get_location() == curr->get_location() &&
 				promise->get_value() == curr->get_value()) {
 			curr->get_node()->set_promise(i);
 		}