Skip to content
Snippets Groups Projects
Commit 2c9428a1 authored by Sebastian Krings's avatar Sebastian Krings
Browse files

improved to string method of counter-example (for loggin)

parent 7ca58084
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,6 @@ package de.prob.eventb.disprover.core.internal; ...@@ -3,7 +3,6 @@ package de.prob.eventb.disprover.core.internal;
import java.util.SortedMap; import java.util.SortedMap;
import java.util.TreeMap; import java.util.TreeMap;
/** /**
* This class wraps the results from a Disprover run. It either indicates that * This class wraps the results from a Disprover run. It either indicates that
* there is no counter-example, or it provides a way to show the counter * there is no counter-example, or it provides a way to show the counter
...@@ -42,15 +41,19 @@ class CounterExample implements ICounterExample { ...@@ -42,15 +41,19 @@ class CounterExample implements ICounterExample {
@Override @Override
public String toString() { public String toString() {
if (counterExampleFound) { if (counterExampleFound) {
return state.toString(); return "Counter-Example found: " + state.toString();
} else { } else {
if (isProof()) { if (isProof()) {
return "No Counter-Example exists."; return "No Counter-Example exists: Proof.";
} else {
if (timeoutOccured()) {
return "No Counter-Example found due to Time-Out.";
} else { } else {
return "No Counter-Example found."; return "No Counter-Example found.";
} }
} }
} }
}
void addVar(String name, String value) { void addVar(String name, String value) {
state.put(name, value); state.put(name, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment