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
Actually, the opt_loop_invariant considers only full expressions, it is not working on subexpressions, for instance, the code:
opt_loop_invariant
while (i < n) { i <- (x * y) + 1 }
as x and y are invariant, could be optimized to:
x
y
is_1 <- (x * y) while (i < n) { i <- is_1 + 1 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Actually, the
opt_loop_invariant
considers only full expressions, it is not working on subexpressions, for instance, the code:as
x
andy
are invariant, could be optimized to:The text was updated successfully, but these errors were encountered: