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

add output to disprover

parent c406cb5c
No related branches found
No related tags found
No related merge requests found
......@@ -133,31 +133,43 @@ public class DisproverReasoner implements IReasoner {
IAntecedent ante = ProverFactory.makeAntecedent(goal);
if (counterExample.timeoutOccured())
if (counterExample.timeoutOccured()) {
System.out.println(sequent.toString() + ": Timeout occured.");
return ProverFactory.reasonerFailure(this, input,
"ProB: Timeout occurred.");
}
if (!counterExample.counterExampleFound() && counterExample.isProof())
if (!counterExample.counterExampleFound() && counterExample.isProof()) {
System.out.println(sequent.toString() + ": Proof.");
return ProverFactory.makeProofRule(this, input, sequent.goal(),
null, IConfidence.DISCHARGED_MAX,
"ProB (no enumeration / all cases checked)");
}
if (!counterExample.counterExampleFound()) {
System.out.println(sequent.toString() + ": Unsure.");
if (!counterExample.counterExampleFound())
return ProverFactory.reasonerFailure(
this,
input,
"ProB: No Counter-Example found due to "
+ counterExample.getReason()
+ ", but there might exist one.");
}
if (counterExample.counterExampleFound()
&& counterExample.onlySelectedHypotheses())
&& counterExample.onlySelectedHypotheses()) {
System.out.println(sequent.toString()
+ ": Counter-Example for selected hypotheses found.");
return ProverFactory
.reasonerFailure(
this,
input,
"ProB: Counter-Example for selected Hypotheses found, Goal not provable from selected Hypotheses (may be provable with all Hypotheses)");
}
System.out.println(sequent.toString() + ": Counter-Example found.");
return ProverFactory.makeProofRule(this, input, null, null,
IConfidence.PENDING, counterExample.toString(), ante);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment