3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-26 10:02:41 -07:00
parent 493671aa72
commit ee2e81b696

View file

@ -1567,8 +1567,10 @@ public:
svector<lpvar> vars;
theory_var sz = static_cast<theory_var>(th.get_num_vars());
for (theory_var v = 0; v < sz; ++v) {
if (th.is_relevant_and_shared(get_enode(v)))
vars.push_back(get_lpvar(v));
if (th.is_relevant_and_shared(get_enode(v))) {
auto vi = register_theory_var_in_lar_solver(v);
vars.push_back(vi);
}
}
if (vars.empty()) {
return false;