You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/symbolic/symbol_scope.ml
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -40,20 +40,16 @@ let get_value model sym ty =
40
40
|Somev -> v
41
41
|None -> (
42
42
(* The symbol was created but is not part of the generated model. Thus we can use a dummy value. TODO: allows to hide these symbols or their value through a flag (and make it the default, the flag should actually display them). *)
43
+
(* TODO: do this in Smt.ml, see https://github.com/formalsec/smtml/issues/483 *)
43
44
let res =
44
45
match ty with
45
46
|Smtml.Ty.Ty_bool -> Smtml.Value.of_string ty "false"
46
-
|Ty_bitv8 ->
47
-
Ok (Smtml.Value.Bitv (Smtml.Bitvector.make (Z.of_string "0") 8))
48
-
|Ty_bitv32 ->
49
-
Ok (Smtml.Value.Bitv (Smtml.Bitvector.make (Z.of_string "0") 32))
50
-
|Ty_bitv64 ->
51
-
Ok (Smtml.Value.Bitv (Smtml.Bitvector.make (Z.of_string "0") 64))
47
+
|Ty_bitvn ->
48
+
Ok (Smtml.Value.Bitv (Smtml.Bitvector.make (Z.of_string "0") n))
52
49
|Ty_fp32 -> Smtml.Value.of_string ty "0.0"
53
50
|Ty_fp64 -> Smtml.Value.of_string ty "0.0"
54
-
|ty ->
55
-
Log.err (funm ->
56
-
m "unhandled type %a in symbol_scope.ml"Smtml.Ty.pp ty );
51
+
|_ty ->
52
+
(* if this fails, it may be that we changed something and a new type should be added here *)
0 commit comments