From be962424aad8ca31da2de67783d827e08e2694df Mon Sep 17 00:00:00 2001 From: Peter Sewell Date: Mon, 3 Nov 2014 18:03:21 +0000 Subject: pp of initial index of bitvector --- src/lem_interp/printing_functions.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lem_interp/printing_functions.ml b/src/lem_interp/printing_functions.ml index ff6e7770..f7da7ef5 100644 --- a/src/lem_interp/printing_functions.ml +++ b/src/lem_interp/printing_functions.ml @@ -49,7 +49,7 @@ let bitvec_to_string l = "0b" ^ collapse_leading (String.concat "" (List.map (fu let val_to_string v = match v with | Bitvector(bools, inc, fst)-> let l = List.length bools in (* (string_of_int l) ^ " bits -- 0b" ^ collapse_leading (String.concat "" (List.map (function | true -> "1" | _ -> "0") bools))*) - (string_of_int l) ^ "'b" ^ collapse_leading (String.concat "" (List.map (function | true -> "1" | _ -> "0") bools)) + (string_of_int l) ^ "_" ^ (string_of_int (Big_int.int_of_big_int fst)) ^ "'b" ^ collapse_leading (String.concat "" (List.map (function | true -> "1" | _ -> "0") bools)) | Bytevector words -> let l = List.length words in (*(string_of_int l) ^ " bytes -- " ^*) "0x" ^ -- cgit v1.2.3