; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8
@c_n1 = external hidden global i64, align 8
@.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 i32 @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 i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca [8 x double], align 16
  %30 = alloca [8 x double], align 16
  %31 = alloca i64, align 8
  %32 = alloca double, align 8
  %33 = alloca [32 x double], align 16
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca [8 x i64], align 16
  %37 = alloca double, align 8
  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 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 256, 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 8, ptr %37) #5
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %19, align 8, !tbaa !9
  %40 = load i64, ptr %19, align 8, !tbaa !9
  %41 = add nsw i64 1, %40
  store i64 %41, ptr %20, align 8, !tbaa !9
  %42 = load i64, ptr %20, align 8, !tbaa !9
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = sub i64 0, %42
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  store ptr %45, ptr %12, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i32 -1
  store ptr %47, ptr %14, align 8, !tbaa !5
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = getelementptr inbounds i64, ptr %48, i32 -1
  store ptr %49, ptr %17, align 8, !tbaa !5
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = getelementptr inbounds i64, ptr %50, i32 -1
  store ptr %51, ptr %18, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp ne i64 %53, 2
  br i1 %54, label %55, label %343

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

68:                                               ; preds = %177, %55
  %69 = load i64, ptr %25, align 8, !tbaa !9
  %70 = load i64, ptr %21, align 8, !tbaa !9
  %71 = icmp sle i64 %69, %70
  br i1 %71, label %72, label %180

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

132:                                              ; preds = %72
  %133 = load double, ptr %28, align 8, !tbaa !11
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load i64, ptr %25, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  store double %133, ptr %136, align 8, !tbaa !11
  br label %154

137:                                              ; preds = %72
  %138 = load double, ptr %35, align 8, !tbaa !11
  %139 = load double, ptr %37, align 8, !tbaa !11
  %140 = fcmp ogt double %138, %139
  br i1 %140, label %141, label %146

141:                                              ; preds = %137
  %142 = load double, ptr %27, align 8, !tbaa !11
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i64, ptr %25, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  store double %142, ptr %145, align 8, !tbaa !11
  br label %153

146:                                              ; preds = %137
  %147 = load double, ptr %34, align 8, !tbaa !11
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  %149 = load i64, ptr %25, align 8, !tbaa !9
  %150 = getelementptr inbounds double, ptr %148, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !11
  %152 = fadd double %151, %147
  store double %152, ptr %150, align 8, !tbaa !11
  store double 1.000000e+00, ptr %34, align 8, !tbaa !11
  br label %153

153:                                              ; preds = %146, %141
  br label %154

154:                                              ; preds = %153, %132
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load i64, ptr %25, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !11
  %159 = fneg double %158
  store double %159, ptr %32, align 8, !tbaa !11
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = load i64, ptr %25, align 8, !tbaa !9
  %163 = sub nsw i64 %161, %162
  store i64 %163, ptr %22, align 8, !tbaa !9
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = load i64, ptr %25, align 8, !tbaa !9
  %166 = add nsw i64 %165, 1
  %167 = load i64, ptr %25, align 8, !tbaa !9
  %168 = load i64, ptr %19, align 8, !tbaa !9
  %169 = mul nsw i64 %167, %168
  %170 = add nsw i64 %166, %169
  %171 = getelementptr inbounds double, ptr %164, i64 %170
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = load i64, ptr %25, align 8, !tbaa !9
  %174 = add nsw i64 %173, 1
  %175 = getelementptr inbounds double, ptr %172, i64 %174
  %176 = call i32 @f2c_daxpy(ptr noundef %22, ptr noundef %32, ptr noundef %171, ptr noundef @c__1, ptr noundef %175, ptr noundef @c__1)
  br label %177

177:                                              ; preds = %154
  %178 = load i64, ptr %25, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %25, align 8, !tbaa !9
  br label %68, !llvm.loop !13

180:                                              ; preds = %68
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = load i64, ptr %181, align 8, !tbaa !9
  %183 = sub nsw i64 %182, 1
  store i64 %183, ptr %21, align 8, !tbaa !9
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = getelementptr inbounds double, ptr %184, i64 1
  %186 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 0
  %187 = call i32 @f2c_dcopy(ptr noundef %21, ptr noundef %185, ptr noundef @c__1, ptr noundef %186, ptr noundef @c__1)
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load i64, ptr %189, align 8, !tbaa !9
  %191 = getelementptr inbounds double, ptr %188, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !11
  %193 = fadd double %192, 1.000000e+00
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = load i64, ptr %194, align 8, !tbaa !9
  %196 = sub nsw i64 %195, 1
  %197 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 %196
  store double %193, ptr %197, align 8, !tbaa !11
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %198, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = fadd double %202, -1.000000e+00
  store double %203, ptr %201, align 8, !tbaa !11
  store double 0.000000e+00, ptr %37, align 8, !tbaa !11
  store double 0.000000e+00, ptr %35, align 8, !tbaa !11
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load i64, ptr %204, align 8, !tbaa !9
  store i64 %205, ptr %24, align 8, !tbaa !9
  br label %206

206:                                              ; preds = %314, %180
  %207 = load i64, ptr %24, align 8, !tbaa !9
  %208 = icmp sge i64 %207, 1
  br i1 %208, label %209, label %317

209:                                              ; preds = %206
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load i64, ptr %24, align 8, !tbaa !9
  %212 = load i64, ptr %24, align 8, !tbaa !9
  %213 = load i64, ptr %19, align 8, !tbaa !9
  %214 = mul nsw i64 %212, %213
  %215 = add nsw i64 %211, %214
  %216 = getelementptr inbounds double, ptr %210, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !11
  %218 = fdiv double 1.000000e+00, %217
  store double %218, ptr %32, align 8, !tbaa !11
  %219 = load double, ptr %32, align 8, !tbaa !11
  %220 = load i64, ptr %24, align 8, !tbaa !9
  %221 = sub nsw i64 %220, 1
  %222 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !11
  %224 = fmul double %223, %219
  store double %224, ptr %222, align 8, !tbaa !11
  %225 = load double, ptr %32, align 8, !tbaa !11
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = load i64, ptr %24, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = fmul double %229, %225
  store double %230, ptr %228, align 8, !tbaa !11
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load i64, ptr %231, align 8, !tbaa !9
  store i64 %232, ptr %21, align 8, !tbaa !9
  %233 = load i64, ptr %24, align 8, !tbaa !9
  %234 = add nsw i64 %233, 1
  store i64 %234, ptr %26, align 8, !tbaa !9
  br label %235

235:                                              ; preds = %280, %209
  %236 = load i64, ptr %26, align 8, !tbaa !9
  %237 = load i64, ptr %21, align 8, !tbaa !9
  %238 = icmp sle i64 %236, %237
  br i1 %238, label %239, label %283

239:                                              ; preds = %235
  %240 = load i64, ptr %26, align 8, !tbaa !9
  %241 = sub nsw i64 %240, 1
  %242 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !11
  %244 = load ptr, ptr %12, align 8, !tbaa !5
  %245 = load i64, ptr %24, align 8, !tbaa !9
  %246 = load i64, ptr %26, align 8, !tbaa !9
  %247 = load i64, ptr %19, align 8, !tbaa !9
  %248 = mul nsw i64 %246, %247
  %249 = add nsw i64 %245, %248
  %250 = getelementptr inbounds double, ptr %244, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !11
  %252 = load double, ptr %32, align 8, !tbaa !11
  %253 = fmul double %251, %252
  %254 = load i64, ptr %24, align 8, !tbaa !9
  %255 = sub nsw i64 %254, 1
  %256 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !11
  %258 = fneg double %243
  %259 = call double @llvm.fmuladd.f64(double %258, double %253, double %257)
  store double %259, ptr %256, align 8, !tbaa !11
  %260 = load ptr, ptr %14, align 8, !tbaa !5
  %261 = load i64, ptr %26, align 8, !tbaa !9
  %262 = getelementptr inbounds double, ptr %260, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !11
  %264 = load ptr, ptr %12, align 8, !tbaa !5
  %265 = load i64, ptr %24, align 8, !tbaa !9
  %266 = load i64, ptr %26, align 8, !tbaa !9
  %267 = load i64, ptr %19, align 8, !tbaa !9
  %268 = mul nsw i64 %266, %267
  %269 = add nsw i64 %265, %268
  %270 = getelementptr inbounds double, ptr %264, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !11
  %272 = load double, ptr %32, align 8, !tbaa !11
  %273 = fmul double %271, %272
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = load i64, ptr %24, align 8, !tbaa !9
  %276 = getelementptr inbounds double, ptr %274, i64 %275
  %277 = load double, ptr %276, align 8, !tbaa !11
  %278 = fneg double %263
  %279 = call double @llvm.fmuladd.f64(double %278, double %273, double %277)
  store double %279, ptr %276, align 8, !tbaa !11
  br label %280

280:                                              ; preds = %239
  %281 = load i64, ptr %26, align 8, !tbaa !9
  %282 = add nsw i64 %281, 1
  store i64 %282, ptr %26, align 8, !tbaa !9
  br label %235, !llvm.loop !15

283:                                              ; preds = %235
  %284 = load i64, ptr %24, align 8, !tbaa !9
  %285 = sub nsw i64 %284, 1
  %286 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !11
  store double %287, ptr %23, align 8, !tbaa !11
  %288 = load double, ptr %23, align 8, !tbaa !11
  %289 = fcmp oge double %288, 0.000000e+00
  br i1 %289, label %290, label %292

290:                                              ; preds = %283
  %291 = load double, ptr %23, align 8, !tbaa !11
  br label %295

292:                                              ; preds = %283
  %293 = load double, ptr %23, align 8, !tbaa !11
  %294 = fneg double %293
  br label %295

295:                                              ; preds = %292, %290
  %296 = phi double [ %291, %290 ], [ %294, %292 ]
  %297 = load double, ptr %37, align 8, !tbaa !11
  %298 = fadd double %297, %296
  store double %298, ptr %37, align 8, !tbaa !11
  %299 = load ptr, ptr %14, align 8, !tbaa !5
  %300 = load i64, ptr %24, align 8, !tbaa !9
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !11
  store double %302, ptr %23, align 8, !tbaa !11
  %303 = load double, ptr %23, align 8, !tbaa !11
  %304 = fcmp oge double %303, 0.000000e+00
  br i1 %304, label %305, label %307

305:                                              ; preds = %295
  %306 = load double, ptr %23, align 8, !tbaa !11
  br label %310

307:                                              ; preds = %295
  %308 = load double, ptr %23, align 8, !tbaa !11
  %309 = fneg double %308
  br label %310

310:                                              ; preds = %307, %305
  %311 = phi double [ %306, %305 ], [ %309, %307 ]
  %312 = load double, ptr %35, align 8, !tbaa !11
  %313 = fadd double %312, %311
  store double %313, ptr %35, align 8, !tbaa !11
  br label %314

314:                                              ; preds = %310
  %315 = load i64, ptr %24, align 8, !tbaa !9
  %316 = add nsw i64 %315, -1
  store i64 %316, ptr %24, align 8, !tbaa !9
  br label %206, !llvm.loop !16

317:                                              ; preds = %206
  %318 = load double, ptr %37, align 8, !tbaa !11
  %319 = load double, ptr %35, align 8, !tbaa !11
  %320 = fcmp ogt double %318, %319
  br i1 %320, label %321, label %327

321:                                              ; preds = %317
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  %323 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 0
  %324 = load ptr, ptr %14, align 8, !tbaa !5
  %325 = getelementptr inbounds double, ptr %324, i64 1
  %326 = call i32 @f2c_dcopy(ptr noundef %322, ptr noundef %323, ptr noundef @c__1, ptr noundef %325, ptr noundef @c__1)
  br label %327

