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

Discrepancy between model/spec and validator regarding OpSwitch targets #39

Open
afd opened this issue Aug 5, 2021 · 0 comments
Open

Comments

@afd
Copy link
Member

afd commented Aug 5, 2021

This example:

case.txt

gives this control flow graph:

image

The assembly contains this:

               OpSwitch %7 %10 2 %9 1 %8

The spec says that if Target T1 branches to Target T2 then T1 must appear before T2. Here, %8 does not branch to %9. However, the case construct headed by %8 branches to %9, because %8 branches to %20.

The validator rejects this example. And I think that is probably the intent of the specification authors - that "Target T1 branches to Target T2" is intended to mean "The case construct headed by Target T1".

It would be good to open a spec issue for this.

@afd afd added the modelling label Oct 19, 2022
@afd afd transferred this issue from another repository Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant