Repository navigation
Commit 9d9bb07
committed
fix(compiler): separate continue flows from break flows in Strong abort proofs
A `continue` in a classic `for` loop still executes the update expression,
and in a `do-while` loop it still evaluates the test, before the loop can
exit. The jump tracking recorded both `break` and `continue` in the same
flow list, then intersected them at the loop exit, stripping abort proofs
that the update or test would have provided on the continue path.
Separate unlabeled `continue` flows into their own list and merge them
into the current flow before visiting the update (`for`) or test
(`do-while`), so those expressions' proofs apply to the continue path.
For `while` and `for-of/in`, the merge happens right before the exit
join, preserving the existing behavior (intersection is associative).1 parent dba4555 commit 9d9bb07
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3925 | 3925 | | |
3926 | 3926 | | |
3927 | 3927 | | |
3928 | | - | |
| 3928 | + | |
3929 | 3929 | | |
3930 | 3930 | | |
3931 | 3931 | | |
| |||
3940 | 3940 | | |
3941 | 3941 | | |
3942 | 3942 | | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
3943 | 3953 | | |
3944 | 3954 | | |
3945 | 3955 | | |
3946 | 3956 | | |
3947 | 3957 | | |
| 3958 | + | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
3948 | 3962 | | |
3949 | 3963 | | |
3950 | 3964 | | |
| |||
5383 | 5397 | | |
5384 | 5398 | | |
5385 | 5399 | | |
| 5400 | + | |
5386 | 5401 | | |
5387 | 5402 | | |
5388 | 5403 | | |
| |||
5477 | 5492 | | |
5478 | 5493 | | |
5479 | 5494 | | |
| 5495 | + | |
5480 | 5496 | | |
5481 | 5497 | | |
5482 | 5498 | | |
| |||
5492 | 5508 | | |
5493 | 5509 | | |
5494 | 5510 | | |
| 5511 | + | |
5495 | 5512 | | |
5496 | 5513 | | |
5497 | 5514 | | |
| |||
5502 | 5519 | | |
5503 | 5520 | | |
5504 | 5521 | | |
| 5522 | + | |
5505 | 5523 | | |
5506 | 5524 | | |
5507 | 5525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
| |||
0 commit comments