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 5; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s 6; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s 7 8define void @normal_condition() nounwind { 90: 10 br label %"1" 111: 12 br i1 1, label %"6", label %"2" 132: 14 br i1 1, label %"3", label %"4" 153: 16 br label %"5" 174: 18 br label %"5" 195: 20 br label %"8" 218: 22 br i1 1, label %"7", label %"9" 239: 24 br label %"2" 257: 26 br label %"6" 276: 28 ret void 29} 30 31; CHECK-NOT: => 32; CHECK: [0] 0 => <Function Return> 33; CHECK-NEXT: [1] 1 => 6 34; CHECK-NEXT: [2] 2 => 7 35; CHECK-NEXT: [3] 2 => 5 36; STAT: 4 region - The # of regions 37; STAT: 1 region - The # of simple regions 38 39; BBIT: 0, 1, 6, 2, 3, 5, 8, 7, 9, 4, 40; BBIT: 1, 2, 3, 5, 8, 7, 9, 4, 41; BBIT: 2, 3, 5, 8, 9, 4, 42; BBIT: 2, 3, 4, 43 44; RNIT: 0, 1 => 6, 6, 45; RNIT: 1, 2 => 7, 7, 46; RNIT: 2 => 5, 5, 8, 9, 47; RNIT: 2, 3, 4, 48