; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (zlarfp)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b5 = external hidden global %struct.doublecomplex, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @zlarfp_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.doublecomplex, align 8
  %17 = alloca %struct.doublecomplex, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.doublecomplex, ptr %27, i32 -1
  store ptr %28, ptr %9, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %31 = icmp sle i64 %30, 0
  br i1 %31, label %32, label %37

32:                                               ; preds = %5
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  store double 0.000000e+00, ptr %34, align 8, !tbaa !11
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.doublecomplex, ptr %35, i32 0, i32 1
  store double 0.000000e+00, ptr %36, align 8, !tbaa !14
  store i32 0, ptr %6, align 4
  store i32 1, ptr %26, align 4
  br label %381

37:                                               ; preds = %5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = sub nsw i64 %39, 1
  store i64 %40, ptr %12, align 8, !tbaa !9
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.doublecomplex, ptr %41, i64 1
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = call double @f2c_dznrm2(ptr noundef %12, ptr noundef %42, ptr noundef %43)
  store double %44, ptr %23, align 8, !tbaa !15
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.doublecomplex, ptr %45, i32 0, i32 0
  %47 = load double, ptr %46, align 8, !tbaa !11
  store double %47, ptr %22, align 8, !tbaa !15
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call double @d_imag(ptr noundef %48)
  store double %49, ptr %21, align 8, !tbaa !15
  %50 = load double, ptr %23, align 8, !tbaa !15
  %51 = fcmp oeq double %50, 0.000000e+00
  br i1 %51, label %52, label %170

52:                                               ; preds = %37
  %53 = load double, ptr %21, align 8, !tbaa !15
  %54 = fcmp oeq double %53, 0.000000e+00
  br i1 %54, label %55, label %170

55:                                               ; preds = %52
  %56 = load double, ptr %21, align 8, !tbaa !15
  %57 = fcmp oeq double %56, 0.000000e+00
  br i1 %57, label %58, label %116

58:                                               ; preds = %55
  %59 = load double, ptr %22, align 8, !tbaa !15
  %60 = fcmp oge double %59, 0.000000e+00
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %62, i32 0, i32 0
  store double 0.000000e+00, ptr %63, align 8, !tbaa !11
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %64, i32 0, i32 1
  store double 0.000000e+00, ptr %65, align 8, !tbaa !14
  br label %115

66:                                               ; preds = %58
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.doublecomplex, ptr %67, i32 0, i32 0
  store double 2.000000e+00, ptr %68, align 8, !tbaa !11
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.doublecomplex, ptr %69, i32 0, i32 1
  store double 0.000000e+00, ptr %70, align 8, !tbaa !14
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = sub nsw i64 %72, 1
  store i64 %73, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %18, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %93, %66
  %75 = load i64, ptr %18, align 8, !tbaa !9
  %76 = load i64, ptr %12, align 8, !tbaa !9
  %77 = icmp sle i64 %75, %76
  br i1 %77, label %78, label %96

78:                                               ; preds = %74
  %79 = load i64, ptr %18, align 8, !tbaa !9
  %80 = sub nsw i64 %79, 1
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = mul nsw i64 %80, %82
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %13, align 8, !tbaa !9
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %85, i64 %86
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %87, i32 0, i32 0
  store double 0.000000e+00, ptr %88, align 8, !tbaa !11
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load i64, ptr %13, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.doublecomplex, ptr %89, i64 %90
  %92 = getelementptr inbounds %struct.doublecomplex, ptr %91, i32 0, i32 1
  store double 0.000000e+00, ptr %92, align 8, !tbaa !14
  br label %93

93:                                               ; preds = %78
  %94 = load i64, ptr %18, align 8, !tbaa !9
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %18, align 8, !tbaa !9
  br label %74, !llvm.loop !16

96:                                               ; preds = %74
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.doublecomplex, ptr %97, i32 0, i32 0
  %99 = load double, ptr %98, align 8, !tbaa !11
  %100 = fneg double %99
  %101 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %100, ptr %101, align 8, !tbaa !11
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.doublecomplex, ptr %102, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !14
  %105 = fneg double %104
  %106 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %105, ptr %106, align 8, !tbaa !14
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.doublecomplex, ptr %109, i32 0, i32 0
  store double %108, ptr %110, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %112 = load double, ptr %111, align 8, !tbaa !14
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.doublecomplex, ptr %113, i32 0, i32 1
  store double %112, ptr %114, align 8, !tbaa !14
  br label %115

