• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -lcssa
2; RUN: opt < %s -passes=lcssa
3
4target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
5
6@.str12 = external constant [3 x i8], align 1		; <[3 x i8]*> [#uses=1]
7@.str17175 = external constant [4 x i8], align 1		; <[4 x i8]*> [#uses=1]
8@.str21179 = external constant [12 x i8], align 1		; <[12 x i8]*> [#uses=1]
9@.str25183 = external constant [10 x i8], align 1		; <[10 x i8]*> [#uses=1]
10@.str32190 = external constant [92 x i8], align 1		; <[92 x i8]*> [#uses=1]
11@.str41 = external constant [25 x i8], align 1		; <[25 x i8]*> [#uses=1]
12
13define void @_ZN8EtherBus10initializeEv() personality i32 (...)* @__gxx_personality_v0 {
14entry:
15	br i1 undef, label %_ZN7cObjectnwEj.exit, label %bb.i
16
17bb.i:		; preds = %entry
18	br label %_ZN7cObjectnwEj.exit
19
20_ZN7cObjectnwEj.exit:		; preds = %bb.i, %entry
21	invoke void @_ZN7cObjectC2EPKc(i8* undef, i8* getelementptr ([12 x i8], [12 x i8]* @.str21179, i32 0, i32 0))
22			to label %bb1 unwind label %lpad
23
24bb1:		; preds = %_ZN7cObjectnwEj.exit
25	br i1 undef, label %_ZNK5cGate4sizeEv.exit, label %bb.i110
26
27bb.i110:		; preds = %bb1
28	br label %_ZNK5cGate4sizeEv.exit
29
30_ZNK5cGate4sizeEv.exit:		; preds = %bb.i110, %bb1
31	br i1 undef, label %_ZNK5cGate4sizeEv.exit122, label %bb.i120
32
33bb.i120:		; preds = %_ZNK5cGate4sizeEv.exit
34	br label %_ZNK5cGate4sizeEv.exit122
35
36_ZNK5cGate4sizeEv.exit122:		; preds = %bb.i120, %_ZNK5cGate4sizeEv.exit
37	br i1 undef, label %bb8, label %bb2
38
39bb2:		; preds = %_ZNK5cGate4sizeEv.exit122
40	unreachable
41
42bb8:		; preds = %_ZNK5cGate4sizeEv.exit122
43	%tmp = invoke i8* @_ZN7cModule3parEPKc(i8* undef, i8* getelementptr ([10 x i8], [10 x i8]* @.str25183, i32 0, i32 0))
44			to label %invcont9 unwind label %lpad119		; <i8*> [#uses=1]
45
46invcont9:		; preds = %bb8
47	%tmp1 = invoke i8* @_ZN4cPar11stringValueEv(i8* %tmp)
48			to label %invcont10 unwind label %lpad119		; <i8*> [#uses=1]
49
50invcont10:		; preds = %invcont9
51	invoke void @_ZN8EtherBus8tokenizeEPKcRSt6vectorIdSaIdEE(i8* null, i8* %tmp1, i8* undef)
52			to label %invcont11 unwind label %lpad119
53
54invcont11:		; preds = %invcont10
55	br i1 undef, label %bb12, label %bb18
56
57bb12:		; preds = %invcont11
58	invoke void (i8*, i8*, ...) @_ZN6cEnvir6printfEPKcz(i8* null, i8* getelementptr ([3 x i8], [3 x i8]* @.str12, i32 0, i32 0), i32 undef)
59			to label %bb.i.i159 unwind label %lpad119
60
61bb.i.i159:		; preds = %bb12
62	unreachable
63
64bb18:		; preds = %invcont11
65	br i1 undef, label %bb32, label %bb34
66
67bb32:		; preds = %bb18
68	br i1 undef, label %bb.i.i123, label %bb34
69
70bb.i.i123:		; preds = %bb32
71	br label %bb34
72
73bb34:		; preds = %bb.i.i123, %bb32, %bb18
74	%tmp2 = invoke i8* @_Znaj(i32 undef)
75			to label %invcont35 unwind label %lpad119		; <i8*> [#uses=0]
76
77invcont35:		; preds = %bb34
78	br i1 undef, label %bb49, label %bb61
79
80bb49:		; preds = %invcont35
81	invoke void (i8*, i8*, ...) @_ZNK13cSimpleModule5errorEPKcz(i8* undef, i8* getelementptr ([92 x i8], [92 x i8]* @.str32190, i32 0, i32 0))
82			to label %bb51 unwind label %lpad119
83
84bb51:		; preds = %bb49
85	unreachable
86
87bb61:		; preds = %invcont35
88	br label %bb106
89
90.noexc:		; preds = %bb106
91	invoke void @_ZN7cObjectC2EPKc(i8* undef, i8* getelementptr ([25 x i8], [25 x i8]* @.str41, i32 0, i32 0))
92			to label %bb102 unwind label %lpad123
93
94bb102:		; preds = %.noexc
95	invoke void undef(i8* undef, i8 zeroext 1)
96			to label %invcont103 unwind label %lpad119
97
98invcont103:		; preds = %bb102
99	invoke void undef(i8* undef, double 1.000000e+07)
100			to label %invcont104 unwind label %lpad119
101
102invcont104:		; preds = %invcont103
103	%tmp3 = invoke i32 @_ZN13cSimpleModule11sendDelayedEP8cMessagedPKci(i8* undef, i8* undef, double 0.000000e+00, i8* getelementptr ([4 x i8], [4 x i8]* @.str17175, i32 0, i32 0), i32 undef)
104			to label %invcont105 unwind label %lpad119		; <i32> [#uses=0]
105
106invcont105:		; preds = %invcont104
107	br label %bb106
108
109bb106:		; preds = %invcont105, %bb61
110	%tmp4 = invoke i8* @_Znaj(i32 124)
111			to label %.noexc unwind label %lpad119		; <i8*> [#uses=1]
112
113lpad:		; preds = %_ZN7cObjectnwEj.exit
114        %exn = landingpad {i8*, i32}
115                 cleanup
116	br label %Unwind
117
118lpad119:		; preds = %bb106, %invcont104, %invcont103, %bb102, %bb49, %bb34, %bb12, %invcont10, %invcont9, %bb8
119        %exn119 = landingpad {i8*, i32}
120                 cleanup
121	unreachable
122
123lpad123:		; preds = %.noexc
124        %exn123 = landingpad {i8*, i32}
125                 cleanup
126	%tmp5 = icmp eq i8* %tmp4, null		; <i1> [#uses=1]
127	br i1 %tmp5, label %Unwind, label %bb.i2
128
129bb.i2:		; preds = %lpad123
130	br label %Unwind
131
132Unwind:		; preds = %bb.i2, %lpad123, %lpad
133	unreachable
134}
135
136declare i32 @__gxx_personality_v0(...)
137
138declare void @_ZN8EtherBus8tokenizeEPKcRSt6vectorIdSaIdEE(i8* nocapture, i8*, i8*)
139
140declare i8* @_Znaj(i32)
141
142declare void @_ZN6cEnvir6printfEPKcz(i8* nocapture, i8* nocapture, ...)
143
144declare void @_ZNK13cSimpleModule5errorEPKcz(i8* nocapture, i8* nocapture, ...) noreturn
145
146declare i8* @_ZN7cModule3parEPKc(i8*, i8*)
147
148declare i32 @_ZN13cSimpleModule11sendDelayedEP8cMessagedPKci(i8*, i8*, double, i8*, i32)
149
150declare void @_ZN7cObjectC2EPKc(i8*, i8*)
151
152declare i8* @_ZN4cPar11stringValueEv(i8*)
153