diff options
author | Son Ho | 2021-11-24 16:43:59 +0100 |
---|---|---|
committer | Son Ho | 2021-11-24 16:43:59 +0100 |
commit | 3c2de3a3fe4042967f59192286763ba648df01ec (patch) | |
tree | cd9f474abe5e3052d245dcffcbacf559e3529232 /src/Values.ml | |
parent | 7cc0eeeec8206cf4e0c22ef1608199461c88ebac (diff) |
Implement eval_binary_op
Diffstat (limited to '')
-rw-r--r-- | src/Values.ml | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/Values.ml b/src/Values.ml index 90267ce1..5c31feef 100644 --- a/src/Values.ml +++ b/src/Values.ml @@ -31,24 +31,12 @@ let big_int_of_yojson (json : Yojson.Safe.t) : (big_int, string) result = let big_int_to_yojson (i : big_int) = `Intlit (Z.to_string i) +type scalar_value = { value : big_int; int_ty : integer_type } (** A scalar value Note that we use unbounded integers everywhere. We then harcode the boundaries for the different types. *) -type scalar_value = - | Isize of big_int - | I8 of big_int - | I16 of big_int - | I32 of big_int - | I64 of big_int - | I128 of big_int - | Usize of big_int - | U8 of big_int - | U16 of big_int - | U32 of big_int - | U64 of big_int - | U128 of big_int (** A constant value *) type constant_value = |