; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (cggqrf)

; 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 i64, align 8
@.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 i64, align 8
@.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 [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

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

77:                                               ; preds = %12
  %78 = load i64, ptr %34, align 8, !tbaa !9
  br label %81

79:                                               ; preds = %12
  %80 = load i64, ptr %35, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %79, %77
  %82 = phi i64 [ %78, %77 ], [ %80, %79 ]
  store i64 %82, ptr %30, align 8, !tbaa !9
  %83 = load i64, ptr %30, align 8, !tbaa !9
  %84 = load i64, ptr %36, align 8, !tbaa !9
  %85 = icmp sge i64 %83, %84
  br i1 %85, label %86, label %88

86:                                               ; preds = %81
  %87 = load i64, ptr %30, align 8, !tbaa !9
  br label %90

88:                                               ; preds = %81
  %89 = load i64, ptr %36, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %88, %86
  %91 = phi i64 [ %87, %86 ], [ %89, %88 ]
  store i64 %91, ptr %33, align 8, !tbaa !9
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = icmp sge i64 %93, %95
  br i1 %96, label %97, label %100

97:                                               ; preds = %90
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load i64, ptr %98, align 8, !tbaa !9
  br label %103

100:                                              ; preds = %90
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = load i64, ptr %101, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %100, %97
  %104 = phi i64 [ %99, %97 ], [ %102, %100 ]
  store i64 %104, ptr %30, align 8, !tbaa !9
  %105 = load i64, ptr %30, align 8, !tbaa !9
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = icmp sge i64 %105, %107
  br i1 %108, label %109, label %111

109:                                              ; preds = %103
  %110 = load i64, ptr %30, align 8, !tbaa !9
  br label %114

111:                                              ; preds = %103
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  br label %114

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

134:                                              ; preds = %114
  %135 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -1, ptr %135, align 8, !tbaa !9
  br label %223

136:                                              ; preds = %114
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = icmp slt i64 %138, 0
  br i1 %139, label %140, label %142

140:                                              ; preds = %136
  %141 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -2, ptr %141, align 8, !tbaa !9
  br label %222

142:                                              ; preds = %136
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = icmp slt i64 %144, 0
  br i1 %145, label %146, label %148

146:                                              ; preds = %142
  %147 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -3, ptr %147, align 8, !tbaa !9
  br label %221

148:                                              ; preds = %142
  %149 = load ptr, ptr %18, align 8, !tbaa !5
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = load i64, ptr %151, align 8, !tbaa !9
  %153 = icmp sge i64 1, %152
  br i1 %153, label %154, label %155

154:                                              ; preds = %148
  br label %158

155:                                              ; preds = %148
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = load i64, ptr %156, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %155, %154
  %159 = phi i64 [ 1, %154 ], [ %157, %155 ]
  %160 = icmp slt i64 %150, %159
  br i1 %160, label %161, label %163

161:                                              ; preds = %158
  %162 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -5, ptr %162, align 8, !tbaa !9
  br label %220

163:                                              ; preds = %158
  %164 = load ptr, ptr %21, align 8, !tbaa !5
  %165 = load i64, ptr %164, align 8, !tbaa !9
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = load i64, ptr %166, align 8, !tbaa !9
  %168 = icmp sge i64 1, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %163
  br label %173

170:                                              ; preds = %163
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = load i64, ptr %171, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %170, %169
  %174 = phi i64 [ 1, %169 ], [ %172, %170 ]
  %175 = icmp slt i64 %165, %174
  br i1 %175, label %176, label %178

176:                                              ; preds = %173
  %177 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -8, ptr %177, align 8, !tbaa !9
  br label %219

178:                                              ; preds = %173
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = icmp sge i64 1, %180
  br i1 %181, label %182, label %183

182:                                              ; preds = %178
  br label %186

183:                                              ; preds = %178
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = load i64, ptr %184, align 8, !tbaa !9
  br label %186

186:                                              ; preds = %183, %182
  %187 = phi i64 [ 1, %182 ], [ %185, %183 ]
  store i64 %187, ptr %30, align 8, !tbaa !9
  %188 = load i64, ptr %30, align 8, !tbaa !9
  %189 = load ptr, ptr %15, align 8, !tbaa !5
  %190 = load i64, ptr %189, align 8, !tbaa !9
  %191 = icmp sge i64 %188, %190
  br i1 %191, label %192, label %194

192:                                              ; preds = %186
  %193 = load i64, ptr %30, align 8, !tbaa !9
  br label %197

194:                                              ; preds = %186
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = load i64, ptr %195, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %194, %192
  %198 = phi i64 [ %193, %192 ], [ %196, %194 ]
  store i64 %198, ptr %30, align 8, !tbaa !9
  %199 = load ptr, ptr %24, align 8, !tbaa !5
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = load i64, ptr %30, align 8, !tbaa !9
  %202 = load ptr, ptr %16, align 8, !tbaa !5
  %203 = load i64, ptr %202, align 8, !tbaa !9
  %204 = icmp sge i64 %201, %203
  br i1 %204, label %205, label %207

205:                                              ; preds = %197
  %206 = load i64, ptr %30, align 8, !tbaa !9
  br label %210

207:                                              ; preds = %197
  %208 = load ptr, ptr %16, align 8, !tbaa !5
  %209 = load i64, ptr %208, align 8, !tbaa !9
  br label %210

210:                                              ; preds = %207, %205
  %211 = phi i64 [ %206, %205 ], [ %209, %207 ]
  %212 = icmp slt i64 %200, %211
  br i1 %212, label %213, label %218

213:                                              ; preds = %210
  %214 = load i64, ptr %39, align 8, !tbaa !9
  %215 = icmp ne i64 %214, 0
  br i1 %215, label %218, label %216

216:                                              ; preds = %213
  %217 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -11, ptr %217, align 8, !tbaa !9
  br label %218

218:                                              ; preds = %216, %213, %210
  br label %219

219:                                              ; preds = %218, %176
  br label %220

220:                                              ; preds = %219, %161
  br label %221

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

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

223:                                              ; preds = %222, %134
  %224 = load ptr, ptr %25, align 8, !tbaa !5
  %225 = load i64, ptr %224, align 8, !tbaa !9
  %226 = icmp ne i64 %225, 0
  br i1 %226, label %227, label %232

227:                                              ; preds = %223
  %228 = load ptr, ptr %25, align 8, !tbaa !5
  %229 = load i64, ptr %228, align 8, !tbaa !9
  %230 = sub nsw i64 0, %229
  store i64 %230, ptr %30, align 8, !tbaa !9
  %231 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %30)
  store i32 0, ptr %13, align 4
  store i32 1, ptr %40, align 4
  br label %337