327:                                              ; preds = %321, %317
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = load i64, ptr %328, align 8, !tbaa !9
  %330 = sub nsw i64 %329, 1
  store i64 %330, ptr %21, align 8, !tbaa !9
  %331 = load ptr, ptr %14, align 8, !tbaa !5
  %332 = getelementptr inbounds double, ptr %331, i64 1
  %333 = load ptr, ptr %13, align 8, !tbaa !5
  %334 = load ptr, ptr %18, align 8, !tbaa !5
  %335 = getelementptr inbounds i64, ptr %334, i64 1
  %336 = call i32 @dlaswp_(ptr noundef @c__1, ptr noundef %332, ptr noundef %333, ptr noundef @c__1, ptr noundef %21, ptr noundef %335, ptr noundef @c_n1)
  %337 = load ptr, ptr %11, align 8, !tbaa !5
  %338 = load ptr, ptr %14, align 8, !tbaa !5
  %339 = getelementptr inbounds double, ptr %338, i64 1
  %340 = load ptr, ptr %16, align 8, !tbaa !5
  %341 = load ptr, ptr %15, align 8, !tbaa !5
  %342 = call i32 @dlassq_(ptr noundef %337, ptr noundef %339, ptr noundef @c__1, ptr noundef %340, ptr noundef %341)
  br label %433

343:                                              ; preds = %9
  %344 = load ptr, ptr %11, align 8, !tbaa !5
  %345 = load ptr, ptr %12, align 8, !tbaa !5
  %346 = load i64, ptr %20, align 8, !tbaa !9
  %347 = getelementptr inbounds double, ptr %345, i64 %346
  %348 = load ptr, ptr %13, align 8, !tbaa !5
  %349 = getelementptr inbounds [32 x double], ptr %33, i64 0, i64 0
  %350 = getelementptr inbounds [8 x i64], ptr %36, i64 0, i64 0
  %351 = call i32 @dgecon_(ptr noundef @.str, ptr noundef %344, ptr noundef %347, ptr noundef %348, ptr noundef @c_b23, ptr noundef %32, ptr noundef %349, ptr noundef %350, ptr noundef %31)
  %352 = load ptr, ptr %11, align 8, !tbaa !5
  %353 = load ptr, ptr %11, align 8, !tbaa !5
  %354 = load i64, ptr %353, align 8, !tbaa !9
  %355 = getelementptr inbounds [32 x double], ptr %33, i64 0, i64 %354
  %356 = getelementptr inbounds [8 x double], ptr %29, i64 0, i64 0
  %357 = call i32 @f2c_dcopy(ptr noundef %352, ptr noundef %355, ptr noundef @c__1, ptr noundef %356, ptr noundef @c__1)
  %358 = load ptr, ptr %11, align 8, !tbaa !5
  %359 = load i64, ptr %358, align 8, !tbaa !9
  %360 = sub nsw i64 %359, 1
  store i64 %360, ptr %21, align 8, !tbaa !9
  %361 = getelementptr inbounds [8 x double], ptr %29, i64 0, i64 0
  %362 = load ptr, ptr %13, align 8, !tbaa !5
  %363 = load ptr, ptr %17, align 8, !tbaa !5
  %364 = getelementptr inbounds i64, ptr %363, i64 1
  %365 = call i32 @dlaswp_(ptr noundef @c__1, ptr noundef %361, ptr noundef %362, ptr noundef @c__1, ptr noundef %21, ptr noundef %364, ptr noundef @c_n1)
  %366 = load ptr, ptr %11, align 8, !tbaa !5
  %367 = getelementptr inbounds [8 x double], ptr %29, i64 0, i64 0
  %368 = getelementptr inbounds [8 x double], ptr %29, i64 0, i64 0
  %369 = call double @f2c_ddot(ptr noundef %366, ptr noundef %367, ptr noundef @c__1, ptr noundef %368, ptr noundef @c__1)
  %370 = call double @sqrt(double noundef %369) #5
  %371 = fdiv double 1.000000e+00, %370
  store double %371, ptr %32, align 8, !tbaa !11
  %372 = load ptr, ptr %11, align 8, !tbaa !5
  %373 = getelementptr inbounds [8 x double], ptr %29, i64 0, i64 0
  %374 = call i32 @f2c_dscal(ptr noundef %372, ptr noundef %32, ptr noundef %373, ptr noundef @c__1)
  %375 = load ptr, ptr %11, align 8, !tbaa !5
  %376 = getelementptr inbounds [8 x double], ptr %29, i64 0, i64 0
  %377 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 0
  %378 = call i32 @f2c_dcopy(ptr noundef %375, ptr noundef %376, ptr noundef @c__1, ptr noundef %377, ptr noundef @c__1)
  %379 = load ptr, ptr %11, align 8, !tbaa !5
  %380 = load ptr, ptr %14, align 8, !tbaa !5
  %381 = getelementptr inbounds double, ptr %380, i64 1
  %382 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 0
  %383 = call i32 @f2c_daxpy(ptr noundef %379, ptr noundef @c_b23, ptr noundef %381, ptr noundef @c__1, ptr noundef %382, ptr noundef @c__1)
  %384 = load ptr, ptr %11, align 8, !tbaa !5
  %385 = getelementptr inbounds [8 x double], ptr %29, i64 0, i64 0
  %386 = load ptr, ptr %14, align 8, !tbaa !5
  %387 = getelementptr inbounds double, ptr %386, i64 1
  %388 = call i32 @f2c_daxpy(ptr noundef %384, ptr noundef @c_b37, ptr noundef %385, ptr noundef @c__1, ptr noundef %387, ptr noundef @c__1)
  %389 = load ptr, ptr %11, align 8, !tbaa !5
  %390 = load ptr, ptr %12, align 8, !tbaa !5
  %391 = load i64, ptr %20, align 8, !tbaa !9
  %392 = getelementptr inbounds double, ptr %390, i64 %391
  %393 = load ptr, ptr %13, align 8, !tbaa !5
  %394 = load ptr, ptr %14, align 8, !tbaa !5
  %395 = getelementptr inbounds double, ptr %394, i64 1
  %396 = load ptr, ptr %17, align 8, !tbaa !5
  %397 = getelementptr inbounds i64, ptr %396, i64 1
  %398 = load ptr, ptr %18, align 8, !tbaa !5
  %399 = getelementptr inbounds i64, ptr %398, i64 1
  %400 = call i32 @dgesc2_(ptr noundef %389, ptr noundef %392, ptr noundef %393, ptr noundef %395, ptr noundef %397, ptr noundef %399, ptr noundef %32)
  %401 = load ptr, ptr %11, align 8, !tbaa !5
  %402 = load ptr, ptr %12, align 8, !tbaa !5
  %403 = load i64, ptr %20, align 8, !tbaa !9
  %404 = getelementptr inbounds double, ptr %402, i64 %403
  %405 = load ptr, ptr %13, align 8, !tbaa !5
  %406 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 0
  %407 = load ptr, ptr %17, align 8, !tbaa !5
  %408 = getelementptr inbounds i64, ptr %407, i64 1
  %409 = load ptr, ptr %18, align 8, !tbaa !5
  %410 = getelementptr inbounds i64, ptr %409, i64 1
  %411 = call i32 @dgesc2_(ptr noundef %401, ptr noundef %404, ptr noundef %405, ptr noundef %406, ptr noundef %408, ptr noundef %410, ptr noundef %32)
  %412 = load ptr, ptr %11, align 8, !tbaa !5
  %413 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 0
  %414 = call double @f2c_dasum(ptr noundef %412, ptr noundef %413, ptr noundef @c__1)
  %415 = load ptr, ptr %11, align 8, !tbaa !5
  %416 = load ptr, ptr %14, align 8, !tbaa !5
  %417 = getelementptr inbounds double, ptr %416, i64 1
  %418 = call double @f2c_dasum(ptr noundef %415, ptr noundef %417, ptr noundef @c__1)
  %419 = fcmp ogt double %414, %418
  br i1 %419, label %420, label %426

420:                                              ; preds = %343
  %421 = load ptr, ptr %11, align 8, !tbaa !5
  %422 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 0
  %423 = load ptr, ptr %14, align 8, !tbaa !5
  %424 = getelementptr inbounds double, ptr %423, i64 1
  %425 = call i32 @f2c_dcopy(ptr noundef %421, ptr noundef %422, ptr noundef @c__1, ptr noundef %424, ptr noundef @c__1)
  br label %426

426:                                              ; preds = %420, %343
  %427 = load ptr, ptr %11, align 8, !tbaa !5
  %428 = load ptr, ptr %14, align 8, !tbaa !5
  %429 = getelementptr inbounds double, ptr %428, i64 1
  %430 = load ptr, ptr %16, align 8, !tbaa !5
  %431 = load ptr, ptr %15, align 8, !tbaa !5
  %432 = call i32 @dlassq_(ptr noundef %427, ptr noundef %429, ptr noundef @c__1, ptr noundef %430, ptr noundef %431)
  br label %433

433:                                              ; preds = %426, %327
  call void @llvm.lifetime.end.p0(i64 8, 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 256, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  ret i32 0
}

; 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 @f2c_ddot(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare i32 @f2c_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 i32 @dlassq_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @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 i32 @f2c_dscal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare double @f2c_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 = !{!"long", !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 i64, align 8
@c_n1 = external hidden global i64, align 8
@.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 noundef i32 @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 i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca [8 x double], align 16
  %13 = alloca [8 x double], align 16
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca [32 x double], align 16
  %17 = alloca [8 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #5
  %18 = load i64, ptr %3, align 8, !tbaa !5
  %19 = xor i64 %18, -1
  %20 = getelementptr inbounds double, ptr %2, i64 %19
  %21 = getelementptr inbounds i8, ptr %4, i64 -8
  %22 = load i64, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i64 %22, 2
  br i1 %.not, label %120, label %23

23:                                               ; preds = %9
  %24 = load i64, ptr %1, align 8, !tbaa !5
  %25 = add nsw i64 %24, -1
  store i64 %25, ptr %10, align 8, !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 i64, ptr %1, align 8, !tbaa !5
  %28 = add nsw i64 %27, -1
  store i64 %28, ptr %10, align 8, !tbaa !5
  %.not166168 = icmp slt i64 %27, 2
  br i1 %.not166168, label %._crit_edge, label %.lr.ph

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

46:                                               ; preds = %.lr.ph
  %47 = fadd double %30, 1.000000e+00
  br label %53

48:                                               ; preds = %.lr.ph
  %49 = fadd double %30, -1.000000e+00
  %50 = fcmp ogt double %42, %44
  br i1 %50, label %53, label %51

51:                                               ; preds = %48
  %52 = fadd double %.0160170, %43
  br label %53

53:                                               ; preds = %48, %51, %46
  %.sink = phi double [ %52, %51 ], [ %47, %46 ], [ %49, %48 ]
  %.1 = phi double [ 1.000000e+00, %51 ], [ %.0160170, %46 ], [ %.0160170, %48 ]
  store double %.sink, ptr %29, align 8, !tbaa !9
  %54 = fneg double %.sink
  store double %54, ptr %15, align 8, !tbaa !9
  %55 = load i64, ptr %1, align 8, !tbaa !5
  %56 = sub nsw i64 %55, %.0162169
  store i64 %56, ptr %11, align 8, !tbaa !5
  %57 = call i32 @f2c_daxpy(ptr noundef nonnull %11, ptr noundef nonnull %15, ptr noundef %36, ptr noundef nonnull @c__1, ptr noundef %41, ptr noundef nonnull @c__1) #5
  %58 = load i64, ptr %10, align 8, !tbaa !5
  %.not166.not = icmp slt i64 %.0162169, %58
  br i1 %.not166.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %53
  %.pre = load i64, ptr %1, align 8, !tbaa !5
  %.pre187 = add nsw i64 %.pre, -1
  br label %._crit_edge

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

.lr.ph181:                                        ; preds = %._crit_edge
  %68 = add i64 %18, 1
  br label %69

69:                                               ; preds = %.lr.ph181, %._crit_edge175
  %.0163177 = phi i64 [ %60, %.lr.ph181 ], [ %75, %._crit_edge175 ]
  %70 = phi <2 x double> [ zeroinitializer, %.lr.ph181 ], [ %110, %._crit_edge175 ]
  %71 = mul i64 %.0163177, %68
  %72 = getelementptr inbounds double, ptr %20, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = fdiv double 1.000000e+00, %73
  %75 = add nsw i64 %.0163177, -1
  %76 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds double, ptr %21, i64 %.0163177
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = insertelement <2 x double> poison, double %74, i64 0
  %81 = shufflevector <2 x double> %80, <2 x double> poison, <2 x i32> zeroinitializer
  %82 = insertelement <2 x double> poison, double %79, i64 0
  %83 = insertelement <2 x double> %82, double %77, i64 1
  %84 = fmul <2 x double> %81, %83
  %85 = extractelement <2 x double> %84, i64 1
  store double %85, ptr %76, align 8, !tbaa !9
  %86 = extractelement <2 x double> %84, i64 0
  store double %86, ptr %78, align 8, !tbaa !9
  %.not167.not171 = icmp slt i64 %.0163177, %60
  br i1 %.not167.not171, label %.lr.ph174, label %._crit_edge175

.lr.ph174:                                        ; preds = %69
  %87 = getelementptr double, ptr %20, i64 %.0163177
  br label %88

88:                                               ; preds = %.lr.ph174, %88
  %.0161.in172 = phi i64 [ %.0163177, %.lr.ph174 ], [ %.0161, %88 ]
  %89 = phi <2 x double> [ %84, %.lr.ph174 ], [ %103, %88 ]
  %.0161 = add nuw nsw i64 %.0161.in172, 1
  %90 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %.0161.in172
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = mul nsw i64 %.0161, %18
  %93 = getelementptr double, ptr %87, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = fmul double %74, %94
  %96 = getelementptr double, ptr %4, i64 %.0161.in172
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = insertelement <2 x double> poison, double %97, i64 0
  %99 = insertelement <2 x double> %98, double %91, i64 1
  %100 = fneg <2 x double> %99
  %101 = insertelement <2 x double> poison, double %95, i64 0
  %102 = shufflevector <2 x double> %101, <2 x double> poison, <2 x i32> zeroinitializer
  %103 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %100, <2 x double> %102, <2 x double> %89)
  %104 = extractelement <2 x double> %103, i64 1
  store double %104, ptr %76, align 8, !tbaa !9
  %105 = extractelement <2 x double> %103, i64 0
  store double %105, ptr %78, align 8, !tbaa !9
  %exitcond.not = icmp eq i64 %.0161, %60
  br i1 %exitcond.not, label %._crit_edge175, label %88, !llvm.loop !13

._crit_edge175:                                   ; preds = %88, %69
  %106 = phi <2 x double> [ %84, %69 ], [ %103, %88 ]
  %107 = fcmp oge <2 x double> %106, zeroinitializer
  %108 = fneg <2 x double> %106
  %109 = select <2 x i1> %107, <2 x double> %106, <2 x double> %108
  %110 = fadd <2 x double> %70, %109
  %111 = icmp sgt i64 %.0163177, 1
  br i1 %111, label %69, label %112, !llvm.loop !14

112:                                              ; preds = %._crit_edge175
  store double %74, ptr %15, align 8, !tbaa !9
  store i64 %60, ptr %10, align 8, !tbaa !5
  %113 = extractelement <2 x double> %110, i64 0
  %114 = extractelement <2 x double> %110, i64 1
  %115 = fcmp ogt double %114, %113
  br i1 %115, label %116, label %.thread

116:                                              ; preds = %112
  %117 = call i32 @f2c_dcopy(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull @c__1, ptr noundef nonnull %4, ptr noundef nonnull @c__1) #5
  %.pre186 = load i64, ptr %1, align 8, !tbaa !5
  %.pre188 = add nsw i64 %.pre186, -1
  br label %.thread

.thread:                                          ; preds = %._crit_edge, %116, %112
  %.pre-phi189 = phi i64 [ %.pre188, %116 ], [ %64, %112 ], [ %64, %._crit_edge ]
  store i64 %.pre-phi189, ptr %10, align 8, !tbaa !5
  %118 = 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
  %119 = call i32 @dlassq_(ptr noundef nonnull %1, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef %5) #5
  br label %144

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

140:                                              ; preds = %120
  %141 = call i32 @f2c_dcopy(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef nonnull @c__1) #5
  br label %142

142:                                              ; preds = %140, %120
  %143 = call i32 @dlassq_(ptr noundef nonnull %1, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef %5) #5
  br label %144

144:                                              ; preds = %142, %.thread
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret i32 0
}

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

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

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

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

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

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

declare i32 @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 i32 @f2c_dscal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @f2c_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 = !{!"long", !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