We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Details: cannot generate fold-unfold Viper statements. The required permission Acc(_1.val_int, read) cannot be obtained.
Prusti version: 0.2.2, commit 0d4a8d4 2024-03-26 13:08:03 UTC, built on 2024-03-26 13:20:57 UTC
Removing the #[ensures(!u32::is_s(&1u32))] below makes verification succeed.
#[ensures(!u32::is_s(&1u32))]
extern crate prusti_contracts; use prusti_contracts::*; struct S; trait SFind { #[pure] fn is_s(&self) -> bool; } impl SFind for S { #[pure] fn is_s(&self) -> bool { true } } impl SFind for u32 { #[pure] fn is_s(&self) -> bool { false } } #[requires(T::is_s(&t))] #[ensures(T::is_s(&t))] #[ensures(!u32::is_s(&1u32))] fn foo<T: SFind>(t: T) { } fn main() { foo::<S>(S); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prusti version: 0.2.2, commit 0d4a8d4 2024-03-26 13:08:03 UTC, built on 2024-03-26 13:20:57 UTC
Removing the
#[ensures(!u32::is_s(&1u32))]
below makes verification succeed.The text was updated successfully, but these errors were encountered: