From fe73926cd62781b0db96be74bb87e2c6a8518ab4 Mon Sep 17 00:00:00 2001 From: Federico Poli Date: Tue, 18 Jan 2022 18:08:45 +0100 Subject: [PATCH] Report quantifier instantiations --- src/main/scala/decider/Z3ProverStdIO.scala | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/scala/decider/Z3ProverStdIO.scala b/src/main/scala/decider/Z3ProverStdIO.scala index c8a08718c..a249891bb 100644 --- a/src/main/scala/decider/Z3ProverStdIO.scala +++ b/src/main/scala/decider/Z3ProverStdIO.scala @@ -425,7 +425,15 @@ class Z3ProverStdIO(uniqueId: String, logger warn msg } - repeat = warning + // When `smt.qi.profile` is `true`, Z3 periodically reports the quantifier instantiations using the format + // `[quantifier_instances] "" : : : `. + // See: https://github.com/Z3Prover/z3/issues/4522 + val qiProfile = result.startsWith("[quantifier_instances]") + if (qiProfile) { + logger info result + } + + repeat = warning || qiProfile } result