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

Function whnf_beta_simple

crates/kernel/src/whnf.rs:3177–3185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3175 if rhs_val.0 == num_bigint::BigUint::ZERO {
3176 let result =
3177 self.intern(KExpr::cnst(self.prims.bool_false.clone(), Box::new([])));
3178 return Ok(Some(result));
3179 }
3180
3181 let lhs_nat_whnf = self.whnf(&lhs_nat)?;
3182 if let Some(lhs_val) = extract_nat_value(&lhs_nat_whnf, &self.prims) {
3183 let result_id = if lhs_val.0 < rhs_val.0 {
3184 self.prims.bool_true.clone()
3185 } else {
3186 self.prims.bool_false.clone()
3187 };
3188 let result = self.intern(KExpr::cnst(result_id, Box::new([])));

Callers

nothing calls this directly

Calls 7

sortFunction · 0.85
env_with_idFunction · 0.70
lamFunction · 0.70
sort0Function · 0.70
varFunction · 0.70
appFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected