lean4-htt/tests/lean/run/bv_math_lit_perf.lean
2024-02-24 16:08:07 -08:00

22 lines
352 B
Text

open BitVec
def f (x : BitVec 32) : Nat :=
match x with
| 10#32 => 0
| 100#32 => 2
| 200#32 => 3
| 300#32 => 4
| 400#32 => 5
| 500#32 => 6
| 600#32 => 7
| 700#32 => 8
| 800#32 => 9
| 900#32 => 10
| 910#32 => 11
| 920#32 => 12
| _ => 1000
set_option maxHeartbeats 2800
example : f 500#32 = x := by
simp [f]
sorry