; LLVM IR from ritikbanger/Hacktoberfest2022-DSA :: 01. Mathematics (polynomial multiplication)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = mul nsw i32 2, %23
  %25 = add nsw i32 %24, 1
  %26 = zext i32 %25 to i64
  %27 = call ptr @llvm.stacksave.p0()
  store ptr %27, ptr %4, align 8
  %28 = alloca i32, i64 %26, align 16
  store i64 %26, ptr %5, align 8
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = mul nsw i32 2, %29
  %31 = add nsw i32 %30, 1
  %32 = zext i32 %31 to i64
  %33 = alloca i32, i64 %32, align 16
  store i64 %32, ptr %6, align 8
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = mul nsw i32 2, %34
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = mul nsw i32 %35, %36
  %38 = add nsw i32 %37, 1
  %39 = zext i32 %38 to i64
  %40 = alloca i32, i64 %39, align 16
  store i64 %39, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %53, %0
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = mul nsw i32 2, %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = mul nsw i32 %44, %45
  %47 = icmp sle i32 %42, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %56

49:                                               ; preds = %41
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %40, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %49
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %8, align 4, !tbaa !5
  br label %41, !llvm.loop !9

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %9, align 4, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %69, %56
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = mul nsw i32 2, %60
  %62 = icmp sle i32 %59, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %72

64:                                               ; preds = %58
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i32, ptr %28, i64 %66
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %67)
  br label %69

69:                                               ; preds = %64
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %10, align 4, !tbaa !5
  br label %58, !llvm.loop !11

72:                                               ; preds = %63
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %85, %72
  %75 = load i32, ptr %11, align 4, !tbaa !5
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = mul nsw i32 2, %76
  %78 = icmp sle i32 %75, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %88

80:                                               ; preds = %74
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %33, i64 %82
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %83)
  br label %85

85:                                               ; preds = %80
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %11, align 4, !tbaa !5
  br label %74, !llvm.loop !12

88:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %136, %88
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = mul nsw i32 2, %91
  %93 = icmp sle i32 %90, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %89
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %139

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %132, %95
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = mul nsw i32 2, %98
  %100 = icmp sle i32 %97, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %96
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %135

102:                                              ; preds = %96
  %103 = load i32, ptr %12, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %28, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %33, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = add nsw i32 %106, %110
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %40, i64 %113
  store i32 %111, ptr %114, align 4, !tbaa !5
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %28, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %33, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = mul nsw i32 %119, %124
  %126 = load i32, ptr %9, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %40, i64 %128
  store i32 %125, ptr %129, align 4, !tbaa !5
  %130 = load i32, ptr %9, align 4, !tbaa !5
  %131 = add nsw i32 %130, 2
  store i32 %131, ptr %9, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %102
  %133 = load i32, ptr %14, align 4, !tbaa !5
  %134 = add nsw i32 %133, 2
  store i32 %134, ptr %14, align 4, !tbaa !5
  br label %96, !llvm.loop !13

135:                                              ; preds = %101
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = add nsw i32 %137, 2
  store i32 %138, ptr %12, align 4, !tbaa !5
  br label %89, !llvm.loop !14

139:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %199, %139
  %141 = load i32, ptr %15, align 4, !tbaa !5
  %142 = load i32, ptr %2, align 4, !tbaa !5
  %143 = mul nsw i32 2, %142
  %144 = load i32, ptr %3, align 4, !tbaa !5
  %145 = mul nsw i32 %143, %144
  %146 = icmp sle i32 %141, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %140
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %202

148:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %195, %148
  %150 = load i32, ptr %16, align 4, !tbaa !5
  %151 = load i32, ptr %2, align 4, !tbaa !5
  %152 = mul nsw i32 2, %151
  %153 = load i32, ptr %3, align 4, !tbaa !5
  %154 = mul nsw i32 %152, %153
  %155 = icmp sle i32 %150, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %149
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %198

157:                                              ; preds = %149
  %158 = load i32, ptr %15, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %40, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = load i32, ptr %16, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %40, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = icmp eq i32 %161, %165
  br i1 %166, label %167, label %194

167:                                              ; preds = %157
  %168 = load i32, ptr %16, align 4, !tbaa !5
  %169 = load i32, ptr %15, align 4, !tbaa !5
  %170 = icmp ne i32 %168, %169
  br i1 %170, label %171, label %194

171:                                              ; preds = %167
  %172 = load i32, ptr %15, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %40, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = load i32, ptr %16, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %40, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = add nsw i32 %176, %181
  %183 = load i32, ptr %15, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr %40, i64 %185
  store i32 %182, ptr %186, align 4, !tbaa !5
  %187 = load i32, ptr %16, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i32, ptr %40, i64 %188
  store i32 0, ptr %189, align 4, !tbaa !5
  %190 = load i32, ptr %16, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %40, i64 %192
  store i32 0, ptr %193, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %171, %167, %157
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %16, align 4, !tbaa !5
  %197 = add nsw i32 %196, 2
  store i32 %197, ptr %16, align 4, !tbaa !5
  br label %149, !llvm.loop !15

198:                                              ; preds = %156
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %15, align 4, !tbaa !5
  %201 = add nsw i32 %200, 2
  store i32 %201, ptr %15, align 4, !tbaa !5
  br label %140, !llvm.loop !16

202:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %222, %202
  %204 = load i32, ptr %18, align 4, !tbaa !5
  %205 = load i32, ptr %2, align 4, !tbaa !5
  %206 = mul nsw i32 2, %205
  %207 = load i32, ptr %3, align 4, !tbaa !5
  %208 = mul nsw i32 %206, %207
  %209 = icmp sle i32 %204, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %203
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %225

211:                                              ; preds = %203
  %212 = load i32, ptr %18, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds i32, ptr %40, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %221

218:                                              ; preds = %211
  %219 = load i32, ptr %17, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %17, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %218, %211
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %18, align 4, !tbaa !5
  %224 = add nsw i32 %223, 2
  store i32 %224, ptr %18, align 4, !tbaa !5
  br label %203, !llvm.loop !17

225:                                              ; preds = %210
  %226 = load i32, ptr %17, align 4, !tbaa !5
  %227 = getelementptr inbounds i32, ptr %40, i64 0
  store i32 %226, ptr %227, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %269, %225
  %229 = load i32, ptr %19, align 4, !tbaa !5
  %230 = load i32, ptr %2, align 4, !tbaa !5
  %231 = mul nsw i32 2, %230
  %232 = load i32, ptr %3, align 4, !tbaa !5
  %233 = mul nsw i32 %231, %232
  %234 = icmp sle i32 %229, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %228
  store i32 26, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %272

236:                                              ; preds = %228
  %237 = load i32, ptr %19, align 4, !tbaa !5
  %238 = load i32, ptr %2, align 4, !tbaa !5
  %239 = mul nsw i32 2, %238
  %240 = load i32, ptr %3, align 4, !tbaa !5
  %241 = mul nsw i32 %239, %240
  %242 = icmp ne i32 %237, %241
  br i1 %242, label %243, label %262

243:                                              ; preds = %236
  %244 = load i32, ptr %19, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds i32, ptr %40, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = icmp eq i32 %247, 0
  %249 = zext i1 %248 to i32
  %250 = load i32, ptr %19, align 4, !tbaa !5
  %251 = add nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds i32, ptr %40, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = icmp eq i32 %254, 0
  %256 = zext i1 %255 to i32
  %257 = and i32 %249, %256
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %262

259:                                              ; preds = %243
  %260 = load i32, ptr %19, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %19, align 4, !tbaa !5
  br label %269

262:                                              ; preds = %243, %236
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %264 = load i32, ptr %19, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds i32, ptr %40, i64 %265
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %263, i32 noundef %267)
  br label %269

269:                                              ; preds = %262, %259
  %270 = load i32, ptr %19, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %19, align 4, !tbaa !5
  br label %228, !llvm.loop !18

272:                                              ; preds = %235
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %273 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %273)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %274 = load i32, ptr %1, align 4
  ret i32 %274
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = shl nsw i32 %6, 1
  %8 = or disjoint i32 %7, 1
  %9 = zext i32 %8 to i64
  %10 = call ptr @llvm.stacksave.p0()
  %11 = alloca i32, i64 %9, align 16
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = shl nsw i32 %12, 1
  %14 = or disjoint i32 %13, 1
  %15 = zext i32 %14 to i64
  %16 = alloca i32, i64 %15, align 16
  %17 = load i32, ptr %1, align 4, !tbaa !5
  %18 = shl nsw i32 %17, 1
  %19 = mul nsw i32 %18, %12
  %20 = or disjoint i32 %19, 1
  %21 = zext i32 %20 to i64
  %22 = alloca i32, i64 %21, align 16
  %.not77 = icmp slt i32 %19, 0
  br i1 %.not77, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %23 = zext nneg i32 %19 to i64
  %24 = shl nuw nsw i64 %23, 2
  %25 = or disjoint i64 %24, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %22, i8 0, i64 %25, i1 false), !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %0
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %.not5979 = icmp slt i32 %27, 0
  br i1 %.not5979, label %._crit_edge83, label %.lr.ph82

._crit_edge83:                                    ; preds = %.lr.ph82, %._crit_edge
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = shl nsw i32 %29, 1
  %.not6084 = icmp slt i32 %29, 0
  br i1 %.not6084, label %.preheader73, label %.lr.ph87

.lr.ph82:                                         ; preds = %._crit_edge, %.lr.ph82
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph82 ], [ 0, %._crit_edge ]
  %31 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = shl nsw i32 %33, 1
  %35 = sext i32 %34 to i64
  %.not59.not = icmp slt i64 %indvars.iv, %35
  br i1 %.not59.not, label %.lr.ph82, label %._crit_edge83, !llvm.loop !9

.preheader73:                                     ; preds = %.lr.ph87, %._crit_edge83
  %36 = phi i32 [ %29, %._crit_edge83 ], [ %49, %.lr.ph87 ]
  %.lcssa75 = phi i32 [ %30, %._crit_edge83 ], [ %50, %.lr.ph87 ]
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = shl nsw i32 %37, 1
  %.not6195 = icmp slt i32 %37, 1
  %.not6989 = icmp slt i32 %.lcssa75, 1
  %or.cond149 = select i1 %.not6195, i1 true, i1 %.not6989
  br i1 %or.cond149, label %.preheader71, label %.preheader72.preheader

.preheader72.preheader:                           ; preds = %.preheader73
  %39 = zext nneg i32 %.lcssa75 to i64
  %40 = zext nneg i32 %38 to i64
  %41 = or disjoint i64 %39, 1
  %umax = call i64 @llvm.umax.i64(i64 %41, i64 3)
  %42 = add nsw i64 %umax, -2
  %43 = lshr i64 %42, 1
  %44 = add nuw nsw i64 %43, 1
  %min.iters.check = icmp eq i64 %42, 1
  %n.vec = and i64 %44, 9223372036854775806
  %45 = shl nuw i64 %n.vec, 1
  %46 = shl nuw i64 %n.vec, 1
  %ind.end151 = or disjoint i64 %46, 1
  %cmp.n = icmp eq i64 %44, %n.vec
  br label %.preheader72

.lr.ph87:                                         ; preds = %._crit_edge83, %.lr.ph87
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %.lr.ph87 ], [ 0, %._crit_edge83 ]
  %47 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv123
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = shl nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %.not60.not = icmp slt i64 %indvars.iv123, %51
  br i1 %.not60.not, label %.lr.ph87, label %.preheader73, !llvm.loop !11

.preheader72:                                     ; preds = %.preheader72.preheader, %._crit_edge93
  %indvars.iv133 = phi i64 [ 1, %.preheader72.preheader ], [ %indvars.iv.next134, %._crit_edge93 ]
  %.05596 = phi i64 [ 1, %.preheader72.preheader ], [ %indvars.iv.next129.lcssa, %._crit_edge93 ]
  %52 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv133
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %52, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %sext = shl i64 %.05596, 32
  %56 = ashr exact i64 %sext, 32
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader72
  %indvars.iv128.ph = phi i64 [ %56, %.preheader72 ], [ %ind.end, %middle.block ]
  %indvars.iv126.ph = phi i64 [ 1, %.preheader72 ], [ %ind.end151, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader72
  %ind.end = add i64 %56, %45
  %broadcast.splatinsert = insertelement <2 x i32> poison, i32 %53, i64 0
  %broadcast.splat = shufflevector <2 x i32> %broadcast.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert155 = insertelement <2 x i32> poison, i32 %55, i64 0
  %broadcast.splat156 = shufflevector <2 x i32> %broadcast.splatinsert155, <2 x i32> poison, <2 x i32> zeroinitializer
  %57 = getelementptr i32, ptr %22, i64 %56
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %58 = shl i64 %index, 1
  %offset.idx153 = or disjoint i64 %58, 1
  %59 = getelementptr inbounds i32, ptr %16, i64 %offset.idx153
  %wide.vec = load <4 x i32>, ptr %59, align 4, !tbaa !5
  %strided.vec = shufflevector <4 x i32> %wide.vec, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec154 = shufflevector <4 x i32> %wide.vec, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
  %60 = add nsw <2 x i32> %strided.vec, %broadcast.splat
  %.idx = shl i64 %index, 3
  %61 = getelementptr i8, ptr %57, i64 %.idx
  %62 = mul nsw <2 x i32> %strided.vec154, %broadcast.splat156
  %interleaved.vec = shufflevector <2 x i32> %60, <2 x i32> %62, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec, ptr %61, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %63 = icmp eq i64 %index.next, %n.vec
  br i1 %63, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge93, label %scalar.ph.preheader

.preheader71:                                     ; preds = %._crit_edge93, %.preheader73
  %64 = mul nsw i32 %38, %36
  %.not62103 = icmp slt i32 %64, 1
  br i1 %.not62103, label %._crit_edge111, label %.preheader70.preheader

.preheader70.preheader:                           ; preds = %.preheader71
  %65 = zext nneg i32 %64 to i64
  br label %.preheader70

._crit_edge93:                                    ; preds = %scalar.ph, %middle.block
  %indvars.iv.next129.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next129, %scalar.ph ]
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 2
  %.not61 = icmp ugt i64 %indvars.iv.next134, %40
  br i1 %.not61, label %.preheader71, label %.preheader72, !llvm.loop !15

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %scalar.ph ], [ %indvars.iv128.ph, %scalar.ph.preheader ]
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %scalar.ph ], [ %indvars.iv126.ph, %scalar.ph.preheader ]
  %66 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv126
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %67, %53
  %69 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv128
  store i32 %68, ptr %69, align 4, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %66, i64 4
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = mul nsw i32 %71, %55
  %73 = getelementptr i8, ptr %69, i64 4
  store i32 %72, ptr %73, align 4, !tbaa !5
  %indvars.iv.next129 = add nsw i64 %indvars.iv128, 2
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 2
  %.not69 = icmp ugt i64 %indvars.iv.next127, %39
  br i1 %.not69, label %._crit_edge93, label %scalar.ph, !llvm.loop !16

.preheader70:                                     ; preds = %.preheader70.preheader, %._crit_edge102
  %indvars.iv139 = phi i64 [ 1, %.preheader70.preheader ], [ %indvars.iv.next140, %._crit_edge102 ]
  %74 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv139
  %75 = getelementptr inbounds i8, ptr %74, i64 4
  br label %96

.preheader:                                       ; preds = %._crit_edge102
  %invariant.gep = getelementptr inbounds i8, ptr %22, i64 4
  br i1 %.not62103, label %._crit_edge111, label %.lr.ph110.preheader

.lr.ph110.preheader:                              ; preds = %.preheader
  %76 = zext nneg i32 %64 to i64
  %77 = or disjoint i64 %65, 1
  %umax157 = call i64 @llvm.umax.i64(i64 %77, i64 3)
  %78 = add nsw i64 %umax157, -2
  %min.iters.check160 = icmp ult i64 %78, 16
  br i1 %min.iters.check160, label %.lr.ph110.preheader175, label %vector.ph161

.lr.ph110.preheader175:                           ; preds = %middle.block158, %.lr.ph110.preheader
  %indvars.iv142.ph = phi i64 [ 1, %.lr.ph110.preheader ], [ %ind.end164, %middle.block158 ]
  %.047108.ph = phi i32 [ 0, %.lr.ph110.preheader ], [ %95, %middle.block158 ]
  br label %.lr.ph110

vector.ph161:                                     ; preds = %.lr.ph110.preheader
  %79 = lshr i64 %78, 1
  %80 = add nuw nsw i64 %79, 1
  %n.mod.vf162 = and i64 %80, 7
  %81 = icmp eq i64 %n.mod.vf162, 0
  %82 = select i1 %81, i64 8, i64 %n.mod.vf162
  %n.vec163 = sub nsw i64 %80, %82
  %83 = shl i64 %n.vec163, 1
  %ind.end164 = or disjoint i64 %83, 1
  br label %vector.body166

vector.body166:                                   ; preds = %vector.body166, %vector.ph161
  %index167 = phi i64 [ 0, %vector.ph161 ], [ %index.next174, %vector.body166 ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph161 ], [ %92, %vector.body166 ]
  %vec.phi168 = phi <4 x i32> [ zeroinitializer, %vector.ph161 ], [ %93, %vector.body166 ]
  %84 = shl i64 %index167, 1
  %offset.idx169 = or disjoint i64 %84, 1
  %85 = or disjoint i64 %84, 9
  %86 = getelementptr inbounds i32, ptr %invariant.gep, i64 %offset.idx169
  %87 = getelementptr inbounds i32, ptr %invariant.gep, i64 %85
  %wide.vec170 = load <8 x i32>, ptr %86, align 8, !tbaa !5
  %wide.vec171 = load <8 x i32>, ptr %87, align 8, !tbaa !5
  %strided.vec172 = shufflevector <8 x i32> %wide.vec170, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec173 = shufflevector <8 x i32> %wide.vec171, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %88 = icmp ne <4 x i32> %strided.vec172, zeroinitializer
  %89 = icmp ne <4 x i32> %strided.vec173, zeroinitializer
  %90 = zext <4 x i1> %88 to <4 x i32>
  %91 = zext <4 x i1> %89 to <4 x i32>
  %92 = add <4 x i32> %vec.phi, %90
  %93 = add <4 x i32> %vec.phi168, %91
  %index.next174 = add nuw i64 %index167, 8
  %94 = icmp eq i64 %index.next174, %n.vec163
  br i1 %94, label %middle.block158, label %vector.body166, !llvm.loop !17

middle.block158:                                  ; preds = %vector.body166
  %bin.rdx = add <4 x i32> %93, %92
  %95 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br label %.lr.ph110.preheader175

._crit_edge102:                                   ; preds = %106
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 2
  %.not62 = icmp ugt i64 %indvars.iv.next140, %65
  br i1 %.not62, label %.preheader, label %.preheader70, !llvm.loop !18

96:                                               ; preds = %.preheader70, %106
  %indvars.iv136 = phi i64 [ 1, %.preheader70 ], [ %indvars.iv.next137, %106 ]
  %97 = load i32, ptr %74, align 4, !tbaa !5
  %98 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv136
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = icmp ne i32 %97, %99
  %.not68 = icmp eq i64 %indvars.iv136, %indvars.iv139
  %or.cond = or i1 %.not68, %100
  br i1 %or.cond, label %106, label %101

101:                                              ; preds = %96
  %102 = load i32, ptr %75, align 4, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %98, i64 4
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = add nsw i32 %104, %102
  store i32 %105, ptr %75, align 4, !tbaa !5
  store i32 0, ptr %98, align 4, !tbaa !5
  store i32 0, ptr %103, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %96, %101
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 2
  %.not67 = icmp ugt i64 %indvars.iv.next137, %65
  br i1 %.not67, label %._crit_edge102, label %96, !llvm.loop !19

._crit_edge111:                                   ; preds = %.lr.ph110, %.preheader71, %.preheader
  %.047.lcssa = phi i32 [ 0, %.preheader ], [ 0, %.preheader71 ], [ %spec.select, %.lr.ph110 ]
  store i32 %.047.lcssa, ptr %22, align 16, !tbaa !5
  %.not64113 = icmp slt i32 %64, 0
  br i1 %.not64113, label %._crit_edge117, label %.lr.ph116

.lr.ph110:                                        ; preds = %.lr.ph110.preheader175, %.lr.ph110
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %.lr.ph110 ], [ %indvars.iv142.ph, %.lr.ph110.preheader175 ]
  %.047108 = phi i32 [ %spec.select, %.lr.ph110 ], [ %.047108.ph, %.lr.ph110.preheader175 ]
  %gep = getelementptr inbounds i32, ptr %invariant.gep, i64 %indvars.iv142
  %107 = load i32, ptr %gep, align 4, !tbaa !5
  %.not66 = icmp ne i32 %107, 0
  %108 = zext i1 %.not66 to i32
  %spec.select = add nuw nsw i32 %.047108, %108
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 2
  %.not63 = icmp ugt i64 %indvars.iv.next143, %76
  br i1 %.not63, label %._crit_edge111, label %.lr.ph110, !llvm.loop !20

._crit_edge117:                                   ; preds = %125, %._crit_edge111
  call void @llvm.stackrestore.p0(ptr %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph116:                                        ; preds = %._crit_edge111, %125
  %109 = phi i32 [ %126, %125 ], [ %36, %._crit_edge111 ]
  %110 = phi i32 [ %127, %125 ], [ %37, %._crit_edge111 ]
  %111 = phi i32 [ %130, %125 ], [ %64, %._crit_edge111 ]
  %.0114 = phi i32 [ %128, %125 ], [ 0, %._crit_edge111 ]
  %.not65 = icmp eq i32 %.0114, %111
  %.pre146 = sext i32 %.0114 to i64
  br i1 %.not65, label %.lr.ph116._crit_edge, label %112

112:                                              ; preds = %.lr.ph116
  %113 = getelementptr inbounds i32, ptr %22, i64 %.pre146
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = add nsw i32 %.0114, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i32, ptr %22, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = or i32 %118, %114
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %125, label %.lr.ph116._crit_edge

.lr.ph116._crit_edge:                             ; preds = %.lr.ph116, %112
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %122 = getelementptr inbounds i32, ptr %22, i64 %.pre146
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %121, i32 noundef %123)
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  %.pre145 = load i32, ptr %2, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %112, %.lr.ph116._crit_edge
  %126 = phi i32 [ %.pre145, %.lr.ph116._crit_edge ], [ %109, %112 ]
  %127 = phi i32 [ %.pre, %.lr.ph116._crit_edge ], [ %110, %112 ]
  %.1 = phi i32 [ %.0114, %.lr.ph116._crit_edge ], [ %115, %112 ]
  %128 = add nsw i32 %.1, 1
  %129 = shl nsw i32 %127, 1
  %130 = mul nsw i32 %129, %126
  %.not64.not = icmp slt i32 %.1, %130
  br i1 %.not64.not, label %.lr.ph116, label %._crit_edge117, !llvm.loop !21
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !14, !13}
!17 = distinct !{!17, !10, !13, !14}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10, !14, !13}
!21 = distinct !{!21, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass