3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-19 10:52:02 +00:00

disambiguating arguments to unordered map erase and dealing with unused and uninitialized variables

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-05-09 15:35:00 -07:00
parent d43c12413d
commit f4544eb060
3 changed files with 5 additions and 3 deletions

View file

@ -1691,7 +1691,10 @@ public:
bool explanation_is_correct(const vector<std::pair<mpq, unsigned>>& explanation) const {
#ifdef LEAN_DEBUG
#if 0
// disabled as 'kind' is not assigned
lconstraint_kind kind;
the_relations_are_of_same_type(explanation, kind);
lean_assert(the_left_sides_sum_to_zero(explanation));
mpq rs = sum_of_right_sides_of_explanation(explanation);
switch (kind) {
@ -1709,6 +1712,7 @@ public:
lean_assert(false);
return false;
}
#endif
#endif
return true;
}