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

convert disprover log output to ascii

parent e8d8dd55
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ import de.prob.core.PrologException; ...@@ -30,6 +30,7 @@ import de.prob.core.PrologException;
import de.prob.eventb.disprover.core.DisproverReasonerInput; import de.prob.eventb.disprover.core.DisproverReasonerInput;
import de.prob.exceptions.ProBException; import de.prob.exceptions.ProBException;
import de.prob.logging.Logger; import de.prob.logging.Logger;
import de.prob.unicode.UnicodeTranslator;
public class DisproverReasoner implements IReasoner { public class DisproverReasoner implements IReasoner {
...@@ -73,13 +74,20 @@ public class DisproverReasoner implements IReasoner { ...@@ -73,13 +74,20 @@ public class DisproverReasoner implements IReasoner {
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();
for (Predicate predicate : sequent.hypIterable()) { for (Predicate predicate : sequent.hypIterable()) {
hypotheses.add(predicate); hypotheses.add(predicate);
Logger.info("Disprover: Sending Hypothesis: " hypothesesString.append(predicate.toString());
+ predicate.toString()); hypothesesString.append(" & ");
} }
hypothesesString.delete(hypothesesString.length() - 2,
hypothesesString.length());
Logger.info("Disprover: Sending Hypotheses: "
+ UnicodeTranslator.toAscii(hypothesesString.toString()));
Predicate goal = sequent.goal(); Predicate goal = sequent.goal();
Logger.info("Disprover: Sending Goal: " + goal.toString()); Logger.info("Disprover: Sending Goal: "
+ UnicodeTranslator.toAscii(goal.toString()));
IEventBRoot root = getRoot(sequent); IEventBRoot root = getRoot(sequent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment