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

Support any Integer/Boolean/Real value in SelectExpression #77

Open
benedekh opened this issue Jun 8, 2021 · 2 comments
Open

Support any Integer/Boolean/Real value in SelectExpression #77

benedekh opened this issue Jun 8, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@benedekh
Copy link
Member

benedekh commented Jun 8, 2021

SelectExpression exptects an Expression as operand from which it chooses a value. At the moment IntegerRangeLiteral and ArrayListLiteral expressions are supported. However, it would be useful if we could select any Integer, Boolean, Real, etc. values not only from a range.

/cc @vincemolnar

@benedekh benedekh added the enhancement New feature or request label Jun 8, 2021
@grbeni
Copy link
Contributor

grbeni commented Jun 8, 2021

@vincemolnar and I have consulted about the issue and we have concluded that the transformation of such select expressions to havoc expressions in the XSTS model can lead to non-deterministic behavior in choice actions due to the else branch. This could be addressed by for example introducing if-else actions in the XSTS language in the future.

@grbeni
Copy link
Contributor

grbeni commented Aug 26, 2024

See the introduction of havoc actions in 4a0c205.

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

No branches or pull requests

2 participants