1; RUN: opt < %s -lcssa 2 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 12define void @_ZN8EtherBus10initializeEv() personality i32 (...)* @__gxx_personality_v0 { 13entry: 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 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 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 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 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 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 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 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 83bb51: ; preds = %bb49 84 unreachable 85 86bb61: ; 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 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 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 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 113 %exn = landingpad {i8*, i32} 114 cleanup 115 br label %Unwind 116 117lpad119: ; preds = %bb106, %invcont104, %invcont103, %bb102, %bb49, %bb34, %bb12, %invcont10, %invcont9, %bb8 118 %exn119 = landingpad {i8*, i32} 119 cleanup 120 unreachable 121 122lpad123: ; 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 128bb.i2: ; preds = %lpad123 129 br label %Unwind 130 131Unwind: ; preds = %bb.i2, %lpad123, %lpad 132 unreachable 133} 134 135declare i32 @__gxx_personality_v0(...) 136 137declare 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*) 152