mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
parent
cd2701da0c
commit
535f442655
2 changed files with 3 additions and 13 deletions
|
@ -389,19 +389,7 @@ namespace smt {
|
|||
if (q) {
|
||||
// the variables in q are maybe not consecutive.
|
||||
var_subst sub(m, false);
|
||||
expr_free_vars fv;
|
||||
fv(q);
|
||||
expr_ref_vector es(m);
|
||||
es.resize(fv.size());
|
||||
for (unsigned i = 0, j = 0; i < e->get_num_args(); ++i) {
|
||||
SASSERT(j < es.size());
|
||||
while (!fv[j]) {
|
||||
++j;
|
||||
SASSERT(j < es.size());
|
||||
}
|
||||
es[j++] = e->get_arg(i);
|
||||
}
|
||||
f = sub(q, es.size(), es.data());
|
||||
f = sub(q, e->get_num_args(), e->get_args());
|
||||
}
|
||||
return f;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue