Skip to content

Commit d2ccf4f

Browse files
authored
Fix witnesses excluding the rf edges they enforce. (#771)
1 parent fa5a25c commit d2ccf4f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

dartagnan/src/main/java/com/dat3m/dartagnan/wmm/analysis/NativeRelationAnalysis.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ public MutableKnowledge visitReadFrom(ReadFrom rf) {
875875
EventGraph g = witness.getReadFromKnowledge(program, alias);
876876
must.addAll(g);
877877
for (Event r : g.getRange()) {
878-
may.removeIf((e1, e2) -> e2 == r);
878+
may.removeIf((e1, e2) -> e2 == r && !g.contains(e1, e2));
879879
}
880880
}
881881

svcomp.properties

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ encoding.integers=true
33
svcomp.step=5
44
svcomp.umax=27
55
witness=graphml
6-
// We can get rid of the option below once #767 is fixed
7-
wmm.analysis.extendedRelationAnalysis=false

0 commit comments

Comments
 (0)