Something went wrong. Try again.
forked from verus-lang/verus
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637#[allow(unused_imports)]use verus_builtin::*;#[allow(unused_imports)]use verus_builtin_macros::*;
verus! {
fn main() {}
mod M1 { use verus_builtin::*;
spec fn f1(i: int) -> int { i + 1 }
pub closed spec fn f2(i: int) -> int { f1(i) + 1 }
}
mod M2 { use crate::M1::f2; #[allow(unused_imports)] use verus_builtin::*;
proof fn P() { // assert(f2(10) == 12); // FAILS, since f2 is closed (abstract) assert(f2(10) == f2(10)); }
}
} // verus!