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 @MAIN__() nounwind { 8entry: 9 br label %__label_002001.outer 10 11__label_002001.outer: ; preds = %bb236, %bb92 12 br label %__label_002001 13 14__label_002001: ; preds = %bb229, %__label_002001.outer 15 br i1 1, label %bb93, label %__label_000020 16 17bb93: ; preds = %__label_002001 18 br i1 1, label %__label_000020, label %bb197 19 20bb197: ; preds = %bb193 21 br i1 1, label %bb229, label %bb224 22 23bb224: ; preds = %bb223, %bb227 24 br i1 1, label %bb229, label %bb224 25 26bb229: ; preds = %bb227, %bb223 27 br i1 1, label %__label_002001, label %__label_002001.outer 28 29__label_000020: ; preds = %__label_002001, %bb194 30 ret void 31} 32 33; CHECK-NOT: => 34; CHECK: [0] entry => <Function Return> 35; CHECK-NEXT: [1] __label_002001.outer => __label_000020 36; CHECK-NEXT: [2] bb197 => bb229 37; CHECK-NEXT: [3] bb224 => bb229 38 39; STAT: 4 region - The # of regions 40; STAT: 1 region - The # of simple regions 41 42; BBIT: entry, __label_002001.outer, __label_002001, bb93, __label_000020, bb197, bb229, bb224, 43; BBIT: __label_002001.outer, __label_002001, bb93, bb197, bb229, bb224, 44; BBIT: bb197, bb224, 45; BBIT: bb224, 46 47; RNIT: entry, __label_002001.outer => __label_000020, __label_000020, 48; RNIT: __label_002001.outer, __label_002001, bb93, bb197 => bb229, bb229, 49; RNIT: bb197, bb224 => bb229, 50; RNIT: bb224, 51