This module contains the logic to turn a BVLogicalExpr into an AIG with maximum subterm sharing,
through the use of a cache that re-uses sub-circuits if possible. Additionally a term level cache
is used to prevent rerunning bitblasting on common bitvector subexpressions.
- exprs : BVExpr.Cache aig
Instances For
@[inline]
Equations
- Std.Tactic.BVDecide.BVLogicalExpr.Cache.empty = { exprs := Std.Tactic.BVDecide.BVExpr.Cache.empty, map := ∅, hbound := ⋯ }
Instances For
@[inline]
def Std.Tactic.BVDecide.BVLogicalExpr.Cache.insert {aig : Sat.AIG BVBit} (cache : Cache aig) (expr : BVLogicalExpr) (ref : aig.Ref) :
Cache aig
Equations
Instances For
@[inline]
def Std.Tactic.BVDecide.BVLogicalExpr.Cache.get? {aig : Sat.AIG BVBit} (cache : Cache aig) (expr : BVLogicalExpr) :
Equations
- One or more equations did not get rendered due to their size.
Instances For
- result : aig.ExtendingEntrypoint
Instances For
def Std.Tactic.BVDecide.BVLogicalExpr.bitblastWithCache (expr : BVLogicalExpr) (aig : Sat.AIG BVBit) (cache : Cache aig) :
Return aig
Equations
- expr.bitblastWithCache aig cache = Std.Tactic.BVDecide.BVLogicalExpr.bitblastWithCache.goCache aig expr cache
Instances For
@[irreducible]
def Std.Tactic.BVDecide.BVLogicalExpr.bitblastWithCache.goCache (aig : Sat.AIG BVBit) (expr : BVLogicalExpr) (cache : Cache aig) :
Return aig
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[irreducible]
def Std.Tactic.BVDecide.BVLogicalExpr.bitblastWithCache.go (aig : Sat.AIG BVBit) (expr : BVLogicalExpr) (cache : Cache aig) :
Return aig
Equations
- One or more equations did not get rendered due to their size.
- Std.Tactic.BVDecide.BVLogicalExpr.bitblastWithCache.go aig (Std.Tactic.BVDecide.BVLogicalExpr.const val) cache = { result := ⟨{ aig := aig, ref := aig.mkConstCached val }, ⋯⟩, cache := cache }
Instances For
Turn a BVLogicalExpr into an Entrypoint.
Equations
Instances For
theorem Std.Tactic.BVDecide.BVLogicalExpr.bitblastWithCache.goCache_isPrefix_aig {expr : BVLogicalExpr} {aig : Sat.AIG BVBit} (cache : Cache aig) :
theorem Std.Tactic.BVDecide.BVLogicalExpr.bitblastWithCache_isPrefix_aig {expr : BVLogicalExpr} {aig : Sat.AIG BVBit} {cache : Cache aig} :
Sat.AIG.IsPrefix aig.decls (expr.bitblastWithCache aig cache).result.val.aig.decls