Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
i7
peregrine
Commits
19a50a08
Commit
19a50a08
authored
Jul 29, 2014
by
Philipp Meyer
Browse files
Excluded ghost transitions from deadlock and safety properties
parent
a1fd605d
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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