Skip to content

Commit 22b75d5

Browse files
authored
Merge pull request #734 from hacspec/engine-kill-gmp-dependency
refactor(engine/fstar-ast): get rid of `zarith` and GMP
2 parents 352af59 + ca15743 commit 22b75d5

39 files changed

+218
-5891
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
type char = FStar_Char.char[@@deriving yojson,show]
2-
type float = FStar_Float.float[@@deriving yojson,show]
3-
type double = FStar_Float.double[@@deriving yojson,show]
4-
type byte = FStar_UInt8.byte[@@deriving yojson,show]
5-
type int8 = FStar_Int8.int8
6-
type uint8 = FStar_UInt8.uint8
7-
type int16 = FStar_Int16.int16
8-
type uint16 = FStar_UInt16.uint16
9-
type int32 = FStar_Int32.int32
10-
type int64 = FStar_Int64.int64
2+
type float = Base.Float.t
3+
type double = Base.Float.t
4+
type byte = Base.Int.t
5+
type int8 = Stdint.Int8.t
6+
type uint8 = Stdint.Uint8.t
7+
type int16 = Stdint.Int16.t
8+
type uint16 = Stdint.Uint16.t
9+
type int32 = Stdint.Int32.t
10+
type int64 = Stdint.Int64.t

engine/backends/fstar/fstar-surface-ast/FStar_BigInt.ml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
11
module UChar = BatUChar
2-
3-
module U32 = FStar_UInt32
4-
52
type char = int[@@deriving yojson,show]
6-
type char_code = U32.t
7-
8-
(* FIXME(adl) UChar.lowercase/uppercase removed from recent Batteries. Use Camomile? *)
9-
let lowercase (x:char) : char =
10-
try Char.code (Char.lowercase_ascii (Char.chr x))
11-
with _ -> x
12-
13-
let uppercase (x:char) : char =
14-
try Char.code (Char.uppercase_ascii (Char.chr x))
15-
with _ -> x
16-
17-
let int_of_char (x:char) : Z.t= Z.of_int x
18-
let char_of_int (i:Z.t) : char = Z.to_int i
19-
20-
let u32_of_char (x:char) : char_code = U32.of_native_int x
21-
let char_of_u32 (x:char_code) : char = U32.to_native_int x

engine/backends/fstar/fstar-surface-ast/FStar_Common.ml

Lines changed: 0 additions & 177 deletions
This file was deleted.

engine/backends/fstar/fstar-surface-ast/FStar_CommonST.ml

Lines changed: 0 additions & 19 deletions
This file was deleted.

engine/backends/fstar/fstar-surface-ast/FStar_Compiler_Option.ml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)