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

Type of some division expressions is ambiguous and the default interpretation is bad #745

Open
marcoeilers opened this issue Oct 9, 2023 · 0 comments

Comments

@marcoeilers
Copy link
Contributor

Gobra frequently generates permission amounts like 1 / 4000 / 2 for SCION code by @jcp19. These are intended to be a fractional permission 1/4000 divided by two, i.e., the permission value 1/8000. Instead, they are apparently parsed as an integer division 1 \ 4000, which is zero, which is then the numerator in the fractional permission 0 / 2. This is bad because a) it's not the intended meaning, and b) there is no way to pretty-print it so that the parser returns the intended meaning.

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