summaryrefslogtreecommitdiff
path: root/lib/ocaml_rts/sail_lib.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-12-14 20:09:04 +0000
committerAlasdair Armstrong2017-12-14 20:09:04 +0000
commitb3d2aa1f4d4b60e0a5a9c05127c81504e6b9a0c4 (patch)
tree12c3ba7adc9c0b24e0ed709a4dfe04c5e7f176b5 /lib/ocaml_rts/sail_lib.ml
parent2162c6586b8024789875c2e619b09ba8348e72e0 (diff)
An experimental version of sail without bitvector start indexes.
Works with the vector branch of asl_parser
Diffstat (limited to 'lib/ocaml_rts/sail_lib.ml')
-rw-r--r--lib/ocaml_rts/sail_lib.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ocaml_rts/sail_lib.ml b/lib/ocaml_rts/sail_lib.ml
index dfdd1db9..b24e2fec 100644
--- a/lib/ocaml_rts/sail_lib.ml
+++ b/lib/ocaml_rts/sail_lib.ml
@@ -87,10 +87,10 @@ let undefined_bit () =
let undefined_bool () =
if !random then Random.bool () else false
-let rec undefined_vector (start_index, len, item) =
+let rec undefined_vector (len, item) =
if eq_big_int len zero_big_int
then []
- else item :: undefined_vector (start_index, sub_big_int len unit_big_int, item)
+ else item :: undefined_vector (sub_big_int len unit_big_int, item)
let undefined_string () = ""