You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When 'Reset is used on a sequence as in the following example:
packageTestistype U8 isrange0 .. 2 ** 8 - 1with
Size => 8;
type Entr is
message
A : U8;
endmessage;
type Entries is sequence of Entr;
generic
session Session with
Initial => Init,
Final => End_Session
is
Entrs : Entries;
begin
state Init
isbegin
Entrs'Reset;
transition
goto End_Session
endInit;
state End_Session isnull state;
endSession;
endTest;
A bugbox is generated if rflx generate is called without optimization:
------------------------------ RecordFlux Bug ------------------------------
RecordFlux 0.6.0-pre
RecordFlux-parser 0.10.0
attrs 21.4.0
icontract 2.6.1
pydantic 1.9.0
pydotplus 2.0.2
ruamel.yaml 0.17.21
z3-solver 4.8.14.0
Optimized: False
Command: /.../RecordFlux/venv/bin/rflx generate test.rflx -d out
Traceback (most recent call last):
File "/.../RecordFlux/rflx/cli.py", line 201, in main
args.func(args)
File "/.../RecordFlux/rflx/cli.py", line 259, in generate
generator = Generator(
File "/.../RecordFlux/rflx/generator/generator.py", line 175, in __init__
self.__generate(model, integration)
File "/.../RecordFlux/rflx/generator/generator.py", line 250, in __generate
self.__create_session(s, integration)
File "/.../RecordFlux/rflx/generator/generator.py", line 261, in __create_session
session_generator = SessionGenerator(
File "/.../RecordFlux/rflx/generator/session.py", line 218, in __init__
self._create()
File "/.../RecordFlux/rflx/generator/session.py", line 248, in _create
state_machine = self._create_state_machine()
File "/.../RecordFlux/rflx/generator/session.py", line 355, in _create_state_machine
unit += self._create_states(self._session, is_global)
File "/.../RecordFlux/rflx/generator/session.py", line 729, in _create_states
actions = [
File "/.../RecordFlux/rflx/generator/session.py", line 732, in <listcomp>
for s in self._state_action(
File "/.../RecordFlux/rflx/generator/session.py", line 1778, in _state_action
result = self._reset(action, is_global)
File "/.../RecordFlux/rflx/generator/session.py", line 2957, in _reset
assert isinstance(reset.type_, rty.Message)
AssertionError
----------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
When
'Reset
is used on a sequence as in the following example:A bugbox is generated if
rflx generate
is called without optimization:The text was updated successfully, but these errors were encountered: