fix: bv_decide benchmarks (#6017)

This PR fixes the nightly build after bv_decide changed its options
This commit is contained in:
Henrik Böving 2024-11-09 12:18:33 +01:00 committed by GitHub
parent d1a99d8d45
commit d12df6c2ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -28,13 +28,12 @@ example :
→ (0#64 < c - a ∧ 0#64 < d - a) ∧ d - c < a - c := by
bv_decide
set_option sat.timeout 120 in
example :
n < 18446744073709551615#64 - k →
((a + k - a < a + k + 1#64 - a ∧ a + k - a < a + k + 1#64 + n - a) ∧
a + k + 1#64 + n - (a + k + 1#64) < a - (a + k + 1#64)) ∧
a + k + 1#64 + n - (a + k + 1#64) < a + k - (a + k + 1#64) := by
bv_decide
bv_decide (config := { timeout := 120 })
example :
n < 18446744073709551615 →
@ -42,7 +41,6 @@ example :
∧ addr + 1#64 + n - (addr + 1#64) < addr - (addr + 1#64) := by
bv_decide
set_option sat.timeout 120 in
example :
a2 - a1 < b1 - a1 → a2 - a1 < b2 - a1 →
b2 - b1 < a1 - b1 → b2 - b1 < a2 - b1 →
@ -50,4 +48,4 @@ example :
((a2 - a1 < c1 - a1 ∧ a2 - a1 < c2 - a1)
∧ c2 - c1 < a1 - c1)
∧ c2 - c1 < a2 - c1 := by
bv_decide
bv_decide (config := { timeout := 120 })

View file

@ -32,8 +32,7 @@ def opt (state : BitVec 32) : BitVec 32 :=
--set_option trace.Meta.Tactic.bv true in
--set_option trace.Meta.Tactic.sat true in
--set_option trace.profiler true in
set_option sat.timeout 120 in
theorem lehmer_correct (state : BitVec 32) (h1 : state > 0) (h2 : state < 0x7fffffff) :
naive state = opt state := by
unfold naive opt
bv_decide
bv_decide (config := { timeout := 120 })