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

Function expr_proj_field_mismatch_fails

crates/kernel/src/congruence.rs:664–673  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

662
663 #[test]
664 fn expr_proj_field_mismatch_fails() {
665 let name = mk_name("MyStruct");
666 let addr = mk_addr("MyStruct");
667 let r = resolver_with(&[(name.clone(), addr.clone())]);
668
669 let lean_e = env::Expr::proj(name.clone(), n(2), env::Expr::bvar(n(0)));
670 let zero_e = KExpr::<Anon>::prj(KId::new(addr, ()), 1, KExpr::var(0, ()));
671 let e = expr_congruent(&lean_e, &zero_e, &r).unwrap_err();
672 assert!(e.contains("proj field mismatch"));
673 }
674
675 #[test]
676 fn expr_fvar_unexpected() {

Callers

nothing calls this directly

Calls 7

resolver_withFunction · 0.85
expr_congruentFunction · 0.85
mk_nameFunction · 0.70
mk_addrFunction · 0.70
nFunction · 0.70
varFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected