From 0d95c780d176d18130c46f00096ee53fe6a94e85 Mon Sep 17 00:00:00 2001 From: Lev Nachmanson Date: Tue, 4 Feb 2020 14:51:15 -0800 Subject: [PATCH] remove an unnecessary check Signed-off-by: Lev Nachmanson --- src/smt/theory_lra.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/smt/theory_lra.cpp b/src/smt/theory_lra.cpp index ac1aa01c4..14ecd3904 100644 --- a/src/smt/theory_lra.cpp +++ b/src/smt/theory_lra.cpp @@ -1623,10 +1623,8 @@ public: svector vars; theory_var sz = static_cast(th.get_num_vars()); for (theory_var v = 0; v < sz; ++v) { - if (th.is_relevant_and_shared(get_enode(v))) { - if (can_be_used_in_random_update(v)) - vars.push_back(get_lpvar(v)); - } + if (can_be_used_in_random_update(v)) + vars.push_back(get_lpvar(v)); } if (vars.empty()) { return false;