Skip to main content

FrameSequence

Struct FrameSequence 

Source
pub struct FrameSequence { /* private fields */ }
Expand description

The sequence of frames maintained by PDR.

F₀ contains the initial-state clauses. F₁..Fₖ accumulate blocking clauses as cubes are blocked during the strengthen phase.

Implementations§

Source§

impl FrameSequence

Source

pub fn new() -> Self

Create an empty frame sequence.

Source

pub fn push(&mut self, frame: Frame)

Add a frame to the sequence.

Source

pub fn frontier(&self) -> usize

Current frontier level (index of the last frame).

Source

pub fn len(&self) -> usize

Number of frames.

Source

pub fn frame(&self, level: usize) -> &Frame

Access a frame by index.

Source

pub fn frame_mut(&mut self, level: usize) -> &mut Frame

Mutable access to a frame by index.

Source

pub fn add_blocked_clause(&mut self, level: usize, clause: Vec<Lit>)

Add a blocking clause to a specific frame level. For monotonicity, also add to all frames at lower levels (1..=level).

Source

pub fn check_convergence(&self) -> Option<usize>

Check convergence: if Fᵢ = Fᵢ₊₁ for any i ≥ 1, return Some(i).

Compares frames by their sorted clause sets (order-independent).

Trait Implementations§

Source§

impl Default for FrameSequence

Source§

fn default() -> Self

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

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> 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, 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.