Skip to content

Commit 26e3bf2

Browse files
committed
Bugfix : test logic inverted
1 parent 54641fe commit 26e3bf2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pnmcc/fr.lip6.move.gal.application.pnmcc/src/fr/lip6/move/gal/application/GlobalPropertySolver.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,21 +222,21 @@ public boolean solveProperty(String examination, MccTranslator reader) {
222222
}
223223
}
224224

225-
spn.getProperties().removeIf(p -> ! doneProps.containsKey(p.getName()));
225+
spn.getProperties().removeIf(p -> doneProps.containsKey(p.getName()));
226226

227227
if (!spn.getProperties().isEmpty()) {
228228
System.out.println("Unable to solve all queries for examination "+examination + ". Remains :"+ spn.getProperties().size() + " assertions to prove.");
229229
return false;
230230
} else {
231231
System.out.println("Able to resolve query "+examination+ " after proving " + doneProps.size() + " properties.");
232-
}
233-
boolean success = isSuccess(doneProps, examination);
234-
if (success)
235-
System.out.println("FORMULA " + examination + " TRUE TECHNIQUES " + doneProps.computeTechniques());
236-
else
237-
System.out.println("FORMULA " + examination + " FALSE TECHNIQUES " + doneProps.computeTechniques());
232+
boolean success = isSuccess(doneProps, examination);
233+
if (success)
234+
System.out.println("FORMULA " + examination + " TRUE TECHNIQUES " + doneProps.computeTechniques());
235+
else
236+
System.out.println("FORMULA " + examination + " FALSE TECHNIQUES " + doneProps.computeTechniques());
238237

239-
return true;
238+
return true;
239+
}
240240
}
241241

242242
private void buildProperties(String examination, PetriNet spn) {

0 commit comments

Comments
 (0)