Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
6ac288e0
Commit
6ac288e0
authored
Jul 30, 2016
by
Maxime Perrotin
Browse files
Parse SDL with C target to get proper EnumID values
parent
a5629bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/sdlHandler.py
View file @
6ac288e0
...
...
@@ -20,6 +20,7 @@
"""
import
os
import
sys
import
ctypes
import
random
from
functools
import
partial
...
...
@@ -116,7 +117,11 @@ class sdlHandler(QObject):
pr_files
.
append
(
each
)
if
not
pr_files
:
raise
IOError
(
'SDL Handler failed to initialize'
)
# Parse the SDL model - use an ASN.1 AST compatible with C types,
# as this is needed to access DV.enumeratedConstants in random simu
sys
.
argv
.
append
(
'--toC'
)
self
.
ast
=
opengeode
.
parse
(
pr_files
)
sys
.
argv
.
pop
()
try
:
root_ast
=
self
.
ast
[
0
]
self
.
proc
=
root_ast
.
processes
[
0
]
...
...
@@ -597,7 +602,7 @@ class sdlHandler(QObject):
self
.
click_tc
(
random_tc
,
arg
)
# Send a message every 100 ms.. Should be configurable
QTimer
().
singleShot
(
100
,
self
.
random_step
)
QTimer
().
singleShot
(
100
0
,
self
.
random_step
)
def
exhaustive_simulation
(
self
):
''' Model checker - try all combinations of all inputs in all
...
...
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