3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 19:05:51 +00:00

Removed auxiliary constants created by the nnf tactic from Z3 models. Fixed model.compact parameter propagation problem.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-12-13 14:03:58 -08:00
parent 5b6842fbc5
commit e0f4d870fd
6 changed files with 29 additions and 3 deletions

View file

@ -18,6 +18,7 @@ Revision History:
--*/
#include"nnf.h"
#include"tactical.h"
#include"filter_model_converter.h"
class nnf_tactic : public tactic {
params_ref m_params;
@ -100,6 +101,13 @@ public:
}
g->inc_depth();
result.push_back(g.get());
unsigned num_extra_names = dnames.get_num_names();
if (num_extra_names > 0) {
filter_model_converter * fmc = alloc(filter_model_converter, m);
mc = fmc;
for (unsigned i = 0; i < num_extra_names; i++)
fmc->insert(dnames.get_name_decl(i));
}
TRACE("nnf", g->display(tout););
SASSERT(g->is_well_sorted());
}