This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
15 lines
500 B
Text
15 lines
500 B
Text
import Lean
|
|
import Std.Tactic.BVDecide.Bitblast.BVExpr
|
|
|
|
open Lean
|
|
open Std.Tactic.BVDecide
|
|
|
|
def groupAssignmentsBySymVars (assignments : List (Std.HashMap Nat BVExpr.PackedBitVec))
|
|
: Std.HashMap (BVExpr w) (List BVExpr.PackedBitVec) := Id.run do
|
|
let mut res : Std.HashMap (BVExpr w) (List BVExpr.PackedBitVec) := Std.HashMap.emptyWithCapacity
|
|
let ex := assignments[0]!
|
|
for (const, _) in ex.toArray do
|
|
let constVar : BVExpr w := BVExpr.var const
|
|
let _ := res.getD constVar []
|
|
res
|
|
|