Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
i7
peregrine
Commits
81847005
Commit
81847005
authored
Aug 06, 2018
by
Philipp Meyer
Browse files
Fix generation of protocols without precondition
parent
76fa0232
Changes
1
Hide whitespace changes
Inline
Side-by-side
benchmarks/python/execprotocol.py
View file @
81847005
...
...
@@ -42,7 +42,8 @@ else:
protocol
[
"transitions"
][
i
][
p
]
=
list
(
map
(
to_string
,
protocol
[
"transitions"
][
i
][
p
]))
protocol
[
"predicate"
]
=
re
.
sub
(
r
'C\[([^]]*)\]'
,
lambda
match
:
to_string
(
match
.
group
(
1
)),
protocol
[
"predicate"
])
protocol
[
"precondition"
]
=
re
.
sub
(
r
'C\[([^]]*)\]'
,
lambda
match
:
to_string
(
match
.
group
(
1
)),
protocol
[
"precondition"
])
if
"precondition"
in
protocol
:
protocol
[
"precondition"
]
=
re
.
sub
(
r
'C\[([^]]*)\]'
,
lambda
match
:
to_string
(
match
.
group
(
1
)),
protocol
[
"precondition"
])
if
"statesStyle"
in
protocol
:
style
=
protocol
[
"statesStyle"
]
...
...
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