Closed wrwg closed 2 weeks ago
@wrwg, the aborts_if
condition should be aborts_if x <= 815 with 0xCA26CBD9BE0B0000;
, which can be proved.
module 0x42::test {
//use std::error;
spec module {
pragma verify = true;
}
fun assert_with_spec(x: u64) {
assert!(x > 815);
}
spec assert_with_spec {
aborts_if x <= 815 with 0xCA26CBD9BE0B0000; //std::error::internal(0) + 0xCA26CBD9BE000000;
}
}
Drop in the following into functional prover tests:
The prover says contradicting things:
This probably happens because the code passed to
with
has the higher bytes truncated. However, if that is the case, we need to also truncate the actual code, otherwise we can never reach it.