pub struct WireEliminationPass<F: Field> { /* private fields */ }Expand description
Wire elimination optimization pass on ConstraintSystemIR.
Eliminates private wires from zero constraints by substitution, reducing the size of the witness while maintaining constraint system validity.
Maintains invariant: private_wire_uses[i] is empty if status is not Unknown.
For Unknown wires, use sites must exactly match constraints referencing that wire.
Implementations§
Source§impl<F: Field> WireEliminationPass<F>
impl<F: Field> WireEliminationPass<F>
pub fn new(cost_model: CostModel, ir: ConstraintSystemIR<F>) -> Self
Auto Trait Implementations§
impl<F> Freeze for WireEliminationPass<F>
impl<F> RefUnwindSafe for WireEliminationPass<F>where
F: RefUnwindSafe,
impl<F> Send for WireEliminationPass<F>
impl<F> Sync for WireEliminationPass<F>
impl<F> Unpin for WireEliminationPass<F>where
F: Unpin,
impl<F> UnsafeUnpin for WireEliminationPass<F>
impl<F> UnwindSafe for WireEliminationPass<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more