Skip to content

Commit

Permalink
Add names to region analysis domains
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 11, 2023
1 parent 0f70e17 commit d9afd55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/cdomains/regionDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ module B = Printable.UnitConf (struct let name = "•" end)
module VFB =
struct
include Printable.Either (VF) (B)
let name () = "region"

let pretty () = function
| `Right () -> Pretty.text ""
| `Left x -> VF.pretty () x

let show = function
| `Right () -> ""
| `Left x -> VF.show x

let printXml f = function
| `Right () ->
Expand Down Expand Up @@ -51,6 +60,7 @@ end

module RS = struct
include PartitionDomain.Set (VFB)
let name () = "regions"
let single_vf vf = singleton (VFB.of_vf vf)
let single_bullet = singleton (VFB.bullet)
let remove_bullet x = remove VFB.bullet x
Expand Down

0 comments on commit d9afd55

Please sign in to comment.