Skip to content
Snippets Groups Projects
Commit 4e1807e7 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

Apply 2 suggestion(s) to 1 file(s)

parent b86586c1
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,9 @@ type param =
| NotUsed | ByAddr | ByValue | ByShift | ByRef
| InContext of validity | InArray of validity
let nullable_string = function
| Valid -> ""
| Nullable -> "(nullable)"
let pp_nullable fmt = function
| Valid -> ()
| Nullable -> Format.pp_print_string fmt " (nullable)"
let pp_param fmt = function
| NotUsed -> Format.pp_print_string fmt "not used"
......@@ -39,8 +39,8 @@ let pp_param fmt = function
| ByValue -> Format.pp_print_string fmt "by value"
| ByShift -> Format.pp_print_string fmt "by value with shift"
| ByRef -> Format.pp_print_string fmt "by ref"
| InContext n -> Format.pp_print_string fmt ("in context" ^ nullable_string n)
| InArray n -> Format.pp_print_string fmt ("in array" ^ nullable_string n)
| InContext n -> Format.fprintf fmt "in context%a" pp_nullable n
| InArray n -> Format.fprintf fmt "in array%a" pp_nullable n
(* -------------------------------------------------------------------------- *)
(* --- Separation Hypotheses --- *)
......
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