232:                                              ; preds = %223
  %233 = load i64, ptr %39, align 8, !tbaa !9
  %234 = icmp ne i64 %233, 0
  br i1 %234, label %235, label %236

235:                                              ; preds = %232
  store i32 0, ptr %13, align 4
  store i32 1, ptr %40, align 4
  br label %337

236:                                              ; preds = %232
  br label %237

237:                                              ; preds = %236
  %238 = load ptr, ptr %14, align 8, !tbaa !5
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = load ptr, ptr %17, align 8, !tbaa !5
  %241 = load i64, ptr %27, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.complex, ptr %240, i64 %241
  %243 = load ptr, ptr %18, align 8, !tbaa !5
  %244 = load ptr, ptr %19, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.complex, ptr %244, i64 1
  %246 = load ptr, ptr %23, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.complex, ptr %246, i64 1
  %248 = load ptr, ptr %24, align 8, !tbaa !5
  %249 = load ptr, ptr %25, align 8, !tbaa !5
  %250 = call i32 @cgeqrf_(ptr noundef %238, ptr noundef %239, ptr noundef %242, ptr noundef %243, ptr noundef %245, ptr noundef %247, ptr noundef %248, ptr noundef %249)
  %251 = load ptr, ptr %23, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.complex, ptr %251, i64 1
  %253 = getelementptr inbounds %struct.complex, ptr %252, i32 0, i32 0
  %254 = load float, ptr %253, align 4, !tbaa !11
  %255 = fptosi float %254 to i64
  store i64 %255, ptr %37, align 8, !tbaa !9
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = load i64, ptr %256, align 8, !tbaa !9
  %258 = load ptr, ptr %15, align 8, !tbaa !5
  %259 = load i64, ptr %258, align 8, !tbaa !9
  %260 = icmp sle i64 %257, %259
  br i1 %260, label %261, label %264

261:                                              ; preds = %237
  %262 = load ptr, ptr %14, align 8, !tbaa !5
  %263 = load i64, ptr %262, align 8, !tbaa !9
  br label %267

264:                                              ; preds = %237
  %265 = load ptr, ptr %15, align 8, !tbaa !5
  %266 = load i64, ptr %265, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %264, %261
  %268 = phi i64 [ %263, %261 ], [ %266, %264 ]
  store i64 %268, ptr %30, align 8, !tbaa !9
  %269 = load ptr, ptr %14, align 8, !tbaa !5
  %270 = load ptr, ptr %16, align 8, !tbaa !5
  %271 = load ptr, ptr %17, align 8, !tbaa !5
  %272 = load i64, ptr %27, align 8, !tbaa !9
  %273 = getelementptr inbounds %struct.complex, ptr %271, i64 %272
  %274 = load ptr, ptr %18, align 8, !tbaa !5
  %275 = load ptr, ptr %19, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.complex, ptr %275, i64 1
  %277 = load ptr, ptr %20, align 8, !tbaa !5
  %278 = load i64, ptr %29, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.complex, ptr %277, i64 %278
  %280 = load ptr, ptr %21, align 8, !tbaa !5
  %281 = load ptr, ptr %23, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.complex, ptr %281, i64 1
  %283 = load ptr, ptr %24, align 8, !tbaa !5
  %284 = load ptr, ptr %25, align 8, !tbaa !5
  %285 = call i32 @cunmqr_(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %269, ptr noundef %270, ptr noundef %30, ptr noundef %273, ptr noundef %274, ptr noundef %276, ptr noundef %279, ptr noundef %280, ptr noundef %282, ptr noundef %283, ptr noundef %284)
  %286 = load i64, ptr %37, align 8, !tbaa !9
  store i64 %286, ptr %30, align 8, !tbaa !9
  %287 = load ptr, ptr %23, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.complex, ptr %287, i64 1
  %289 = getelementptr inbounds %struct.complex, ptr %288, i32 0, i32 0
  %290 = load float, ptr %289, align 4, !tbaa !11
  %291 = fptosi float %290 to i64
  store i64 %291, ptr %31, align 8, !tbaa !9
  %292 = load i64, ptr %30, align 8, !tbaa !9
  %293 = load i64, ptr %31, align 8, !tbaa !9
  %294 = icmp sge i64 %292, %293
  br i1 %294, label %295, label %297

295:                                              ; preds = %267
  %296 = load i64, ptr %30, align 8, !tbaa !9
  br label %299

297:                                              ; preds = %267
  %298 = load i64, ptr %31, align 8, !tbaa !9
  br label %299

299:                                              ; preds = %297, %295
  %300 = phi i64 [ %296, %295 ], [ %298, %297 ]
  store i64 %300, ptr %37, align 8, !tbaa !9
  %301 = load ptr, ptr %14, align 8, !tbaa !5
  %302 = load ptr, ptr %16, align 8, !tbaa !5
  %303 = load ptr, ptr %20, align 8, !tbaa !5
  %304 = load i64, ptr %29, align 8, !tbaa !9
  %305 = getelementptr inbounds %struct.complex, ptr %303, i64 %304
  %306 = load ptr, ptr %21, align 8, !tbaa !5
  %307 = load ptr, ptr %22, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.complex, ptr %307, i64 1
  %309 = load ptr, ptr %23, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.complex, ptr %309, i64 1
  %311 = load ptr, ptr %24, align 8, !tbaa !5
  %312 = load ptr, ptr %25, align 8, !tbaa !5
  %313 = call i32 @cgerqf_(ptr noundef %301, ptr noundef %302, ptr noundef %305, ptr noundef %306, ptr noundef %308, ptr noundef %310, ptr noundef %311, ptr noundef %312)
  %314 = load i64, ptr %37, align 8, !tbaa !9
  store i64 %314, ptr %31, align 8, !tbaa !9
  %315 = load ptr, ptr %23, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.complex, ptr %315, i64 1
  %317 = getelementptr inbounds %struct.complex, ptr %316, i32 0, i32 0
  %318 = load float, ptr %317, align 4, !tbaa !11
  %319 = fptosi float %318 to i64
  store i64 %319, ptr %32, align 8, !tbaa !9
  %320 = load i64, ptr %31, align 8, !tbaa !9
  %321 = load i64, ptr %32, align 8, !tbaa !9
  %322 = icmp sge i64 %320, %321
  br i1 %322, label %323, label %325

323:                                              ; preds = %299
  %324 = load i64, ptr %31, align 8, !tbaa !9
  br label %327

325:                                              ; preds = %299
  %326 = load i64, ptr %32, align 8, !tbaa !9
  br label %327

327:                                              ; preds = %325, %323
  %328 = phi i64 [ %324, %323 ], [ %326, %325 ]
  store i64 %328, ptr %30, align 8, !tbaa !9
  %329 = load i64, ptr %30, align 8, !tbaa !9
  %330 = sitofp i64 %329 to float
  %331 = load ptr, ptr %23, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.complex, ptr %331, i64 1
  %333 = getelementptr inbounds %struct.complex, ptr %332, i32 0, i32 0
  store float %330, ptr %333, align 4, !tbaa !11
  %334 = load ptr, ptr %23, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.complex, ptr %334, i64 1
  %336 = getelementptr inbounds %struct.complex, ptr %335, i32 0, i32 1
  store float 0.000000e+00, ptr %336, align 4, !tbaa !14
  store i32 0, ptr %13, align 4
  store i32 1, ptr %40, align 4
  br label %337

337:                                              ; preds = %327, %235, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  %338 = load i32, ptr %13, align 4
  ret i32 %338
}

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

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

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

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

declare i32 @cunmqr_(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 i32 @cgerqf_(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 = !{!"long", !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"

@c__1 = external hidden global i64, align 8
@.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 i64, align 8
@.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 [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

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

29:                                               ; preds = %12
  %30 = icmp slt i64 %20, 0
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %29
  %32 = icmp slt i64 %21, 0
  br i1 %32, label %.thread.sink.split, label %33

33:                                               ; preds = %31
  %34 = load i64, ptr %4, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %19, i64 1)
  %35 = icmp slt i64 %34, %spec.select
  br i1 %35, label %.thread.sink.split, label %36

36:                                               ; preds = %33
  %37 = load i64, ptr %7, align 8, !tbaa !5
  %38 = icmp slt i64 %37, %spec.select
  br i1 %38, label %.thread.sink.split, label %39

39:                                               ; preds = %36
  %40 = tail call i64 @llvm.umax.i64(i64 %spec.select, i64 %20)
  %41 = tail call i64 @llvm.umax.i64(i64 %40, i64 %21)
  %42 = icmp sge i64 %26, %41
  %or.cond = or i1 %42, %27
  br i1 %or.cond, label %43, label %.thread.sink.split

43:                                               ; preds = %39
  %.pr = load i64, ptr %11, align 8, !tbaa !5
  %.not126 = icmp eq i64 %.pr, 0
  br i1 %.not126, label %47, label %.thread

.thread.sink.split:                               ; preds = %39, %36, %33, %31, %29, %12
  %.sink = phi i64 [ -1, %12 ], [ -2, %29 ], [ -3, %31 ], [ -5, %33 ], [ -8, %36 ], [ -11, %39 ]
  store i64 %.sink, ptr %11, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %43
  %44 = phi i64 [ %.pr, %43 ], [ %.sink, %.thread.sink.split ]
  %45 = sub nsw i64 0, %44
  store i64 %45, ptr %13, align 8, !tbaa !5
  %46 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %13) #4
  br label %63

47:                                               ; preds = %43
  br i1 %27, label %63, label %48

48:                                               ; preds = %47
  %49 = tail call i32 @cgeqrf_(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %50 = load float, ptr %9, align 4, !tbaa !9
  %51 = fptosi float %50 to i64
  %52 = load i64, ptr %0, align 8, !tbaa !5
  %53 = load i64, ptr %1, align 8, !tbaa !5
  %.132 = tail call i64 @llvm.smin.i64(i64 %52, i64 %53)
  store i64 %.132, ptr %13, align 8, !tbaa !5
  %54 = call i32 @cunmqr_(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %13, ptr noundef %3, 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 i64 %51, ptr %13, align 8, !tbaa !5
  %55 = load float, ptr %9, align 4, !tbaa !9
  %56 = fptosi float %55 to i64
  %57 = call i64 @llvm.smax.i64(i64 %51, i64 %56)
  %58 = call i32 @cgerqf_(ptr noundef nonnull %0, 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
  %59 = load float, ptr %9, align 4, !tbaa !9
  %60 = fptosi float %59 to i64
  %61 = call i64 @llvm.smax.i64(i64 %57, i64 %60)
  %62 = sitofp i64 %61 to float
  store float %62, ptr %9, align 4, !tbaa !9
  store float 0.000000e+00, ptr %25, align 4, !tbaa !12
  br label %63

63:                                               ; preds = %47, %48, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  ret i32 0
}

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

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

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

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

declare i32 @cunmqr_(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 i32 @cgerqf_(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 i64 @llvm.smax.i64(i64, i64) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #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 = !{!"long", !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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass