3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-21 17:44:43 +00:00

simplify contains check

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-01-15 12:01:44 -08:00
parent 1d1fc69be3
commit 778ed22dbf

View file

@ -209,10 +209,7 @@ namespace search_tree {
// If the node is closed AND has a stronger or equal core, we are done.
// Otherwise, closed nodes may still accept a different (stronger) core to enable pruning/resolution higher in the tree.
auto subseteq = [](vector<literal> const& A, vector<literal> const& B) {
for (auto const& a : A)
if (!B.contains(a))
return false;
return true;
return all_of(A, [&](auto const &a) { return B.contains(a); });
};
if (n->get_status() == status::closed && subseteq(n->get_core(), C))
return;