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

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

@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 [10 x i8], align 1

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

79:                                               ; preds = %12
  %80 = load i32, ptr %33, align 4, !tbaa !9
  br label %83

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

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

88:                                               ; preds = %83
  %89 = load i32, ptr %29, align 4, !tbaa !9
  br label %92

90:                                               ; preds = %83
  %91 = load i32, ptr %35, align 4, !tbaa !9
  br label %92

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

99:                                               ; preds = %92
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  br label %105

102:                                              ; preds = %92
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %102, %99
  %106 = phi i32 [ %101, %99 ], [ %104, %102 ]
  store i32 %106, ptr %29, align 4, !tbaa !9
  %107 = load i32, ptr %29, align 4, !tbaa !9
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = icmp sge i32 %107, %109
  br i1 %110, label %111, label %113

111:                                              ; preds = %105
  %112 = load i32, ptr %29, align 4, !tbaa !9
  br label %116

113:                                              ; preds = %105
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %113, %111
  %117 = phi i32 [ %112, %111 ], [ %115, %113 ]
  %118 = load i32, ptr %32, align 4, !tbaa !9
  %119 = mul nsw i32 %117, %118
  store i32 %119, ptr %36, align 4, !tbaa !9
  %120 = load i32, ptr %36, align 4, !tbaa !9
  %121 = sitofp i32 %120 to double
  %122 = load ptr, ptr %22, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %122, i64 1
  store double %121, ptr %123, align 8, !tbaa !11
  %124 = load ptr, ptr %23, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = icmp eq i32 %125, -1
  %127 = zext i1 %126 to i32
  store i32 %127, ptr %37, align 4, !tbaa !9
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp slt i32 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %116
  %132 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %132, align 4, !tbaa !9
  br label %220

133:                                              ; preds = %116
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = icmp slt i32 %135, 0
  br i1 %136, label %137, label %139

137:                                              ; preds = %133
  %138 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %138, align 4, !tbaa !9
  br label %219

139:                                              ; preds = %133
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = icmp slt i32 %141, 0
  br i1 %142, label %143, label %145

143:                                              ; preds = %139
  %144 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %144, align 4, !tbaa !9
  br label %218

145:                                              ; preds = %139
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = icmp sge i32 1, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %145
  br label %155

152:                                              ; preds = %145
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %152, %151
  %156 = phi i32 [ 1, %151 ], [ %154, %152 ]
  %157 = icmp slt i32 %147, %156
  br i1 %157, label %158, label %160

158:                                              ; preds = %155
  %159 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -5, ptr %159, align 4, !tbaa !9
  br label %217

160:                                              ; preds = %155
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = load i32, ptr %161, align 4, !tbaa !9
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = icmp sge i32 1, %164
  br i1 %165, label %166, label %167

166:                                              ; preds = %160
  br label %170

167:                                              ; preds = %160
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %167, %166
  %171 = phi i32 [ 1, %166 ], [ %169, %167 ]
  %172 = icmp slt i32 %162, %171
  br i1 %172, label %173, label %175

173:                                              ; preds = %170
  %174 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -8, ptr %174, align 4, !tbaa !9
  br label %216

175:                                              ; preds = %170
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load i32, ptr %176, align 4, !tbaa !9
  %178 = icmp sge i32 1, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %175
  br label %183

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

183:                                              ; preds = %180, %179
  %184 = phi i32 [ 1, %179 ], [ %182, %180 ]
  store i32 %184, ptr %29, align 4, !tbaa !9
  %185 = load i32, ptr %29, align 4, !tbaa !9
  %186 = load ptr, ptr %14, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = icmp sge i32 %185, %187
  br i1 %188, label %189, label %191

189:                                              ; preds = %183
  %190 = load i32, ptr %29, align 4, !tbaa !9
  br label %194

191:                                              ; preds = %183
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %191, %189
  %195 = phi i32 [ %190, %189 ], [ %193, %191 ]
  store i32 %195, ptr %29, align 4, !tbaa !9
  %196 = load ptr, ptr %23, align 8, !tbaa !5
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %198 = load i32, ptr %29, align 4, !tbaa !9
  %199 = load ptr, ptr %15, align 8, !tbaa !5
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = icmp sge i32 %198, %200
  br i1 %201, label %202, label %204

202:                                              ; preds = %194
  %203 = load i32, ptr %29, align 4, !tbaa !9
  br label %207

204:                                              ; preds = %194
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  %206 = load i32, ptr %205, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %204, %202
  %208 = phi i32 [ %203, %202 ], [ %206, %204 ]
  %209 = icmp slt i32 %197, %208
  br i1 %209, label %210, label %215

210:                                              ; preds = %207
  %211 = load i32, ptr %37, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %215, label %213

213:                                              ; preds = %210
  %214 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -11, ptr %214, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %213, %210, %207
  br label %216

216:                                              ; preds = %215, %173
  br label %217

217:                                              ; preds = %216, %158
  br label %218

218:                                              ; preds = %217, %143
  br label %219

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

220:                                              ; preds = %219, %131
  %221 = load ptr, ptr %24, align 8, !tbaa !5
  %222 = load i32, ptr %221, align 4, !tbaa !9
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %229

224:                                              ; preds = %220
  %225 = load ptr, ptr %24, align 8, !tbaa !5
  %226 = load i32, ptr %225, align 4, !tbaa !9
  %227 = sub nsw i32 0, %226
  store i32 %227, ptr %29, align 4, !tbaa !9
  %228 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %29, i32 noundef 6)
  store i32 1, ptr %38, align 4
  br label %327

229:                                              ; preds = %220
  %230 = load i32, ptr %37, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %233

232:                                              ; preds = %229
  store i32 1, ptr %38, align 4
  br label %327

233:                                              ; preds = %229
  br label %234

234:                                              ; preds = %233
  %235 = load ptr, ptr %13, align 8, !tbaa !5
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = load i32, ptr %26, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = load ptr, ptr %18, align 8, !tbaa !5
  %243 = getelementptr inbounds double, ptr %242, i64 1
  %244 = load ptr, ptr %22, align 8, !tbaa !5
  %245 = getelementptr inbounds double, ptr %244, i64 1
  %246 = load ptr, ptr %23, align 8, !tbaa !5
  %247 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dgeqrf_(ptr noundef %235, ptr noundef %236, ptr noundef %240, ptr noundef %241, ptr noundef %243, ptr noundef %245, ptr noundef %246, ptr noundef %247)
  %248 = load ptr, ptr %22, align 8, !tbaa !5
  %249 = getelementptr inbounds double, ptr %248, i64 1
  %250 = load double, ptr %249, align 8, !tbaa !11
  %251 = fptosi double %250 to i32
  store i32 %251, ptr %31, align 4, !tbaa !9
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = load ptr, ptr %14, align 8, !tbaa !5
  %255 = load i32, ptr %254, align 4, !tbaa !9
  %256 = icmp sle i32 %253, %255
  br i1 %256, label %257, label %260

257:                                              ; preds = %234
  %258 = load ptr, ptr %13, align 8, !tbaa !5
  %259 = load i32, ptr %258, align 4, !tbaa !9
  br label %263

260:                                              ; preds = %234
  %261 = load ptr, ptr %14, align 8, !tbaa !5
  %262 = load i32, ptr %261, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %260, %257
  %264 = phi i32 [ %259, %257 ], [ %262, %260 ]
  store i32 %264, ptr %29, align 4, !tbaa !9
  %265 = load ptr, ptr %13, align 8, !tbaa !5
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = load ptr, ptr %16, align 8, !tbaa !5
  %268 = load i32, ptr %26, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds double, ptr %267, i64 %269
  %271 = load ptr, ptr %17, align 8, !tbaa !5
  %272 = load ptr, ptr %18, align 8, !tbaa !5
  %273 = getelementptr inbounds double, ptr %272, i64 1
  %274 = load ptr, ptr %19, align 8, !tbaa !5
  %275 = load i32, ptr %28, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds double, ptr %274, i64 %276
  %278 = load ptr, ptr %20, align 8, !tbaa !5
  %279 = load ptr, ptr %22, align 8, !tbaa !5
  %280 = getelementptr inbounds double, ptr %279, i64 1
  %281 = load ptr, ptr %23, align 8, !tbaa !5
  %282 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dormqr_(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %265, ptr noundef %266, ptr noundef %29, ptr noundef %270, ptr noundef %271, ptr noundef %273, ptr noundef %277, ptr noundef %278, ptr noundef %280, ptr noundef %281, ptr noundef %282)
  %283 = load i32, ptr %31, align 4, !tbaa !9
  store i32 %283, ptr %29, align 4, !tbaa !9
  %284 = load ptr, ptr %22, align 8, !tbaa !5
  %285 = getelementptr inbounds double, ptr %284, i64 1
  %286 = load double, ptr %285, align 8, !tbaa !11
  %287 = fptosi double %286 to i32
  store i32 %287, ptr %30, align 4, !tbaa !9
  %288 = load i32, ptr %29, align 4, !tbaa !9
  %289 = load i32, ptr %30, align 4, !tbaa !9
  %290 = icmp sge i32 %288, %289
  br i1 %290, label %291, label %293

291:                                              ; preds = %263
  %292 = load i32, ptr %29, align 4, !tbaa !9
  br label %295

293:                                              ; preds = %263
  %294 = load i32, ptr %30, align 4, !tbaa !9
  br label %295

295:                                              ; preds = %293, %291
  %296 = phi i32 [ %292, %291 ], [ %294, %293 ]
  store i32 %296, ptr %31, align 4, !tbaa !9
  %297 = load ptr, ptr %13, align 8, !tbaa !5
  %298 = load ptr, ptr %15, align 8, !tbaa !5
  %299 = load ptr, ptr %19, align 8, !tbaa !5
  %300 = load i32, ptr %28, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds double, ptr %299, i64 %301
  %303 = load ptr, ptr %20, align 8, !tbaa !5
  %304 = load ptr, ptr %21, align 8, !tbaa !5
  %305 = getelementptr inbounds double, ptr %304, i64 1
  %306 = load ptr, ptr %22, align 8, !tbaa !5
  %307 = getelementptr inbounds double, ptr %306, i64 1
  %308 = load ptr, ptr %23, align 8, !tbaa !5
  %309 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dgerqf_(ptr noundef %297, ptr noundef %298, ptr noundef %302, ptr noundef %303, ptr noundef %305, ptr noundef %307, ptr noundef %308, ptr noundef %309)
  %310 = load i32, ptr %31, align 4, !tbaa !9
  store i32 %310, ptr %29, align 4, !tbaa !9
  %311 = load ptr, ptr %22, align 8, !tbaa !5
  %312 = getelementptr inbounds double, ptr %311, i64 1
  %313 = load double, ptr %312, align 8, !tbaa !11
  %314 = fptosi double %313 to i32
  store i32 %314, ptr %30, align 4, !tbaa !9
  %315 = load i32, ptr %29, align 4, !tbaa !9
  %316 = load i32, ptr %30, align 4, !tbaa !9
  %317 = icmp sge i32 %315, %316
  br i1 %317, label %318, label %320

318:                                              ; preds = %295
  %319 = load i32, ptr %29, align 4, !tbaa !9
  br label %322

320:                                              ; preds = %295
  %321 = load i32, ptr %30, align 4, !tbaa !9
  br label %322

322:                                              ; preds = %320, %318
  %323 = phi i32 [ %319, %318 ], [ %321, %320 ]
  %324 = sitofp i32 %323 to double
  %325 = load ptr, ptr %22, align 8, !tbaa !5
  %326 = getelementptr inbounds double, ptr %325, i64 1
  store double %324, ptr %326, align 8, !tbaa !11
  store i32 1, ptr %38, align 4
  br label %327

327:                                              ; preds = %322, %232, %224
  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 @dgeqrf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dormqr_(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 @dgerqf_(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, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; 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 [10 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dggqrf_(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 double
  store double %24, ptr %9, align 8, !tbaa !9
  %25 = load i32, ptr %10, align 4, !tbaa !5
  %26 = icmp eq i32 %25, -1
  %27 = icmp slt i32 %19, 0
  br i1 %27, label %.thread.sink.split, label %28

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

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

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

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

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

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

.thread.sink.split:                               ; preds = %38, %35, %32, %30, %28, %12
  %.sink = phi i32 [ -1, %12 ], [ -2, %28 ], [ -3, %30 ], [ -5, %32 ], [ -8, %35 ], [ -11, %38 ]
  store i32 %.sink, ptr %11, align 4, !tbaa !5
  br label %.thread

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

46:                                               ; preds = %42
  br i1 %26, label %59, label %47

47:                                               ; preds = %46
  tail call void @dgeqrf_(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
  %48 = load double, ptr %9, align 8, !tbaa !9
  %49 = fptosi double %48 to i32
  %50 = load i32, ptr %0, align 4, !tbaa !5
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %.127 = tail call i32 @llvm.smin.i32(i32 %50, i32 %51)
  store i32 %.127, ptr %13, align 4, !tbaa !5
  call void @dormqr_(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 %49, ptr %13, align 4, !tbaa !5
  %52 = load double, ptr %9, align 8, !tbaa !9
  %53 = fptosi double %52 to i32
  %54 = call i32 @llvm.smax.i32(i32 %49, i32 %53)
  call void @dgerqf_(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
  %55 = load double, ptr %9, align 8, !tbaa !9
  %56 = fptosi double %55 to i32
  %57 = call i32 @llvm.smax.i32(i32 %54, i32 %56)
  %58 = sitofp i32 %57 to double
  store double %58, ptr %9, align 8, !tbaa !9
  br label %59

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

declare void @dormqr_(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 @dgerqf_(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, !10, i64 0}
!10 = !{!"double", !7, i64 0}


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