1; REQUIRES: asserts 2; RUN: opt -regions -analyze < %s | FileCheck %s 3; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s 4; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s 5; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s 6 7define void @a_linear_impl_fig_1() nounwind { 80: 9 br label %"1" 101: 11 br label %"2" 122: 13 br label %"3" 143: 15 br i1 1, label %"13", label %"4" 164: 17 br i1 1, label %"5", label %"1" 185: 19 br i1 1, label %"8", label %"6" 206: 21 br i1 1, label %"7", label %"4" 227: 23 ret void 248: 25 br i1 1, label %"9", label %"1" 269: 27 br label %"10" 2810: 29 br i1 1, label %"12", label %"11" 3011: 31 br i1 1, label %"9", label %"8" 3213: 33 br i1 1, label %"2", label %"1" 3412: 35 switch i32 0, label %"1" [ i32 0, label %"9" 36 i32 1, label %"8"] 37} 38 39; CHECK-NOT: => 40; CHECK: [0] 0 => <Function Return> 41; CHECK-NEXT: [1] 1 => 7 42; CHECK-NEXT: [2] 1 => 4 43; CHECK-NEXT: [2] 8 => 1 44 45; STAT: 4 region - The # of regions 46; STAT: 1 region - The # of simple regions 47 48; BBIT: 0, 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 7, 49; BBIT: 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 50; BBIT: 1, 2, 3, 13, 51; BBIT: 8, 9, 10, 12, 11, 52 53; RNIT: 0, 1 => 7, 7, 54; RNIT: 1 => 4, 4, 5, 8 => 1, 6, 55; RNIT: 1, 2, 3, 13, 56; RNIT: 8, 9, 10, 12, 11, 57