-
Notifications
You must be signed in to change notification settings - Fork 248
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
bit_shift_comptime
panics in debug mode
#2745
Comments
The minimal reproduction is fn main() {
let a: u1 = 1 >> 1;
assert(a == 0);
} This gets compiled down to
We should be able to compile this down to an empty circuit. The issue is that when we try and simplify noir/compiler/noirc_evaluator/src/ssa/ir/instruction.rs Lines 783 to 800 in 36dcd48
The compiler then thinks we're performing a division by zero so defers to ACIR generation where we get the final panic. |
I cannot reproduce this issue, so I close it. |
I'm getting a panic on these lines when compiling
bit_shift_comptime
in debug mode.noir/compiler/noirc_evaluator/src/ssa/acir_gen/acir_ir/generated_acir.rs
Lines 454 to 456 in 36dcd48
The text was updated successfully, but these errors were encountered: