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

Method nat_predicate_bool_result

crates/kernel/src/whnf.rs:2056–2071  ·  view source on GitHub ↗
(
    &mut self,
    decision: bool,
    args: &[KExpr<M>],
  )

Source from the content-addressed store, hash-verified

2054 return Ok(None);
2055 },
2056 };
2057
2058 let field_start = ctor_params;
2059 let Ok(field_idx) = usize::try_from(field) else {
2060 return Ok(None);
2061 };
2062 let idx = field_start + field_idx;
2063 let result = args.get(idx).cloned();
2064 self.dump_proj_trace(id, field, wval, Some(ctor_params), result.as_ref());
2065 Ok(result)
2066 }
2067
2068 fn try_reduce_fin_val_decidable_rec(
2069 &mut self,
2070 id: &KId<M>,
2071 field: u64,
2072 head: &KExpr<M>,
2073 args: &[KExpr<M>],
2074 ) -> Option<KExpr<M>> {

Callers 1

Calls 5

internMethod · 0.80
cnstFunction · 0.70
appFunction · 0.70
cloneMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected