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
2c9428a1
Commit
2c9428a1
authored
12 years ago
by
Sebastian Krings
Browse files
Options
Downloads
Patches
Plain Diff
improved to string method of counter-example (for loggin)
parent
7ca58084
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/CounterExample.java
+7
-4
7 additions, 4 deletions
...e/prob/eventb/disprover/core/internal/CounterExample.java
with
7 additions
and
4 deletions
de.prob.eventb.disprover.core/src/de/prob/eventb/disprover/core/internal/CounterExample.java
+
7
−
4
View file @
2c9428a1
...
...
@@ -3,7 +3,6 @@ package de.prob.eventb.disprover.core.internal;
import
java.util.SortedMap
;
import
java.util.TreeMap
;
/**
* This class wraps the results from a Disprover run. It either indicates that
* there is no counter-example, or it provides a way to show the counter
...
...
@@ -42,15 +41,19 @@ class CounterExample implements ICounterExample {
@Override
public
String
toString
()
{
if
(
counterExampleFound
)
{
return
state
.
toString
();
return
"Counter-Example found: "
+
state
.
toString
();
}
else
{
if
(
isProof
())
{
return
"No Counter-Example exists."
;
return
"No Counter-Example exists: Proof."
;
}
else
{
if
(
timeoutOccured
())
{
return
"No Counter-Example found due to Time-Out."
;
}
else
{
return
"No Counter-Example found."
;
}
}
}
}
void
addVar
(
String
name
,
String
value
)
{
state
.
put
(
name
,
value
);
...
...
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