snarkVM: [Bug] CI job failure (test_assert_eq_succeeds)

Detected in https://github.com/AleoHQ/snarkVM/pull/982:

thread 'program::instruction::operation::assert::tests::test_assert_eq_succeeds' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `1`: Constant constraint failed: (0 * 1) =?= 1', /home/circleci/project/circuit/environment/src/circuit.rs:156:29
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    program::instruction::operation::assert::tests::test_assert_eq_succeeds

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

@ljedrz I have assigned you to both #985 and #986, as I believe the underlying issue (whatever it may be) is the same under the hood.

I originally wrote that test framework 2 weeks ago and am happy to debug it with you. I believe just updating it to do more iterations will cause it to eventually hit the case. I suggest adding some additional println! statements to catch the exact literal_a, literal_b, mode_a, and mode_b case that causes it to fail.

If you need additional guidance, I’m happy to triage it with you.