Skip to content

Commit

Permalink
Fix for implicit consts in FPA models. Fixes #2865.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph M. Wintersteiger committed Jan 20, 2020
1 parent 22f1c64 commit 321bad2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/smt/theory_fpa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,15 @@ namespace smt {
void theory_fpa::init_model(model_generator & mg) {
TRACE("t_fpa", tout << "initializing model" << std::endl; display(tout););
ast_manager & m = get_manager();
context & ctx = get_context();
m_factory = alloc(fpa_value_factory, m, get_family_id());
mg.register_factory(m_factory);

for (enode* n : ctx.enodes()) {
theory_var v = n->get_th_var(get_family_id());
if (v != -1 && is_uninterp_const(n->get_owner()))
ctx.mark_as_relevant(n->get_owner());
}
}

enode* theory_fpa::ensure_enode(expr* e) {
Expand Down

0 comments on commit 321bad2

Please sign in to comment.