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
5298e191
Commit
5298e191
authored
12 years ago
by
Sebastian Krings
Browse files
Options
Downloads
Patches
Plain Diff
comment out some debugging code
parent
4add7f60
Branches
Branches containing commit
Tags
Tags containing commit
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
+12
-13
12 additions, 13 deletions
...rob/eventb/disprover/core/internal/DisproverReasoner.java
with
12 additions
and
13 deletions
de.prob.eventb.disprover.core/src/de/prob/eventb/disprover/core/internal/DisproverReasoner.java
+
12
−
13
View file @
5298e191
...
@@ -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
;
}
}
...
...
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