115:                                              ; preds = %96, %61
  br label %169

116:                                              ; preds = %55
  %117 = call double @dlapy2_(ptr noundef %22, ptr noundef %21)
  store double %117, ptr %23, align 8, !tbaa !15
  %118 = load double, ptr %22, align 8, !tbaa !15
  %119 = load double, ptr %23, align 8, !tbaa !15
  %120 = fdiv double %118, %119
  %121 = fsub double 1.000000e+00, %120
  store double %121, ptr %14, align 8, !tbaa !15
  %122 = load double, ptr %21, align 8, !tbaa !15
  %123 = fneg double %122
  %124 = load double, ptr %23, align 8, !tbaa !15
  %125 = fdiv double %123, %124
  store double %125, ptr %15, align 8, !tbaa !15
  %126 = load double, ptr %14, align 8, !tbaa !15
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %126, ptr %127, align 8, !tbaa !11
  %128 = load double, ptr %15, align 8, !tbaa !15
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %128, ptr %129, align 8, !tbaa !14
  %130 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %131 = load double, ptr %130, align 8, !tbaa !11
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.doublecomplex, ptr %132, i32 0, i32 0
  store double %131, ptr %133, align 8, !tbaa !11
  %134 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %135 = load double, ptr %134, align 8, !tbaa !14
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %136, i32 0, i32 1
  store double %135, ptr %137, align 8, !tbaa !14
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = sub nsw i64 %139, 1
  store i64 %140, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %18, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %160, %116
  %142 = load i64, ptr %18, align 8, !tbaa !9
  %143 = load i64, ptr %12, align 8, !tbaa !9
  %144 = icmp sle i64 %142, %143
  br i1 %144, label %145, label %163

145:                                              ; preds = %141
  %146 = load i64, ptr %18, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = mul nsw i64 %147, %149
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %13, align 8, !tbaa !9
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load i64, ptr %13, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.doublecomplex, ptr %152, i64 %153
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %154, i32 0, i32 0
  store double 0.000000e+00, ptr %155, align 8, !tbaa !11
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = load i64, ptr %13, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %156, i64 %157
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %158, i32 0, i32 1
  store double 0.000000e+00, ptr %159, align 8, !tbaa !14
  br label %160

160:                                              ; preds = %145
  %161 = load i64, ptr %18, align 8, !tbaa !9
  %162 = add nsw i64 %161, 1
  store i64 %162, ptr %18, align 8, !tbaa !9
  br label %141, !llvm.loop !18

163:                                              ; preds = %141
  %164 = load double, ptr %23, align 8, !tbaa !15
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.doublecomplex, ptr %165, i32 0, i32 0
  store double %164, ptr %166, align 8, !tbaa !11
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.doublecomplex, ptr %167, i32 0, i32 1
  store double 0.000000e+00, ptr %168, align 8, !tbaa !14
  br label %169

169:                                              ; preds = %163, %115
  br label %380

170:                                              ; preds = %52, %37
  %171 = call double @dlapy3_(ptr noundef %22, ptr noundef %21, ptr noundef %23)
  store double %171, ptr %14, align 8, !tbaa !15
  %172 = call double @d_sign(ptr noundef %14, ptr noundef %22)
  store double %172, ptr %20, align 8, !tbaa !15
  %173 = call double @dlamch_(ptr noundef @.str)
  %174 = call double @dlamch_(ptr noundef @.str.1)
  %175 = fdiv double %173, %174
  store double %175, ptr %24, align 8, !tbaa !15
  %176 = load double, ptr %24, align 8, !tbaa !15
  %177 = fdiv double 1.000000e+00, %176
  store double %177, ptr %25, align 8, !tbaa !15
  store i64 0, ptr %19, align 8, !tbaa !9
  %178 = load double, ptr %20, align 8, !tbaa !15
  %179 = fcmp oge double %178, 0.000000e+00
  br i1 %179, label %180, label %182

180:                                              ; preds = %170
  %181 = load double, ptr %20, align 8, !tbaa !15
  br label %185

182:                                              ; preds = %170
  %183 = load double, ptr %20, align 8, !tbaa !15
  %184 = fneg double %183
  br label %185

185:                                              ; preds = %182, %180
  %186 = phi double [ %181, %180 ], [ %184, %182 ]
  %187 = load double, ptr %24, align 8, !tbaa !15
  %188 = fcmp olt double %186, %187
  br i1 %188, label %189, label %243

189:                                              ; preds = %185
  br label %190

190:                                              ; preds = %220, %189
  %191 = load i64, ptr %19, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %19, align 8, !tbaa !9
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = load i64, ptr %193, align 8, !tbaa !9
  %195 = sub nsw i64 %194, 1
  store i64 %195, ptr %12, align 8, !tbaa !9
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.doublecomplex, ptr %196, i64 1
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = call i32 @f2c_zdscal(ptr noundef %12, ptr noundef %25, ptr noundef %197, ptr noundef %198)
  %200 = load double, ptr %25, align 8, !tbaa !15
  %201 = load double, ptr %20, align 8, !tbaa !15
  %202 = fmul double %201, %200
  store double %202, ptr %20, align 8, !tbaa !15
  %203 = load double, ptr %25, align 8, !tbaa !15
  %204 = load double, ptr %21, align 8, !tbaa !15
  %205 = fmul double %204, %203
  store double %205, ptr %21, align 8, !tbaa !15
  %206 = load double, ptr %25, align 8, !tbaa !15
  %207 = load double, ptr %22, align 8, !tbaa !15
  %208 = fmul double %207, %206
  store double %208, ptr %22, align 8, !tbaa !15
  %209 = load double, ptr %20, align 8, !tbaa !15
  %210 = fcmp oge double %209, 0.000000e+00
  br i1 %210, label %211, label %213

211:                                              ; preds = %190
  %212 = load double, ptr %20, align 8, !tbaa !15
  br label %216

213:                                              ; preds = %190
  %214 = load double, ptr %20, align 8, !tbaa !15
  %215 = fneg double %214
  br label %216

216:                                              ; preds = %213, %211
  %217 = phi double [ %212, %211 ], [ %215, %213 ]
  %218 = load double, ptr %24, align 8, !tbaa !15
  %219 = fcmp olt double %217, %218
  br i1 %219, label %220, label %221

220:                                              ; preds = %216
  br label %190

221:                                              ; preds = %216
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = sub nsw i64 %223, 1
  store i64 %224, ptr %12, align 8, !tbaa !9
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.doublecomplex, ptr %225, i64 1
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = call double @f2c_dznrm2(ptr noundef %12, ptr noundef %226, ptr noundef %227)
  store double %228, ptr %23, align 8, !tbaa !15
  %229 = load double, ptr %22, align 8, !tbaa !15
  %230 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %229, ptr %230, align 8, !tbaa !11
  %231 = load double, ptr %21, align 8, !tbaa !15
  %232 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %231, ptr %232, align 8, !tbaa !14
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.doublecomplex, ptr %235, i32 0, i32 0
  store double %234, ptr %236, align 8, !tbaa !11
  %237 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %238 = load double, ptr %237, align 8, !tbaa !14
  %239 = load ptr, ptr %8, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.doublecomplex, ptr %239, i32 0, i32 1
  store double %238, ptr %240, align 8, !tbaa !14
  %241 = call double @dlapy3_(ptr noundef %22, ptr noundef %21, ptr noundef %23)
  store double %241, ptr %14, align 8, !tbaa !15
  %242 = call double @d_sign(ptr noundef %14, ptr noundef %22)
  store double %242, ptr %20, align 8, !tbaa !15
  br label %243

243:                                              ; preds = %221, %185
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.doublecomplex, ptr %244, i32 0, i32 0
  %246 = load double, ptr %245, align 8, !tbaa !11
  %247 = load double, ptr %20, align 8, !tbaa !15
  %248 = fadd double %246, %247
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %248, ptr %249, align 8, !tbaa !11
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.doublecomplex, ptr %250, i32 0, i32 1
  %252 = load double, ptr %251, align 8, !tbaa !14
  %253 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %252, ptr %253, align 8, !tbaa !14
  %254 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %255 = load double, ptr %254, align 8, !tbaa !11
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.doublecomplex, ptr %256, i32 0, i32 0
  store double %255, ptr %257, align 8, !tbaa !11
  %258 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %259 = load double, ptr %258, align 8, !tbaa !14
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %260, i32 0, i32 1
  store double %259, ptr %261, align 8, !tbaa !14
  %262 = load double, ptr %20, align 8, !tbaa !15
  %263 = fcmp olt double %262, 0.000000e+00
  br i1 %263, label %264, label %295

