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