Control-flow analysis: do-while scope is ended after condition but before jump #KT-15334 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-01-09 18:49:17 +03:00
parent b7a5ff456f
commit b81268cca1
14 changed files with 208 additions and 25 deletions
@@ -30,11 +30,11 @@ L4 [body entry point]:
L5 [body exit point]:
L6 [condition entry point]:
r(true) -> <v0>
magic[VALUE_CONSUMER](true|<v0>) -> <v1>
2 magic[VALUE_CONSUMER](true|<v0>) -> <v1>
jmp(L2) NEXT:[mark({ })]
L3 [loop exit point]:
- read (Unit) PREV:[]
- 2 mark(unreachable()) PREV:[]
- mark(unreachable()) PREV:[]
- call(unreachable(), unreachable) -> <v2> PREV:[]
L1:
1 <END> NEXT:[<SINK>] PREV:[]