-
I found that the kani verify-std command was always running a cached version of the contracts & harnesses after these dependencies and the following changes are added: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
I'm not entirely sure I understand this sentence:
But if the problem is about cached artifacts, can you just run |
Beta Was this translation helpful? Give feedback.
-
I was able to reproduce this issue. Apparently, the issue occurs if the Inside $ kani verify-std -Zunstable-options . -Z function-contracts -Z mem-predicates --harness ptr::non_null::verify
Kani Rust Verifier 0.55.0 (standalone)
Creating library package
Adding `kani_verify_std` as member of workspace at `/home/zyadh/git/verify-rust-std/library`
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Updating crates.io index
Locking 8 packages to latest compatible versions
Adding proc-macro-error v1.0.4
Adding proc-macro-error-attr v1.0.4
Adding proc-macro2 v1.0.87
Adding quote v1.0.37
Adding syn v1.0.109 (latest: v2.0.79)
Adding syn v2.0.79
Adding unicode-ident v1.0.13
Adding version_check v0.9.5
Compiling proc-macro2 v1.0.87
Compiling version_check v0.9.5
Compiling unicode-ident v1.0.13
Compiling syn v1.0.109
Compiling safety v0.1.0 (/home/zyadh/git/verify-rust-std/library/contracts/safety)
Compiling compiler_builtins v0.1.123
Compiling libc v0.2.158
Compiling memchr v2.5.0
... One level up:
This also removes the need to do a @QinyuanWu can you check if this solves the issue? |
Beta Was this translation helpful? Give feedback.
-
I filed model-checking/kani#3574 for tracking the issue. |
Beta Was this translation helpful? Give feedback.
-
@zhassan-aws I ran |
Beta Was this translation helpful? Give feedback.
-
After debugging with @zhassan-aws this problem is resolved by |
Beta Was this translation helpful? Give feedback.
After debugging with @zhassan-aws this problem is resolved by
cargo clean
in the library folder,git restore library/Cargo.toml library/Cargo.lock
, and delete any existingtarget
folders then re-runkani verify-std
in the root folder. The main point is to restore the files to their original version consistent withmain
.