3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

Re-fixing a bug in compute_implicant_literals()

This commit is contained in:
Arie Gurfinkel 2018-06-09 10:34:05 -07:00
parent 8445e2a7a2
commit 4a2eb909bf

View file

@ -603,6 +603,14 @@ namespace {
void compute_implicant_literals (model_evaluator_util &mev, expr_ref_vector &formula,
expr_ref_vector &res) {
// flatten the formula and remove all trivial literals
// TBD: not clear why there is a dependence on it (other than
// not handling of Boolean constants by implicant_picker), however,
// it was a source of a problem on a benchmark
flatten_and(formula);
if (formula.empty()) {return;}
implicant_picker ipick (mev);
ipick (formula, res);
}