Skip to content
Snippets Groups Projects
Commit 2105d9c3 authored by Julien Signoles's avatar Julien Signoles
Browse files

Merge branch 'jan/e-acsl/pretty' into 'master'

[e-acsl] define Analyses_datatype.Profile.pretty

See merge request frama-c/frama-c!4235
parents 4299b4a4 6f770b63
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