Skip to content

Conversation

zjp-CN
Copy link
Member

@zjp-CN zjp-CN commented Sep 7, 2025

This PR

  • adds crate field to DbFunction and MergeHashKaniList
  • updates ui to display crate for each harness
  • builds alloc crate and generates split folder and hash.json to include crates other than libcore
  • verify_rust_std merge --hash-json now accepts a path pointing to a folder or a json file: when it's a folder, read all json files, but silent if json is not properly deserialized
    • crates that are not filtered out will generate separate hash json files under assets/json with name being crate_name.json
截图_20250908001021

It depends on verify-rust-std project to include what crates need
to verify by kani.
[src/bin/distributed-verification/functions/mod.rs:21:5] cap = 31666
[src/bin/distributed-verification/functions/mod.rs:21:5] rustc_public::local_crate().name = "core"
   Compiling alloc v0.0.0 (/home/gh-zjp-CN/distributed-verification/verify-rust-std/library/alloc)
[src/bin/distributed-verification/functions/mod.rs:21:5] cap = 2817
[src/bin/distributed-verification/functions/mod.rs:21:5] rustc_public::local_crate().name = "alloc"
   Compiling dummy-crate v0.1.0 (/home/gh-zjp-CN/distributed-verification/tests/dummy-crate)
[src/bin/distributed-verification/functions/mod.rs:21:5] cap = 1
[src/bin/distributed-verification/functions/mod.rs:21:5] rustc_public::local_crate().name = "dummy_crate"
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 25s

    crate = alloc
Functions = 3107
   Proofs = 2

    crate = core
Functions = 32034
   Proofs = 1366

    crate = dummy_crate
Functions = 1
   Proofs = 0
Total Proofs = 1368
Total Functions = 35142
$ ls assets/json/
alloc.json  core.json  dummy_crate.json  proc_macro2.json  rustflags.json
{
  "crate": "core",
  "file": "core/src/alloc/layout.rs",
  "func": "<alloc::layout::Layout as clone::Clone>::clone",
  "hash": "138669527279575425473478508059426767195"
}
to solve thread 'main' (23372) panicked at src/bin/verify_rust_std/env.rs:41:5:
OUTPUT_DIR="/home/runner/work/distributed-verification/distributed-verification/assets/json" doesn't point to a valid path.
@zjp-CN zjp-CN merged commit f467b98 into main Sep 7, 2025
5 checks passed
@zjp-CN zjp-CN deleted the more-crates branch September 7, 2025 16:22
@zjp-CN zjp-CN changed the title More crates Feat: Support kani harnesses from crates beyond libstd Sep 7, 2025
@zjp-CN zjp-CN changed the title Feat: Support kani harnesses from crates beyond libstd Feat: Support kani harnesses from crates beyond libcore Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support crates beyond libstd add crate info in merge.json
1 participant