From a2c4ffd56b6f1760374707f083f6c4347b116538 Mon Sep 17 00:00:00 2001 From: Son Ho Date: Wed, 9 Aug 2023 10:01:32 +0200 Subject: Update the nix flake and regenerate the code --- tests/lean/BetreeMain/Funs.lean | 2 +- tests/lean/Constants.lean | 2 +- tests/lean/Hashmap/Funs.lean | 2 +- tests/lean/HashmapMain/Funs.lean | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/lean') diff --git a/tests/lean/BetreeMain/Funs.lean b/tests/lean/BetreeMain/Funs.lean index 933aac88..07ef08dc 100644 --- a/tests/lean/BetreeMain/Funs.lean +++ b/tests/lean/BetreeMain/Funs.lean @@ -64,7 +64,7 @@ def betree.NodeIdCounter.fresh_id_back let i ← self.next_node_id + (U64.ofInt 1) Result.ret { next_node_id := i } -/- [core::num::u64::{10}::MAX] -/ +/- [core::num::u64::{9}::MAX] -/ def core_num_u64_max_body : Result U64 := Result.ret (U64.ofInt 18446744073709551615) def core_num_u64_max_c : U64 := eval_global core_num_u64_max_body (by simp) diff --git a/tests/lean/Constants.lean b/tests/lean/Constants.lean index ec07d0fe..51b415d6 100644 --- a/tests/lean/Constants.lean +++ b/tests/lean/Constants.lean @@ -9,7 +9,7 @@ namespace constants def x0_body : Result U32 := Result.ret (U32.ofInt 0) def x0_c : U32 := eval_global x0_body (by simp) -/- [core::num::u32::{9}::MAX] -/ +/- [core::num::u32::{8}::MAX] -/ def core_num_u32_max_body : Result U32 := Result.ret (U32.ofInt 4294967295) def core_num_u32_max_c : U32 := eval_global core_num_u32_max_body (by simp) diff --git a/tests/lean/Hashmap/Funs.lean b/tests/lean/Hashmap/Funs.lean index d6796932..30b30e0b 100644 --- a/tests/lean/Hashmap/Funs.lean +++ b/tests/lean/Hashmap/Funs.lean @@ -132,7 +132,7 @@ def HashMap.insert_no_resize let v ← Vec.index_mut_back (List T) self.slots hash_mod l0 Result.ret { self with slots := v } -/- [core::num::u32::{9}::MAX] -/ +/- [core::num::u32::{8}::MAX] -/ def core_num_u32_max_body : Result U32 := Result.ret (U32.ofInt 4294967295) def core_num_u32_max_c : U32 := eval_global core_num_u32_max_body (by simp) diff --git a/tests/lean/HashmapMain/Funs.lean b/tests/lean/HashmapMain/Funs.lean index 74fe8a54..aec957ec 100644 --- a/tests/lean/HashmapMain/Funs.lean +++ b/tests/lean/HashmapMain/Funs.lean @@ -147,7 +147,7 @@ def hashmap.HashMap.insert_no_resize let v ← Vec.index_mut_back (hashmap.List T) self.slots hash_mod l0 Result.ret { self with slots := v } -/- [core::num::u32::{9}::MAX] -/ +/- [core::num::u32::{8}::MAX] -/ def core_num_u32_max_body : Result U32 := Result.ret (U32.ofInt 4294967295) def core_num_u32_max_c : U32 := eval_global core_num_u32_max_body (by simp) -- cgit v1.2.3