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:
parent
1d1fc69be3
commit
778ed22dbf
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue