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

comment out some debugging code

parent 4add7f60
Branches
Tags
No related merge requests found
...@@ -33,7 +33,6 @@ import de.prob.eventb.translator.PredicateVisitor; ...@@ -33,7 +33,6 @@ import de.prob.eventb.translator.PredicateVisitor;
import de.prob.exceptions.ProBException; import de.prob.exceptions.ProBException;
import de.prob.logging.Logger; import de.prob.logging.Logger;
import de.prob.prolog.output.PrologTermStringOutput; import de.prob.prolog.output.PrologTermStringOutput;
import de.prob.unicode.UnicodeTranslator;
public class DisproverReasoner implements IReasoner { public class DisproverReasoner implements IReasoner {
...@@ -71,7 +70,7 @@ public class DisproverReasoner implements IReasoner { ...@@ -71,7 +70,7 @@ public class DisproverReasoner implements IReasoner {
private ICounterExample evaluateSequent(final IProverSequent sequent, private ICounterExample evaluateSequent(final IProverSequent sequent,
final DisproverReasonerInput disproverInput, IProofMonitor pm) final DisproverReasonerInput disproverInput, IProofMonitor pm)
throws ProBException, RodinDBException, InterruptedException { throws ProBException, RodinDBException, InterruptedException {
Logger.info("Calling Disprover on Sequent"); // Logger.info("Calling Disprover on Sequent");
Set<Predicate> hypotheses = new HashSet<Predicate>(); Set<Predicate> hypotheses = new HashSet<Predicate>();
StringBuilder hypothesesString = new StringBuilder(); StringBuilder hypothesesString = new StringBuilder();
...@@ -81,23 +80,23 @@ public class DisproverReasoner implements IReasoner { ...@@ -81,23 +80,23 @@ public class DisproverReasoner implements IReasoner {
hypothesesString.append(" & "); hypothesesString.append(" & ");
} }
if (hypothesesString.length() == 0) { /*
Logger.info("Disprover: No Hypotheses"); * if (hypothesesString.length() == 0) {
} else { * Logger.info("Disprover: No Hypotheses"); } else {
hypothesesString.delete(hypothesesString.length() - 2, * hypothesesString.delete(hypothesesString.length() - 2,
hypothesesString.length()); * hypothesesString.length());
Logger.info("Disprover: Sending Hypotheses: " * Logger.info("Disprover: Sending Hypotheses: " +
+ UnicodeTranslator.toAscii(hypothesesString.toString())); * UnicodeTranslator.toAscii(hypothesesString.toString())); }
} */
Predicate goal = sequent.goal(); Predicate goal = sequent.goal();
Logger.info("Disprover: Sending Goal: " // Logger.info("Disprover: Sending Goal: "+
+ UnicodeTranslator.toAscii(predicateToProlog(goal))); // UnicodeTranslator.toAscii(predicateToProlog(goal)));
IEventBRoot root = getRoot(sequent); IEventBRoot root = getRoot(sequent);
ICounterExample counterExample = DisproverCommand.disprove( ICounterExample counterExample = DisproverCommand.disprove(
Animator.getAnimator(), hypotheses, goal, root, pm); Animator.getAnimator(), hypotheses, goal, root, pm);
Logger.info("Disprover: Result: " + counterExample.toString()); // Logger.info("Disprover: Result: " + counterExample.toString());
return counterExample; return counterExample;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment