Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMC-SOG
experiments
hybrid
Commits
31504149
Commit
31504149
authored
Jun 02, 2020
by
Jaime Arias
Browse files
fix formula generator
parent
0e4c2a2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/formula_generator.py
View file @
31504149
...
...
@@ -127,15 +127,15 @@ def check_explored_states(model_name, model_instance, formula, time_out,
# timeout or error found
if
(
ltsmin_out
is
None
):
return
Non
e
return
Fals
e
match_regex_explored
=
re
.
search
(
r
'Explored (\d+) states'
,
ltsmin_out
)
if
match_regex_explored
:
nb_explored_states
=
int
(
match_regex_explored
.
group
(
1
))
return
nb_explored_states
return
nb_explored_states
>=
min_explored_states
return
ltsmin_out
return
False
def
get_default_paths
():
...
...
@@ -205,10 +205,10 @@ def generate_formulas(model_name,
if
(
is_satisfied
is
None
):
continue
print
(
"#
explored
states
: "
,
check_explored_states
(
model_name
,
model_instance
,
f
,
timeout
,
min_explored_states
,
paths
))
# if number of explored states is not satisfied
if
not
check_
explored
_
states
(
model_name
,
model_instance
,
f
,
timeout
,
min_explored_states
,
paths
):
continue
# add to formulas satisfied
if
is_satisfied
and
len
(
true_formulas
)
<
n
:
...
...
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