Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2016-11-15 10:59:19 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3c3d2f9a977eb3dfe5c6242e159836b8befc42c8
3c3d2f9a
1 parent
95290977
fixed what the previous fix has broken (shame on me)
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
snakes/plugins/gv.py
snakes/utils/abcd/checker.py
snakes/plugins/gv.py
View file @
3c3d2f9
...
...
@@ -360,7 +360,7 @@ def extend (module) :
if
node_attr
:
node_attr
(
state
,
self
,
attr
)
graph
.
add_node
(
str
(
state
),
attr
)
for
succ
,
(
trans
,
mode
)
in
self
.
successors
()
.
item
s
()
:
for
succ
,
trans
,
mode
in
self
.
successor
s
()
:
attr
=
dict
(
arrowhead
=
"normal"
,
label
=
"
%
s
\\
n
%
s"
%
(
trans
.
name
,
mode
))
if
edge_attr
:
...
...
snakes/utils/abcd/checker.py
View file @
3c3d2f9
...
...
@@ -30,7 +30,9 @@ def check (_) :
def
bounded
(
self
,
marking
,
max
)
:
return
all
(
len
(
marking
(
p
))
==
1
for
p
in
marking
)
def
dead
(
self
)
:
return
not
bool
(
self
.
g
.
successors
())
for
_
in
self
.
g
.
successors
()
:
return
False
return
True
def
run
(
self
)
:
start
=
last
=
time
.
time
()
for
state
in
self
.
g
:
...
...
Please
register
or
login
to post a comment