Jump on 'continue' to condition entry points for all loops
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
== test ==
|
||||
fun test(b: Boolean) {
|
||||
do {
|
||||
if (b) break;
|
||||
continue;
|
||||
} while (true);
|
||||
}
|
||||
---------------------
|
||||
<v0>: Boolean NEW: magic[FAKE_INITIALIZER](b: Boolean) -> <v0>
|
||||
b <v1>: Boolean NEW: r(b) -> <v1>
|
||||
break !<v2>: *
|
||||
if (b) break <v3>: * NEW: merge(if (b) break|!<v2>) -> <v3>
|
||||
continue !<v4>: *
|
||||
{ if (b) break; continue; } !<v4>: * COPY
|
||||
true <v5>: Boolean NEW: r(true) -> <v5>
|
||||
do { if (b) break; continue; } while (true) !<v6>: *
|
||||
{ do { if (b) break; continue; } while (true); } !<v6>: * COPY
|
||||
=====================
|
||||
Reference in New Issue
Block a user