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

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

; Function Attrs: nounwind uwtable
define dso_local void @dggrqf_(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 double, 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 double, 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 double, 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 double, 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 double, ptr %64, i32 -1
  store ptr %65, ptr %22, align 8, !tbaa !5
  %66 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 0, ptr %66, align 4, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %67, ptr noundef %68, ptr noundef @c_n1, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %69, ptr %34, align 4, !tbaa !9
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.2, ptr noundef @.str.1, ptr noundef %70, ptr noundef %71, ptr noundef @c_n1, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %72, ptr %35, align 4, !tbaa !9
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %76, ptr %36, align 4, !tbaa !9
  %77 = load i32, ptr %34, align 4, !tbaa !9
  %78 = load i32, ptr %35, align 4, !tbaa !9
  %79 = icmp sge i32 %77, %78
  br i1 %79, label %80, label %82

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

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

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

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

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

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

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

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

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

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

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

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

132:                                              ; preds = %117
  %133 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %133, align 4, !tbaa !9
  br label %221

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

138:                                              ; preds = %134
  %139 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %139, align 4, !tbaa !9
  br label %220

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

144:                                              ; preds = %140
  %145 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %145, align 4, !tbaa !9
  br label %219

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

152:                                              ; preds = %146
  br label %156

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

156:                                              ; preds = %153, %152
  %157 = phi i32 [ 1, %152 ], [ %155, %153 ]
  %158 = icmp slt i32 %148, %157
  br i1 %158, label %159, label %161

159:                                              ; preds = %156
  %160 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -5, ptr %160, align 4, !tbaa !9
  br label %218

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

167:                                              ; preds = %161
  br label %171

168:                                              ; preds = %161
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %168, %167
  %172 = phi i32 [ 1, %167 ], [ %170, %168 ]
  %173 = icmp slt i32 %163, %172
  br i1 %173, label %174, label %176

174:                                              ; preds = %171
  %175 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -8, ptr %175, align 4, !tbaa !9
  br label %217

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

180:                                              ; preds = %176
  br label %184

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

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

190:                                              ; preds = %184
  %191 = load i32, ptr %29, align 4, !tbaa !9
  br label %195

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

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

203:                                              ; preds = %195
  %204 = load i32, ptr %29, align 4, !tbaa !9
  br label %208

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

208:                                              ; preds = %205, %203
  %209 = phi i32 [ %204, %203 ], [ %207, %205 ]
  %210 = icmp slt i32 %198, %209
  br i1 %210, label %211, label %216

211:                                              ; preds = %208
  %212 = load i32, ptr %38, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %216, label %214

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

216:                                              ; preds = %214, %211, %208
  br label %217

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

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

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

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

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

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

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

233:                                              ; preds = %230
  store i32 1, ptr %39, align 4
  br label %344

234:                                              ; preds = %230
  br label %235

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

258:                                              ; preds = %235
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  %260 = load i32, ptr %259, align 4, !tbaa !9
  br label %264

261:                                              ; preds = %235
  %262 = load ptr, ptr %15, align 8, !tbaa !5
  %263 = load i32, ptr %262, align 4, !tbaa !9
  br label %264

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

278:                                              ; preds = %264
  %279 = load i32, ptr %30, align 4, !tbaa !9
  br label %282

280:                                              ; preds = %264
  %281 = load i32, ptr %31, align 4, !tbaa !9
  br label %282

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

308:                                              ; preds = %282
  %309 = load i32, ptr %29, align 4, !tbaa !9
  br label %312

310:                                              ; preds = %282
  %311 = load i32, ptr %30, align 4, !tbaa !9
  br label %312

312:                                              ; preds = %310, %308
  %313 = phi i32 [ %309, %308 ], [ %311, %310 ]
  store i32 %313, ptr %32, align 4, !tbaa !9
  %314 = load ptr, ptr %14, align 8, !tbaa !5
  %315 = load ptr, ptr %15, align 8, !tbaa !5
  %316 = load ptr, ptr %19, align 8, !tbaa !5
  %317 = load i32, ptr %28, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds double, ptr %316, i64 %318
  %320 = load ptr, ptr %20, align 8, !tbaa !5
  %321 = load ptr, ptr %21, align 8, !tbaa !5
  %322 = getelementptr inbounds double, ptr %321, i64 1
  %323 = load ptr, ptr %22, align 8, !tbaa !5
  %324 = getelementptr inbounds double, ptr %323, i64 1
  %325 = load ptr, ptr %23, align 8, !tbaa !5
  %326 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dgeqrf_(ptr noundef %314, ptr noundef %315, ptr noundef %319, ptr noundef %320, ptr noundef %322, ptr noundef %324, ptr noundef %325, ptr noundef %326)
  %327 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %327, ptr %29, align 4, !tbaa !9
  %328 = load ptr, ptr %22, align 8, !tbaa !5
  %329 = getelementptr inbounds double, ptr %328, i64 1
  %330 = load double, ptr %329, align 8, !tbaa !11
  %331 = fptosi double %330 to i32
  store i32 %331, ptr %30, align 4, !tbaa !9
  %332 = load i32, ptr %29, align 4, !tbaa !9
  %333 = load i32, ptr %30, align 4, !tbaa !9
  %334 = icmp sge i32 %332, %333
  br i1 %334, label %335, label %337

335:                                              ; preds = %312
  %336 = load i32, ptr %29, align 4, !tbaa !9
  br label %339

337:                                              ; preds = %312
  %338 = load i32, ptr %30, align 4, !tbaa !9
  br label %339

339:                                              ; preds = %337, %335
  %340 = phi i32 [ %336, %335 ], [ %338, %337 ]
  %341 = sitofp i32 %340 to double
  %342 = load ptr, ptr %22, align 8, !tbaa !5
  %343 = getelementptr inbounds double, ptr %342, i64 1
  store double %341, ptr %343, align 8, !tbaa !11
  store i32 1, ptr %39, align 4
  br label %344

344:                                              ; preds = %339, %233, %225
  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 @dgerqf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dormrq_(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 @dgeqrf_(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 [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

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

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

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

45:                                               ; preds = %41
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %.not127 = icmp eq i32 %.pr, 0
  br i1 %.not127, label %49, label %.thread

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

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

49:                                               ; preds = %45
  br i1 %29, label %69, label %50

50:                                               ; preds = %49
  tail call void @dgerqf_(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %51 = load double, ptr %9, align 8, !tbaa !9
  %52 = fptosi double %51 to i32
  %53 = load i32, ptr %0, align 4, !tbaa !5
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %.133 = tail call i32 @llvm.smin.i32(i32 %53, i32 %54)
  store i32 %.133, ptr %13, align 4, !tbaa !5
  %55 = sub nsw i32 %53, %54
  %56 = add nsw i32 %55, 1
  %57 = icmp slt i32 %55, 1
  %58 = select i1 %57, i32 1, i32 %56
  %59 = add nsw i32 %58, %14
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %16, i64 %60
  call void @dormrq_(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %13, ptr noundef %61, 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 %52, ptr %13, align 4, !tbaa !5
  %62 = load double, ptr %9, align 8, !tbaa !9
  %63 = fptosi double %62 to i32
  %64 = call i32 @llvm.smax.i32(i32 %52, i32 %63)
  call void @dgeqrf_(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %6, ptr noundef nonnull %7, ptr noundef %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %65 = load double, ptr %9, align 8, !tbaa !9
  %66 = fptosi double %65 to i32
  %67 = call i32 @llvm.smax.i32(i32 %64, i32 %66)
  %68 = sitofp i32 %67 to double
  store double %68, ptr %9, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %49, %50, %.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 @dgerqf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dormrq_(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 @dgeqrf_(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