Skip to content
Snippets Groups Projects

Stable verification traces

Merged Alessandro Tempia Calvino requested to merge alessandro_branch into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -89,7 +89,7 @@ public class CounterexampleTrace {
CounterexampleTraceState cs = counterexampleState;
CounterexampleTraceState loopPoint = counterstates.get(counterexampleState.hash);
if (loopPoint != null) {
if (loopPoint != null && loopPoint != counterexampleState) {
//search for a loop
boolean loop = false;
while (cs.father != null) {
@@ -251,7 +251,7 @@ public class CounterexampleTrace {
if (!statesID.containsKey(states.get(cs.hash).id)) {
statesID.put(states.get(cs.hash).id, id++);
}
if (state != null) {
if (state != null && state.nexts != null) {
for (SpecificationLink sl : state.nexts) {
if (sl.destinationState.hashValue == cs.hash) {
s.append("(" + statesID.get(sl.originState.id) + ",\"" + sl.action + "\"," + statesID.get(sl.destinationState.id) + ")\n");
Loading