Skip to content

Commit ef71e73

Browse files
committed
Set printer for showing QCheck counterexamples
1 parent f2c4520 commit ef71e73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cdomain/value/cdomains/floatDomain.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ module FloatIntervalImpl(Float_t : CFloatType) = struct
220220
| _ -> Top
221221

222222
(**for QCheck: should describe how to generate random values and shrink possible counter examples *)
223-
let arbitrary () = QCheck.map convert_arb (QCheck.option (QCheck.pair QCheck.float QCheck.float))
223+
let arbitrary () =
224+
let gen = QCheck.map convert_arb (QCheck.option (QCheck.pair QCheck.float QCheck.float)) in
225+
QCheck.set_print show gen
224226

225227
let of_interval' interval =
226228
let x = norm @@ Interval interval

0 commit comments

Comments
 (0)