Skip to content
Snippets Groups Projects
Commit 6f770b63 authored by Jan Rochel's avatar Jan Rochel
Browse files

[e-acsl] define Analyses_datatype.Profile.pretty

Hitherto this function was defined as Datatype.undefined leading to
an exception in Translate_terms.to_exp with -e-acsl-verbose 4 because of
the call to Profile.pretty that takes place.
parent 27e3b906
No related branches found
No related tags found
No related merge requests found
......@@ -337,6 +337,16 @@ struct
let structural_descr = Structural_descr.t_abstract
let rehash = Datatype.identity
let name = "E-ACSL.Profile"
let pretty fmt m =
let first = ref true in
let pp_vi v i =
if !first
then first := false
else Format.fprintf fmt " ";
Format.fprintf fmt "%a:%a"
Logic_var.pretty v Analyses_types.pp_ival i
in
Logic_var.Map.iter pp_vi m
end)
let is_empty = Logic_var.Map.is_empty
......
......@@ -76,6 +76,13 @@ type ival =
| Real
| Nan
let pp_ival fmt = function
| Ival i -> Ival.pretty fmt i
| Float _ -> Format.fprintf fmt "F"
| Rational -> Format.fprintf fmt "Q"
| Real -> Format.fprintf fmt "R"
| Nan -> Format.fprintf fmt "Nan"
(** Type of types inferred by the type inference for types representing
numbers *)
type number_ty =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment