Skip to content

Commit fe73926

Browse files
committed
Report quantifier instantiations
1 parent b7bb9cc commit fe73926

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/scala/decider/Z3ProverStdIO.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,15 @@ class Z3ProverStdIO(uniqueId: String,
425425
logger warn msg
426426
}
427427

428-
repeat = warning
428+
// When `smt.qi.profile` is `true`, Z3 periodically reports the quantifier instantiations using the format
429+
// `[quantifier_instances] "<quantifier_id>" : <instances> : <maximum generation> : <maximum cost>`.
430+
// See: https://github.com/Z3Prover/z3/issues/4522
431+
val qiProfile = result.startsWith("[quantifier_instances]")
432+
if (qiProfile) {
433+
logger info result
434+
}
435+
436+
repeat = warning || qiProfile
429437
}
430438

431439
result

0 commit comments

Comments
 (0)