This module provides univerified substitution of atoms reflected bitvec expressions. In addition, the substitution performs constant folding as it builds up the new expression tree.
α is a substitution for BitVec atoms.
bvAtom subst w idxreturns the expression we want to substitute the atomidxwith ornone.- boolAtom : α → Nat → Option BVLogicalExpr
boolAtom subst idxreturns the expression we want to substitute the atomidxwith ornone.
Instances
def Std.Tactic.BVDecide.BVExpr.substitute {α : Type} {w : Nat} [AtomSubstitution α] (subst : α) (expr : BVExpr w) :
BVExpr w
Equations
- Std.Tactic.BVDecide.BVExpr.substitute subst expr = Std.Tactic.BVDecide.Substitute.SubstM.run✝ subst fun (σ : Type) => Std.Tactic.BVDecide.Substitute.BVExpr.substM✝ expr
Instances For
def Std.Tactic.BVDecide.BVLogicalExpr.substitute {α : Type} [AtomSubstitution α] (subst : α) (expr : BVLogicalExpr) :
Equations
- Std.Tactic.BVDecide.BVLogicalExpr.substitute subst expr = Std.Tactic.BVDecide.Substitute.SubstM.run✝ subst fun (σ : Type) => Std.Tactic.BVDecide.Substitute.BVLogicalExpr.substM✝ expr
Instances For
def Std.Tactic.BVDecide.BVLogicalExpr.substituteAll {α : Type} [AtomSubstitution α] (subst : α) (exprs : Array BVLogicalExpr) :
Equations
- One or more equations did not get rendered due to their size.