; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 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 [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @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 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 %14, 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 %13, 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 %14, align 8, !tbaa !5
  %75 = load ptr, ptr %15, 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 %13, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr %14, 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 %13, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  br label %106

103:                                              ; preds = %93
  %104 = load ptr, ptr %14, 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 %15, 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 %15, 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 %13, 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 %13, 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 %340

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 %340

238:                                              ; preds = %234
  br label %239

239:                                              ; preds = %238
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = load ptr, ptr %14, 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 @cgeqrf_(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 %14, 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 %14, 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
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = load ptr, ptr %15, align 8, !tbaa !5
  %273 = load ptr, ptr %16, align 8, !tbaa !5
  %274 = load i32, ptr %26, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds %struct.complex, ptr %273, i64 %275
  %277 = load ptr, ptr %17, align 8, !tbaa !5
  %278 = load ptr, ptr %18, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.complex, ptr %278, i64 1
  %280 = load ptr, ptr %19, align 8, !tbaa !5
  %281 = load i32, ptr %28, align 4, !tbaa !9
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds %struct.complex, ptr %280, i64 %282
  %284 = load ptr, ptr %20, align 8, !tbaa !5
  %285 = load ptr, ptr %22, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.complex, ptr %285, i64 1
  %287 = load ptr, ptr %23, align 8, !tbaa !5
  %288 = load ptr, ptr %24, align 8, !tbaa !5
  call void @cunmqr_(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %271, ptr noundef %272, ptr noundef %29, ptr noundef %276, ptr noundef %277, ptr noundef %279, ptr noundef %283, ptr noundef %284, ptr noundef %286, ptr noundef %287, ptr noundef %288)
  %289 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %289, ptr %29, align 4, !tbaa !9
  %290 = load ptr, ptr %22, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.complex, ptr %290, i64 1
  %292 = getelementptr inbounds %struct.complex, ptr %291, i32 0, i32 0
  %293 = load float, ptr %292, align 4, !tbaa !11
  %294 = fptosi float %293 to i32
  store i32 %294, ptr %30, align 4, !tbaa !9
  %295 = load i32, ptr %29, align 4, !tbaa !9
  %296 = load i32, ptr %30, align 4, !tbaa !9
  %297 = icmp sge i32 %295, %296
  br i1 %297, label %298, label %300

298:                                              ; preds = %269
  %299 = load i32, ptr %29, align 4, !tbaa !9
  br label %302

300:                                              ; preds = %269
  %301 = load i32, ptr %30, align 4, !tbaa !9
  br label %302

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

326:                                              ; preds = %302
  %327 = load i32, ptr %30, align 4, !tbaa !9
  br label %330

328:                                              ; preds = %302
  %329 = load i32, ptr %31, align 4, !tbaa !9
  br label %330

330:                                              ; preds = %328, %326
  %331 = phi i32 [ %327, %326 ], [ %329, %328 ]
  store i32 %331, ptr %29, align 4, !tbaa !9
  %332 = load i32, ptr %29, align 4, !tbaa !9
  %333 = sitofp i32 %332 to float
  %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
  store float %333, ptr %336, align 4, !tbaa !11
  %337 = load ptr, ptr %22, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.complex, ptr %337, i64 1
  %339 = getelementptr inbounds %struct.complex, ptr %338, i32 0, i32 1
  store float 0.000000e+00, ptr %339, align 4, !tbaa !14
  store i32 1, ptr %39, align 4
  br label %340

340:                                              ; preds = %330, %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 @cgeqrf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @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 void @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 = !{!"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"

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

; Function Attrs: nounwind uwtable
define dso_local void @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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  %14 = tail call i32 @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, i32 noundef 6, i32 noundef 1) #4
  %15 = tail call i32 @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, i32 noundef 6, i32 noundef 1) #4
  %16 = tail call i32 @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, i32 noundef 6, i32 noundef 1) #4
  %17 = tail call i32 @llvm.smax.i32(i32 %14, i32 %15)
  %18 = tail call i32 @llvm.smax.i32(i32 %17, i32 %16)
  %19 = load i32, ptr %0, align 4, !tbaa !5
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %. = tail call i32 @llvm.smax.i32(i32 %19, i32 %20)
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = tail call i32 @llvm.smax.i32(i32 %., i32 %21)
  %23 = mul nsw i32 %22, %18
  %24 = sitofp i32 %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 i32, ptr %10, align 4, !tbaa !5
  %27 = icmp eq i32 %26, -1
  %28 = icmp slt i32 %19, 0
  br i1 %28, label %.thread.sink.split, label %29

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

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

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

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

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

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

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

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

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

48:                                               ; preds = %47
  tail call void @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
  %49 = load float, ptr %9, align 4, !tbaa !9
  %50 = fptosi float %49 to i32
  %51 = load i32, ptr %0, align 4, !tbaa !5
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %.131 = tail call i32 @llvm.smin.i32(i32 %51, i32 %52)
  store i32 %.131, ptr %13, align 4, !tbaa !5
  call void @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 i32 %50, ptr %13, align 4, !tbaa !5
  %53 = load float, ptr %9, align 4, !tbaa !9
  %54 = fptosi float %53 to i32
  %55 = call i32 @llvm.smax.i32(i32 %50, i32 %54)
  call void @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
  %56 = load float, ptr %9, align 4, !tbaa !9
  %57 = fptosi float %56 to i32
  %58 = call i32 @llvm.smax.i32(i32 %55, i32 %57)
  %59 = sitofp i32 %58 to float
  store float %59, ptr %9, align 4, !tbaa !9
  store float 0.000000e+00, ptr %25, align 4, !tbaa !12
  br label %60

60:                                               ; preds = %47, %48, %.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 @cgeqrf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @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 void @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 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