10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-10-05 15:56:05 +02:00
QCaml/CI/Phase.ml

13 lines
202 B
OCaml

type t =
| Pos
| Neg
let of_nperm nperm =
if (nperm land 1) = 1 then Neg
else Pos
let pp_phase ppf = function
| Pos -> Format.fprintf ppf "@[<h>+1@]"
| Neg -> Format.fprintf ppf "@[<h>-1@]"