We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code-generator wrongly assumes that all for loops increment their loop counter. This issue can be demonstrated using the following model:
class A operations public op : () ==> nat op () == ( dcl c : nat := 10; for i = 10 to 5 by -1 do c := c - 1; return c; ); end A
To clarify, new A().op() returns 4 as expected, whereas the equivalent C expressions returns 10.
new A().op()
The text was updated successfully, but these errors were encountered:
b19f1b4
peterwvj
No branches or pull requests
The code-generator wrongly assumes that all for loops increment their loop counter. This issue can be demonstrated using the following model:
To clarify,
new A().op()
returns 4 as expected, whereas the equivalent C expressions returns 10.The text was updated successfully, but these errors were encountered: