; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (cggrqf)

; 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"

%struct.complex = type { float, float }

@c__1 = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @cggrqf_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #0 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  %40 = load ptr, ptr %17, align 8, !tbaa !5
  %41 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %41, ptr %25, align 4, !tbaa !9
  %42 = load i32, ptr %25, align 4, !tbaa !9
  %43 = mul nsw i32 %42, 1
  %44 = add nsw i32 1, %43
  store i32 %44, ptr %26, align 4, !tbaa !9
  %45 = load i32, ptr %26, align 4, !tbaa !9
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  %47 = sext i32 %45 to i64
  %48 = sub i64 0, %47
  %49 = getelementptr inbounds %struct.complex, ptr %46, i64 %48
  store ptr %49, ptr %16, align 8, !tbaa !5
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.complex, ptr %50, i32 -1
  store ptr %51, ptr %18, align 8, !tbaa !5
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !9
  store i32 %53, ptr %27, align 4, !tbaa !9
  %54 = load i32, ptr %27, align 4, !tbaa !9
  %55 = mul nsw i32 %54, 1
  %56 = add nsw i32 1, %55
  store i32 %56, ptr %28, align 4, !tbaa !9
  %57 = load i32, ptr %28, align 4, !tbaa !9
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = sext i32 %57 to i64
  %60 = sub i64 0, %59
  %61 = getelementptr inbounds %struct.complex, ptr %58, i64 %60
  store ptr %61, ptr %19, align 8, !tbaa !5
  %62 = load ptr, ptr %21, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.complex, ptr %62, i32 -1
  store ptr %63, ptr %21, align 8, !tbaa !5
  %64 = load ptr, ptr %22, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.complex, ptr %64, i32 -1
  store ptr %65, ptr %22, align 8, !tbaa !5
  %66 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 0, ptr %66, align 4, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %67, ptr noundef %68, ptr noundef @c_n1, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %69, ptr %34, align 4, !tbaa !9
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.2, ptr noundef @.str.1, ptr noundef %70, ptr noundef %71, ptr noundef @c_n1, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %72, ptr %35, align 4, !tbaa !9
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %76, ptr %36, align 4, !tbaa !9
  %77 = load i32, ptr %34, align 4, !tbaa !9
  %78 = load i32, ptr %35, align 4, !tbaa !9
  %79 = icmp sge i32 %77, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %12
  %81 = load i32, ptr %34, align 4, !tbaa !9
  br label %84

82:                                               ; preds = %12
  %83 = load i32, ptr %35, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %82, %80
  %85 = phi i32 [ %81, %80 ], [ %83, %82 ]
  store i32 %85, ptr %29, align 4, !tbaa !9
  %86 = load i32, ptr %29, align 4, !tbaa !9
  %87 = load i32, ptr %36, align 4, !tbaa !9
  %88 = icmp sge i32 %86, %87
  br i1 %88, label %89, label %91

89:                                               ; preds = %84
  %90 = load i32, ptr %29, align 4, !tbaa !9
  br label %93

91:                                               ; preds = %84
  %92 = load i32, ptr %36, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %91, %89
  %94 = phi i32 [ %90, %89 ], [ %92, %91 ]
  store i32 %94, ptr %33, align 4, !tbaa !9
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = icmp sge i32 %96, %98
  br i1 %99, label %100, label %103

100:                                              ; preds = %93
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  br label %106

103:                                              ; preds = %93
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %103, %100
  %107 = phi i32 [ %102, %100 ], [ %105, %103 ]
  store i32 %107, ptr %29, align 4, !tbaa !9
  %108 = load i32, ptr %29, align 4, !tbaa !9
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp sge i32 %108, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %106
  %113 = load i32, ptr %29, align 4, !tbaa !9
  br label %117

114:                                              ; preds = %106
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load i32, ptr %115, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %114, %112
  %118 = phi i32 [ %113, %112 ], [ %116, %114 ]
  %119 = load i32, ptr %33, align 4, !tbaa !9
  %120 = mul nsw i32 %118, %119
  store i32 %120, ptr %37, align 4, !tbaa !9
  %121 = load i32, ptr %37, align 4, !tbaa !9
  %122 = sitofp i32 %121 to float
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.complex, ptr %123, i64 1
  %125 = getelementptr inbounds %struct.complex, ptr %124, i32 0, i32 0
  store float %122, ptr %125, align 4, !tbaa !11
  %126 = load ptr, ptr %22, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.complex, ptr %126, i64 1
  %128 = getelementptr inbounds %struct.complex, ptr %127, i32 0, i32 1
  store float 0.000000e+00, ptr %128, align 4, !tbaa !14
  %129 = load ptr, ptr %23, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = icmp eq i32 %130, -1
  %132 = zext i1 %131 to i32
  store i32 %132, ptr %38, align 4, !tbaa !9
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = icmp slt i32 %134, 0
  br i1 %135, label %136, label %138

