3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-08 20:21:23 +00:00

wip - fixes to simplifiers

This commit is contained in:
Nikolaj Bjorner 2022-12-01 09:31:52 +09:00
parent cfc8e19baf
commit f24ecde35c
5 changed files with 34 additions and 15 deletions

View file

@ -15,7 +15,7 @@ Author:
#pragma once
#include "ast/simplifiers/dependent_expr_state.h"
#include "ast/normal_forms/elim_term_ite.h""
#include "ast/normal_forms/elim_term_ite.h"
class elim_term_ite_simplifier : public dependent_expr_simplifier {
@ -32,13 +32,9 @@ public:
char const* name() const override { return "elim-term-ite"; }
void reduce() override {
if (!m_fmls.has_quantifiers())
return;
expr_ref r(m);
for (unsigned idx : indices()) {
auto const& d = m_fmls[idx];
if (!has_quantifiers(d.fml()))
continue;
m_rewriter(d.fml(), r);
m_fmls.update(idx, dependent_expr(m, r, d.dep()));
}