From 5bf73730e13e51f6dc2a46f92d2ddde152c1c5d2 Mon Sep 17 00:00:00 2001
From: Son Ho
Date: Wed, 29 Nov 2023 15:48:07 +0100
Subject: Generate the Bitwise test files

---
 tests/lean/Bitwise.lean | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 tests/lean/Bitwise.lean

(limited to 'tests/lean/Bitwise.lean')

diff --git a/tests/lean/Bitwise.lean b/tests/lean/Bitwise.lean
new file mode 100644
index 00000000..c8538aa2
--- /dev/null
+++ b/tests/lean/Bitwise.lean
@@ -0,0 +1,37 @@
+-- THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS
+-- [bitwise]
+import Base
+open Primitives
+
+namespace bitwise
+
+/- [bitwise::shift_u32]: forward function
+   Source: 'src/bitwise.rs', lines 3:0-3:31 -/
+def shift_u32 (a : U32) : Result U32 :=
+  do
+    let t ← a >>> 16#usize
+    t <<< 16#usize
+
+/- [bitwise::shift_i32]: forward function
+   Source: 'src/bitwise.rs', lines 10:0-10:31 -/
+def shift_i32 (a : I32) : Result I32 :=
+  do
+    let t ← a >>> 16#isize
+    t <<< 16#isize
+
+/- [bitwise::xor_u32]: forward function
+   Source: 'src/bitwise.rs', lines 17:0-17:37 -/
+def xor_u32 (a : U32) (b : U32) : Result U32 :=
+  Result.ret (a ^^^ b)
+
+/- [bitwise::or_u32]: forward function
+   Source: 'src/bitwise.rs', lines 21:0-21:36 -/
+def or_u32 (a : U32) (b : U32) : Result U32 :=
+  Result.ret (a ||| b)
+
+/- [bitwise::and_u32]: forward function
+   Source: 'src/bitwise.rs', lines 25:0-25:37 -/
+def and_u32 (a : U32) (b : U32) : Result U32 :=
+  Result.ret (a &&& b)
+
+end bitwise
-- 
cgit v1.2.3

