From: Brian Norris Date: Tue, 18 Sep 2012 17:39:44 +0000 (-0700) Subject: model: fixup r_modification_order X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=commitdiff_plain;h=32e654a5b04567bc88cd0746e14c8e4aec040375 model: fixup r_modification_order Bugfix thanks to Brian D. --- diff --git a/model.cc b/model.cc index d8ae7ea4..766e3694 100644 --- a/model.cc +++ b/model.cc @@ -652,7 +652,7 @@ bool ModelChecker::r_modification_order(ModelAction *curr, const ModelAction *rf */ if (act->happens_before(curr) && act != curr) { if (act->is_write()) { - if (rf != act && act != curr) { + if (rf != act) { mo_graph->addEdge(act, rf); added = true; } @@ -663,7 +663,6 @@ bool ModelChecker::r_modification_order(ModelAction *curr, const ModelAction *rf added = true; } } - break; } }