136:                                              ; preds = %117
  %137 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %137, align 4, !tbaa !9
  br label %225

138:                                              ; preds = %117
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = icmp slt i32 %140, 0
  br i1 %141, label %142, label %144

142:                                              ; preds = %138
  %143 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %143, align 4, !tbaa !9
  br label %224

144:                                              ; preds = %138
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = icmp slt i32 %146, 0
  br i1 %147, label %148, label %150

148:                                              ; preds = %144
  %149 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %149, align 4, !tbaa !9
  br label %223

150:                                              ; preds = %144
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = icmp sge i32 1, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %150
  br label %160

157:                                              ; preds = %150
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = load i32, ptr %158, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %157, %156
  %161 = phi i32 [ 1, %156 ], [ %159, %157 ]
  %162 = icmp slt i32 %152, %161
  br i1 %162, label %163, label %165

163:                                              ; preds = %160
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -5, ptr %164, align 4, !tbaa !9
  br label %222

165:                                              ; preds = %160
  %166 = load ptr, ptr %20, align 8, !tbaa !5
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = icmp sge i32 1, %169
  br i1 %170, label %171, label %172

171:                                              ; preds = %165
  br label %175

172:                                              ; preds = %165
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load i32, ptr %173, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %172, %171
  %176 = phi i32 [ 1, %171 ], [ %174, %172 ]
  %177 = icmp slt i32 %167, %176
  br i1 %177, label %178, label %180

178:                                              ; preds = %175
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -8, ptr %179, align 4, !tbaa !9
  br label %221

180:                                              ; preds = %175
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = icmp sge i32 1, %182
  br i1 %183, label %184, label %185

184:                                              ; preds = %180
  br label %188

185:                                              ; preds = %180
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %185, %184
  %189 = phi i32 [ 1, %184 ], [ %187, %185 ]
  store i32 %189, ptr %29, align 4, !tbaa !9
  %190 = load i32, ptr %29, align 4, !tbaa !9
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = icmp sge i32 %190, %192
  br i1 %193, label %194, label %196

194:                                              ; preds = %188
  %195 = load i32, ptr %29, align 4, !tbaa !9
  br label %199

196:                                              ; preds = %188
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = load i32, ptr %197, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %196, %194
  %200 = phi i32 [ %195, %194 ], [ %198, %196 ]
  store i32 %200, ptr %29, align 4, !tbaa !9
  %201 = load ptr, ptr %23, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = load i32, ptr %29, align 4, !tbaa !9
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = icmp sge i32 %203, %205
  br i1 %206, label %207, label %209

207:                                              ; preds = %199
  %208 = load i32, ptr %29, align 4, !tbaa !9
  br label %212

209:                                              ; preds = %199
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = load i32, ptr %210, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %209, %207
  %213 = phi i32 [ %208, %207 ], [ %211, %209 ]
  %214 = icmp slt i32 %202, %213
  br i1 %214, label %215, label %220

215:                                              ; preds = %212
  %216 = load i32, ptr %38, align 4, !tbaa !9
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %220, label %218

218:                                              ; preds = %215
  %219 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -11, ptr %219, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %218, %215, %212
  br label %221

221:                                              ; preds = %220, %178
  br label %222

222:                                              ; preds = %221, %163
  br label %223

223:                                              ; preds = %222, %148
  br label %224

224:                                              ; preds = %223, %142
  br label %225

225:                                              ; preds = %224, %136
  %226 = load ptr, ptr %24, align 8, !tbaa !5
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %234

229:                                              ; preds = %225
  %230 = load ptr, ptr %24, align 8, !tbaa !5
  %231 = load i32, ptr %230, align 4, !tbaa !9
  %232 = sub nsw i32 0, %231
  store i32 %232, ptr %29, align 4, !tbaa !9
  %233 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %29, i32 noundef 6)
  store i32 1, ptr %39, align 4
  br label %356

