|
2 | 2 |
|
3 | 3 | def if_elsif_else()
|
4 | 4 | #^^^^^^^^^^^^^^^^^^^ definition scip-ruby gem TODO TODO if_elsif_else().
|
5 |
| -#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition scip-ruby gem TODO TODO <static-init>(). |
| 5 | +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition scip-ruby gem TODO TODO <static-init>(). |
6 | 6 | x = 0
|
7 | 7 | # ^ definition local 1~#2393773952
|
8 | 8 | y = 0
|
@@ -117,6 +117,8 @@ def for(xs)
|
117 | 117 | break g+1 if g == 3
|
118 | 118 | # ^ reference local 4~#2901640080
|
119 | 119 | # ^ reference local 4~#2901640080
|
| 120 | + # NOTE: redo is unsupported (https://srb.help/3003) |
| 121 | + # but emitting a reference here does work |
120 | 122 | redo if g == 4
|
121 | 123 | # ^ reference local 4~#2901640080
|
122 | 124 | end
|
@@ -152,6 +154,8 @@ def while(xs)
|
152 | 154 | break g+1 if g == 3
|
153 | 155 | # ^ reference local 4~#231090382
|
154 | 156 | # ^ reference local 4~#231090382
|
| 157 | + # NOTE: redo is unsupported (https://srb.help/3003) |
| 158 | + # but emitting a reference here does work |
155 | 159 | redo if g == 4
|
156 | 160 | # ^ reference local 4~#231090382
|
157 | 161 | end
|
@@ -187,7 +191,26 @@ def until(xs)
|
187 | 191 | break g+1 if g == 3
|
188 | 192 | # ^ reference local 4~#3132432719
|
189 | 193 | # ^ reference local 4~#3132432719
|
| 194 | + # NOTE: redo is unsupported (https://srb.help/3003) |
| 195 | + # but emitting a reference here does work |
190 | 196 | redo if g == 4
|
191 | 197 | # ^ reference local 4~#3132432719
|
192 | 198 | end
|
193 | 199 | end
|
| 200 | + |
| 201 | + def flip_flop(xs) |
| 202 | +#^^^^^^^^^^^^^^^^^ definition scip-ruby gem TODO TODO flip_flop(). |
| 203 | +# ^^ definition local 1~#2191960030 |
| 204 | + # NOTE: flip-flops are unsupported (https://srb.help/3003) |
| 205 | + # Unlike redo, which somehow works, we fail to emit references |
| 206 | + # for the conditions. |
| 207 | + # Keep this test anyways to check that we don't crash/mess something up |
| 208 | + for x in xs |
| 209 | +# ^ definition local 2~#2191960030 |
| 210 | +# ^^ reference local 1~#2191960030 |
| 211 | + puts x if x==2..x==8 |
| 212 | +# ^ reference local 2~#2191960030 |
| 213 | + puts x+1 if x==4...x==6 |
| 214 | +# ^ reference local 2~#2191960030 |
| 215 | + end |
| 216 | + end |
0 commit comments