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

if no counter-example is found by the disprover, return a reasoner failure...

if no counter-example is found by the disprover, return a reasoner failure instead of modifying the proof tree (to act more like pp does)
parent ae65b9b4
No related branches found
No related tags found
No related merge requests found
...@@ -117,10 +117,9 @@ public class DisproverReasoner implements IReasoner { ...@@ -117,10 +117,9 @@ public class DisproverReasoner implements IReasoner {
IAntecedent ante = ProverFactory.makeAntecedent(goal); IAntecedent ante = ProverFactory.makeAntecedent(goal);
if (counterExample.timeoutOccured()) { if (counterExample.timeoutOccured())
return ProverFactory.reasonerFailure(this, input, return ProverFactory.reasonerFailure(this, input,
"Timeout occurred (ProB)"); "Timeout occurred (ProB)");
}
if (!counterExample.counterExampleFound() && counterExample.isProof()) if (!counterExample.counterExampleFound() && counterExample.isProof())
return ProverFactory.makeProofRule(this, input, sequent.goal(), return ProverFactory.makeProofRule(this, input, sequent.goal(),
...@@ -128,14 +127,13 @@ public class DisproverReasoner implements IReasoner { ...@@ -128,14 +127,13 @@ public class DisproverReasoner implements IReasoner {
"ProB (all cases checked)"); "ProB (all cases checked)");
if (!counterExample.counterExampleFound()) if (!counterExample.counterExampleFound())
return ProverFactory.makeProofRule(this, input, null, null, return ProverFactory
IConfidence.DISCHARGED_MAX, .reasonerFailure(this, input,
"No Counter-Example found (ProB)", ante); "No Counter-Example found (ProB), but there might exist one");
return ProverFactory.makeProofRule(this, input, null, null, return ProverFactory.makeProofRule(this, input, null, null,
IConfidence.PENDING, IConfidence.PENDING,
"Counter-Example: " + counterExample.toString(), ante); "Counter-Example: " + counterExample.toString(), ante);
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment