bug: Rangechecker.Check
passes even when bits int
is 1 less than bit-length of v variable
in case when bits
is odd
#897
Labels
Description
After creating a new instance of
Rangechecker
by usingrangecheck.New(api)
, callingCheck
function using this instance passes even when the inputbits
is 1 less than the actual bit-length ofv
whenbits
is odd.Expected Behavior
Check
should failActual Behavior
Check
passes, implyingv
has bit-lengthbits
Steps to Reproduce
TestRangeCheck_Odd
output:ok
TestRangeCheck_Even
output:Circuit not solved: constraint #0 is not satisfied: 1 ⋅ 0 != 64 test: {64 6}
Your Environment
The text was updated successfully, but these errors were encountered: