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
An example to be fixed in the the ongoing Prusti rewrite:
use prusti_contracts::*;#[requires(*x == a && a != b)]//#[after_expiry(*x == before_expiry(*result))] // Does not verify, but it should#[after_expiry(*x == a)]// Verifies, but it shouldn'tpubfnfoo<T:Eq + Copy>(x:&mutT,a:T,b:T) -> &mutT{*x = b;
x
}#[requires(*x == a && a != b)]pubfnbug(x:&mutu32,a:u32,b:u32){let _ = foo(x, a, b);assert!(*x == a);// Verifies, but fails at runtime}
The text was updated successfully, but these errors were encountered:
An example to be fixed in the the ongoing Prusti rewrite:
The text was updated successfully, but these errors were encountered: