Skip to content

Commit c1e1632

Browse files
committed
Simplify RegionDomain.VFB printing
1 parent 318f2c2 commit c1e1632

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/cdomains/regionDomain.ml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,9 @@ module B = Printable.UnitConf (struct let name = "•" end)
88

99
module VFB =
1010
struct
11-
include Printable.Either (VF) (B)
11+
include Printable.EitherConf (struct include Printable.DefaultConf let expand1 = false let expand2 = false end) (VF) (B)
1212
let name () = "region"
1313

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
21-
22-
let printXml f = function
23-
| `Right () ->
24-
BatPrintf.fprintf f "<value>\n<data>\n\n</data>\n</value>\n"
25-
| `Left x ->
26-
BatPrintf.fprintf f "<value>\n<data>\n%a\n</data>\n</value>\n" VF.printXml x
27-
2814
let collapse (x:t) (y:t): bool =
2915
match x,y with
3016
| `Right (), `Right () -> true

0 commit comments

Comments
 (0)