summaryrefslogtreecommitdiff
path: root/tests/lean/HashmapMain/FunsExternal.lean
diff options
context:
space:
mode:
authorSon Ho2023-07-05 14:52:23 +0200
committerSon Ho2023-07-05 14:52:23 +0200
commit0a0445c72e005c328b4764f5fb0f8f38e7a55d60 (patch)
tree43fb9284e8c02ec5ed8b8a5d59f6569d66b900ff /tests/lean/HashmapMain/FunsExternal.lean
parent442caaf62e4a217b9a10116c4e529c49f83c4efd (diff)
Start using namespaces in the Lean backend
Diffstat (limited to '')
-rw-r--r--tests/lean/HashmapMain/FunsExternal.lean17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lean/HashmapMain/FunsExternal.lean b/tests/lean/HashmapMain/FunsExternal.lean
new file mode 100644
index 00000000..d917b485
--- /dev/null
+++ b/tests/lean/HashmapMain/FunsExternal.lean
@@ -0,0 +1,17 @@
+-- [hashmap_main]: templates for the external functions.
+import Base
+import HashmapMain.Types
+open Primitives
+open hashmap_main
+
+-- TODO: fill those bodies
+
+/- [hashmap_main::hashmap_utils::deserialize] -/
+def hashmap_utils.deserialize_fwd
+ : State → Result (State × (hashmap_hash_map_t U64)) :=
+ fun _ => .fail .panic
+
+/- [hashmap_main::hashmap_utils::serialize] -/
+def hashmap_utils.serialize_fwd
+ : hashmap_hash_map_t U64 → State → Result (State × Unit) :=
+ fun _ _ => .fail .panic