Skip to content

Commit

Permalink
Report quantifier instantiations
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Jan 19, 2022
1 parent b7bb9cc commit fe73926
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/scala/decider/Z3ProverStdIO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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] "<quantifier_id>" : <instances> : <maximum generation> : <maximum cost>`.
// See: https://github.com/Z3Prover/z3/issues/4522
val qiProfile = result.startsWith("[quantifier_instances]")
if (qiProfile) {
logger info result
}

repeat = warning || qiProfile
}

result
Expand Down

0 comments on commit fe73926

Please sign in to comment.