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;
import java.util.SortedMap;
import java.util.TreeMap;
/**
* 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
......@@ -42,15 +41,19 @@ class CounterExample implements ICounterExample {
@Override
public String toString() {
if (counterExampleFound) {
return state.toString();
return "Counter-Example found: " + state.toString();
} else {
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 {
return "No Counter-Example found.";
}
}
}
}
void addVar(String name, String 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