diff options
author | Son Ho | 2023-08-18 12:23:03 +0200 |
---|---|---|
committer | Son Ho | 2023-08-18 12:23:03 +0200 |
commit | 8543092569616ef6a75949a72532f7b73dc696f2 (patch) | |
tree | a19129e9e291e51018f44cde6bd6471b2f35cd37 /tests/lean | |
parent | a9c256fe95523842a1ff025e73f6e9ce7c2db38a (diff) |
Regenerate the array tests
Diffstat (limited to '')
-rw-r--r-- | tests/lean/Array/Funs.lean | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lean/Array/Funs.lean b/tests/lean/Array/Funs.lean index 8d10c660..a42072d1 100644 --- a/tests/lean/Array/Funs.lean +++ b/tests/lean/Array/Funs.lean @@ -447,6 +447,14 @@ def f3 : Result U32 := ]) (Usize.ofInt 16) (Usize.ofInt 18) sum2 s s0 +/- [array::SZ] -/ +def sz_body : Result Usize := Result.ret (Usize.ofInt 32) +def sz_c : Usize := eval_global sz_body (by simp) + +/- [array::f5]: forward function -/ +def f5 (x : Array U32 (Usize.ofInt 32)) : Result U32 := + Array.index_shared U32 (Usize.ofInt 32) x (Usize.ofInt 0) + /- [array::ite]: forward function -/ def ite : Result Unit := do |