Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized strings break simulation #57

Open
n1kPLV opened this issue Jan 15, 2023 · 0 comments
Open

Uninitialized strings break simulation #57

n1kPLV opened this issue Jan 15, 2023 · 0 comments

Comments

@n1kPLV
Copy link

n1kPLV commented Jan 15, 2023

This triggers the bug described in #53, however I think this a separate problem.
When a string is declared but not initialized in an scchart, but is assigned at a later point, the simulation stops with the error message described in #53

Reproduction

Consider the SCChart

scchart Un_STR {
    output string out

    input bool step

    initial state a
    if step go to b

    state b{
        entry do out = "aaa"
    }
}

Start a simulation of this scchart. If you use java based simulation, you need to set step to true. Then advance the simulation by one or two steps.

Expected behavior

The now initialized string shows up in the variable list with its new value. The simulation continues

Actual behavior

The Simulation is stopped. The error message from #53 appears in the Simulation output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant