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

Function ctx_id_same_pushes_yield_same_hash

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

Source from the content-addressed store, hash-verified

1262 tc.pop_local(); // pops the let
1263 assert_eq!(tc.num_let_bindings, 0);
1264 tc.pop_local(); // pops the original lambda
1265 assert_eq!(tc.num_let_bindings, 0);
1266 }
1267
1268 // ---- ctx_id determinism and stack ----
1269
1270 #[test]
1271 fn empty_ctx_id_is_the_same_const() {
1272 let tc1 = new_tc();
1273 let tc2 = new_tc();
1274 assert_eq!(tc1.ctx_id, tc2.ctx_id);
1275 assert_eq!(tc1.ctx_id, empty_ctx_addr());

Callers

nothing calls this directly

Calls 4

new_tcFunction · 0.85
push_localMethod · 0.80
sort0Function · 0.70
sort1Function · 0.70

Tested by

no test coverage detected