-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance range analysis for the rem operator
Teach beam_bounds:bound/3 to determine a range for the `rem` operator when nothing is known about the right-hand side operand. For example: rem0(A, B) when is_integer(A), 0 =< A, A < 1204 -> %% Range for A is 0..1023 A rem B. % Range is 0..1023 (same as for A)
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 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
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