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

Function with_infer_only_scoping

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

Source from the content-addressed store, hash-verified

1516 let s = tc.save_depth();
1517 tc.push_let(sort0(), sort0());
1518 tc.push_local(sort0());
1519 tc.push_let(sort1(), sort1());
1520 assert_eq!(tc.num_let_bindings, 2);
1521 tc.restore_depth(s);
1522 assert_eq!(tc.depth(), 0);
1523 assert_eq!(tc.num_let_bindings, 0);
1524 }
1525
1526 // ---- tick / fuel ----
1527
1528 #[test]
1529 fn tick_consumes_fuel() {
1530 let mut tc = new_tc();

Callers

nothing calls this directly

Calls 2

new_tcFunction · 0.85
with_infer_onlyMethod · 0.80

Tested by

no test coverage detected