forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 0
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 * operator
Teach beam_bounds:bound/3 to determine a range for the `*` operator when both factors have a non-negative lower bound. For example: m(A, B) when is_integer(A), A >= 2, is_integer(B), B >= 10 -> %% Range for A is 2..'+inf'; range for B is 10..'+inf' A * B < 100. % Range for A * B is 20..'+inf'
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 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