1; REQUIRES: asserts 2; RUN: opt -regions -analyze -enable-new-pm=0 < %s | FileCheck %s 3; RUN: opt -regions -stats -disable-output < %s 2>&1 | FileCheck -check-prefix=STAT %s 4; RUN: opt -regions -print-region-style=bb -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=BBIT %s 5; RUN: opt -regions -print-region-style=rn -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=RNIT %s 6 7; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s 8; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s 9; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s 10; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s 11 12define void @a_linear_impl_fig_1() nounwind { 13"0": 14 br label %"1" 15"1": 16 br label %"2" 17"2": 18 br label %"3" 19"3": 20 br i1 1, label %"13", label %"4" 21"4": 22 br i1 1, label %"5", label %"1" 23"5": 24 br i1 1, label %"8", label %"6" 25"6": 26 br i1 1, label %"7", label %"4" 27"7": 28 ret void 29"8": 30 br i1 1, label %"9", label %"1" 31"9": 32 br label %"10" 33"10": 34 br i1 1, label %"12", label %"11" 35"11": 36 br i1 1, label %"9", label %"8" 37"13": 38 br i1 1, label %"2", label %"1" 39"12": 40 switch i32 0, label %"1" [ i32 0, label %"9" 41 i32 1, label %"8"] 42} 43 44; CHECK-NOT: => 45; CHECK: [0] 0 => <Function Return> 46; CHECK-NEXT: [1] 1 => 7 47; CHECK-NEXT: [2] 1 => 4 48; CHECK-NEXT: [2] 8 => 1 49 50; STAT: 4 region - The # of regions 51; STAT: 1 region - The # of simple regions 52 53; BBIT: 0, 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 7, 54; BBIT: 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 55; BBIT: 1, 2, 3, 13, 56; BBIT: 8, 9, 10, 12, 11, 57 58; RNIT: 0, 1 => 7, 7, 59; RNIT: 1 => 4, 4, 5, 8 => 1, 6, 60; RNIT: 1, 2, 3, 13, 61; RNIT: 8, 9, 10, 12, 11, 62