blob: 1523d4ff1f649842a51ca9712e050cf5237852e0 [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -lcssa
Dan Gohman7eaf50e2009-06-26 00:31:13 +00002
3target 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"
4
5@.str12 = external constant [3 x i8], align 1 ; <[3 x i8]*> [#uses=1]
6@.str17175 = external constant [4 x i8], align 1 ; <[4 x i8]*> [#uses=1]
7@.str21179 = external constant [12 x i8], align 1 ; <[12 x i8]*> [#uses=1]
8@.str25183 = external constant [10 x i8], align 1 ; <[10 x i8]*> [#uses=1]
9@.str32190 = external constant [92 x i8], align 1 ; <[92 x i8]*> [#uses=1]
10@.str41 = external constant [25 x i8], align 1 ; <[25 x i8]*> [#uses=1]
11
David Majnemer7fddecc2015-06-17 20:52:32 +000012define void @_ZN8EtherBus10initializeEv() personality i32 (...)* @__gxx_personality_v0 {
Dan Gohman7eaf50e2009-06-26 00:31:13 +000013entry:
14 br i1 undef, label %_ZN7cObjectnwEj.exit, label %bb.i
15
16bb.i: ; preds = %entry
17 br label %_ZN7cObjectnwEj.exit
18
19_ZN7cObjectnwEj.exit: ; preds = %bb.i, %entry
David Blaikief72d05b2015-03-13 18:20:45 +000020 invoke void @_ZN7cObjectC2EPKc(i8* undef, i8* getelementptr ([12 x i8], [12 x i8]* @.str21179, i32 0, i32 0))
Dan Gohman7eaf50e2009-06-26 00:31:13 +000021 to label %bb1 unwind label %lpad
22
23bb1: ; preds = %_ZN7cObjectnwEj.exit
24 br i1 undef, label %_ZNK5cGate4sizeEv.exit, label %bb.i110
25
26bb.i110: ; preds = %bb1
27 br label %_ZNK5cGate4sizeEv.exit
28
29_ZNK5cGate4sizeEv.exit: ; preds = %bb.i110, %bb1
30 br i1 undef, label %_ZNK5cGate4sizeEv.exit122, label %bb.i120
31
32bb.i120: ; preds = %_ZNK5cGate4sizeEv.exit
33 br label %_ZNK5cGate4sizeEv.exit122
34
35_ZNK5cGate4sizeEv.exit122: ; preds = %bb.i120, %_ZNK5cGate4sizeEv.exit
36 br i1 undef, label %bb8, label %bb2
37
38bb2: ; preds = %_ZNK5cGate4sizeEv.exit122
39 unreachable
40
41bb8: ; preds = %_ZNK5cGate4sizeEv.exit122
David Blaikief72d05b2015-03-13 18:20:45 +000042 %tmp = invoke i8* @_ZN7cModule3parEPKc(i8* undef, i8* getelementptr ([10 x i8], [10 x i8]* @.str25183, i32 0, i32 0))
Dan Gohman7eaf50e2009-06-26 00:31:13 +000043 to label %invcont9 unwind label %lpad119 ; <i8*> [#uses=1]
44
45invcont9: ; preds = %bb8
46 %tmp1 = invoke i8* @_ZN4cPar11stringValueEv(i8* %tmp)
47 to label %invcont10 unwind label %lpad119 ; <i8*> [#uses=1]
48
49invcont10: ; preds = %invcont9
50 invoke void @_ZN8EtherBus8tokenizeEPKcRSt6vectorIdSaIdEE(i8* null, i8* %tmp1, i8* undef)
51 to label %invcont11 unwind label %lpad119
52
53invcont11: ; preds = %invcont10
54 br i1 undef, label %bb12, label %bb18
55
56bb12: ; preds = %invcont11
David Blaikie445e3fb2015-04-24 19:32:54 +000057 invoke void (i8*, i8*, ...) @_ZN6cEnvir6printfEPKcz(i8* null, i8* getelementptr ([3 x i8], [3 x i8]* @.str12, i32 0, i32 0), i32 undef)
Dan Gohman7eaf50e2009-06-26 00:31:13 +000058 to label %bb.i.i159 unwind label %lpad119
59
60bb.i.i159: ; preds = %bb12
61 unreachable
62
63bb18: ; preds = %invcont11
64 br i1 undef, label %bb32, label %bb34
65
66bb32: ; preds = %bb18
67 br i1 undef, label %bb.i.i123, label %bb34
68
69bb.i.i123: ; preds = %bb32
70 br label %bb34
71
72bb34: ; preds = %bb.i.i123, %bb32, %bb18
73 %tmp2 = invoke i8* @_Znaj(i32 undef)
74 to label %invcont35 unwind label %lpad119 ; <i8*> [#uses=0]
75
76invcont35: ; preds = %bb34
77 br i1 undef, label %bb49, label %bb61
78
79bb49: ; preds = %invcont35
David Blaikie445e3fb2015-04-24 19:32:54 +000080 invoke void (i8*, i8*, ...) @_ZNK13cSimpleModule5errorEPKcz(i8* undef, i8* getelementptr ([92 x i8], [92 x i8]* @.str32190, i32 0, i32 0))
Dan Gohman7eaf50e2009-06-26 00:31:13 +000081 to label %bb51 unwind label %lpad119
82
83bb51: ; preds = %bb49
84 unreachable
85
86bb61: ; preds = %invcont35
87 br label %bb106
88
89.noexc: ; preds = %bb106
David Blaikief72d05b2015-03-13 18:20:45 +000090 invoke void @_ZN7cObjectC2EPKc(i8* undef, i8* getelementptr ([25 x i8], [25 x i8]* @.str41, i32 0, i32 0))
Dan Gohman7eaf50e2009-06-26 00:31:13 +000091 to label %bb102 unwind label %lpad123
92
93bb102: ; preds = %.noexc
94 invoke void undef(i8* undef, i8 zeroext 1)
95 to label %invcont103 unwind label %lpad119
96
97invcont103: ; preds = %bb102
98 invoke void undef(i8* undef, double 1.000000e+07)
99 to label %invcont104 unwind label %lpad119
100
101invcont104: ; preds = %invcont103
David Blaikief72d05b2015-03-13 18:20:45 +0000102 %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)
Dan Gohman7eaf50e2009-06-26 00:31:13 +0000103 to label %invcont105 unwind label %lpad119 ; <i32> [#uses=0]
104
105invcont105: ; preds = %invcont104
106 br label %bb106
107
108bb106: ; preds = %invcont105, %bb61
109 %tmp4 = invoke i8* @_Znaj(i32 124)
110 to label %.noexc unwind label %lpad119 ; <i8*> [#uses=1]
111
112lpad: ; preds = %_ZN7cObjectnwEj.exit
David Majnemer7fddecc2015-06-17 20:52:32 +0000113 %exn = landingpad {i8*, i32}
Bill Wendling4aa25732011-09-02 22:41:11 +0000114 cleanup
Dan Gohman7eaf50e2009-06-26 00:31:13 +0000115 br label %Unwind
116
117lpad119: ; preds = %bb106, %invcont104, %invcont103, %bb102, %bb49, %bb34, %bb12, %invcont10, %invcont9, %bb8
David Majnemer7fddecc2015-06-17 20:52:32 +0000118 %exn119 = landingpad {i8*, i32}
Bill Wendling4aa25732011-09-02 22:41:11 +0000119 cleanup
Dan Gohman7eaf50e2009-06-26 00:31:13 +0000120 unreachable
121
122lpad123: ; preds = %.noexc
David Majnemer7fddecc2015-06-17 20:52:32 +0000123 %exn123 = landingpad {i8*, i32}
Bill Wendling4aa25732011-09-02 22:41:11 +0000124 cleanup
Dan Gohman7eaf50e2009-06-26 00:31:13 +0000125 %tmp5 = icmp eq i8* %tmp4, null ; <i1> [#uses=1]
126 br i1 %tmp5, label %Unwind, label %bb.i2
127
128bb.i2: ; preds = %lpad123
129 br label %Unwind
130
131Unwind: ; preds = %bb.i2, %lpad123, %lpad
132 unreachable
133}
134
Bill Wendling4aa25732011-09-02 22:41:11 +0000135declare i32 @__gxx_personality_v0(...)
136
Dan Gohman7eaf50e2009-06-26 00:31:13 +0000137declare void @_ZN8EtherBus8tokenizeEPKcRSt6vectorIdSaIdEE(i8* nocapture, i8*, i8*)
138
139declare i8* @_Znaj(i32)
140
141declare void @_ZN6cEnvir6printfEPKcz(i8* nocapture, i8* nocapture, ...)
142
143declare void @_ZNK13cSimpleModule5errorEPKcz(i8* nocapture, i8* nocapture, ...) noreturn
144
145declare i8* @_ZN7cModule3parEPKc(i8*, i8*)
146
147declare i32 @_ZN13cSimpleModule11sendDelayedEP8cMessagedPKci(i8*, i8*, double, i8*, i32)
148
149declare void @_ZN7cObjectC2EPKc(i8*, i8*)
150
151declare i8* @_ZN4cPar11stringValueEv(i8*)