264:                                              ; preds = %243
  %265 = load double, ptr %20, align 8, !tbaa !15
  %266 = fneg double %265
  store double %266, ptr %20, align 8, !tbaa !15
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.doublecomplex, ptr %267, i32 0, i32 0
  %269 = load double, ptr %268, align 8, !tbaa !11
  %270 = fneg double %269
  %271 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %270, ptr %271, align 8, !tbaa !11
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.doublecomplex, ptr %272, i32 0, i32 1
  %274 = load double, ptr %273, align 8, !tbaa !14
  %275 = fneg double %274
  %276 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %275, ptr %276, align 8, !tbaa !14
  %277 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %278 = load double, ptr %277, align 8, !tbaa !11
  %279 = load double, ptr %20, align 8, !tbaa !15
  %280 = fdiv double %278, %279
  %281 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %280, ptr %281, align 8, !tbaa !11
  %282 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %283 = load double, ptr %282, align 8, !tbaa !14
  %284 = load double, ptr %20, align 8, !tbaa !15
  %285 = fdiv double %283, %284
  %286 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %285, ptr %286, align 8, !tbaa !14
  %287 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %288 = load double, ptr %287, align 8, !tbaa !11
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.doublecomplex, ptr %289, i32 0, i32 0
  store double %288, ptr %290, align 8, !tbaa !11
  %291 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %292 = load double, ptr %291, align 8, !tbaa !14
  %293 = load ptr, ptr %11, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.doublecomplex, ptr %293, i32 0, i32 1
  store double %292, ptr %294, align 8, !tbaa !14
  br label %344

295:                                              ; preds = %243
  %296 = load double, ptr %21, align 8, !tbaa !15
  %297 = load double, ptr %21, align 8, !tbaa !15
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %298, i32 0, i32 0
  %300 = load double, ptr %299, align 8, !tbaa !11
  %301 = fdiv double %297, %300
  %302 = fmul double %296, %301
  store double %302, ptr %22, align 8, !tbaa !15
  %303 = load double, ptr %23, align 8, !tbaa !15
  %304 = load double, ptr %23, align 8, !tbaa !15
  %305 = load ptr, ptr %8, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.doublecomplex, ptr %305, i32 0, i32 0
  %307 = load double, ptr %306, align 8, !tbaa !11
  %308 = fdiv double %304, %307
  %309 = load double, ptr %22, align 8, !tbaa !15
  %310 = call double @llvm.fmuladd.f64(double %303, double %308, double %309)
  store double %310, ptr %22, align 8, !tbaa !15
  %311 = load double, ptr %22, align 8, !tbaa !15
  %312 = load double, ptr %20, align 8, !tbaa !15
  %313 = fdiv double %311, %312
  store double %313, ptr %14, align 8, !tbaa !15
  %314 = load double, ptr %21, align 8, !tbaa !15
  %315 = fneg double %314
  %316 = load double, ptr %20, align 8, !tbaa !15
  %317 = fdiv double %315, %316
  store double %317, ptr %15, align 8, !tbaa !15
  %318 = load double, ptr %14, align 8, !tbaa !15
  %319 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %318, ptr %319, align 8, !tbaa !11
  %320 = load double, ptr %15, align 8, !tbaa !15
  %321 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %320, ptr %321, align 8, !tbaa !14
  %322 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %323 = load double, ptr %322, align 8, !tbaa !11
  %324 = load ptr, ptr %11, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.doublecomplex, ptr %324, i32 0, i32 0
  store double %323, ptr %325, align 8, !tbaa !11
  %326 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %327 = load double, ptr %326, align 8, !tbaa !14
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.doublecomplex, ptr %328, i32 0, i32 1
  store double %327, ptr %329, align 8, !tbaa !14
  %330 = load double, ptr %22, align 8, !tbaa !15
  %331 = fneg double %330
  store double %331, ptr %14, align 8, !tbaa !15
  %332 = load double, ptr %14, align 8, !tbaa !15
  %333 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %332, ptr %333, align 8, !tbaa !11
  %334 = load double, ptr %21, align 8, !tbaa !15
  %335 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %334, ptr %335, align 8, !tbaa !14
  %336 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %337 = load double, ptr %336, align 8, !tbaa !11
  %338 = load ptr, ptr %8, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.doublecomplex, ptr %338, i32 0, i32 0
  store double %337, ptr %339, align 8, !tbaa !11
  %340 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %341 = load double, ptr %340, align 8, !tbaa !14
  %342 = load ptr, ptr %8, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.doublecomplex, ptr %342, i32 0, i32 1
  store double %341, ptr %343, align 8, !tbaa !14
  br label %344

