Skip to content

Commit d9afd55

Browse files
committed
Add names to region analysis domains
1 parent 0f70e17 commit d9afd55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cdomains/regionDomain.ml

+10
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ module B = Printable.UnitConf (struct let name = "•" end)
99
module VFB =
1010
struct
1111
include Printable.Either (VF) (B)
12+
let name () = "region"
13+
14+
let pretty () = function
15+
| `Right () -> Pretty.text ""
16+
| `Left x -> VF.pretty () x
17+
18+
let show = function
19+
| `Right () -> ""
20+
| `Left x -> VF.show x
1221

1322
let printXml f = function
1423
| `Right () ->
@@ -51,6 +60,7 @@ end
5160

5261
module RS = struct
5362
include PartitionDomain.Set (VFB)
63+
let name () = "regions"
5464
let single_vf vf = singleton (VFB.of_vf vf)
5565
let single_bullet = singleton (VFB.bullet)
5666
let remove_bullet x = remove VFB.bullet x

0 commit comments

Comments
 (0)