Skip to main content

FormalEquivProduct

Struct FormalEquivProduct 

Source
pub struct FormalEquivProduct {
    pub seed: u64,
    pub random_cycles: usize,
    /* private fields */
}
Expand description

Product entry for FR100 automatic compare + bounded formal equivalence.

Not a rename of crate::SharedStimulusScoreboard: random sampling and bounded exhaustive exploration are distinct surfaces; only the latter is the F1-(i) formal product entry.

Fields§

§seed: u64

Deterministic seed for Self::check_random_compare.

§random_cycles: usize

Number of stimulus frames for the random/compare companion path.

Implementations§

Source§

impl FormalEquivProduct

Source

pub fn new(seed: u64, random_cycles: usize) -> Self

Build with seed + random cycle count; default alphabet empty until Self::with_boolean_ports.

Source

pub fn with_boolean_ports(self, ports: &[&str]) -> Self

Pin boolean ports that form the exhaustive / random alphabet.

Source

pub fn with_exhaustive_depth(self, depth: usize) -> Self

Set bounded-exhaustive sequence depth (F1-(i) / F4 fixture scale).

Source

pub fn alphabet(&self) -> Vec<PortValues>

Alphabet of single-frame PortValues (cartesian product of 0/1 on each boolean port). Empty ports → one default empty frame.

Source

pub fn random_stimuli(&self) -> Vec<PortValues>

Deterministic random stimuli from the alphabet (LCG; companion F3 path).

Source

pub fn check_random_compare(&self, hir: FrozenHir) -> EquivStatus

F3 companion: automatic random PortValues compare (generated FL vs tick).

Reproducible for a fixed seed. Not sufficient alone to close FR100 (F5).

Source

pub fn check_random_compare_with<A: AbstractionView>( &self, hir: FrozenHir, abs: &mut A, ) -> EquivStatus

Same as Self::check_random_compare with an arbitrary functional view (deliberate-mismatch ATDD).

Source

pub fn check_bounded_exhaustive(&self, hir: FrozenHir) -> EquivStatus

F1-(i) product entry: exhaustive FL≡tick over all alphabet^depth sequences.

Beyond random scoreboard sampling: every sequence of length exhaustive_depth drawn from the pinned alphabet is checked. First failing sequence returns Fail with readable PortMismatchs.

Source

pub fn check_bounded_exhaustive_with<A: AbstractionView>( &self, hir: FrozenHir, abs: &mut A, ) -> EquivStatus

Bounded exhaustive with an arbitrary functional view (mismatch ATDD).

Source

pub fn exhaustive_sequences(&self) -> Vec<Vec<PortValues>>

All sequences of length exhaustive_depth over Self::alphabet.

Trait Implementations§

Source§

impl Clone for FormalEquivProduct

Source§

fn clone(&self) -> FormalEquivProduct

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 Debug for FormalEquivProduct

Source§

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

Formats the value using the given formatter. 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> 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 = !

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.