344:                                              ; preds = %295, %264
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  call void @zladiv_(ptr noundef %16, ptr noundef @c_b5, ptr noundef %345)
  %346 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %347 = load double, ptr %346, align 8, !tbaa !11
  %348 = load ptr, ptr %8, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.doublecomplex, ptr %348, i32 0, i32 0
  store double %347, ptr %349, align 8, !tbaa !11
  %350 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %351 = load double, ptr %350, align 8, !tbaa !14
  %352 = load ptr, ptr %8, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.doublecomplex, ptr %352, i32 0, i32 1
  store double %351, ptr %353, align 8, !tbaa !14
  %354 = load ptr, ptr %7, align 8, !tbaa !5
  %355 = load i64, ptr %354, align 8, !tbaa !9
  %356 = sub nsw i64 %355, 1
  store i64 %356, ptr %12, align 8, !tbaa !9
  %357 = load ptr, ptr %8, align 8, !tbaa !5
  %358 = load ptr, ptr %9, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.doublecomplex, ptr %358, i64 1
  %360 = load ptr, ptr %10, align 8, !tbaa !5
  %361 = call i32 @f2c_zscal(ptr noundef %12, ptr noundef %357, ptr noundef %359, ptr noundef %360)
  %362 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %362, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %18, align 8, !tbaa !9
  br label %363

363:                                              ; preds = %371, %344
  %364 = load i64, ptr %18, align 8, !tbaa !9
  %365 = load i64, ptr %12, align 8, !tbaa !9
  %366 = icmp sle i64 %364, %365
  br i1 %366, label %367, label %374

367:                                              ; preds = %363
  %368 = load double, ptr %24, align 8, !tbaa !15
  %369 = load double, ptr %20, align 8, !tbaa !15
  %370 = fmul double %369, %368
  store double %370, ptr %20, align 8, !tbaa !15
  br label %371

371:                                              ; preds = %367
  %372 = load i64, ptr %18, align 8, !tbaa !9
  %373 = add nsw i64 %372, 1
  store i64 %373, ptr %18, align 8, !tbaa !9
  br label %363, !llvm.loop !19

374:                                              ; preds = %363
  %375 = load double, ptr %20, align 8, !tbaa !15
  %376 = load ptr, ptr %8, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.doublecomplex, ptr %376, i32 0, i32 0
  store double %375, ptr %377, align 8, !tbaa !11
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.doublecomplex, ptr %378, i32 0, i32 1
  store double 0.000000e+00, ptr %379, align 8, !tbaa !14
  br label %380

380:                                              ; preds = %374, %169
  store i32 0, ptr %6, align 4
  store i32 1, ptr %26, align 4
  br label %381

381:                                              ; preds = %380, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %382 = load i32, ptr %6, align 4
  ret i32 %382
}

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

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

declare double @d_imag(ptr noundef) #2

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

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

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

declare double @dlamch_(ptr noundef) #2

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!13, !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b5 = external hidden global %struct.doublecomplex, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @zlarfp_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca double, align 8
  %8 = alloca %struct.doublecomplex, align 16
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  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 8, ptr nonnull %12) #5
  %13 = load i64, ptr %0, align 8, !tbaa !5
  %14 = icmp slt i64 %13, 1
  br i1 %14, label %15, label %16

15:                                               ; preds = %5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  br label %131

