summaryrefslogtreecommitdiff
path: root/tests/lean/Array
diff options
context:
space:
mode:
authorSon Ho2023-08-18 12:23:03 +0200
committerSon Ho2023-08-18 12:23:03 +0200
commit8543092569616ef6a75949a72532f7b73dc696f2 (patch)
treea19129e9e291e51018f44cde6bd6471b2f35cd37 /tests/lean/Array
parenta9c256fe95523842a1ff025e73f6e9ce7c2db38a (diff)
Regenerate the array tests
Diffstat (limited to '')
-rw-r--r--tests/lean/Array/Funs.lean8
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