Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
22d32e7a
Commit
22d32e7a
authored
12 years ago
by
Sebastian Krings
Browse files
Options
Downloads
Patches
Plain Diff
convert disprover log output to ascii
parent
e8d8dd55
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
de.prob.eventb.disprover.core/src/de/prob/eventb/disprover/core/internal/DisproverReasoner.java
+11
-3
11 additions, 3 deletions
...rob/eventb/disprover/core/internal/DisproverReasoner.java
with
11 additions
and
3 deletions
de.prob.eventb.disprover.core/src/de/prob/eventb/disprover/core/internal/DisproverReasoner.java
+
11
−
3
View file @
22d32e7a
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment