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

Unexpected error - Answers of decision could overlap #64

Closed
Ansaya opened this issue Jun 27, 2020 · 1 comment
Closed

Unexpected error - Answers of decision could overlap #64

Ansaya opened this issue Jun 27, 2020 · 1 comment

Comments

@Ansaya
Copy link

Ansaya commented Jun 27, 2020

Hello,
I would like to implement a value check as reported in the following image, but during the model verification OpenGEODE still complains about the fact that [ERROR] Answers of decision "val" could overlap, while it can not happen because of the first check performed, which clearly states "high > low".
image

Here there is the example file along with the asn types definition.
issue.zip

@maxime-esa
Copy link
Contributor

Hi Michele,

It is possible to use this construct only with ASN.1 constants, as the tool is not capable to ensure in the general case the current range of the variable.

If you declare high and low as ASN.1 constants like this in the ASN.1 model:

image

And declare a variable like this:
image

Then you can safely use high and low in decision answers:

image

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

2 participants