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:
parent
4a29c77aa2
commit
ae4cb5557a
4 changed files with 9 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue