3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-03 20:24:36 +00:00

Fix true positive critical bugs from static analysis discussion #8764

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-25 00:41:59 +00:00
parent 4a29c77aa2
commit ae4cb5557a
4 changed files with 9 additions and 3 deletions

View file

@ -187,11 +187,15 @@ public:
}
checked_int64& operator/=(checked_int64 const& other) {
if (CHECK && other.m_value == 0)
throw overflow_exception();
m_value /= other.m_value;
return *this;
}
checked_int64& operator%=(checked_int64 const& other) {
if (CHECK && other.m_value == 0)
throw overflow_exception();
m_value %= other.m_value;
return *this;
}