-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(engine/fstar-ast): get rid of
zarith
and GMP
- Loading branch information
Lucas Franceschino
committed
Jun 24, 2024
1 parent
9b85e33
commit 1e8c5f4
Showing
38 changed files
with
217 additions
and
5,890 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
type char = FStar_Char.char[@@deriving yojson,show] | ||
type float = FStar_Float.float[@@deriving yojson,show] | ||
type double = FStar_Float.double[@@deriving yojson,show] | ||
type byte = FStar_UInt8.byte[@@deriving yojson,show] | ||
type int8 = FStar_Int8.int8 | ||
type uint8 = FStar_UInt8.uint8 | ||
type int16 = FStar_Int16.int16 | ||
type uint16 = FStar_UInt16.uint16 | ||
type int32 = FStar_Int32.int32 | ||
type int64 = FStar_Int64.int64 | ||
type float = Base.Float.t | ||
type double = Base.Float.t | ||
type byte = Base.Int.t | ||
type int8 = Stdint.Int8.t | ||
type uint8 = Stdint.Uint8.t | ||
type int16 = Stdint.Int16.t | ||
type uint16 = Stdint.Uint16.t | ||
type int32 = Stdint.Int32.t | ||
type int64 = Stdint.Int64.t |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,2 @@ | ||
module UChar = BatUChar | ||
|
||
module U32 = FStar_UInt32 | ||
|
||
type char = int[@@deriving yojson,show] | ||
type char_code = U32.t | ||
|
||
(* FIXME(adl) UChar.lowercase/uppercase removed from recent Batteries. Use Camomile? *) | ||
let lowercase (x:char) : char = | ||
try Char.code (Char.lowercase_ascii (Char.chr x)) | ||
with _ -> x | ||
|
||
let uppercase (x:char) : char = | ||
try Char.code (Char.uppercase_ascii (Char.chr x)) | ||
with _ -> x | ||
|
||
let int_of_char (x:char) : Z.t= Z.of_int x | ||
let char_of_int (i:Z.t) : char = Z.to_int i | ||
|
||
let u32_of_char (x:char) : char_code = U32.of_native_int x | ||
let char_of_u32 (x:char_code) : char = U32.to_native_int x |
177 changes: 0 additions & 177 deletions
177
engine/backends/fstar/fstar-surface-ast/FStar_Common.ml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
engine/backends/fstar/fstar-surface-ast/FStar_Compiler_Option.ml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.