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
fd435a87
Commit
fd435a87
authored
11 years ago
by
Jens Bendisposto
Browse files
Options
Downloads
Patches
Plain Diff
and the same for contexts
parent
69fe12d1
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.core/src/de/prob/eventb/translator/ContextTranslator.java
+40
-28
40 additions, 28 deletions
...core/src/de/prob/eventb/translator/ContextTranslator.java
with
40 additions
and
28 deletions
de.prob.core/src/de/prob/eventb/translator/ContextTranslator.java
+
40
−
28
View file @
fd435a87
...
...
@@ -13,6 +13,7 @@ import java.util.LinkedList;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.commons.lang.StringUtils
;
import
org.eclipse.core.runtime.Assert
;
import
org.eventb.core.IContextRoot
;
import
org.eventb.core.IEventBRoot
;
...
...
@@ -61,6 +62,7 @@ import de.prob.core.translator.TranslationFailedException;
import
de.prob.eventb.translator.internal.EProofStatus
;
import
de.prob.eventb.translator.internal.ProofObligation
;
import
de.prob.eventb.translator.internal.SequentSource
;
import
de.prob.logging.Logger
;
public
final
class
ContextTranslator
extends
AbstractComponentTranslator
{
...
...
@@ -180,12 +182,12 @@ public final class ContextTranslator extends AbstractComponentTranslator {
}
private
void
collectProofInfo
(
IEventBRoot
origin
)
throws
RodinDBException
{
List
<
String
>
bugs
=
new
LinkedList
<
String
>();
try
{
IPSRoot
proofStatus
=
origin
.
getPSRoot
();
IPSStatus
[]
statuses
=
proofStatus
.
getStatuses
();
List
<
String
>
bugs
=
new
LinkedList
<
String
>();
for
(
IPSStatus
status
:
statuses
)
{
final
int
confidence
=
status
.
getConfidence
();
boolean
broken
=
status
.
isBroken
();
...
...
@@ -221,6 +223,16 @@ public final class ContextTranslator extends AbstractComponentTranslator {
}
addProof
(
new
ProofObligation
(
origin
,
s
,
name
,
pstatus
));
}
}
catch
(
RodinDBException
e
)
{
bugs
.
add
(
e
.
getLocalizedMessage
());
}
if
(!
bugs
.
isEmpty
())
{
String
message
=
"Translation incomplete due to a Bug in Rodin. This does not affect correctness of the Animation/Model Checking but can decrease its performance. Skipped discharged information about: "
+
StringUtils
.
join
(
bugs
,
","
);
Logger
.
notifyUser
(
message
);
}
}
...
...
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