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

Two local variables with the same name (XSTS) #193

Open
mondokm opened this issue Jul 7, 2023 · 0 comments
Open

Two local variables with the same name (XSTS) #193

mondokm opened this issue Jul 7, 2023 · 0 comments
Assignees
Labels
bug xsts Issue is XSTS specific (not core or XCFA or other formalisms)

Comments

@mondokm
Copy link
Contributor

mondokm commented Jul 7, 2023

Declaring two local variables with the same name inside a transition causes both to appear in the trace output.
Example code:

choice {
   local var a: integer = 1;
   x := x + a;
}
choice {
   local var a: integer = 2;
   x := x + a;
}

Resulting trace:

(XstsState post_init last_internal
  (ExplState
    (x 3)
    (a 1)
    (a 2)))
(XstsState post_init last_env
  (ExplState
    (x 3)
    (a 1)
    (a 2)))
(XstsState post_init last_internal
  (ExplState
    (x 6)
    (a 1)
    (a 2))))
@mondokm mondokm added the bug label Jul 7, 2023
@AdamZsofi AdamZsofi assigned AdamZsofi and mondokm and unassigned AdamZsofi Nov 14, 2024
@AdamZsofi AdamZsofi added the xsts Issue is XSTS specific (not core or XCFA or other formalisms) label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug xsts Issue is XSTS specific (not core or XCFA or other formalisms)
Projects
None yet
Development

No branches or pull requests

2 participants