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

Function covers_const

crates/kernel/src/level.rs:583–588  ·  view source on GitHub ↗

Check whether some entry `(p2, n2)` in `l2` with `p2 ⊆ p1` provides a contribution that dominates `n1.const` along every assignment satisfying `p1`'s activation. A `p2` entry contributes `n_p2.const` unconditionally (in that branch), and each `v ∈ n_p2.var` contributes at least `v.offset + 1` because `v.idx ∈ p2 ⊆ p1` guarantees `u_v ≥ 1`.

(l2: &NormLevel, p1: &[u64], c: u64)

Source from the content-addressed store, hash-verified

581 }
582}
583
584// Comparison
585
586/// Check whether some entry `(p2, n2)` in `l2` with `p2 ⊆ p1` provides a
587/// contribution that dominates `n1.const` along every assignment satisfying
588/// `p1`'s activation. A `p2` entry contributes `n_p2.const` unconditionally
589/// (in that branch), and each `v ∈ n_p2.var` contributes at least `v.offset + 1`
590/// because `v.idx ∈ p2 ⊆ p1` guarantees `u_v ≥ 1`.
591fn covers_const(l2: &NormLevel, p1: &[u64], c: u64) -> bool {

Callers 1

norm_level_leFunction · 0.85

Calls 2

is_subsetFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected