mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 03:07:07 +00:00
#5417 extend definition of ground to be variable free
This commit is contained in:
parent
3156ca5e77
commit
49b94a0090
|
@ -15,6 +15,7 @@ Author:
|
|||
|
||||
--*/
|
||||
|
||||
#include "ast/has_free_vars.h"
|
||||
#include "sat/smt/q_eval.h"
|
||||
#include "sat/smt/euf_solver.h"
|
||||
#include "sat/smt/q_solver.h"
|
||||
|
@ -176,7 +177,7 @@ namespace q {
|
|||
while (!todo.empty()) {
|
||||
expr* t = todo.back();
|
||||
SASSERT(!is_ground(t) || ctx.get_egraph().find(t));
|
||||
if (is_ground(t)) {
|
||||
if (is_ground(t) || (has_quantifiers(t) && !has_free_vars(t))) {
|
||||
m_mark.mark(t);
|
||||
m_eval.setx(t->get_id(), ctx.get_egraph().find(t), nullptr);
|
||||
SASSERT(m_eval[t->get_id()]);
|
||||
|
|
Loading…
Reference in a new issue