From a1ef7946b96d95b3192f8db496f09d4bb23b775a Mon Sep 17 00:00:00 2001 From: Alasdair Armstrong Date: Fri, 17 May 2019 18:38:35 +0100 Subject: Experiment with making vector and bitvector distinct types Only change that should be needed for 99.9% of uses is to change vector('n, 'ord, bit) to bitvector('n, 'ord), and adding $ifndef FEATURE_BITVECTOR_TYPE type bitvector('n, dec) = vector('n, dec, bit) $endif for to support any Sail before this Currently I have all C, Typechecking, and SMT tests passing, as well as the RISC-V spec building OCaml and C completely unmodified. --- src/process_file.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/process_file.ml') diff --git a/src/process_file.ml b/src/process_file.ml index ae79d5c3..1672663b 100644 --- a/src/process_file.ml +++ b/src/process_file.ml @@ -94,6 +94,7 @@ let default_symbols = List.fold_left (fun set str -> StringSet.add str set) StringSet.empty [ "FEATURE_IMPLICITS"; "FEATURE_CONSTANT_TYPES"; + "FEATURE_BITVECTOR_TYPE"; ] let symbols = ref default_symbols -- cgit v1.2.3