Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMC-SOG
experiments
hybrid
Commits
46a392ba
Commit
46a392ba
authored
Jun 03, 2020
by
Jaime Arias
Browse files
update formula generator
parent
80f8614d
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/formula_generator.py
View file @
46a392ba
...
...
@@ -207,13 +207,15 @@ def generate_formulas(model_name,
if
(
is_satisfied
is
None
):
continue
# 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
:
# if number of explored states is not satisfied
has_explored_states
=
check_explored_states
(
model_name
,
model_instance
,
f
,
timeout
,
min_explored_states
,
paths
)
if
not
has_explored_states
:
continue
true_formulas
.
append
(
f
)
write_formula
(
model_name
,
model_instance
,
f
,
formula_id
,
paths
)
formula_id
=
formula_id
+
1
...
...
Write
Preview
Supports
Markdown
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