234:                                              ; preds = %225
  %235 = load i32, ptr %38, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %238

237:                                              ; preds = %234
  store i32 1, ptr %39, align 4
  br label %356

238:                                              ; preds = %234
  br label %239

239:                                              ; preds = %238
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = load ptr, ptr %15, align 8, !tbaa !5
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = load i32, ptr %26, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %struct.complex, ptr %242, i64 %244
  %246 = load ptr, ptr %17, align 8, !tbaa !5
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.complex, ptr %247, i64 1
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.complex, ptr %249, i64 1
  %251 = load ptr, ptr %23, align 8, !tbaa !5
  %252 = load ptr, ptr %24, align 8, !tbaa !5
  call void @cgerqf_(ptr noundef %240, ptr noundef %241, ptr noundef %245, ptr noundef %246, ptr noundef %248, ptr noundef %250, ptr noundef %251, ptr noundef %252)
  %253 = load ptr, ptr %22, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.complex, ptr %253, i64 1
  %255 = getelementptr inbounds %struct.complex, ptr %254, i32 0, i32 0
  %256 = load float, ptr %255, align 4, !tbaa !11
  %257 = fptosi float %256 to i32
  store i32 %257, ptr %32, align 4, !tbaa !9
  %258 = load ptr, ptr %13, align 8, !tbaa !5
  %259 = load i32, ptr %258, align 4, !tbaa !9
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %261 = load i32, ptr %260, align 4, !tbaa !9
  %262 = icmp sle i32 %259, %261
  br i1 %262, label %263, label %266

263:                                              ; preds = %239
  %264 = load ptr, ptr %13, align 8, !tbaa !5
  %265 = load i32, ptr %264, align 4, !tbaa !9
  br label %269

266:                                              ; preds = %239
  %267 = load ptr, ptr %15, align 8, !tbaa !5
  %268 = load i32, ptr %267, align 4, !tbaa !9
  br label %269

269:                                              ; preds = %266, %263
  %270 = phi i32 [ %265, %263 ], [ %268, %266 ]
  store i32 %270, ptr %29, align 4, !tbaa !9
  store i32 1, ptr %30, align 4, !tbaa !9
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = load i32, ptr %271, align 4, !tbaa !9
  %273 = load ptr, ptr %15, align 8, !tbaa !5
  %274 = load i32, ptr %273, align 4, !tbaa !9
  %275 = sub nsw i32 %272, %274
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %31, align 4, !tbaa !9
  %277 = load ptr, ptr %14, align 8, !tbaa !5
  %278 = load ptr, ptr %15, align 8, !tbaa !5
  %279 = load ptr, ptr %16, align 8, !tbaa !5
  %280 = load i32, ptr %30, align 4, !tbaa !9
  %281 = load i32, ptr %31, align 4, !tbaa !9
  %282 = icmp sge i32 %280, %281
  br i1 %282, label %283, label %285

283:                                              ; preds = %269
  %284 = load i32, ptr %30, align 4, !tbaa !9
  br label %287

285:                                              ; preds = %269
  %286 = load i32, ptr %31, align 4, !tbaa !9
  br label %287

287:                                              ; preds = %285, %283
  %288 = phi i32 [ %284, %283 ], [ %286, %285 ]
  %289 = load i32, ptr %25, align 4, !tbaa !9
  %290 = add nsw i32 %288, %289
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds %struct.complex, ptr %279, i64 %291
  %293 = load ptr, ptr %17, align 8, !tbaa !5
  %294 = load ptr, ptr %18, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.complex, ptr %294, i64 1
  %296 = load ptr, ptr %19, align 8, !tbaa !5
  %297 = load i32, ptr %28, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds %struct.complex, ptr %296, i64 %298
  %300 = load ptr, ptr %20, align 8, !tbaa !5
  %301 = load ptr, ptr %22, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.complex, ptr %301, i64 1
  %303 = load ptr, ptr %23, align 8, !tbaa !5
  %304 = load ptr, ptr %24, align 8, !tbaa !5
  call void @cunmrq_(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %277, ptr noundef %278, ptr noundef %29, ptr noundef %292, ptr noundef %293, ptr noundef %295, ptr noundef %299, ptr noundef %300, ptr noundef %302, ptr noundef %303, ptr noundef %304)
  %305 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %305, ptr %29, align 4, !tbaa !9
  %306 = load ptr, ptr %22, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.complex, ptr %306, i64 1
  %308 = getelementptr inbounds %struct.complex, ptr %307, i32 0, i32 0
  %309 = load float, ptr %308, align 4, !tbaa !11
  %310 = fptosi float %309 to i32
  store i32 %310, ptr %30, align 4, !tbaa !9
  %311 = load i32, ptr %29, align 4, !tbaa !9
  %312 = load i32, ptr %30, align 4, !tbaa !9
  %313 = icmp sge i32 %311, %312
  br i1 %313, label %314, label %316

314:                                              ; preds = %287
  %315 = load i32, ptr %29, align 4, !tbaa !9
  br label %318

316:                                              ; preds = %287
  %317 = load i32, ptr %30, align 4, !tbaa !9
  br label %318

318:                                              ; preds = %316, %314
  %319 = phi i32 [ %315, %314 ], [ %317, %316 ]
  store i32 %319, ptr %32, align 4, !tbaa !9
  %320 = load ptr, ptr %14, align 8, !tbaa !5
  %321 = load ptr, ptr %15, align 8, !tbaa !5
  %322 = load ptr, ptr %19, align 8, !tbaa !5
  %323 = load i32, ptr %28, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds %struct.complex, ptr %322, i64 %324
  %326 = load ptr, ptr %20, align 8, !tbaa !5
  %327 = load ptr, ptr %21, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.complex, ptr %327, i64 1
  %329 = load ptr, ptr %22, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.complex, ptr %329, i64 1
  %331 = load ptr, ptr %23, align 8, !tbaa !5
  %332 = load ptr, ptr %24, align 8, !tbaa !5
  call void @cgeqrf_(ptr noundef %320, ptr noundef %321, ptr noundef %325, ptr noundef %326, ptr noundef %328, ptr noundef %330, ptr noundef %331, ptr noundef %332)
  %333 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %333, ptr %30, align 4, !tbaa !9
  %334 = load ptr, ptr %22, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.complex, ptr %334, i64 1
  %336 = getelementptr inbounds %struct.complex, ptr %335, i32 0, i32 0
  %337 = load float, ptr %336, align 4, !tbaa !11
  %338 = fptosi float %337 to i32
  store i32 %338, ptr %31, align 4, !tbaa !9
  %339 = load i32, ptr %30, align 4, !tbaa !9
  %340 = load i32, ptr %31, align 4, !tbaa !9
  %341 = icmp sge i32 %339, %340
  br i1 %341, label %342, label %344

342:                                              ; preds = %318
  %343 = load i32, ptr %30, align 4, !tbaa !9
  br label %346

344:                                              ; preds = %318
  %345 = load i32, ptr %31, align 4, !tbaa !9
  br label %346

346:                                              ; preds = %344, %342
  %347 = phi i32 [ %343, %342 ], [ %345, %344 ]
  store i32 %347, ptr %29, align 4, !tbaa !9
  %348 = load i32, ptr %29, align 4, !tbaa !9
  %349 = sitofp i32 %348 to float
  %350 = load ptr, ptr %22, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.complex, ptr %350, i64 1
  %352 = getelementptr inbounds %struct.complex, ptr %351, i32 0, i32 0
  store float %349, ptr %352, align 4, !tbaa !11
  %353 = load ptr, ptr %22, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.complex, ptr %353, i64 1
  %355 = getelementptr inbounds %struct.complex, ptr %354, i32 0, i32 1
  store float 0.000000e+00, ptr %355, align 4, !tbaa !14
  store i32 1, ptr %39, align 4
  br label %356

356:                                              ; preds = %346, %237, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  ret void
}

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

declare i32 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

declare void @cgerqf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @cunmrq_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @cgeqrf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

attributes #0 = { nounwind 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 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}


; 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"

%struct.complex = type { float, float }

