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
No related branches found
No related tags found
No related merge requests found
...@@ -134,31 +134,43 @@ public class DisproverReasoner implements IReasoner { ...@@ -134,31 +134,43 @@ public class DisproverReasoner implements IReasoner {
IAntecedent ante = ProverFactory.makeAntecedent(goal); IAntecedent ante = ProverFactory.makeAntecedent(goal);
if (counterExample.timeoutOccured()) if (counterExample.timeoutOccured()) {
System.out.println(sequent.toString() + ": Timeout occured.");
return ProverFactory.reasonerFailure(this, input, return ProverFactory.reasonerFailure(this, input,
"ProB: Timeout occurred."); "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(), return ProverFactory.makeProofRule(this, input, sequent.goal(),
null, IConfidence.DISCHARGED_MAX, null, IConfidence.DISCHARGED_MAX,
"ProB (no enumeration / all cases checked)"); "ProB (no enumeration / all cases checked)");
}
if (!counterExample.counterExampleFound()) {
System.out.println(sequent.toString() + ": Unsure.");
if (!counterExample.counterExampleFound())
return ProverFactory.reasonerFailure( return ProverFactory.reasonerFailure(
this, this,
input, input,
"ProB: No Counter-Example found due to " "ProB: No Counter-Example found due to "
+ counterExample.getReason() + counterExample.getReason()
+ ", but there might exist one."); + ", but there might exist one.");
}
if (counterExample.counterExampleFound() if (counterExample.counterExampleFound()
&& counterExample.onlySelectedHypotheses()) && counterExample.onlySelectedHypotheses()) {
System.out.println(sequent.toString()
+ ": Counter-Example for selected hypotheses found.");
return ProverFactory return ProverFactory
.reasonerFailure( .reasonerFailure(
this, this,
input, input,
"ProB: Counter-Example for selected Hypotheses found, Goal not provable from selected Hypotheses (may be provable with all Hypotheses)"); "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, return ProverFactory.makeProofRule(this, input, null, null,
IConfidence.PENDING, counterExample.toString(), ante); IConfidence.PENDING, counterExample.toString(), ante);
} }
......
...@@ -66,6 +66,7 @@ public class DisproverPreferences extends PreferencePage implements ...@@ -66,6 +66,7 @@ public class DisproverPreferences extends PreferencePage implements
timeoutTextField = new Text(pageComponent, SWT.NONE); timeoutTextField = new Text(pageComponent, SWT.NONE);
int timeout = prefNode.getInt("timeout", 1000); int timeout = prefNode.getInt("timeout", 1000);
timeoutTextField.setText(Integer.toString(timeout)); timeoutTextField.setText(Integer.toString(timeout));
timeoutTextField.setSize(100, timeoutTextField.getSize().y);
timeoutTextField.addVerifyListener(new VerifyListener() { timeoutTextField.addVerifyListener(new VerifyListener() {
@Override @Override
public void verifyText(VerifyEvent e) { 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