-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit bd88a54
Ensure that type widening converges
Range analysis may fail to converge (the process hangs) when the transfer
function zend_inference_calc_range produces a smaller range.
Fix by ensuring that the widening operator zend_inference_widening_meet
allows only widening. This matches the inference rules in figure 13 of the
paper.
Fixes GH-19679
Closes GH-19683 1 parent 080fd14 commit bd88a54
3 files changed
+27
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | + | ||
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1633 | 1633 |
| |
1634 | 1634 |
| |
1635 | 1635 |
| |
1636 | + | ||
1637 | + | ||
1636 | 1638 |
| |
1637 | 1639 |
| |
1638 | 1640 |
| |
1639 | 1641 |
| |
1640 | 1642 |
| |
1641 | 1643 |
| |
1644 | + | ||
1645 | + | ||
1642 | 1646 |
| |
1643 | 1647 |
| |
1644 | 1648 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + |
0 commit comments