Commit c06b43c
cps: experimental support for for-loops
For-loops are inlined using block statements, which messes with their
control flow due to #76.
Breaks "for loop with continue, break" test. On the flip side,
splitting now functions on them.
Also breaks a test in tzevv due to defer being rewritten into
try-finally, which doesn't work.
Co-authored-by: Andy Davidoff <github@andy.disruptek.com>1 parent 73e104a commit c06b43c
2 files changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
607 | 612 | | |
608 | 613 | | |
609 | 614 | | |
| |||
637 | 642 | | |
638 | 643 | | |
639 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
640 | 654 | | |
641 | 655 | | |
642 | 656 | | |
643 | 657 | | |
644 | 658 | | |
645 | 659 | | |
646 | 660 | | |
| 661 | + | |
| 662 | + | |
647 | 663 | | |
648 | 664 | | |
649 | 665 | | |
| |||
854 | 870 | | |
855 | 871 | | |
856 | 872 | | |
857 | | - | |
| 873 | + | |
858 | 874 | | |
859 | 875 | | |
860 | 876 | | |
861 | 877 | | |
862 | 878 | | |
863 | 879 | | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
864 | 888 | | |
865 | 889 | | |
866 | 890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
0 commit comments