diff options
| author | Alasdair Armstrong | 2019-04-15 14:41:51 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-04-16 18:47:45 +0100 |
| commit | 3918354ab84347efaacd14954f0d04e0b7c7ee75 (patch) | |
| tree | 9a4e9bc400be86cc529f2a32358ca10181c33753 /src | |
| parent | 0eadefbfecb80cc4ada16a4a7328ba63b32b166a (diff) | |
Fix: Don't repeat ctyp_of_typ call
Diffstat (limited to 'src')
| -rw-r--r-- | src/jib/jib_compile.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jib/jib_compile.ml b/src/jib/jib_compile.ml index a59f6c80..f901d948 100644 --- a/src/jib/jib_compile.ml +++ b/src/jib/jib_compile.ml @@ -256,7 +256,7 @@ let rec compile_aval l ctx = function | AV_vector ([], typ) -> let vector_ctyp = ctyp_of_typ ctx typ in - begin match ctyp_of_typ ctx typ with + begin match vector_ctyp with | CT_fbits (0, _) -> [], (F_lit (V_bits []), vector_ctyp), [] | _ -> @@ -277,12 +277,12 @@ let rec compile_aval l ctx = function | Some (_, Ord_aux (Ord_dec, _), _) -> [], (bitstring, CT_fbits (len, true)), [] | Some _ -> - raise (Reporting.err_general l "Encountered order polymorphic bitvector literal") + raise (Reporting.err_general l "Encountered order polymorphic bitvector literal") | None -> raise (Reporting.err_general l "Encountered vector literal without vector type") end - (* Convert a bitvector literal that is larger than 64-bits to a + (* Convert a bitvector literal that is larger than 64-bits to a variable size bitvector, converting it in 64-bit chunks. *) | AV_vector (avals, typ) when is_bitvector avals -> let len = List.length avals in |
