From: Brian Norris Date: Fri, 19 Oct 2012 22:27:37 +0000 (-0700) Subject: model: fix - RMW cannot break release sequences X-Git-Tag: pldi2013~43 X-Git-Url: http://demsky.eecs.uci.edu/git/?p=model-checker.git;a=commitdiff_plain;h=7f9eb951a3ee0443169dd21ddc914df4a04c9aab model: fix - RMW cannot break release sequences I misinterpreted the spec's description of release sequences. --- diff --git a/model.cc b/model.cc index 2aaa1c2..134e457 100644 --- a/model.cc +++ b/model.cc @@ -1509,8 +1509,8 @@ bool ModelChecker::release_seq_heads(const ModelAction *rf, continue; } - /* Only writes can break release sequences */ - if (!act->is_write()) + /* Only non-RMW writes can break release sequences */ + if (!act->is_write() || act->is_rmw()) continue; /* Check modification order */