Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Müller
NIWO
Commits
9d5cd1c4
Commit
9d5cd1c4
authored
Nov 22, 2017
by
Christian Müller
Browse files
inv
parent
5b9d9ef0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/scala/de/tum/workflows/ltl/tests/InvariantCausalFilesTest.scala
View file @
9d5cd1c4
...
...
@@ -95,6 +95,17 @@ class InvariantCausalFilesTest extends FlatSpec {
assert
(!
checkSafeCausal
(
name
,
inv
))
}
// HEAP SPACE
it
should
"fail to prove nonomitting/conference with elim"
ignore
{
val
name
=
"nonomitting/conference"
val
xt
=
Var
(
"xat"
,
"X"
)
val
yt
=
Var
(
"xbt"
,
"X"
)
val
pt
=
Var
(
"pt"
,
"P"
)
val
rt
=
Var
(
"rt"
,
"R"
)
val
inv
=
Forall
(
List
(
xt
,
pt
,
yt
,
rt
),
genEq
(
"Read"
,
List
(
xt
,
yt
,
pt
,
rt
)))
assert
(!
checkSafeCausalElim
(
name
,
inv
))
}
it
should
"fail to prove omitting/conference"
in
{
val
name
=
"omitting/conference"
val
xt
=
Var
(
"xat"
,
"X"
)
...
...
@@ -103,5 +114,14 @@ class InvariantCausalFilesTest extends FlatSpec {
val
inv
=
Forall
(
List
(
xt
,
pt
),
genEq
(
"Read"
,
List
(
xt
,
pt
,
rt
)))
assert
(!
checkSafeCausal
(
name
,
inv
))
}
it
should
"fail to prove omitting/conference with elim"
in
{
val
name
=
"omitting/conference"
val
xt
=
Var
(
"xat"
,
"X"
)
val
pt
=
Var
(
"pt"
,
"P"
)
val
rt
=
Var
(
"rt"
,
"R"
)
val
inv
=
Forall
(
List
(
xt
,
pt
),
genEq
(
"Read"
,
List
(
xt
,
pt
,
rt
)))
assert
(!
checkSafeCausalElim
(
name
,
inv
))
}
}
\ No newline at end of file
src/test/scala/de/tum/workflows/ltl/tests/TestUtils.scala
View file @
9d5cd1c4
...
...
@@ -11,7 +11,7 @@ object TestUtils {
val
spec
=
ExampleWorkflows
.
parseExample
(
name
).
get
// do not blow up the formula with auxilliary elimination
val
(
time
,
(
res
,
dot
))
=
Utils
.
time
{
InvariantChecker
.
checkInvariantFP
(
spec
,
inv
,
InvP
roperties
(
false
,
false
)
)
InvariantChecker
.
checkInvariantFP
(
spec
,
inv
,
p
roperties
)
}
for
((
s
,
i
)
<-
dot
.
zipWithIndex
)
{
Utils
.
write
(
s
"${name}_${desc}_${i}.dot"
,
s
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment