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

Function pop_from_empty_resets_to_empty_ctx_addr

crates/kernel/src/tc.rs:1289–1295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1287 assert_ne!(after_sort0, after_sort1);
1288 }
1289
1290 #[test]
1291 fn ctx_id_same_pushes_yield_same_hash() {
1292 // ctx hashing keys on intern uids, so the sharing property holds for
1293 // checkers over the SAME env (which is also the cache-sharing scope).
1294 let env: *mut KEnv<Meta> = Box::leak(Box::new(KEnv::<Meta>::new()));
1295 let id1 = {
1296 let mut tc1 = TypeChecker::new(unsafe { &mut *env });
1297 tc1.push_local(sort0());
1298 tc1.push_local(sort1());

Callers

nothing calls this directly

Calls 2

new_tcFunction · 0.85
pop_localMethod · 0.80

Tested by

no test coverage detected