mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 12:07:52 +00:00
count
This commit is contained in:
parent
3d27ec41d0
commit
9cc9d1fac4
5 changed files with 14 additions and 5 deletions
|
@ -1195,7 +1195,7 @@ namespace polysat {
|
|||
int64_t num_watches = 0;
|
||||
signed_constraint sc(c, is_positive);
|
||||
for (auto const& wlist : m_pwatch) {
|
||||
auto n = std::count(wlist.begin(), wlist.end(), c);
|
||||
auto n = count(wlist, c);
|
||||
if (n > 1)
|
||||
std::cout << sc << "\n" << * this << "\n";
|
||||
VERIFY(n <= 1); // no duplicates in the watchlist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue