Commit d5da1db
graph: snap sub-tolerance lower>upper crossings in AffineBound.to_interval
A sound affine bound has lower <= upper for every component, so a crossing is fp
accumulation noise on a near-degenerate (point-valued) component — e.g. a token
embedding column at exactly 0.5 whose lower-bound eval lands ~1 ULP above 0.5.
The strict Range(lo, hi) check then raised during value_type propagation through
a select (surfaced building the Phase-H R_CheckPlane token, kind=1). Snap the
crossing when the gap is within fp tolerance; a gross crossing still falls
through to the strict Range check as a genuine-bug signal. Regression test in
tests/graph/test_affine_bounds.py::TestToIntervalFpCrossing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4e2ef0c commit d5da1db
2 files changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
| |||
0 commit comments