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.
20 lines
539 B
Text
20 lines
539 B
Text
import Std.Tactic.BVDecide
|
|
|
|
open BitVec
|
|
|
|
set_option exponentiation.threshold 4096
|
|
|
|
theorem t1 {x y : BitVec 64} (h : x = y) : (~~~x) &&& y = (~~~y) &&& x := by
|
|
bv_decide
|
|
|
|
theorem t2 {x y : BitVec 512} (h : x = y) : (~~~x) &&& y = (~~~y) &&& x := by
|
|
bv_decide
|
|
|
|
theorem t3 {x y : BitVec 1024} (h : x = y) : (~~~x) &&& y = (~~~y) &&& x := by
|
|
bv_decide
|
|
|
|
theorem t4 {x y : BitVec 2048} (h : x = y) : (~~~x) &&& y = (~~~y) &&& x := by
|
|
bv_decide
|
|
|
|
theorem t5 {x y : BitVec 4096} (h : x = y) : (~~~x) &&& y = (~~~y) &&& x := by
|
|
bv_decide
|