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
I expected to see this happen: Harness should succeed.
Instead, this happened: Verification failed.
SUMMARY:
** 1 of 8 failed
Failed Checks: assertion failed: n1.is_some()
File: "/kani/tests/kani/Invariants/check_nonzero.rs", line 25, in check_i8
VERIFICATION:- FAILED
Note that we do have a test that should be checking this (tests/kani/Invariants/check_nonzero.rs), and if you run it manually, you can see that the test is failing. However, the test uses kani::expect_fail() which is also broken. So the tests actually succeeds in our CI.
Activity
celinval commentedon Aug 17, 2022
It looks like we are failing when the value is negative. I wonder if this regression was introduced by: d0b74ca
celinval commentedon Aug 17, 2022
That said, the following harness only fails in the second assert:
celinval commentedon Aug 17, 2022
It predates this commit.
danielsn commentedon Aug 17, 2022
I figured out what's wrong: we're doing a
signedcomparison against 0, when we need unsigned.