16:                                               ; preds = %5
  %17 = add nsw i64 %13, -1
  store i64 %17, ptr %6, align 8, !tbaa !5
  %18 = call double @f2c_dznrm2(ptr noundef nonnull %6, ptr noundef %2, ptr noundef %3) #5
  store double %18, ptr %11, align 8, !tbaa !9
  %19 = load double, ptr %1, align 8, !tbaa !11
  store double %19, ptr %10, align 8, !tbaa !9
  %20 = call double @d_imag(ptr noundef nonnull %1) #5
  store double %20, ptr %9, align 8, !tbaa !9
  %21 = fcmp oeq double %18, 0.000000e+00
  %22 = fcmp oeq double %20, 0.000000e+00
  %or.cond = select i1 %21, i1 %22, i1 false
  br i1 %or.cond, label %23, label %51

23:                                               ; preds = %16
  %24 = fcmp ult double %19, 0.000000e+00
  br i1 %24, label %26, label %25

25:                                               ; preds = %23
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  br label %131

26:                                               ; preds = %23
  store <2 x double> <double 2.000000e+00, double 0.000000e+00>, ptr %4, align 8, !tbaa !9
  %27 = load i64, ptr %0, align 8, !tbaa !5
  %.not103.not107 = icmp sgt i64 %27, 1
  br i1 %.not103.not107, label %.lr.ph110, label %._crit_edge111

.lr.ph110:                                        ; preds = %26
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %29 = add nsw i64 %27, -1
  %30 = add nsw i64 %27, -2
  %xtraiter119 = and i64 %29, 3
  %31 = icmp ult i64 %30, 3
  br i1 %31, label %._crit_edge111.loopexit.unr-lcssa, label %.lr.ph110.new

.lr.ph110.new:                                    ; preds = %.lr.ph110
  %unroll_iter122 = and i64 %29, -4
  br label %32

32:                                               ; preds = %32, %.lr.ph110.new
  %.0100108 = phi i64 [ 1, %.lr.ph110.new ], [ %44, %32 ]
  %niter123 = phi i64 [ 0, %.lr.ph110.new ], [ %niter123.next.3, %32 ]
  %33 = add nsw i64 %.0100108, -1
  %34 = mul nsw i64 %28, %33
  %35 = getelementptr %struct.doublecomplex, ptr %2, i64 %34
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %35, i8 0, i64 16, i1 false)
  %36 = mul nsw i64 %28, %.0100108
  %37 = getelementptr %struct.doublecomplex, ptr %2, i64 %36
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %37, i8 0, i64 16, i1 false)
  %38 = add nuw nsw i64 %.0100108, 1
  %39 = mul nsw i64 %28, %38
  %40 = getelementptr %struct.doublecomplex, ptr %2, i64 %39
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %40, i8 0, i64 16, i1 false)
  %41 = add nuw nsw i64 %.0100108, 2
  %42 = mul nsw i64 %28, %41
  %43 = getelementptr %struct.doublecomplex, ptr %2, i64 %42
  %44 = add nuw nsw i64 %.0100108, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %43, i8 0, i64 16, i1 false)
  %niter123.next.3 = add i64 %niter123, 4
  %niter123.ncmp.3 = icmp eq i64 %niter123.next.3, %unroll_iter122
  br i1 %niter123.ncmp.3, label %._crit_edge111.loopexit.unr-lcssa, label %32, !llvm.loop !13

._crit_edge111.loopexit.unr-lcssa:                ; preds = %32, %.lr.ph110
  %.0100108.unr = phi i64 [ 1, %.lr.ph110 ], [ %44, %32 ]
  %lcmp.mod121.not = icmp eq i64 %xtraiter119, 0
  br i1 %lcmp.mod121.not, label %._crit_edge111, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge111.loopexit.unr-lcssa, %.epil.preheader
  %.0100108.epil = phi i64 [ %48, %.epil.preheader ], [ %.0100108.unr, %._crit_edge111.loopexit.unr-lcssa ]
  %epil.iter120 = phi i64 [ %epil.iter120.next, %.epil.preheader ], [ 0, %._crit_edge111.loopexit.unr-lcssa ]
  %45 = add nsw i64 %.0100108.epil, -1
  %46 = mul nsw i64 %28, %45
  %47 = getelementptr %struct.doublecomplex, ptr %2, i64 %46
  %48 = add nuw nsw i64 %.0100108.epil, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %47, i8 0, i64 16, i1 false)
  %epil.iter120.next = add i64 %epil.iter120, 1
  %epil.iter120.cmp.not = icmp eq i64 %epil.iter120.next, %xtraiter119
  br i1 %epil.iter120.cmp.not, label %._crit_edge111, label %.epil.preheader, !llvm.loop !15

._crit_edge111:                                   ; preds = %._crit_edge111.loopexit.unr-lcssa, %.epil.preheader, %26
  %49 = load <2 x double>, ptr %1, align 8, !tbaa !9
  %50 = fneg <2 x double> %49
  store <2 x double> %50, ptr %1, align 8, !tbaa !9
  br label %131

51:                                               ; preds = %16
  %52 = call double @dlapy3_(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef nonnull %11) #5
  store double %52, ptr %7, align 8, !tbaa !9
  %53 = call double @d_sign(ptr noundef nonnull %7, ptr noundef nonnull %10) #5
  %54 = call double @dlamch_(ptr noundef nonnull @.str) #5
  %55 = call double @dlamch_(ptr noundef nonnull @.str.1) #5
  %56 = fdiv double %54, %55
  %57 = fdiv double 1.000000e+00, %56
  store double %57, ptr %12, align 8, !tbaa !9
  %58 = fcmp oge double %53, 0.000000e+00
  %59 = fneg double %53
  %60 = select i1 %58, double %53, double %59
  %61 = fcmp olt double %60, %56
  br i1 %61, label %.preheader, label %86

.preheader:                                       ; preds = %51, %.preheader
  %.098 = phi i64 [ %62, %.preheader ], [ 0, %51 ]
  %.097 = phi double [ %67, %.preheader ], [ %53, %51 ]
  %62 = add nuw nsw i64 %.098, 1
  %63 = load i64, ptr %0, align 8, !tbaa !5
  %64 = add nsw i64 %63, -1
  store i64 %64, ptr %6, align 8, !tbaa !5
  %65 = call i32 @f2c_zdscal(ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef %2, ptr noundef %3) #5
  %66 = load double, ptr %12, align 8, !tbaa !9
  %67 = fmul double %.097, %66
  %68 = load double, ptr %9, align 8, !tbaa !9
  %69 = fmul double %66, %68
  store double %69, ptr %9, align 8, !tbaa !9
  %70 = load double, ptr %10, align 8, !tbaa !9
  %71 = fmul double %66, %70
  store double %71, ptr %10, align 8, !tbaa !9
  %72 = fcmp oge double %67, 0.000000e+00
  %73 = fneg double %67
  %74 = select i1 %72, double %67, double %73
  %75 = fcmp olt double %74, %56
  br i1 %75, label %.preheader, label %76

76:                                               ; preds = %.preheader
  %77 = load i64, ptr %0, align 8, !tbaa !5
  %78 = add nsw i64 %77, -1
  store i64 %78, ptr %6, align 8, !tbaa !5
  %79 = call double @f2c_dznrm2(ptr noundef nonnull %6, ptr noundef %2, ptr noundef %3) #5
  store double %79, ptr %11, align 8, !tbaa !9
  %80 = load double, ptr %10, align 8, !tbaa !9
  store double %80, ptr %8, align 16, !tbaa !11
  %81 = load double, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %8, i64 8
  store double %81, ptr %82, align 8, !tbaa !17
  store double %80, ptr %1, align 8, !tbaa !11
  %83 = getelementptr inbounds i8, ptr %1, i64 8
  store double %81, ptr %83, align 8, !tbaa !17
  %84 = call double @dlapy3_(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef nonnull %11) #5
  store double %84, ptr %7, align 8, !tbaa !9
  %85 = call double @d_sign(ptr noundef nonnull %7, ptr noundef nonnull %10) #5
  br label %86

86:                                               ; preds = %76, %51
  %.199 = phi i64 [ %62, %76 ], [ 0, %51 ]
  %.1 = phi double [ %85, %76 ], [ %53, %51 ]
  %87 = load double, ptr %1, align 8, !tbaa !11
  %88 = fadd double %.1, %87
  %89 = getelementptr inbounds i8, ptr %1, i64 8
  %90 = load double, ptr %89, align 8, !tbaa !17
  store double %88, ptr %1, align 8, !tbaa !11
  %91 = fcmp olt double %.1, 0.000000e+00
  br i1 %91, label %92, label %99

92:                                               ; preds = %86
  %93 = fneg double %.1
  %94 = insertelement <2 x double> poison, double %88, i64 0
  %95 = insertelement <2 x double> %94, double %90, i64 1
  %96 = insertelement <2 x double> poison, double %.1, i64 0
  %97 = shufflevector <2 x double> %96, <2 x double> poison, <2 x i32> zeroinitializer
  %98 = fdiv <2 x double> %95, %97
  store <2 x double> %98, ptr %4, align 8, !tbaa !9
  br label %115

99:                                               ; preds = %86
  %100 = load double, ptr %9, align 8, !tbaa !9
  %101 = fdiv double %100, %88
  %102 = fmul double %100, %101
  %103 = load double, ptr %11, align 8, !tbaa !9
  %104 = fdiv double %103, %88
  %105 = call double @llvm.fmuladd.f64(double %103, double %104, double %102)
  store double %105, ptr %10, align 8, !tbaa !9
  %106 = fneg double %100
  %107 = insertelement <2 x double> poison, double %105, i64 0
  %108 = insertelement <2 x double> %107, double %106, i64 1
  %109 = insertelement <2 x double> poison, double %.1, i64 0
  %110 = shufflevector <2 x double> %109, <2 x double> poison, <2 x i32> zeroinitializer
  %111 = fdiv <2 x double> %108, %110
  store <2 x double> %111, ptr %4, align 8, !tbaa !9
  %112 = fneg double %105
  store double %112, ptr %7, align 8, !tbaa !9
  store double %112, ptr %1, align 8, !tbaa !11
  store double %100, ptr %89, align 8, !tbaa !17
  %113 = insertelement <2 x double> poison, double %112, i64 0
  %114 = insertelement <2 x double> %113, double %100, i64 1
  br label %115

115:                                              ; preds = %99, %92
  %.2 = phi double [ %93, %92 ], [ %.1, %99 ]
  %116 = phi <2 x double> [ %98, %92 ], [ %114, %99 ]
  store <2 x double> %116, ptr %8, align 16
  call void @zladiv_(ptr noundef nonnull %8, ptr noundef nonnull @c_b5, ptr noundef nonnull %1) #5
  %117 = load <2 x double>, ptr %8, align 16, !tbaa !9
  store <2 x double> %117, ptr %1, align 8, !tbaa !9
  %118 = load i64, ptr %0, align 8, !tbaa !5
  %119 = add nsw i64 %118, -1
  store i64 %119, ptr %6, align 8, !tbaa !5
  %120 = call i32 @f2c_zscal(ptr noundef nonnull %6, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #5
  %.not104 = icmp slt i64 %.199, 1
  br i1 %.not104, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %115
  %xtraiter = and i64 %.199, 7
  %121 = icmp ult i64 %.199, 8
  br i1 %121, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %.199, 9223372036854775800
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.3106 = phi double [ %.2, %.lr.ph.preheader.new ], [ %129, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %122 = fmul double %56, %.3106
  %123 = fmul double %56, %122
  %124 = fmul double %56, %123
  %125 = fmul double %56, %124
  %126 = fmul double %56, %125
  %127 = fmul double %56, %126
  %128 = fmul double %56, %127
  %129 = fmul double %56, %128
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !18

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %129, %.lr.ph ]
  %.3106.unr = phi double [ %.2, %.lr.ph.preheader ], [ %129, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.3106.epil = phi double [ %130, %.lr.ph.epil ], [ %.3106.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %130 = fmul double %56, %.3106.epil
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !19

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %115
  %.3.lcssa = phi double [ %.2, %115 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %130, %.lr.ph.epil ]
  store double %.3.lcssa, ptr %1, align 8, !tbaa !11
  store double 0.000000e+00, ptr %89, align 8, !tbaa !17
  br label %131

131:                                              ; preds = %._crit_edge, %25, %._crit_edge111, %15
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #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 double @f2c_dznrm2(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @d_imag(ptr noundef) local_unnamed_addr #2

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

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = !{!12, !10, i64 8}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !16}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass