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

; 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
@c_n1 = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@c_b23 = external hidden global double, align 8
@c_b37 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @dlatdf_(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) #0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %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 i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca [32 x double], align 16
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca [8 x i32], align 16
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca [8 x double], align 16
  %37 = alloca [8 x double], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #5
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %39, ptr %19, align 4, !tbaa !9
  %40 = load i32, ptr %19, align 4, !tbaa !9
  %41 = mul nsw i32 %40, 1
  %42 = add nsw i32 1, %41
  store i32 %42, ptr %20, align 4, !tbaa !9
  %43 = load i32, ptr %20, align 4, !tbaa !9
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = sext i32 %43 to i64
  %46 = sub i64 0, %45
  %47 = getelementptr inbounds double, ptr %44, i64 %46
  store ptr %47, ptr %12, align 8, !tbaa !5
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i32 -1
  store ptr %49, ptr %14, align 8, !tbaa !5
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = getelementptr inbounds i32, ptr %50, i32 -1
  store ptr %51, ptr %17, align 8, !tbaa !5
  %52 = load ptr, ptr %18, align 8, !tbaa !5
  %53 = getelementptr inbounds i32, ptr %52, i32 -1
  store ptr %53, ptr %18, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 2
  br i1 %56, label %57, label %368

57:                                               ; preds = %9
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = sub nsw i32 %59, 1
  store i32 %60, ptr %21, align 4, !tbaa !9
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 1
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = getelementptr inbounds i32, ptr %64, i64 1
  %66 = call i32 @dlaswp_(ptr noundef @c__1, ptr noundef %62, ptr noundef %63, ptr noundef @c__1, ptr noundef %21, ptr noundef %65, ptr noundef @c__1)
  store double -1.000000e+00, ptr %30, align 8, !tbaa !11
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = sub nsw i32 %68, 1
  store i32 %69, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %191, %57
  %71 = load i32, ptr %28, align 4, !tbaa !9
  %72 = load i32, ptr %21, align 4, !tbaa !9
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %74, label %194

74:                                               ; preds = %70
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load i32, ptr %28, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fadd double %79, 1.000000e+00
  store double %80, ptr %35, align 8, !tbaa !11
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load i32, ptr %28, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = fsub double %85, 1.000000e+00
  store double %86, ptr %34, align 8, !tbaa !11
  store double 1.000000e+00, ptr %33, align 8, !tbaa !11
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = load i32, ptr %28, align 4, !tbaa !9
  %90 = sub nsw i32 %88, %89
  store i32 %90, ptr %22, align 4, !tbaa !9
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load i32, ptr %28, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  %94 = load i32, ptr %28, align 4, !tbaa !9
  %95 = load i32, ptr %19, align 4, !tbaa !9
  %96 = mul nsw i32 %94, %95
  %97 = add nsw i32 %93, %96
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %91, i64 %98
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load i32, ptr %28, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  %103 = load i32, ptr %28, align 4, !tbaa !9
  %104 = load i32, ptr %19, align 4, !tbaa !9
  %105 = mul nsw i32 %103, %104
  %106 = add nsw i32 %102, %105
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %100, i64 %107
  %109 = call double @ddot_(ptr noundef %22, ptr noundef %99, ptr noundef @c__1, ptr noundef %108, ptr noundef @c__1)
  %110 = load double, ptr %33, align 8, !tbaa !11
  %111 = fadd double %110, %109
  store double %111, ptr %33, align 8, !tbaa !11
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = load i32, ptr %28, align 4, !tbaa !9
  %115 = sub nsw i32 %113, %114
  store i32 %115, ptr %22, align 4, !tbaa !9
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load i32, ptr %28, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  %119 = load i32, ptr %28, align 4, !tbaa !9
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = mul nsw i32 %119, %120
  %122 = add nsw i32 %118, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %116, i64 %123
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = load i32, ptr %28, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %125, i64 %128
  %130 = call double @ddot_(ptr noundef %22, ptr noundef %124, ptr noundef @c__1, ptr noundef %129, ptr noundef @c__1)
  store double %130, ptr %31, align 8, !tbaa !11
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load i32, ptr %28, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !11
  %136 = load double, ptr %33, align 8, !tbaa !11
  %137 = fmul double %136, %135
  store double %137, ptr %33, align 8, !tbaa !11
  %138 = load double, ptr %33, align 8, !tbaa !11
  %139 = load double, ptr %31, align 8, !tbaa !11
  %140 = fcmp ogt double %138, %139
  br i1 %140, label %141, label %147

141:                                              ; preds = %74
  %142 = load double, ptr %35, align 8, !tbaa !11
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i32, ptr %28, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %143, i64 %145
  store double %142, ptr %146, align 8, !tbaa !11
  br label %166

147:                                              ; preds = %74
  %148 = load double, ptr %31, align 8, !tbaa !11
  %149 = load double, ptr %33, align 8, !tbaa !11
  %150 = fcmp ogt double %148, %149
  br i1 %150, label %151, label %157

151:                                              ; preds = %147
  %152 = load double, ptr %34, align 8, !tbaa !11
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load i32, ptr %28, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %153, i64 %155
  store double %152, ptr %156, align 8, !tbaa !11
  br label %165

157:                                              ; preds = %147
  %158 = load double, ptr %30, align 8, !tbaa !11
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = load i32, ptr %28, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %159, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !11
  %164 = fadd double %163, %158
  store double %164, ptr %162, align 8, !tbaa !11
  store double 1.000000e+00, ptr %30, align 8, !tbaa !11
  br label %165

165:                                              ; preds = %157, %151
  br label %166

166:                                              ; preds = %165, %141
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = load i32, ptr %28, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %167, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !11
  %172 = fneg double %171
  store double %172, ptr %25, align 8, !tbaa !11
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = load i32, ptr %28, align 4, !tbaa !9
  %176 = sub nsw i32 %174, %175
  store i32 %176, ptr %22, align 4, !tbaa !9
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = load i32, ptr %28, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  %180 = load i32, ptr %28, align 4, !tbaa !9
  %181 = load i32, ptr %19, align 4, !tbaa !9
  %182 = mul nsw i32 %180, %181
  %183 = add nsw i32 %179, %182
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds double, ptr %177, i64 %184
  %186 = load ptr, ptr %14, align 8, !tbaa !5
  %187 = load i32, ptr %28, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %186, i64 %189
  call void @daxpy_(ptr noundef %22, ptr noundef %25, ptr noundef %185, ptr noundef @c__1, ptr noundef %190, ptr noundef @c__1)
  br label %191

191:                                              ; preds = %166
  %192 = load i32, ptr %28, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %28, align 4, !tbaa !9
  br label %70, !llvm.loop !13

194:                                              ; preds = %70
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = sub nsw i32 %196, 1
  store i32 %197, ptr %21, align 4, !tbaa !9
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i64 1
  %200 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 0
  call void @dcopy_(ptr noundef %21, ptr noundef %199, ptr noundef @c__1, ptr noundef %200, ptr noundef @c__1)
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = load i32, ptr %202, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %201, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = fadd double %206, 1.000000e+00
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = load i32, ptr %208, align 4, !tbaa !9
  %210 = sub nsw i32 %209, 1
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 %211
  store double %207, ptr %212, align 8, !tbaa !11
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds double, ptr %213, i64 %216
  %218 = load double, ptr %217, align 8, !tbaa !11
  %219 = fadd double %218, -1.000000e+00
  store double %219, ptr %217, align 8, !tbaa !11
  store double 0.000000e+00, ptr %33, align 8, !tbaa !11
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = load i32, ptr %220, align 4, !tbaa !9
  store i32 %221, ptr %27, align 4, !tbaa !9
  br label %222

222:                                              ; preds = %341, %194
  %223 = load i32, ptr %27, align 4, !tbaa !9
  %224 = icmp sge i32 %223, 1
  br i1 %224, label %225, label %344

225:                                              ; preds = %222
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = load i32, ptr %27, align 4, !tbaa !9
  %228 = load i32, ptr %27, align 4, !tbaa !9
  %229 = load i32, ptr %19, align 4, !tbaa !9
  %230 = mul nsw i32 %228, %229
  %231 = add nsw i32 %227, %230
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds double, ptr %226, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = fdiv double 1.000000e+00, %234
  store double %235, ptr %25, align 8, !tbaa !11
  %236 = load double, ptr %25, align 8, !tbaa !11
  %237 = load i32, ptr %27, align 4, !tbaa !9
  %238 = sub nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !11
  %242 = fmul double %241, %236
  store double %242, ptr %240, align 8, !tbaa !11
  %243 = load double, ptr %25, align 8, !tbaa !11
  %244 = load ptr, ptr %14, align 8, !tbaa !5
  %245 = load i32, ptr %27, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %244, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !11
  %249 = fmul double %248, %243
  store double %249, ptr %247, align 8, !tbaa !11
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = load i32, ptr %250, align 4, !tbaa !9
  store i32 %251, ptr %21, align 4, !tbaa !9
  %252 = load i32, ptr %27, align 4, !tbaa !9
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %29, align 4, !tbaa !9
  br label %254

254:                                              ; preds = %305, %225
  %255 = load i32, ptr %29, align 4, !tbaa !9
  %256 = load i32, ptr %21, align 4, !tbaa !9
  %257 = icmp sle i32 %255, %256
  br i1 %257, label %258, label %308

258:                                              ; preds = %254
  %259 = load i32, ptr %29, align 4, !tbaa !9
  %260 = sub nsw i32 %259, 1
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !11
  %264 = load ptr, ptr %12, align 8, !tbaa !5
  %265 = load i32, ptr %27, align 4, !tbaa !9
  %266 = load i32, ptr %29, align 4, !tbaa !9
  %267 = load i32, ptr %19, align 4, !tbaa !9
  %268 = mul nsw i32 %266, %267
  %269 = add nsw i32 %265, %268
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds double, ptr %264, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !11
  %273 = load double, ptr %25, align 8, !tbaa !11
  %274 = fmul double %272, %273
  %275 = load i32, ptr %27, align 4, !tbaa !9
  %276 = sub nsw i32 %275, 1
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !11
  %280 = fneg double %263
  %281 = call double @llvm.fmuladd.f64(double %280, double %274, double %279)
  store double %281, ptr %278, align 8, !tbaa !11
  %282 = load ptr, ptr %14, align 8, !tbaa !5
  %283 = load i32, ptr %29, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds double, ptr %282, i64 %284
  %286 = load double, ptr %285, align 8, !tbaa !11
  %287 = load ptr, ptr %12, align 8, !tbaa !5
  %288 = load i32, ptr %27, align 4, !tbaa !9
  %289 = load i32, ptr %29, align 4, !tbaa !9
  %290 = load i32, ptr %19, align 4, !tbaa !9
  %291 = mul nsw i32 %289, %290
  %292 = add nsw i32 %288, %291
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds double, ptr %287, i64 %293
  %295 = load double, ptr %294, align 8, !tbaa !11
  %296 = load double, ptr %25, align 8, !tbaa !11
  %297 = fmul double %295, %296
  %298 = load ptr, ptr %14, align 8, !tbaa !5
  %299 = load i32, ptr %27, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds double, ptr %298, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !11
  %303 = fneg double %286
  %304 = call double @llvm.fmuladd.f64(double %303, double %297, double %302)
  store double %304, ptr %301, align 8, !tbaa !11
  br label %305

305:                                              ; preds = %258
  %306 = load i32, ptr %29, align 4, !tbaa !9
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %29, align 4, !tbaa !9
  br label %254, !llvm.loop !15

308:                                              ; preds = %254
  %309 = load i32, ptr %27, align 4, !tbaa !9
  %310 = sub nsw i32 %309, 1
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !11
  store double %313, ptr %23, align 8, !tbaa !11
  %314 = load double, ptr %23, align 8, !tbaa !11
  %315 = fcmp oge double %314, 0.000000e+00
  br i1 %315, label %316, label %318

316:                                              ; preds = %308
  %317 = load double, ptr %23, align 8, !tbaa !11
  br label %321

318:                                              ; preds = %308
  %319 = load double, ptr %23, align 8, !tbaa !11
  %320 = fneg double %319
  br label %321

321:                                              ; preds = %318, %316
  %322 = phi double [ %317, %316 ], [ %320, %318 ]
  %323 = load double, ptr %33, align 8, !tbaa !11
  %324 = fadd double %323, %322
  store double %324, ptr %33, align 8, !tbaa !11
  %325 = load ptr, ptr %14, align 8, !tbaa !5
  %326 = load i32, ptr %27, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds double, ptr %325, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !11
  store double %329, ptr %23, align 8, !tbaa !11
  %330 = load double, ptr %23, align 8, !tbaa !11
  %331 = fcmp oge double %330, 0.000000e+00
  br i1 %331, label %332, label %334

332:                                              ; preds = %321
  %333 = load double, ptr %23, align 8, !tbaa !11
  br label %337

334:                                              ; preds = %321
  %335 = load double, ptr %23, align 8, !tbaa !11
  %336 = fneg double %335
  br label %337

337:                                              ; preds = %334, %332
  %338 = phi double [ %333, %332 ], [ %336, %334 ]
  %339 = load double, ptr %31, align 8, !tbaa !11
  %340 = fadd double %339, %338
  store double %340, ptr %31, align 8, !tbaa !11
  br label %341

341:                                              ; preds = %337
  %342 = load i32, ptr %27, align 4, !tbaa !9
  %343 = add nsw i32 %342, -1
  store i32 %343, ptr %27, align 4, !tbaa !9
  br label %222, !llvm.loop !16

344:                                              ; preds = %222
  %345 = load double, ptr %33, align 8, !tbaa !11
  %346 = load double, ptr %31, align 8, !tbaa !11
  %347 = fcmp ogt double %345, %346
  br i1 %347, label %348, label %353

348:                                              ; preds = %344
  %349 = load ptr, ptr %11, align 8, !tbaa !5
  %350 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 0
  %351 = load ptr, ptr %14, align 8, !tbaa !5
  %352 = getelementptr inbounds double, ptr %351, i64 1
  call void @dcopy_(ptr noundef %349, ptr noundef %350, ptr noundef @c__1, ptr noundef %352, ptr noundef @c__1)
  br label %353

353:                                              ; preds = %348, %344
  %354 = load ptr, ptr %11, align 8, !tbaa !5
  %355 = load i32, ptr %354, align 4, !tbaa !9
  %356 = sub nsw i32 %355, 1
  store i32 %356, ptr %21, align 4, !tbaa !9
  %357 = load ptr, ptr %14, align 8, !tbaa !5
  %358 = getelementptr inbounds double, ptr %357, i64 1
  %359 = load ptr, ptr %13, align 8, !tbaa !5
  %360 = load ptr, ptr %18, align 8, !tbaa !5
  %361 = getelementptr inbounds i32, ptr %360, i64 1
  %362 = call i32 @dlaswp_(ptr noundef @c__1, ptr noundef %358, ptr noundef %359, ptr noundef @c__1, ptr noundef %21, ptr noundef %361, ptr noundef @c_n1)
  %363 = load ptr, ptr %11, align 8, !tbaa !5
  %364 = load ptr, ptr %14, align 8, !tbaa !5
  %365 = getelementptr inbounds double, ptr %364, i64 1
  %366 = load ptr, ptr %16, align 8, !tbaa !5
  %367 = load ptr, ptr %15, align 8, !tbaa !5
  call void @dlassq_(ptr noundef %363, ptr noundef %365, ptr noundef @c__1, ptr noundef %366, ptr noundef %367)
  br label %452

368:                                              ; preds = %9
  %369 = load ptr, ptr %11, align 8, !tbaa !5
  %370 = load ptr, ptr %12, align 8, !tbaa !5
  %371 = load i32, ptr %20, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds double, ptr %370, i64 %372
  %374 = load ptr, ptr %13, align 8, !tbaa !5
  %375 = getelementptr inbounds [32 x double], ptr %26, i64 0, i64 0
  %376 = getelementptr inbounds [8 x i32], ptr %32, i64 0, i64 0
  call void @dgecon_(ptr noundef @.str, ptr noundef %369, ptr noundef %373, ptr noundef %374, ptr noundef @c_b23, ptr noundef %25, ptr noundef %375, ptr noundef %376, ptr noundef %24)
  %377 = load ptr, ptr %11, align 8, !tbaa !5
  %378 = load ptr, ptr %11, align 8, !tbaa !5
  %379 = load i32, ptr %378, align 4, !tbaa !9
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [32 x double], ptr %26, i64 0, i64 %380
  %382 = getelementptr inbounds [8 x double], ptr %36, i64 0, i64 0
  call void @dcopy_(ptr noundef %377, ptr noundef %381, ptr noundef @c__1, ptr noundef %382, ptr noundef @c__1)
  %383 = load ptr, ptr %11, align 8, !tbaa !5
  %384 = load i32, ptr %383, align 4, !tbaa !9
  %385 = sub nsw i32 %384, 1
  store i32 %385, ptr %21, align 4, !tbaa !9
  %386 = getelementptr inbounds [8 x double], ptr %36, i64 0, i64 0
  %387 = load ptr, ptr %13, align 8, !tbaa !5
  %388 = load ptr, ptr %17, align 8, !tbaa !5
  %389 = getelementptr inbounds i32, ptr %388, i64 1
  %390 = call i32 @dlaswp_(ptr noundef @c__1, ptr noundef %386, ptr noundef %387, ptr noundef @c__1, ptr noundef %21, ptr noundef %389, ptr noundef @c_n1)
  %391 = load ptr, ptr %11, align 8, !tbaa !5
  %392 = getelementptr inbounds [8 x double], ptr %36, i64 0, i64 0
  %393 = getelementptr inbounds [8 x double], ptr %36, i64 0, i64 0
  %394 = call double @ddot_(ptr noundef %391, ptr noundef %392, ptr noundef @c__1, ptr noundef %393, ptr noundef @c__1)
  %395 = call double @sqrt(double noundef %394) #5
  %396 = fdiv double 1.000000e+00, %395
  store double %396, ptr %25, align 8, !tbaa !11
  %397 = load ptr, ptr %11, align 8, !tbaa !5
  %398 = getelementptr inbounds [8 x double], ptr %36, i64 0, i64 0
  call void @dscal_(ptr noundef %397, ptr noundef %25, ptr noundef %398, ptr noundef @c__1)
  %399 = load ptr, ptr %11, align 8, !tbaa !5
  %400 = getelementptr inbounds [8 x double], ptr %36, i64 0, i64 0
  %401 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 0
  call void @dcopy_(ptr noundef %399, ptr noundef %400, ptr noundef @c__1, ptr noundef %401, ptr noundef @c__1)
  %402 = load ptr, ptr %11, align 8, !tbaa !5
  %403 = load ptr, ptr %14, align 8, !tbaa !5
  %404 = getelementptr inbounds double, ptr %403, i64 1
  %405 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 0
  call void @daxpy_(ptr noundef %402, ptr noundef @c_b23, ptr noundef %404, ptr noundef @c__1, ptr noundef %405, ptr noundef @c__1)
  %406 = load ptr, ptr %11, align 8, !tbaa !5
  %407 = getelementptr inbounds [8 x double], ptr %36, i64 0, i64 0
  %408 = load ptr, ptr %14, align 8, !tbaa !5
  %409 = getelementptr inbounds double, ptr %408, i64 1
  call void @daxpy_(ptr noundef %406, ptr noundef @c_b37, ptr noundef %407, ptr noundef @c__1, ptr noundef %409, ptr noundef @c__1)
  %410 = load ptr, ptr %11, align 8, !tbaa !5
  %411 = load ptr, ptr %12, align 8, !tbaa !5
  %412 = load i32, ptr %20, align 4, !tbaa !9
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds double, ptr %411, i64 %413
  %415 = load ptr, ptr %13, align 8, !tbaa !5
  %416 = load ptr, ptr %14, align 8, !tbaa !5
  %417 = getelementptr inbounds double, ptr %416, i64 1
  %418 = load ptr, ptr %17, align 8, !tbaa !5
  %419 = getelementptr inbounds i32, ptr %418, i64 1
  %420 = load ptr, ptr %18, align 8, !tbaa !5
  %421 = getelementptr inbounds i32, ptr %420, i64 1
  call void @dgesc2_(ptr noundef %410, ptr noundef %414, ptr noundef %415, ptr noundef %417, ptr noundef %419, ptr noundef %421, ptr noundef %25)
  %422 = load ptr, ptr %11, align 8, !tbaa !5
  %423 = load ptr, ptr %12, align 8, !tbaa !5
  %424 = load i32, ptr %20, align 4, !tbaa !9
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds double, ptr %423, i64 %425
  %427 = load ptr, ptr %13, align 8, !tbaa !5
  %428 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 0
  %429 = load ptr, ptr %17, align 8, !tbaa !5
  %430 = getelementptr inbounds i32, ptr %429, i64 1
  %431 = load ptr, ptr %18, align 8, !tbaa !5
  %432 = getelementptr inbounds i32, ptr %431, i64 1
  call void @dgesc2_(ptr noundef %422, ptr noundef %426, ptr noundef %427, ptr noundef %428, ptr noundef %430, ptr noundef %432, ptr noundef %25)
  %433 = load ptr, ptr %11, align 8, !tbaa !5
  %434 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 0
  %435 = call double @dasum_(ptr noundef %433, ptr noundef %434, ptr noundef @c__1)
  %436 = load ptr, ptr %11, align 8, !tbaa !5
  %437 = load ptr, ptr %14, align 8, !tbaa !5
  %438 = getelementptr inbounds double, ptr %437, i64 1
  %439 = call double @dasum_(ptr noundef %436, ptr noundef %438, ptr noundef @c__1)
  %440 = fcmp ogt double %435, %439
  br i1 %440, label %441, label %446

441:                                              ; preds = %368
  %442 = load ptr, ptr %11, align 8, !tbaa !5
  %443 = getelementptr inbounds [8 x double], ptr %37, i64 0, i64 0
  %444 = load ptr, ptr %14, align 8, !tbaa !5
  %445 = getelementptr inbounds double, ptr %444, i64 1
  call void @dcopy_(ptr noundef %442, ptr noundef %443, ptr noundef @c__1, ptr noundef %445, ptr noundef @c__1)
  br label %446

446:                                              ; preds = %441, %368
  %447 = load ptr, ptr %11, align 8, !tbaa !5
  %448 = load ptr, ptr %14, align 8, !tbaa !5
  %449 = getelementptr inbounds double, ptr %448, i64 1
  %450 = load ptr, ptr %16, align 8, !tbaa !5
  %451 = load ptr, ptr %15, align 8, !tbaa !5
  call void @dlassq_(ptr noundef %447, ptr noundef %449, ptr noundef @c__1, ptr noundef %450, ptr noundef %451)
  br label %452

452:                                              ; preds = %446, %353
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  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 @dlaswp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare double @ddot_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

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

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

declare double @dasum_(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind "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 #5 = { 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}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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
@c_n1 = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@c_b23 = external hidden global double, align 8
@c_b37 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @dlatdf_(ptr nocapture noundef readonly %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) local_unnamed_addr #0 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca [32 x double], align 16
  %15 = alloca [8 x i32], align 16
  %16 = alloca [8 x double], align 16
  %17 = alloca [8 x double], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #5
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %narrow = xor i32 %18, -1
  %19 = sext i32 %narrow to i64
  %20 = getelementptr inbounds double, ptr %2, i64 %19
  %21 = getelementptr inbounds i8, ptr %4, i64 -8
  %22 = load i32, ptr %0, align 4, !tbaa !5
  %.not = icmp eq i32 %22, 2
  br i1 %.not, label %120, label %23

23:                                               ; preds = %9
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %10, align 4, !tbaa !5
  %26 = call i32 @dlaswp_(ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef nonnull %3, ptr noundef nonnull @c__1, ptr noundef nonnull %10, ptr noundef %7, ptr noundef nonnull @c__1) #5
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %10, align 4, !tbaa !5
  %.not166168 = icmp slt i32 %27, 2
  br i1 %.not166168, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %23
  %29 = sext i32 %18 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %54
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %54 ]
  %.0160170 = phi double [ -1.000000e+00, %.lr.ph.preheader ], [ %.1, %54 ]
  %30 = getelementptr inbounds double, ptr %21, i64 %indvars.iv
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = trunc nuw nsw i64 %indvars.iv to i32
  %34 = sub nsw i32 %32, %33
  store i32 %34, ptr %11, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = mul nsw i64 %indvars.iv, %29
  %36 = getelementptr double, ptr %20, i64 %indvars.iv.next
  %37 = getelementptr double, ptr %36, i64 %35
  %38 = call double @ddot_(ptr noundef nonnull %11, ptr noundef %37, ptr noundef nonnull @c__1, ptr noundef %37, ptr noundef nonnull @c__1) #5
  %39 = fadd double %38, 1.000000e+00
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = sub nsw i32 %40, %33
  store i32 %41, ptr %11, align 4, !tbaa !5
  %42 = getelementptr double, ptr %4, i64 %indvars.iv
  %43 = call double @ddot_(ptr noundef nonnull %11, ptr noundef %37, ptr noundef nonnull @c__1, ptr noundef nonnull %42, ptr noundef nonnull @c__1) #5
  %44 = load double, ptr %30, align 8, !tbaa !9
  %45 = fmul double %39, %44
  %46 = fcmp ogt double %45, %43
  br i1 %46, label %47, label %49

47:                                               ; preds = %.lr.ph
  %48 = fadd double %31, 1.000000e+00
  br label %54

49:                                               ; preds = %.lr.ph
  %50 = fadd double %31, -1.000000e+00
  %51 = fcmp ogt double %43, %45
  br i1 %51, label %54, label %52

52:                                               ; preds = %49
  %53 = fadd double %.0160170, %44
  br label %54

54:                                               ; preds = %49, %52, %47
  %.sink = phi double [ %53, %52 ], [ %48, %47 ], [ %50, %49 ]
  %.1 = phi double [ 1.000000e+00, %52 ], [ %.0160170, %47 ], [ %.0160170, %49 ]
  store double %.sink, ptr %30, align 8, !tbaa !9
  %55 = fneg double %.sink
  store double %55, ptr %13, align 8, !tbaa !9
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = sub nsw i32 %56, %33
  store i32 %57, ptr %11, align 4, !tbaa !5
  call void @daxpy_(ptr noundef nonnull %11, ptr noundef nonnull %13, ptr noundef %37, ptr noundef nonnull @c__1, ptr noundef nonnull %42, ptr noundef nonnull @c__1) #5
  %58 = load i32, ptr %10, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %.not166.not = icmp slt i64 %indvars.iv, %59
  br i1 %.not166.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %54
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  %.pre194 = add nsw i32 %.pre, -1
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %23
  %.pre-phi = phi i32 [ %.pre194, %._crit_edge.loopexit ], [ %28, %23 ]
  store i32 %.pre-phi, ptr %10, align 4, !tbaa !5
  call void @dcopy_(ptr noundef nonnull %10, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef nonnull %17, ptr noundef nonnull @c__1) #5
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %21, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = fadd double %63, 1.000000e+00
  %65 = add nsw i32 %60, -1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [8 x double], ptr %17, i64 0, i64 %66
  store double %64, ptr %67, align 8, !tbaa !9
  %68 = fadd double %63, -1.000000e+00
  store double %68, ptr %62, align 8, !tbaa !9
  %69 = icmp sgt i32 %60, 0
  br i1 %69, label %.lr.ph181, label %.thread

.lr.ph181:                                        ; preds = %._crit_edge
  %70 = add i32 %18, 1
  %71 = sext i32 %18 to i64
  br label %72

72:                                               ; preds = %.lr.ph181, %._crit_edge175
  %indvars.iv187 = phi i64 [ %61, %.lr.ph181 ], [ %indvars.iv.next188, %._crit_edge175 ]
  %73 = phi <2 x double> [ zeroinitializer, %.lr.ph181 ], [ %112, %._crit_edge175 ]
  %74 = trunc nuw nsw i64 %indvars.iv187 to i32
  %75 = mul i32 %70, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %20, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fdiv double 1.000000e+00, %78
  %indvars.iv.next188 = add nsw i64 %indvars.iv187, -1
  %80 = getelementptr inbounds [8 x double], ptr %17, i64 0, i64 %indvars.iv.next188
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %21, i64 %indvars.iv187
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = insertelement <2 x double> poison, double %79, i64 0
  %85 = shufflevector <2 x double> %84, <2 x double> poison, <2 x i32> zeroinitializer
  %86 = insertelement <2 x double> poison, double %83, i64 0
  %87 = insertelement <2 x double> %86, double %81, i64 1
  %88 = fmul <2 x double> %85, %87
  %89 = extractelement <2 x double> %88, i64 1
  store double %89, ptr %80, align 8, !tbaa !9
  %90 = extractelement <2 x double> %88, i64 0
  store double %90, ptr %82, align 8, !tbaa !9
  %.not167.not171 = icmp slt i64 %indvars.iv187, %61
  br i1 %.not167.not171, label %.lr.ph174, label %._crit_edge175

.lr.ph174:                                        ; preds = %72
  %invariant.gep = getelementptr double, ptr %20, i64 %indvars.iv187
  br label %91

91:                                               ; preds = %.lr.ph174, %91
  %indvars.iv189 = phi i64 [ %indvars.iv187, %.lr.ph174 ], [ %indvars.iv.next190, %91 ]
  %92 = phi <2 x double> [ %88, %.lr.ph174 ], [ %105, %91 ]
  %indvars.iv.next190 = add nsw i64 %indvars.iv189, 1
  %93 = getelementptr inbounds [8 x double], ptr %17, i64 0, i64 %indvars.iv189
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = mul nsw i64 %indvars.iv.next190, %71
  %gep = getelementptr double, ptr %invariant.gep, i64 %95
  %96 = load double, ptr %gep, align 8, !tbaa !9
  %97 = fmul double %79, %96
  %98 = getelementptr double, ptr %4, i64 %indvars.iv189
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = insertelement <2 x double> poison, double %99, i64 0
  %101 = insertelement <2 x double> %100, double %94, i64 1
  %102 = fneg <2 x double> %101
  %103 = insertelement <2 x double> poison, double %97, i64 0
  %104 = shufflevector <2 x double> %103, <2 x double> poison, <2 x i32> zeroinitializer
  %105 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %102, <2 x double> %104, <2 x double> %92)
  %106 = extractelement <2 x double> %105, i64 1
  store double %106, ptr %80, align 8, !tbaa !9
  %107 = extractelement <2 x double> %105, i64 0
  store double %107, ptr %82, align 8, !tbaa !9
  %lftr.wideiv = trunc i64 %indvars.iv.next190 to i32
  %exitcond.not = icmp eq i32 %60, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge175, label %91, !llvm.loop !13

._crit_edge175:                                   ; preds = %91, %72
  %108 = phi <2 x double> [ %88, %72 ], [ %105, %91 ]
  %109 = fcmp oge <2 x double> %108, zeroinitializer
  %110 = fneg <2 x double> %108
  %111 = select <2 x i1> %109, <2 x double> %108, <2 x double> %110
  %112 = fadd <2 x double> %73, %111
  %113 = icmp sgt i64 %indvars.iv187, 1
  br i1 %113, label %72, label %114, !llvm.loop !14

114:                                              ; preds = %._crit_edge175
  store double %79, ptr %13, align 8, !tbaa !9
  store i32 %60, ptr %10, align 4, !tbaa !5
  %115 = extractelement <2 x double> %112, i64 0
  %116 = extractelement <2 x double> %112, i64 1
  %117 = fcmp ogt double %116, %115
  br i1 %117, label %118, label %.thread

118:                                              ; preds = %114
  call void @dcopy_(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull @c__1, ptr noundef nonnull %4, ptr noundef nonnull @c__1) #5
  %.pre193 = load i32, ptr %1, align 4, !tbaa !5
  %.pre195 = add nsw i32 %.pre193, -1
  br label %.thread

.thread:                                          ; preds = %._crit_edge, %118, %114
  %.pre-phi196 = phi i32 [ %.pre195, %118 ], [ %65, %114 ], [ %65, %._crit_edge ]
  store i32 %.pre-phi196, ptr %10, align 4, !tbaa !5
  %119 = call i32 @dlaswp_(ptr noundef nonnull @c__1, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull @c__1, ptr noundef nonnull %10, ptr noundef %8, ptr noundef nonnull @c_n1) #5
  call void @dlassq_(ptr noundef nonnull %1, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef %5) #5
  br label %135

120:                                              ; preds = %9
  call void @dgecon_(ptr noundef nonnull @.str, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull @c_b23, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %12) #5
  %121 = load i32, ptr %1, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [32 x double], ptr %14, i64 0, i64 %122
  call void @dcopy_(ptr noundef nonnull %1, ptr noundef nonnull %123, ptr noundef nonnull @c__1, ptr noundef nonnull %16, ptr noundef nonnull @c__1) #5
  %124 = load i32, ptr %1, align 4, !tbaa !5
  %125 = add nsw i32 %124, -1
  store i32 %125, ptr %10, align 4, !tbaa !5
  %126 = call i32 @dlaswp_(ptr noundef nonnull @c__1, ptr noundef nonnull %16, ptr noundef nonnull %3, ptr noundef nonnull @c__1, ptr noundef nonnull %10, ptr noundef %7, ptr noundef nonnull @c_n1) #5
  %127 = call double @ddot_(ptr noundef nonnull %1, ptr noundef nonnull %16, ptr noundef nonnull @c__1, ptr noundef nonnull %16, ptr noundef nonnull @c__1) #5
  %128 = call double @sqrt(double noundef %127) #5
  %129 = fdiv double 1.000000e+00, %128
  store double %129, ptr %13, align 8, !tbaa !9
  call void @dscal_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %16, ptr noundef nonnull @c__1) #5
  call void @dcopy_(ptr noundef nonnull %1, ptr noundef nonnull %16, ptr noundef nonnull @c__1, ptr noundef nonnull %17, ptr noundef nonnull @c__1) #5
  call void @daxpy_(ptr noundef nonnull %1, ptr noundef nonnull @c_b23, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef nonnull %17, ptr noundef nonnull @c__1) #5
  call void @daxpy_(ptr noundef nonnull %1, ptr noundef nonnull @c_b37, ptr noundef nonnull %16, ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef nonnull @c__1) #5
  call void @dgesc2_(ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %13) #5
  call void @dgesc2_(ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %17, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %13) #5
  %130 = call double @dasum_(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull @c__1) #5
  %131 = call double @dasum_(ptr noundef nonnull %1, ptr noundef %4, ptr noundef nonnull @c__1) #5
  %132 = fcmp ogt double %130, %131
  br i1 %132, label %133, label %134

133:                                              ; preds = %120
  call void @dcopy_(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef nonnull @c__1) #5
  br label %134

134:                                              ; preds = %133, %120
  call void @dlassq_(ptr noundef nonnull %1, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef %5) #5
  br label %135

135:                                              ; preds = %134, %.thread
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  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 @dlaswp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @ddot_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

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

declare double @dasum_(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 <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

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 = { mustprogress nofree nounwind willreturn memory(write) "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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass