3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

fix bug in contains function

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-11-12 13:45:27 -08:00
parent 37b94f1f90
commit 0f4afc4536

View file

@ -1519,7 +1519,7 @@ namespace z3 {
return *this;
}
bool contains(T const& x) const {
for (auto y : *this) if (x == y) return true;
for (auto y : *this) if (eq(x, y)) return true;
return false;
}