Skip to main content

FrontierCounters

Struct FrontierCounters 

Source
pub struct FrontierCounters {
    pub edge_visits: u64,
    pub levels: u64,
    pub endpoints: u64,
    pub cells: u64,
    pub rearrival_work: u64,
    pub memo_hits: u64,
    pub memo_misses: u64,
    pub representative_proofs: u64,
    pub search_proven: u64,
    pub search_disproven: u64,
    pub declined_exhausted: u64,
}
Expand description

The frontier family’s run counters (ADR-0478), one clause’s sum over its per-seed BFS runs: the edge visits (the work the walk budget caps), the completed levels, the accepted endpoints, and the NFA rung’s own PROFILE facts — the (node, state) cells the runs created, the re-arrival work spent, the rule memo’s hits and misses, and the admission asks by verdict. Zero on every clause the frontier declined — levels > 0 is the engagement marker (a run always completes its level 0).

Fields§

§edge_visits: u64

Incident-edge visits across the clause’s frontier runs — the budget’s own work counter.

§levels: u64

BFS levels completed (level 0 included).

§endpoints: u64

Endpoints the runs accepted, in arrival order.

§cells: u64

(node, state) cells the runs created — the pairs that occupied the span×states tables, the BFS’s own memory shape.

§rearrival_work: u64

Re-arrival rule work spent, summed over the runs — the numerator of Self::budget_fraction.

§memo_hits: u64

Rule-memo hits: asks the run’s verdict table answered without a search.

§memo_misses: u64

Rule-memo misses: asks that ran the bounded search.

§representative_proofs: u64

Admission asks the representative-chain proof settled — no search.

§search_proven: u64

Admission asks the bounded search proved (an in-bounds path found).

§search_disproven: u64

Admission asks the bounded search disproved within its bounds.

§declined_exhausted: u64

Admission asks the shared work budget cut — the run-time decline’s verdict class (ADR-0516).

Implementations§

Source§

impl FrontierCounters

Source

pub fn since(self, earlier: FrontierCounters) -> FrontierCounters

The field-wise delta from earlier — the one spelling every reader uses. The counters only ever increase, so a decrease is a broken invariant: the subtraction is checked, never a wrapped or clamped value.

Source§

impl FrontierCounters

Source

pub fn counters(&self) -> [u64; 10]

The group’s ten counts in plan_keys::FRONTIER_GROUP_KEYS’ order (edges, levels, endpoints, cells, memo hits, memo misses, representative proofs, search proven, search disproven, declined exhausted) — the values the wire emitter pairs with that one key table.

Source

pub fn budget_fraction(&self) -> f64

The fraction of one run’s re-arrival work budget the clause’s runs spent: summed Self::rearrival_work over [REARRIVAL_WORK_BUDGET] — 1.0 on a run the budget cut mid-search (the work guard drains the budget to exactly zero before declaring the cut), 0.0 on runs that never asked the rule. A multi-seed clause sums every run’s spend over the one-run budget, so the fraction reads as run-equivalents.

Trait Implementations§

Source§

impl AddAssign for FrontierCounters

Source§

fn add_assign(&mut self, run: FrontierCounters)

Performs the += operation. Read more
Source§

impl Clone for FrontierCounters

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FrontierCounters

Source§

impl Debug for FrontierCounters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FrontierCounters

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for FrontierCounters

Source§

impl PartialEq for FrontierCounters

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FrontierCounters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V