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:
parent
8445e2a7a2
commit
4a2eb909bf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue