Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
i7
peregrine
Commits
19a50a08
Commit
19a50a08
authored
Jul 29, 2014
by
Philipp Meyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Excluded ghost transitions from deadlock and safety properties
parent
a1fd605d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/Main.hs
src/Main.hs
+4
-2
No files found.
src/Main.hs
View file @
19a50a08
...
...
@@ -270,7 +270,7 @@ makeImplicitProperty net DeadlockFree =
Property
"deadlock-free"
Safety
$
foldl
(
:&:
)
FTrue
(
map
(
foldl
(
:|:
)
FFalse
.
map
(
placeOp
Lt
)
.
lpre
net
)
(
transitions
net
))
(
filter
(`
notElem
`
ghostTransitions
net
)
(
transitions
net
))
)
makeImplicitProperty
net
DeadlockFreeUnlessFinal
=
let
nodeadlock
=
makeImplicitProperty
net
DeadlockFree
(
finals
,
nonfinals
)
=
partition
(
null
.
lpost
net
)
(
places
net
)
...
...
@@ -281,7 +281,9 @@ makeImplicitProperty net DeadlockFreeUnlessFinal =
makeImplicitProperty
net
(
Bounded
k
)
=
Property
(
show
k
++
"-bounded"
)
Safety
$
foldl
(
:|:
)
FFalse
(
map
(
\
p
->
placeOp
Gt
(
p
,
k
))
(
places
net
))
(
map
(
\
p
->
placeOp
Gt
(
p
,
k
))
(
filter
(`
notElem
`
concatMap
(
post
net
)
(
ghostTransitions
net
))
(
places
net
)))
makeImplicitProperty
net
Safe
=
let
bounded
=
makeImplicitProperty
net
(
Bounded
1
)
in
Property
"safe"
Safety
$
pformula
bounded
...
...
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