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 @normal_condition() nounwind {
85:
9        br label %"0"
10
110:
12	br label %"1"
131:
14	br i1 1, label %"2", label %"3"
152:
16	ret void
173:
18	br i1 1, label %"1", label %"4"
194:
20        br label %"0"
21}
22
23; CHECK-NOT: =>
24; CHECK: [0] 5 => <Function Return>
25; CHECK: [1] 0 => 2
26
27; STAT: 2 region - The # of regions
28; STAT: 1 region - The # of simple regions
29
30; BBIT: 5, 0, 1, 2, 3, 4,
31; BBIT: 0, 1, 3, 4,
32
33; RNIT: 5, 0 => 2, 2,
34; RNIT: 0, 1, 3, 4,
35