You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Explicit wrapping behavior is reported as verification failure #480
** Results:
/home/ubuntu/rmc/rmc-docs/src/tutorial/kinds-of-failure/tests/overflow.rs function simple_addition
[simple_addition.assertion.1] line 6 attempt to compute `move _3 + move _4`, which would overflow: FAILURE
[simple_addition.overflow.1] line 6 arithmetic overflow on unsigned + in var_3 + var_4: FAILURE
** 2 of 2 failed (2 iterations)
VERIFICATION FAILED
This includes both Rust's dynamic assertion, and RMC's overflow check.
With version 2 we still get an overflow failure that probably should be suppressed:
** Results:
/home/ubuntu/rmc/library/core/src/num/uint_macros.rs function core::num::<impl u32>::wrapping_add
[core::num::<impl u32>::wrapping_add.overflow.1] line 1111 arithmetic overflow on unsigned + in var_3 + var_4: FAILURE
** 1 of 1 failed (2 iterations)
VERIFICATION FAILED
The dynamic assertion is correctly removed, but not the RMC overflow check.
We're treating wrapping_add as identical to an ordinary add. I'm not sure if CBMC has an instrinsic or flag or something we can attached to signal this overflow is acceptable.
Activity