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
Branches
Tags
No related merge requests found
......@@ -30,6 +30,7 @@ import de.prob.core.PrologException;
import de.prob.eventb.disprover.core.DisproverReasonerInput;
import de.prob.exceptions.ProBException;
import de.prob.logging.Logger;
import de.prob.unicode.UnicodeTranslator;
public class DisproverReasoner implements IReasoner {
......@@ -73,13 +74,20 @@ public class DisproverReasoner implements IReasoner {
Logger.info("Calling Disprover on Sequent");
Set<Predicate> hypotheses = new HashSet<Predicate>();
StringBuilder hypothesesString = new StringBuilder();
for (Predicate predicate : sequent.hypIterable()) {
hypotheses.add(predicate);
Logger.info("Disprover: Sending Hypothesis: "
+ predicate.toString());
hypothesesString.append(predicate.toString());
hypothesesString.append(" & ");
}
hypothesesString.delete(hypothesesString.length() - 2,
hypothesesString.length());
Logger.info("Disprover: Sending Hypotheses: "
+ UnicodeTranslator.toAscii(hypothesesString.toString()));
Predicate goal = sequent.goal();
Logger.info("Disprover: Sending Goal: " + goal.toString());
Logger.info("Disprover: Sending Goal: "
+ UnicodeTranslator.toAscii(goal.toString()));
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