1; RUN: llc < %s -mtriple=armv6-apple-darwin10
2
3	%struct.cli_ac_alt = type { i8, i8*, i16, i16, %struct.cli_ac_alt* }
4	%struct.cli_ac_node = type { i8, i8, %struct.cli_ac_patt*, %struct.cli_ac_node**, %struct.cli_ac_node* }
5	%struct.cli_ac_patt = type { i16*, i16*, i16, i16, i8, i32, i32, i8*, i8*, i32, i16, i16, i16, i16, %struct.cli_ac_alt**, i8, i16, %struct.cli_ac_patt*, %struct.cli_ac_patt* }
6	%struct.cli_bm_patt = type { i8*, i8*, i16, i16, i8*, i8*, i8, %struct.cli_bm_patt*, i16 }
7	%struct.cli_matcher = type { i16, i8, i8*, %struct.cli_bm_patt**, i32*, i32, i8, i8, %struct.cli_ac_node*, %struct.cli_ac_node**, %struct.cli_ac_patt**, i32, i32, i32 }
8
9declare i32 @strlen(i8* nocapture) nounwind readonly
10
11define i32 @cli_ac_addsig(%struct.cli_matcher* nocapture %root, i8* %virname, i8* %hexsig, i32 %sigid, i16 zeroext %parts, i16 zeroext %partno, i16 zeroext %type, i32 %mindist, i32 %maxdist, i8* %offset, i8 zeroext %target) nounwind {
12entry:
13	br i1 undef, label %bb126, label %bb1
14
15bb1:		; preds = %entry
16	br i1 undef, label %cli_calloc.exit.thread, label %cli_calloc.exit
17
18cli_calloc.exit.thread:		; preds = %bb1
19	ret i32 -114
20
21cli_calloc.exit:		; preds = %bb1
22	store i16 %parts, i16* undef, align 4
23	br i1 undef, label %bb52, label %bb4
24
25bb4:		; preds = %cli_calloc.exit
26	br i1 undef, label %bb.i, label %bb1.i3
27
28bb.i:		; preds = %bb4
29	unreachable
30
31bb1.i3:		; preds = %bb4
32	br i1 undef, label %bb2.i4, label %cli_strdup.exit
33
34bb2.i4:		; preds = %bb1.i3
35	ret i32 -114
36
37cli_strdup.exit:		; preds = %bb1.i3
38	br i1 undef, label %cli_calloc.exit54.thread, label %cli_calloc.exit54
39
40cli_calloc.exit54.thread:		; preds = %cli_strdup.exit
41	ret i32 -114
42
43cli_calloc.exit54:		; preds = %cli_strdup.exit
44	br label %bb45
45
46cli_calloc.exit70.thread:		; preds = %bb45
47	unreachable
48
49cli_calloc.exit70:		; preds = %bb45
50	br i1 undef, label %bb.i83, label %bb1.i84
51
52bb.i83:		; preds = %cli_calloc.exit70
53	unreachable
54
55bb1.i84:		; preds = %cli_calloc.exit70
56	br i1 undef, label %bb2.i85, label %bb17
57
58bb2.i85:		; preds = %bb1.i84
59	unreachable
60
61bb17:		; preds = %bb1.i84
62	br i1 undef, label %bb22, label %bb.nph
63
64bb.nph:		; preds = %bb17
65	br label %bb18
66
67bb18:		; preds = %bb18, %bb.nph
68	br i1 undef, label %bb18, label %bb22
69
70bb22:		; preds = %bb18, %bb17
71	br i1 undef, label %bb25, label %bb43.preheader
72
73bb43.preheader:		; preds = %bb22
74	br i1 undef, label %bb28, label %bb45
75
76bb25:		; preds = %bb22
77	unreachable
78
79bb28:		; preds = %bb43.preheader
80	unreachable
81
82bb45:		; preds = %bb43.preheader, %cli_calloc.exit54
83	br i1 undef, label %cli_calloc.exit70.thread, label %cli_calloc.exit70
84
85bb52:		; preds = %cli_calloc.exit
86	%0 = load i16, i16* undef, align 4		; <i16> [#uses=1]
87	%1 = icmp eq i16 %0, 0		; <i1> [#uses=1]
88	%iftmp.20.0 = select i1 %1, i8* %hexsig, i8* null		; <i8*> [#uses=1]
89	%2 = tail call  i32 @strlen(i8* %iftmp.20.0) nounwind readonly		; <i32> [#uses=0]
90	unreachable
91
92bb126:		; preds = %entry
93	ret i32 -117
94}
95