MCPcopy Create free account
hub / github.com/argumentcomputer/ix / build_result_array

Function build_result_array

crates/ffi/src/kernel.rs:2977–2983  ·  view source on GitHub ↗

Build an `IO (Array (Option CheckError))` from Rust results. The Lean caller pairs each slot with `names[i]` (the input array) for display, so there's no name in the returned tuple.

(results: &[CheckRes])

Source from the content-addressed store, hash-verified

2975 quiet: bool,
2976) -> Result<ProfileStats, String> {
2977 let load_start = Instant::now();
2978 let ixon_env = IxonEnv::get_anon_mmap(std::path::Path::new(path))
2979 .map_err(|e| format!("profile: mmap+deserialize {path}: {e}"))?;
2980 eprintln!(
2981 "[rs_kernel_profile] loaded {} consts in {:.1?}",
2982 ixon_env.const_count(),
2983 load_start.elapsed()
2984 );
2985 let (work, addrs) = build_anon_work(&ixon_env)?;
2986 let targets = addrs.len();

Callers 3

rs_kernel_check_constsFunction · 0.85
rs_kernel_check_ixonFunction · 0.85
build_uniform_errorFunction · 0.85

Calls 3

build_option_resultFunction · 0.85
lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected