3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 12:07:52 +00:00
This commit is contained in:
Jakob Rath 2022-10-04 14:08:44 +02:00
parent 3d27ec41d0
commit 9cc9d1fac4
5 changed files with 14 additions and 5 deletions

View file

@ -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