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

Merge branch 'develop' into rodin3

parents 05541c32 86727c05
Branches
Tags
No related merge requests found
......@@ -134,31 +134,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);
}
......
......@@ -66,6 +66,7 @@ public class DisproverPreferences extends PreferencePage implements
timeoutTextField = new Text(pageComponent, SWT.NONE);
int timeout = prefNode.getInt("timeout", 1000);
timeoutTextField.setText(Integer.toString(timeout));
timeoutTextField.setSize(100, timeoutTextField.getSize().y);
timeoutTextField.addVerifyListener(new VerifyListener() {
@Override
public void verifyText(VerifyEvent e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment