Skip to main content

FixpointEngine

Struct FixpointEngine 

Source
pub struct FixpointEngine;
Expand description

Deterministic worklist solver for admitted monotone analyses.

Implementations§

§

impl FixpointEngine

pub fn solve_proven<N, E, L, C, S, P>( graph: &DataflowGraph<N, E, L, C>, transfer: &AdmittedTransfer<P>, bottom: S, seeds: impl IntoIterator<Item = (N, S)>, budgets: QueryBudgets, ) -> CompletionProofResult<N, E, L, C, S>
where N: Clone + Hash + Ord, E: Clone + Hash + Ord, L: Clone + Hash + Ord, C: Clone + Hash + Ord, S: JoinSemilattice + Hash, P: TransferPolicy<S>,

Solves to a stable fixpoint and mints its content-bound completion proof.

pub fn present<'a, N, E, L, C, S, P>( proof: &'a DataflowCompletionProof<N, E, C, S>, graph: &DataflowGraph<N, E, L, C>, transfer: &AdmittedTransfer<P>, bottom: &S, seeds: impl IntoIterator<Item = (N, S)>, budgets: QueryBudgets, ) -> Result<&'a DataflowSolution<N, E, C, S>, CompletionProofMismatch>
where N: Clone + Hash + Ord, E: Clone + Hash + Ord, L: Hash + Ord, C: Hash + Ord, S: Hash, P: TransferPolicy<S>,

Presents a proof only when every semantic input still matches.

pub fn solve_incremental<N, E, L, C, S, P>( previous: &DataflowCompletionProof<N, E, C, S>, graph: &DataflowGraph<N, E, L, C>, transfer: &AdmittedTransfer<P>, bottom: S, seeds: impl IntoIterator<Item = (N, S)>, budgets: QueryBudgets, ) -> CompletionProofResult<N, E, L, C, S>
where N: Clone + Hash + Ord, E: Clone + Hash + Ord, L: Clone + Hash + Ord, C: Clone + Hash + Ord, S: JoinSemilattice + Hash, P: TransferPolicy<S>,

Recomputes exactly the observed successor cone of changed entry facts.

Structural, lattice, policy, or limit changes are intentionally refused: callers must perform a clean solve for those semantic edits. Dependency edits reuse unaffected states and their observations, then remint a proof from the complete final state rather than blessing the old witness.

pub fn solve<N, E, L, C, S, P>( graph: &DataflowGraph<N, E, L, C>, transfer: &AdmittedTransfer<P>, bottom: S, seeds: impl IntoIterator<Item = (N, S)>, budgets: QueryBudgets, ) -> DataflowResult<N, E, L, C, S>
where N: Clone + Hash + Ord, E: Clone + Hash + Ord, L: Clone + Hash + Ord, C: Clone + Hash + Ord, S: JoinSemilattice, P: TransferPolicy<S>,

Solves from explicit entry/exit facts; nodes not reached from a seed stay at bottom.

pub fn start_resumable<N, E, L, C, S, P>( graph: &DataflowGraph<N, E, L, C>, transfer: &AdmittedTransfer<P>, bottom: S, seeds: impl IntoIterator<Item = (N, S)>, max_visits: usize, explanation_limit: usize, ) -> DataflowProgressResult<N, E, L, C, S>
where N: Clone + Hash + Ord, E: Clone + Hash + Ord, L: Clone + Hash + Ord, C: Clone + Hash + Ord, S: JoinSemilattice + Hash, P: TransferPolicy<S>,

Starts a solve and executes at most max_visits complete worklist nodes.

Unlike resource refusal inside Self::solve, this cooperative boundary snapshots only between nodes, so resumption never repeats callbacks or presents a shortened event stream as complete.

pub fn resume<N, E, L, C, S, P>( graph: &DataflowGraph<N, E, L, C>, transfer: &AdmittedTransfer<P>, bottom: &S, seeds: impl IntoIterator<Item = (N, S)>, continuation: DataflowContinuation<N, E, C, S>, max_visits: usize, ) -> DataflowProgressResult<N, E, L, C, S>
where N: Clone + Hash + Ord, E: Clone + Hash + Ord, L: Clone + Hash + Ord, C: Clone + Hash + Ord, S: JoinSemilattice + Hash, P: TransferPolicy<S>,

Resumes a content-bound snapshot, refusing every changed input identity.

Trait Implementations§

Source§

impl Clone for FixpointEngine

Source§

fn clone(&self) -> FixpointEngine

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 FixpointEngine

Source§

impl Debug for FixpointEngine

Source§

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

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

impl Default for FixpointEngine

Source§

fn default() -> FixpointEngine

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

impl Eq for FixpointEngine

Source§

impl PartialEq for FixpointEngine

Source§

fn eq(&self, other: &FixpointEngine) -> 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 FixpointEngine

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<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<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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.