-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for right-hand operand of zero in lrem and irem
The constrainIrem and constrainLrem methods guard against a right-hand operand of zero if the left-hand operand is a constant, but not if the left-hand operand is a non-constant. In the latter case, a constraint in the range [1,-1] results. This change adds an additional check for a right-hand operand equal to zero if the left-hand operand is non-constant, avoiding creating an erroneous constraint for the result. Signed-off-by: Henry Zongaro <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters