Skip to content

Commit

Permalink
Localize two helpers in relationDomain.apron.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Dec 4, 2023
1 parent e678d0e commit d7d3503
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cdomains/apron/relationDomain.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ struct

let name () = RD.name () ^ " * " ^ PrivD.name ()

let of_tuple(rel, priv):t = {rel; priv}
let to_tuple r = (r.rel, r.priv)

let arbitrary () =
let to_tuple r = (r.rel, r.priv) in
let of_tuple (rel, priv) = {rel; priv} in
let tr = QCheck.pair (RD.arbitrary ()) (PrivD.arbitrary ()) in
QCheck.map ~rev:to_tuple of_tuple tr

Expand Down

0 comments on commit d7d3503

Please sign in to comment.