@c__1 = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @cggrqf_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #0 {
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %narrow = xor i32 %14, -1
  %15 = sext i32 %narrow to i64
  %16 = getelementptr inbounds %struct.complex, ptr %3, i64 %15
  store i32 0, ptr %11, align 4, !tbaa !5
  %17 = tail call i32 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, i32 noundef 6, i32 noundef 1) #4
  %18 = tail call i32 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, ptr noundef %1, ptr noundef %2, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, i32 noundef 6, i32 noundef 1) #4
  %19 = tail call i32 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef %0, ptr noundef %2, ptr noundef %1, ptr noundef nonnull @c_n1, i32 noundef 6, i32 noundef 1) #4
  %20 = tail call i32 @llvm.smax.i32(i32 %17, i32 %18)
  %21 = tail call i32 @llvm.smax.i32(i32 %20, i32 %19)
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr %0, align 4, !tbaa !5
  %. = tail call i32 @llvm.smax.i32(i32 %22, i32 %23)
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = tail call i32 @llvm.smax.i32(i32 %., i32 %24)
  %26 = mul nsw i32 %25, %21
  %27 = sitofp i32 %26 to float
  store float %27, ptr %9, align 4, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %9, i64 4
  store float 0.000000e+00, ptr %28, align 4, !tbaa !12
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = icmp eq i32 %29, -1
  %31 = icmp slt i32 %23, 0
  br i1 %31, label %.thread.sink.split, label %32

32:                                               ; preds = %12
  %33 = icmp slt i32 %24, 0
  br i1 %33, label %.thread.sink.split, label %34

34:                                               ; preds = %32
  %35 = icmp slt i32 %22, 0
  br i1 %35, label %.thread.sink.split, label %36

36:                                               ; preds = %34
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %23, i32 1)
  %38 = icmp slt i32 %37, %spec.select
  br i1 %38, label %.thread.sink.split, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %spec.select135 = tail call i32 @llvm.umax.i32(i32 %24, i32 1)
  %41 = icmp slt i32 %40, %spec.select135
  br i1 %41, label %.thread.sink.split, label %42

42:                                               ; preds = %39
  %43 = tail call i32 @llvm.umax.i32(i32 %spec.select, i32 %24)
  %44 = tail call i32 @llvm.umax.i32(i32 %43, i32 %22)
  %45 = icmp sge i32 %29, %44
  %or.cond = or i1 %45, %30
  br i1 %or.cond, label %46, label %.thread.sink.split

46:                                               ; preds = %42
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %.not131 = icmp eq i32 %.pr, 0
  br i1 %.not131, label %50, label %.thread

.thread.sink.split:                               ; preds = %42, %39, %36, %34, %32, %12
  %.sink = phi i32 [ -1, %12 ], [ -2, %32 ], [ -3, %34 ], [ -5, %36 ], [ -8, %39 ], [ -11, %42 ]
  store i32 %.sink, ptr %11, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %46
  %47 = phi i32 [ %.pr, %46 ], [ %.sink, %.thread.sink.split ]
  %48 = sub nsw i32 0, %47
  store i32 %48, ptr %13, align 4, !tbaa !5
  %49 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %13, i32 noundef 6) #4
  br label %70

50:                                               ; preds = %46
  br i1 %30, label %70, label %51

51:                                               ; preds = %50
  tail call void @cgerqf_(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %52 = load float, ptr %9, align 4, !tbaa !9
  %53 = fptosi float %52 to i32
  %54 = load i32, ptr %0, align 4, !tbaa !5
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %.137 = tail call i32 @llvm.smin.i32(i32 %54, i32 %55)
  store i32 %.137, ptr %13, align 4, !tbaa !5
  %56 = sub nsw i32 %54, %55
  %57 = add nsw i32 %56, 1
  %58 = icmp slt i32 %56, 1
  %59 = select i1 %58, i32 1, i32 %57
  %60 = add nsw i32 %59, %14
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.complex, ptr %16, i64 %61
  call void @cunmrq_(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %13, ptr noundef %62, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  store i32 %53, ptr %13, align 4, !tbaa !5
  %63 = load float, ptr %9, align 4, !tbaa !9
  %64 = fptosi float %63 to i32
  %65 = call i32 @llvm.smax.i32(i32 %53, i32 %64)
  call void @cgeqrf_(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %6, ptr noundef nonnull %7, ptr noundef %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %66 = load float, ptr %9, align 4, !tbaa !9
  %67 = fptosi float %66 to i32
  %68 = call i32 @llvm.smax.i32(i32 %65, i32 %67)
  %69 = sitofp i32 %68 to float
  store float %69, ptr %9, align 4, !tbaa !9
  store float 0.000000e+00, ptr %28, align 4, !tbaa !12
  br label %70

70:                                               ; preds = %50, %51, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  ret void
}

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

declare i32 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @cgerqf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @cunmrq_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @cgeqrf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

attributes #0 = { nounwind 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass