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

Method infer_key

crates/kernel/src/tc.rs:369–371  ·  view source on GitHub ↗
(&mut self, e: &KExpr<M>)

Source from the content-addressed store, hash-verified

367 /// Type-inference cache key: (expr_hash, ctx_hash).
368 /// Closed expressions (lbr == 0) are context-independent. For open
369 /// expressions, only the context suffix reachable from their loose bound
370 /// variables matters. The suffix length is closed over binder type/value
371 /// dependencies, so two equal open subterms can share an infer result across
372 /// different outer binders when the relevant local suffix is identical.
373 #[inline]
374 pub fn infer_key(&mut self, e: &KExpr<M>) -> (Addr, CtxAddr) {

Calls 3

hash_keyMethod · 0.80
ctx_addr_for_lbrMethod · 0.80
lbrMethod · 0.80