You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lean 4 backend: further function implementation (2) (#4827)
This PR implements the following functions in the Lean 4 backend
prelude:
- `modInt`
- `>=Int`
- `Bytes2Int`
- `Bytes.substr`
Due to implementing `Bytes2Int` the PR also adds `SortSignedness` to the
prelude, excluding it from the automatic generation.
@@ -260,6 +263,11 @@ inductive SortEndianness : Type where
260
263
| littleEndianBytes : SortEndianness
261
264
deriving BEq, DecidableEq
262
265
266
+
inductiveSortSignedness : Type where
267
+
| signedBytes : SortSignedness
268
+
| unsignedBytes : SortSignedness
269
+
deriving BEq, DecidableEq
270
+
263
271
def «.Bytes_BYTES-HOOKED_Bytes» : Option SortBytes := some .empty
264
272
265
273
-- Adapted from https://github.com/runtimeverification/haskell-backend/blob/362dab30d6435ec117862fea722be67373572034/kore/src/Kore/Builtin/InternalBytes.hs#L496-L511
0 commit comments