Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
edf6b18c
Commit
edf6b18c
authored
Sep 05, 2015
by
Maxime Perrotin
Browse files
Properly count errors
parent
ac6f19e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/sdlHandler.py
View file @
edf6b18c
...
...
@@ -713,6 +713,7 @@ class sdlHandler(QObject):
print
'Exhaustive simulation (Breadth first)'
next_level
=
[]
self
.
sim_param
[
'state'
]
=
'exhaustive'
total_err
=
0
def
exhaust_interface
(
name
,
asn1_ty
):
''' Send all combinations of an input signal and return
...
...
@@ -748,10 +749,11 @@ class sdlHandler(QObject):
typename
=
sort
.
ReferencedTypeName
.
replace
(
'-'
,
'_'
)
ty
=
self
.
proc
.
dataview
[
sort
.
ReferencedTypeName
]
next_states
,
error_count
=
exhaust_interface
(
name
,
ty
)
total_err
+=
error_count
next_level
.
extend
(
next_states
)
print
'length of next level: '
,
len
(
next_level
)
print
'Number of stop conditions reached:'
,
error_count
print
'Number of stop conditions reached:'
,
total_err
def
random_simulation
(
self
):
''' Random simulator - read the config from the checker_table and
...
...
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