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

Function expr_mentions_any_addr

crates/kernel/src/tc.rs:1103–1108  ·  view source on GitHub ↗

Check whether an expression mentions any constant from a set of addresses.

(
  e: &KExpr<M>,
  addrs: &[Address],
)

Source from the content-addressed store, hash-verified

1101 stack.push(ty);
1102 stack.push(body);
1103 },
1104 ExprData::Let(_, ty, val, body, _, _) => {
1105 stack.push(ty);
1106 stack.push(val);
1107 stack.push(body);
1108 },
1109 ExprData::Prj(id, _, val, _) => {
1110 if id.addr == *addr {
1111 return true;

Callers 4

compute_is_recMethod · 0.85
try_detect_nestedMethod · 0.85

Calls 2

expr_mentions_addrFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected