Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Christian Müller
NIWO
Commits
305343f5
Commit
305343f5
authored
Oct 16, 2017
by
Christian Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix iteration, add test
parent
5acbb2b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/main/scala/de/tum/workflows/toz3/InvariantChecker.scala
src/main/scala/de/tum/workflows/toz3/InvariantChecker.scala
+4
-1
No files found.
src/main/scala/de/tum/workflows/toz3/InvariantChecker.scala
View file @
305343f5
...
...
@@ -103,6 +103,7 @@ object InvariantChecker extends LazyLogging {
// check if done, i.e. all edges proven
val
toProve
=
(
graph
.
edges
--
proven
)
if
(
toProve
.
isEmpty
)
{
logger
.
info
(
"Everything proven. Terminating."
)
Some
(
labels
)
}
else
{
...
...
@@ -116,7 +117,8 @@ object InvariantChecker extends LazyLogging {
if
(
status
==
Status
.
UNSATISFIABLE
)
{
// Negation of implication unsat
// --> safe, continue with larger proven set
// --> safe, continue with larger proven set.
logger
.
info
(
s
"Proven inductiveness for (${next._1} -> ${next._2})."
)
checkInvariantRec
(
labels
,
proven
+
next
)
}
else
{
// Negation of implication sat
...
...
@@ -132,6 +134,7 @@ object InvariantChecker extends LazyLogging {
// Negation of newinv still unsat, newinv still sat
checkInvariantRec
(
newlabels
,
newproven
)
}
else
{
logger
.
info
(
"New invariant not satisfiable. Terminating."
)
None
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment