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

Function fallback_plan_blocks_from_sort

crates/compile/src/decompile.rs:3390–3419  ·  view source on GitHub ↗
(
  all_names: &[Name],
  env: &LeanEnv,
  stt: &CompileState,
)

Source from the content-addressed store, hash-verified

3388 "[lean hash mismatch] {}: generated_ci_hash={:x?} lean_ci_hash={:x?}",
3389 n.pretty(),
3390 ci.get_hash(),
3391 lean_ci_ref.get_hash(),
3392 );
3393 // Dump internal shape
3394 let gen_type = ci.get_type();
3395 let orig_type = lean_ci.get_type();
3396 if gen_type.get_hash() != orig_type.get_hash() {
3397 eprintln!(" type DIFFERS");
3398 eprintln!(" gen: {}", gen_type.pretty());
3399 eprintln!(" orig: {}", orig_type.pretty());
3400 }
3401 if let (Some(gv), Some(ov)) =
3402 (get_value(&ci), get_value(lean_ci))
3403 && gv.get_hash() != ov.get_hash()
3404 {
3405 eprintln!(" value DIFFERS");
3406 eprintln!(" gen: {}", gv.pretty());
3407 eprintln!(" orig: {}", ov.pretty());
3408 }
3409 // Check `all` for DefnInfo
3410 if let (
3411 LeanConstantInfo::DefnInfo(g_d),
3412 LeanConstantInfo::DefnInfo(o_d),
3413 ) = (&ci, lean_ci)
3414 {
3415 if g_d.all != o_d.all {
3416 eprintln!(
3417 " all DIFFERS: gen={:?} orig={:?}",
3418 g_d.all.iter().map(|n| n.pretty()).collect::<Vec<_>>(),
3419 o_d.all.iter().map(|n| n.pretty()).collect::<Vec<_>>(),
3420 );
3421 }
3422 if g_d.hints != o_d.hints {

Callers 1

Calls 7

sort_constsFunction · 0.85
is_emptyMethod · 0.45
iterMethod · 0.45
nameMethod · 0.45
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected