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

; 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 [13 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @zlacn2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %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 ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %struct.doublecomplex, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca { double, double }, align 8
  %28 = alloca { double, double }, align 8
  %29 = alloca { double, double }, align 8
  %30 = alloca { double, double }, align 8
  %31 = alloca { double, double }, align 8
  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
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %32, i32 -1
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 -1
  store ptr %35, ptr %9, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.doublecomplex, ptr %36, i32 -1
  store ptr %37, ptr %8, align 8, !tbaa !5
  %38 = call double @dlamch_(ptr noundef @.str)
  store double %38, ptr %23, align 8, !tbaa !9
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %79

42:                                               ; preds = %6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load i32, ptr %43, align 4, !tbaa !11
  store i32 %44, ptr %13, align 4, !tbaa !11
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %72, %42
  %46 = load i32, ptr %20, align 4, !tbaa !11
  %47 = load i32, ptr %13, align 4, !tbaa !11
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %49, label %75

49:                                               ; preds = %45
  %50 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %50, ptr %14, align 4, !tbaa !11
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = sitofp i32 %52 to double
  %54 = fdiv double 1.000000e+00, %53
  store double %54, ptr %16, align 8, !tbaa !9
  %55 = load double, ptr %16, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double %55, ptr %56, align 8, !tbaa !13
  %57 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double 0.000000e+00, ptr %57, align 8, !tbaa !15
  %58 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %59 = load double, ptr %58, align 8, !tbaa !13
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load i32, ptr %14, align 4, !tbaa !11
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %60, i64 %62
  %64 = getelementptr inbounds %struct.doublecomplex, ptr %63, i32 0, i32 0
  store double %59, ptr %64, align 8, !tbaa !13
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  %66 = load double, ptr %65, align 8, !tbaa !15
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i32, ptr %14, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.doublecomplex, ptr %67, i64 %69
  %71 = getelementptr inbounds %struct.doublecomplex, ptr %70, i32 0, i32 1
  store double %66, ptr %71, align 8, !tbaa !15
  br label %72

72:                                               ; preds = %49
  %73 = load i32, ptr %20, align 4, !tbaa !11
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %20, align 4, !tbaa !11
  br label %45, !llvm.loop !16

75:                                               ; preds = %45
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %76, align 4, !tbaa !11
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds i32, ptr %77, i64 1
  store i32 1, ptr %78, align 4, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %482

79:                                               ; preds = %6
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds i32, ptr %80, i64 1
  %82 = load i32, ptr %81, align 4, !tbaa !11
  switch i32 %82, label %88 [
    i32 1, label %83
    i32 2, label %84
    i32 3, label %85
    i32 4, label %86
    i32 5, label %87
  ]

83:                                               ; preds = %79
  br label %89

84:                                               ; preds = %79
  br label %209

85:                                               ; preds = %79
  br label %257

86:                                               ; preds = %79
  br label %358

87:                                               ; preds = %79
  br label %456

88:                                               ; preds = %79
  br label %89

89:                                               ; preds = %88, %83
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !11
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %93, label %121

93:                                               ; preds = %89
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.doublecomplex, ptr %94, i64 1
  %96 = getelementptr inbounds %struct.doublecomplex, ptr %95, i32 0, i32 0
  %97 = load double, ptr %96, align 8, !tbaa !13
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.doublecomplex, ptr %98, i64 1
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %99, i32 0, i32 0
  store double %97, ptr %100, align 8, !tbaa !13
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.doublecomplex, ptr %101, i64 1
  %103 = getelementptr inbounds %struct.doublecomplex, ptr %102, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !15
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.doublecomplex, ptr %105, i64 1
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %106, i32 0, i32 1
  store double %104, ptr %107, align 8, !tbaa !15
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.doublecomplex, ptr %108, i64 1
  %110 = call { double, double } @Cd(ptr noundef %109)
  %111 = extractvalue { double, double } %110, 0
  %112 = extractvalue { double, double } %110, 1
  %113 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %114 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  store double %111, ptr %113, align 8
  store double %112, ptr %114, align 8
  %115 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %116 = load double, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %118 = load double, ptr %117, align 8
  %119 = call double @cabs(double noundef %116, double noundef %118) #5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  store double %119, ptr %120, align 8, !tbaa !9
  br label %480

121:                                              ; preds = %89
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.doublecomplex, ptr %123, i64 1
  %125 = call double @dzsum1_(ptr noundef %122, ptr noundef %124, ptr noundef @c__1)
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  store double %125, ptr %126, align 8, !tbaa !9
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load i32, ptr %127, align 4, !tbaa !11
  store i32 %128, ptr %13, align 4, !tbaa !11
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %129

129:                                              ; preds = %202, %121
  %130 = load i32, ptr %20, align 4, !tbaa !11
  %131 = load i32, ptr %13, align 4, !tbaa !11
  %132 = icmp sle i32 %130, %131
  br i1 %132, label %133, label %205

133:                                              ; preds = %129
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = load i32, ptr %20, align 4, !tbaa !11
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %134, i64 %136
  %138 = call { double, double } @Cd(ptr noundef %137)
  %139 = extractvalue { double, double } %138, 0
  %140 = extractvalue { double, double } %138, 1
  %141 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %142 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  store double %139, ptr %141, align 8
  store double %140, ptr %142, align 8
  %143 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %144 = load double, ptr %143, align 8
  %145 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %146 = load double, ptr %145, align 8
  %147 = call double @cabs(double noundef %144, double noundef %146) #5
  store double %147, ptr %21, align 8, !tbaa !9
  %148 = load double, ptr %21, align 8, !tbaa !9
  %149 = load double, ptr %23, align 8, !tbaa !9
  %150 = fcmp ogt double %148, %149
  br i1 %150, label %151, label %189

151:                                              ; preds = %133
  %152 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %152, ptr %14, align 4, !tbaa !11
  %153 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %153, ptr %15, align 4, !tbaa !11
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = load i32, ptr %15, align 4, !tbaa !11
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %154, i64 %156
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %157, i32 0, i32 0
  %159 = load double, ptr %158, align 8, !tbaa !13
  %160 = load double, ptr %21, align 8, !tbaa !9
  %161 = fdiv double %159, %160
  store double %161, ptr %16, align 8, !tbaa !9
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = load i32, ptr %20, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.doublecomplex, ptr %162, i64 %164
  %166 = call { double, double } @Cd(ptr noundef %165)
  %167 = extractvalue { double, double } %166, 0
  %168 = extractvalue { double, double } %166, 1
  %169 = load double, ptr %21, align 8, !tbaa !9
  %170 = fdiv double %168, %169
  store double %170, ptr %17, align 8, !tbaa !9
  %171 = load double, ptr %16, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double %171, ptr %172, align 8, !tbaa !13
  %173 = load double, ptr %17, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double %173, ptr %174, align 8, !tbaa !15
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %176 = load double, ptr %175, align 8, !tbaa !13
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load i32, ptr %14, align 4, !tbaa !11
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %177, i64 %179
  %181 = getelementptr inbounds %struct.doublecomplex, ptr %180, i32 0, i32 0
  store double %176, ptr %181, align 8, !tbaa !13
  %182 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  %183 = load double, ptr %182, align 8, !tbaa !15
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = load i32, ptr %14, align 4, !tbaa !11
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds %struct.doublecomplex, ptr %184, i64 %186
  %188 = getelementptr inbounds %struct.doublecomplex, ptr %187, i32 0, i32 1
  store double %183, ptr %188, align 8, !tbaa !15
  br label %201

189:                                              ; preds = %133
  %190 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %190, ptr %14, align 4, !tbaa !11
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = load i32, ptr %14, align 4, !tbaa !11
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds %struct.doublecomplex, ptr %191, i64 %193
  %195 = getelementptr inbounds %struct.doublecomplex, ptr %194, i32 0, i32 0
  store double 1.000000e+00, ptr %195, align 8, !tbaa !13
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = load i32, ptr %14, align 4, !tbaa !11
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %196, i64 %198
  %200 = getelementptr inbounds %struct.doublecomplex, ptr %199, i32 0, i32 1
  store double 0.000000e+00, ptr %200, align 8, !tbaa !15
  br label %201

201:                                              ; preds = %189, %151
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %20, align 4, !tbaa !11
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %20, align 4, !tbaa !11
  br label %129, !llvm.loop !18

205:                                              ; preds = %129
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 2, ptr %206, align 4, !tbaa !11
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = getelementptr inbounds i32, ptr %207, i64 1
  store i32 2, ptr %208, align 4, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %482

209:                                              ; preds = %84
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.doublecomplex, ptr %211, i64 1
  %213 = call i32 @izmax1_(ptr noundef %210, ptr noundef %212, ptr noundef @c__1)
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = getelementptr inbounds i32, ptr %214, i64 2
  store i32 %213, ptr %215, align 4, !tbaa !11
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  %217 = getelementptr inbounds i32, ptr %216, i64 3
  store i32 2, ptr %217, align 4, !tbaa !11
  br label %218

218:                                              ; preds = %404, %209
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = load i32, ptr %219, align 4, !tbaa !11
  store i32 %220, ptr %13, align 4, !tbaa !11
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %221

221:                                              ; preds = %237, %218
  %222 = load i32, ptr %20, align 4, !tbaa !11
  %223 = load i32, ptr %13, align 4, !tbaa !11
  %224 = icmp sle i32 %222, %223
  br i1 %224, label %225, label %240

225:                                              ; preds = %221
  %226 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %226, ptr %14, align 4, !tbaa !11
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = load i32, ptr %14, align 4, !tbaa !11
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds %struct.doublecomplex, ptr %227, i64 %229
  %231 = getelementptr inbounds %struct.doublecomplex, ptr %230, i32 0, i32 0
  store double 0.000000e+00, ptr %231, align 8, !tbaa !13
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = load i32, ptr %14, align 4, !tbaa !11
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %232, i64 %234
  %236 = getelementptr inbounds %struct.doublecomplex, ptr %235, i32 0, i32 1
  store double 0.000000e+00, ptr %236, align 8, !tbaa !15
  br label %237

237:                                              ; preds = %225
  %238 = load i32, ptr %20, align 4, !tbaa !11
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %20, align 4, !tbaa !11
  br label %221, !llvm.loop !19

240:                                              ; preds = %221
  %241 = load ptr, ptr %12, align 8, !tbaa !5
  %242 = getelementptr inbounds i32, ptr %241, i64 2
  %243 = load i32, ptr %242, align 4, !tbaa !11
  store i32 %243, ptr %13, align 4, !tbaa !11
  %244 = load ptr, ptr %9, align 8, !tbaa !5
  %245 = load i32, ptr %13, align 4, !tbaa !11
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds %struct.doublecomplex, ptr %244, i64 %246
  %248 = getelementptr inbounds %struct.doublecomplex, ptr %247, i32 0, i32 0
  store double 1.000000e+00, ptr %248, align 8, !tbaa !13
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = load i32, ptr %13, align 4, !tbaa !11
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %249, i64 %251
  %253 = getelementptr inbounds %struct.doublecomplex, ptr %252, i32 0, i32 1
  store double 0.000000e+00, ptr %253, align 8, !tbaa !15
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %254, align 4, !tbaa !11
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  %256 = getelementptr inbounds i32, ptr %255, i64 1
  store i32 3, ptr %256, align 4, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %482

257:                                              ; preds = %85
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %259, i64 1
  %261 = load ptr, ptr %8, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.doublecomplex, ptr %261, i64 1
  call void @zcopy_(ptr noundef %258, ptr noundef %260, ptr noundef @c__1, ptr noundef %262, ptr noundef @c__1)
  %263 = load ptr, ptr %10, align 8, !tbaa !5
  %264 = load double, ptr %263, align 8, !tbaa !9
  store double %264, ptr %25, align 8, !tbaa !9
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.doublecomplex, ptr %266, i64 1
  %268 = call double @dzsum1_(ptr noundef %265, ptr noundef %267, ptr noundef @c__1)
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  store double %268, ptr %269, align 8, !tbaa !9
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = load double, ptr %270, align 8, !tbaa !9
  %272 = load double, ptr %25, align 8, !tbaa !9
  %273 = fcmp ole double %271, %272
  br i1 %273, label %274, label %275

274:                                              ; preds = %257
  br label %410

275:                                              ; preds = %257
  %276 = load ptr, ptr %7, align 8, !tbaa !5
  %277 = load i32, ptr %276, align 4, !tbaa !11
  store i32 %277, ptr %13, align 4, !tbaa !11
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %278

278:                                              ; preds = %351, %275
  %279 = load i32, ptr %20, align 4, !tbaa !11
  %280 = load i32, ptr %13, align 4, !tbaa !11
  %281 = icmp sle i32 %279, %280
  br i1 %281, label %282, label %354

282:                                              ; preds = %278
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = load i32, ptr %20, align 4, !tbaa !11
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds %struct.doublecomplex, ptr %283, i64 %285
  %287 = call { double, double } @Cd(ptr noundef %286)
  %288 = extractvalue { double, double } %287, 0
  %289 = extractvalue { double, double } %287, 1
  %290 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %291 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  store double %288, ptr %290, align 8
  store double %289, ptr %291, align 8
  %292 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %293 = load double, ptr %292, align 8
  %294 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %295 = load double, ptr %294, align 8
  %296 = call double @cabs(double noundef %293, double noundef %295) #5
  store double %296, ptr %21, align 8, !tbaa !9
  %297 = load double, ptr %21, align 8, !tbaa !9
  %298 = load double, ptr %23, align 8, !tbaa !9
  %299 = fcmp ogt double %297, %298
  br i1 %299, label %300, label %338

300:                                              ; preds = %282
  %301 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %301, ptr %14, align 4, !tbaa !11
  %302 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %302, ptr %15, align 4, !tbaa !11
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  %304 = load i32, ptr %15, align 4, !tbaa !11
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds %struct.doublecomplex, ptr %303, i64 %305
  %307 = getelementptr inbounds %struct.doublecomplex, ptr %306, i32 0, i32 0
  %308 = load double, ptr %307, align 8, !tbaa !13
  %309 = load double, ptr %21, align 8, !tbaa !9
  %310 = fdiv double %308, %309
  store double %310, ptr %16, align 8, !tbaa !9
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = load i32, ptr %20, align 4, !tbaa !11
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds %struct.doublecomplex, ptr %311, i64 %313
  %315 = call { double, double } @Cd(ptr noundef %314)
  %316 = extractvalue { double, double } %315, 0
  %317 = extractvalue { double, double } %315, 1
  %318 = load double, ptr %21, align 8, !tbaa !9
  %319 = fdiv double %317, %318
  store double %319, ptr %17, align 8, !tbaa !9
  %320 = load double, ptr %16, align 8, !tbaa !9
  %321 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double %320, ptr %321, align 8, !tbaa !13
  %322 = load double, ptr %17, align 8, !tbaa !9
  %323 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double %322, ptr %323, align 8, !tbaa !15
  %324 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %325 = load double, ptr %324, align 8, !tbaa !13
  %326 = load ptr, ptr %9, align 8, !tbaa !5
  %327 = load i32, ptr %14, align 4, !tbaa !11
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds %struct.doublecomplex, ptr %326, i64 %328
  %330 = getelementptr inbounds %struct.doublecomplex, ptr %329, i32 0, i32 0
  store double %325, ptr %330, align 8, !tbaa !13
  %331 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  %332 = load double, ptr %331, align 8, !tbaa !15
  %333 = load ptr, ptr %9, align 8, !tbaa !5
  %334 = load i32, ptr %14, align 4, !tbaa !11
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds %struct.doublecomplex, ptr %333, i64 %335
  %337 = getelementptr inbounds %struct.doublecomplex, ptr %336, i32 0, i32 1
  store double %332, ptr %337, align 8, !tbaa !15
  br label %350

338:                                              ; preds = %282
  %339 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %339, ptr %14, align 4, !tbaa !11
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = load i32, ptr %14, align 4, !tbaa !11
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds %struct.doublecomplex, ptr %340, i64 %342
  %344 = getelementptr inbounds %struct.doublecomplex, ptr %343, i32 0, i32 0
  store double 1.000000e+00, ptr %344, align 8, !tbaa !13
  %345 = load ptr, ptr %9, align 8, !tbaa !5
  %346 = load i32, ptr %14, align 4, !tbaa !11
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds %struct.doublecomplex, ptr %345, i64 %347
  %349 = getelementptr inbounds %struct.doublecomplex, ptr %348, i32 0, i32 1
  store double 0.000000e+00, ptr %349, align 8, !tbaa !15
  br label %350

350:                                              ; preds = %338, %300
  br label %351

351:                                              ; preds = %350
  %352 = load i32, ptr %20, align 4, !tbaa !11
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %20, align 4, !tbaa !11
  br label %278, !llvm.loop !20

354:                                              ; preds = %278
  %355 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 2, ptr %355, align 4, !tbaa !11
  %356 = load ptr, ptr %12, align 8, !tbaa !5
  %357 = getelementptr inbounds i32, ptr %356, i64 1
  store i32 4, ptr %357, align 4, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %482

358:                                              ; preds = %86
  %359 = load ptr, ptr %12, align 8, !tbaa !5
  %360 = getelementptr inbounds i32, ptr %359, i64 2
  %361 = load i32, ptr %360, align 4, !tbaa !11
  store i32 %361, ptr %22, align 4, !tbaa !11
  %362 = load ptr, ptr %7, align 8, !tbaa !5
  %363 = load ptr, ptr %9, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.doublecomplex, ptr %363, i64 1
  %365 = call i32 @izmax1_(ptr noundef %362, ptr noundef %364, ptr noundef @c__1)
  %366 = load ptr, ptr %12, align 8, !tbaa !5
  %367 = getelementptr inbounds i32, ptr %366, i64 2
  store i32 %365, ptr %367, align 4, !tbaa !11
  %368 = load ptr, ptr %9, align 8, !tbaa !5
  %369 = load i32, ptr %22, align 4, !tbaa !11
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds %struct.doublecomplex, ptr %368, i64 %370
  %372 = call { double, double } @Cd(ptr noundef %371)
  %373 = extractvalue { double, double } %372, 0
  %374 = extractvalue { double, double } %372, 1
  %375 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %376 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  store double %373, ptr %375, align 8
  store double %374, ptr %376, align 8
  %377 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %378 = load double, ptr %377, align 8
  %379 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %380 = load double, ptr %379, align 8
  %381 = call double @cabs(double noundef %378, double noundef %380) #5
  %382 = load ptr, ptr %9, align 8, !tbaa !5
  %383 = load ptr, ptr %12, align 8, !tbaa !5
  %384 = getelementptr inbounds i32, ptr %383, i64 2
  %385 = load i32, ptr %384, align 4, !tbaa !11
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds %struct.doublecomplex, ptr %382, i64 %386
  %388 = call { double, double } @Cd(ptr noundef %387)
  %389 = extractvalue { double, double } %388, 0
  %390 = extractvalue { double, double } %388, 1
  %391 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %392 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  store double %389, ptr %391, align 8
  store double %390, ptr %392, align 8
  %393 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %394 = load double, ptr %393, align 8
  %395 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %396 = load double, ptr %395, align 8
  %397 = call double @cabs(double noundef %394, double noundef %396) #5
  %398 = fcmp une double %381, %397
  br i1 %398, label %399, label %409

399:                                              ; preds = %358
  %400 = load ptr, ptr %12, align 8, !tbaa !5
  %401 = getelementptr inbounds i32, ptr %400, i64 3
  %402 = load i32, ptr %401, align 4, !tbaa !11
  %403 = icmp slt i32 %402, 5
  br i1 %403, label %404, label %409

404:                                              ; preds = %399
  %405 = load ptr, ptr %12, align 8, !tbaa !5
  %406 = getelementptr inbounds i32, ptr %405, i64 3
  %407 = load i32, ptr %406, align 4, !tbaa !11
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %406, align 4, !tbaa !11
  br label %218

409:                                              ; preds = %399, %358
  br label %410

410:                                              ; preds = %409, %274
  store double 1.000000e+00, ptr %24, align 8, !tbaa !9
  %411 = load ptr, ptr %7, align 8, !tbaa !5
  %412 = load i32, ptr %411, align 4, !tbaa !11
  store i32 %412, ptr %13, align 4, !tbaa !11
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %413

413:                                              ; preds = %449, %410
  %414 = load i32, ptr %20, align 4, !tbaa !11
  %415 = load i32, ptr %13, align 4, !tbaa !11
  %416 = icmp sle i32 %414, %415
  br i1 %416, label %417, label %452

417:                                              ; preds = %413
  %418 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %418, ptr %14, align 4, !tbaa !11
  %419 = load double, ptr %24, align 8, !tbaa !9
  %420 = load i32, ptr %20, align 4, !tbaa !11
  %421 = sub nsw i32 %420, 1
  %422 = sitofp i32 %421 to double
  %423 = load ptr, ptr %7, align 8, !tbaa !5
  %424 = load i32, ptr %423, align 4, !tbaa !11
  %425 = sub nsw i32 %424, 1
  %426 = sitofp i32 %425 to double
  %427 = fdiv double %422, %426
  %428 = fadd double %427, 1.000000e+00
  %429 = fmul double %419, %428
  store double %429, ptr %16, align 8, !tbaa !9
  %430 = load double, ptr %16, align 8, !tbaa !9
  %431 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double %430, ptr %431, align 8, !tbaa !13
  %432 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double 0.000000e+00, ptr %432, align 8, !tbaa !15
  %433 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %434 = load double, ptr %433, align 8, !tbaa !13
  %435 = load ptr, ptr %9, align 8, !tbaa !5
  %436 = load i32, ptr %14, align 4, !tbaa !11
  %437 = sext i32 %436 to i64
  %438 = getelementptr inbounds %struct.doublecomplex, ptr %435, i64 %437
  %439 = getelementptr inbounds %struct.doublecomplex, ptr %438, i32 0, i32 0
  store double %434, ptr %439, align 8, !tbaa !13
  %440 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  %441 = load double, ptr %440, align 8, !tbaa !15
  %442 = load ptr, ptr %9, align 8, !tbaa !5
  %443 = load i32, ptr %14, align 4, !tbaa !11
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds %struct.doublecomplex, ptr %442, i64 %444
  %446 = getelementptr inbounds %struct.doublecomplex, ptr %445, i32 0, i32 1
  store double %441, ptr %446, align 8, !tbaa !15
  %447 = load double, ptr %24, align 8, !tbaa !9
  %448 = fneg double %447
  store double %448, ptr %24, align 8, !tbaa !9
  br label %449

449:                                              ; preds = %417
  %450 = load i32, ptr %20, align 4, !tbaa !11
  %451 = add nsw i32 %450, 1
  store i32 %451, ptr %20, align 4, !tbaa !11
  br label %413, !llvm.loop !21

452:                                              ; preds = %413
  %453 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %453, align 4, !tbaa !11
  %454 = load ptr, ptr %12, align 8, !tbaa !5
  %455 = getelementptr inbounds i32, ptr %454, i64 1
  store i32 5, ptr %455, align 4, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %482

456:                                              ; preds = %87
  %457 = load ptr, ptr %7, align 8, !tbaa !5
  %458 = load ptr, ptr %9, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.doublecomplex, ptr %458, i64 1
  %460 = call double @dzsum1_(ptr noundef %457, ptr noundef %459, ptr noundef @c__1)
  %461 = load ptr, ptr %7, align 8, !tbaa !5
  %462 = load i32, ptr %461, align 4, !tbaa !11
  %463 = mul nsw i32 %462, 3
  %464 = sitofp i32 %463 to double
  %465 = fdiv double %460, %464
  %466 = fmul double %465, 2.000000e+00
  store double %466, ptr %19, align 8, !tbaa !9
  %467 = load double, ptr %19, align 8, !tbaa !9
  %468 = load ptr, ptr %10, align 8, !tbaa !5
  %469 = load double, ptr %468, align 8, !tbaa !9
  %470 = fcmp ogt double %467, %469
  br i1 %470, label %471, label %479

471:                                              ; preds = %456
  %472 = load ptr, ptr %7, align 8, !tbaa !5
  %473 = load ptr, ptr %9, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.doublecomplex, ptr %473, i64 1
  %475 = load ptr, ptr %8, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.doublecomplex, ptr %475, i64 1
  call void @zcopy_(ptr noundef %472, ptr noundef %474, ptr noundef @c__1, ptr noundef %476, ptr noundef @c__1)
  %477 = load double, ptr %19, align 8, !tbaa !9
  %478 = load ptr, ptr %10, align 8, !tbaa !5
  store double %477, ptr %478, align 8, !tbaa !9
  br label %479

479:                                              ; preds = %471, %456
  br label %480

480:                                              ; preds = %479, %93
  %481 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %481, align 4, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %482

482:                                              ; preds = %480, %452, %354, %240, %205, %75
  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 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

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

declare double @dlamch_(ptr noundef) #2

; Function Attrs: nounwind
declare double @cabs(double noundef, double noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) #4

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { inlinehint 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 #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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"", !10, i64 0, !10, i64 8}
!15 = !{!14, !10, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !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 [13 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @zlacn2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5) local_unnamed_addr #0 {
  %7 = getelementptr inbounds i8, ptr %2, i64 -16
  %8 = tail call double @dlamch_(ptr noundef nonnull @.str) #5
  %9 = load i32, ptr %4, align 4, !tbaa !5
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %23

11:                                               ; preds = %6
  %12 = load i32, ptr %0, align 4, !tbaa !5
  %.not174193 = icmp slt i32 %12, 1
  br i1 %.not174193, label %._crit_edge197, label %.lr.ph196

.lr.ph196:                                        ; preds = %11
  %13 = uitofp nneg i32 %12 to double
  %14 = fdiv double 1.000000e+00, %13
  %15 = add nuw i32 %12, 1
  %wide.trip.count215 = zext i32 %15 to i64
  %16 = zext nneg i32 %12 to i64
  %min.iters.check = icmp ult i32 %12, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph196
  %n.vec = and i64 %16, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <2 x double> poison, double %14, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %interleaved.vec = shufflevector <2 x double> %broadcast.splat, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %17 = or disjoint i64 %index, 3
  %18 = getelementptr %struct.doublecomplex, ptr %2, i64 %index
  %19 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %17
  store <4 x double> %interleaved.vec, ptr %18, align 8, !tbaa !9
  store <4 x double> %interleaved.vec, ptr %19, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %16
  br i1 %cmp.n, label %._crit_edge197, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph196
  %indvars.iv212.ph = phi i64 [ 1, %.lr.ph196 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv212 = phi i64 [ %indvars.iv.next213, %scalar.ph ], [ %indvars.iv212.ph, %scalar.ph.preheader ]
  %21 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %indvars.iv212
  store double %14, ptr %21, align 8, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  store double 0.000000e+00, ptr %22, align 8, !tbaa !17
  %indvars.iv.next213 = add nuw nsw i64 %indvars.iv212, 1
  %exitcond216.not = icmp eq i64 %indvars.iv.next213, %wide.trip.count215
  br i1 %exitcond216.not, label %._crit_edge197, label %scalar.ph, !llvm.loop !18

._crit_edge197:                                   ; preds = %scalar.ph, %middle.block, %11
  store i32 1, ptr %4, align 4, !tbaa !5
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %154

23:                                               ; preds = %6
  %24 = load i32, ptr %5, align 4, !tbaa !5
  switch i32 %24, label %25 [
    i32 5, label %143
    i32 2, label %55
    i32 3, label %67
    i32 4, label %91
  ]

25:                                               ; preds = %23
  %26 = load i32, ptr %0, align 4, !tbaa !5
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %34

28:                                               ; preds = %25
  %29 = load <2 x double>, ptr %2, align 8, !tbaa !9
  store <2 x double> %29, ptr %1, align 8, !tbaa !9
  %30 = tail call { double, double } @Cd(ptr noundef nonnull %1)
  %31 = extractvalue { double, double } %30, 0
  %32 = extractvalue { double, double } %30, 1
  %33 = tail call double @cabs(double noundef %31, double noundef %32) #5
  br label %.sink.split

34:                                               ; preds = %25
  %35 = tail call double @dzsum1_(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  store double %35, ptr %3, align 8, !tbaa !9
  %36 = load i32, ptr %0, align 4, !tbaa !5
  %.not173188 = icmp slt i32 %36, 1
  br i1 %.not173188, label %._crit_edge192, label %.lr.ph191.preheader

.lr.ph191.preheader:                              ; preds = %34
  %37 = add nuw i32 %36, 1
  %wide.trip.count210 = zext i32 %37 to i64
  br label %.lr.ph191

.lr.ph191:                                        ; preds = %.lr.ph191.preheader, %53
  %indvars.iv207 = phi i64 [ 1, %.lr.ph191.preheader ], [ %indvars.iv.next208, %53 ]
  %38 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %indvars.iv207
  %39 = tail call { double, double } @Cd(ptr noundef nonnull %38)
  %40 = extractvalue { double, double } %39, 0
  %41 = extractvalue { double, double } %39, 1
  %42 = tail call double @cabs(double noundef %40, double noundef %41) #5
  %43 = fcmp ogt double %42, %8
  br i1 %43, label %44, label %53

44:                                               ; preds = %.lr.ph191
  %45 = load double, ptr %38, align 8, !tbaa !15
  %46 = tail call { double, double } @Cd(ptr noundef nonnull %38)
  %47 = extractvalue { double, double } %46, 1
  %48 = insertelement <2 x double> poison, double %45, i64 0
  %49 = insertelement <2 x double> %48, double %47, i64 1
  %50 = insertelement <2 x double> poison, double %42, i64 0
  %51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
  %52 = fdiv <2 x double> %49, %51
  br label %53

53:                                               ; preds = %.lr.ph191, %44
  %54 = phi <2 x double> [ %52, %44 ], [ <double 1.000000e+00, double 0.000000e+00>, %.lr.ph191 ]
  store <2 x double> %54, ptr %38, align 8
  %indvars.iv.next208 = add nuw nsw i64 %indvars.iv207, 1
  %exitcond211.not = icmp eq i64 %indvars.iv.next208, %wide.trip.count210
  br i1 %exitcond211.not, label %._crit_edge192, label %.lr.ph191, !llvm.loop !19

._crit_edge192:                                   ; preds = %53, %34
  store i32 2, ptr %4, align 4, !tbaa !5
  store i32 2, ptr %5, align 4, !tbaa !5
  br label %154

55:                                               ; preds = %23
  %56 = tail call i32 @izmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  %57 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %56, ptr %57, align 4, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 2, ptr %58, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %113, %55
  %60 = load i32, ptr %0, align 4, !tbaa !5
  %.not172183 = icmp slt i32 %60, 1
  br i1 %.not172183, label %._crit_edge187, label %.lr.ph186.preheader

.lr.ph186.preheader:                              ; preds = %59
  %61 = zext nneg i32 %60 to i64
  %62 = shl nuw nsw i64 %61, 4
  tail call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 %62, i1 false), !tbaa !9
  br label %._crit_edge187

._crit_edge187:                                   ; preds = %.lr.ph186.preheader, %59
  %63 = getelementptr inbounds i8, ptr %5, i64 4
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %65
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %66, align 8, !tbaa !9
  store i32 1, ptr %4, align 4, !tbaa !5
  store i32 3, ptr %5, align 4, !tbaa !5
  br label %154

67:                                               ; preds = %23
  tail call void @zcopy_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull @c__1) #5
  %68 = load double, ptr %3, align 8, !tbaa !9
  %69 = tail call double @dzsum1_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull @c__1) #5
  store double %69, ptr %3, align 8, !tbaa !9
  %70 = fcmp ugt double %69, %68
  br i1 %70, label %71, label %115

71:                                               ; preds = %67
  %72 = load i32, ptr %0, align 4, !tbaa !5
  %.not178 = icmp slt i32 %72, 1
  br i1 %.not178, label %._crit_edge182, label %.lr.ph181.preheader

.lr.ph181.preheader:                              ; preds = %71
  %73 = add nuw i32 %72, 1
  %wide.trip.count202 = zext i32 %73 to i64
  br label %.lr.ph181

.lr.ph181:                                        ; preds = %.lr.ph181.preheader, %89
  %indvars.iv199 = phi i64 [ 1, %.lr.ph181.preheader ], [ %indvars.iv.next200, %89 ]
  %74 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %indvars.iv199
  %75 = tail call { double, double } @Cd(ptr noundef nonnull %74)
  %76 = extractvalue { double, double } %75, 0
  %77 = extractvalue { double, double } %75, 1
  %78 = tail call double @cabs(double noundef %76, double noundef %77) #5
  %79 = fcmp ogt double %78, %8
  br i1 %79, label %80, label %89

80:                                               ; preds = %.lr.ph181
  %81 = load double, ptr %74, align 8, !tbaa !15
  %82 = tail call { double, double } @Cd(ptr noundef nonnull %74)
  %83 = extractvalue { double, double } %82, 1
  %84 = insertelement <2 x double> poison, double %81, i64 0
  %85 = insertelement <2 x double> %84, double %83, i64 1
  %86 = insertelement <2 x double> poison, double %78, i64 0
  %87 = shufflevector <2 x double> %86, <2 x double> poison, <2 x i32> zeroinitializer
  %88 = fdiv <2 x double> %85, %87
  br label %89

89:                                               ; preds = %.lr.ph181, %80
  %90 = phi <2 x double> [ %88, %80 ], [ <double 1.000000e+00, double 0.000000e+00>, %.lr.ph181 ]
  store <2 x double> %90, ptr %74, align 8
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %._crit_edge182, label %.lr.ph181, !llvm.loop !20

._crit_edge182:                                   ; preds = %89, %71
  store i32 2, ptr %4, align 4, !tbaa !5
  store i32 4, ptr %5, align 4, !tbaa !5
  br label %154

91:                                               ; preds = %23
  %92 = getelementptr inbounds i8, ptr %5, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = tail call i32 @izmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  store i32 %94, ptr %92, align 4, !tbaa !5
  %95 = sext i32 %93 to i64
  %96 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %95
  %97 = tail call { double, double } @Cd(ptr noundef nonnull %96)
  %98 = extractvalue { double, double } %97, 0
  %99 = extractvalue { double, double } %97, 1
  %100 = tail call double @cabs(double noundef %98, double noundef %99) #5
  %101 = load i32, ptr %92, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %102
  %104 = tail call { double, double } @Cd(ptr noundef nonnull %103)
  %105 = extractvalue { double, double } %104, 0
  %106 = extractvalue { double, double } %104, 1
  %107 = tail call double @cabs(double noundef %105, double noundef %106) #5
  %108 = fcmp une double %100, %107
  br i1 %108, label %109, label %115

109:                                              ; preds = %91
  %110 = getelementptr inbounds i8, ptr %5, i64 8
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = icmp slt i32 %111, 5
  br i1 %112, label %113, label %115

113:                                              ; preds = %109
  %114 = add nsw i32 %111, 1
  store i32 %114, ptr %110, align 4, !tbaa !5
  br label %59

115:                                              ; preds = %91, %109, %67
  %116 = load i32, ptr %0, align 4, !tbaa !5
  %.not171175 = icmp slt i32 %116, 1
  br i1 %.not171175, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %115
  %117 = add nsw i32 %116, -1
  %118 = uitofp nneg i32 %117 to double
  %119 = zext nneg i32 %116 to i64
  %xtraiter = and i64 %119, 1
  %120 = icmp eq i32 %116, 1
  br i1 %120, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %119, 2147483646
  br label %121

121:                                              ; preds = %121, %.lr.ph.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.new ], [ %indvars.iv.next.1, %121 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %121 ]
  %122 = trunc i64 %indvars.iv to i32
  %123 = add nsw i32 %122, -1
  %124 = sitofp i32 %123 to double
  %125 = fdiv double %124, %118
  %126 = fadd double %125, 1.000000e+00
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %indvars.iv
  store double %126, ptr %127, align 8, !tbaa !15
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  store double 0.000000e+00, ptr %128, align 8, !tbaa !17
  %129 = trunc i64 %indvars.iv to i32
  %130 = sitofp i32 %129 to double
  %131 = fdiv double %130, %118
  %132 = fadd double %131, 1.000000e+00
  %133 = fneg double %132
  %134 = getelementptr %struct.doublecomplex, ptr %2, i64 %indvars.iv
  store double %133, ptr %134, align 8, !tbaa !15
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  store double 0.000000e+00, ptr %135, align 8, !tbaa !17
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %121, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %121, %.lr.ph
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next.1, %121 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %136 = trunc i64 %indvars.iv.unr to i32
  %137 = add i32 %136, -1
  %138 = sitofp i32 %137 to double
  %139 = fdiv double %138, %118
  %140 = fadd double %139, 1.000000e+00
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %indvars.iv.unr
  store double %140, ptr %141, align 8, !tbaa !15
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  store double 0.000000e+00, ptr %142, align 8, !tbaa !17
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %115
  store i32 1, ptr %4, align 4, !tbaa !5
  store i32 5, ptr %5, align 4, !tbaa !5
  br label %154

143:                                              ; preds = %23
  %144 = tail call double @dzsum1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  %145 = load i32, ptr %0, align 4, !tbaa !5
  %146 = mul nsw i32 %145, 3
  %147 = sitofp i32 %146 to double
  %148 = fdiv double %144, %147
  %149 = fmul double %148, 2.000000e+00
  %150 = load double, ptr %3, align 8, !tbaa !9
  %151 = fcmp ogt double %149, %150
  br i1 %151, label %152, label %153

152:                                              ; preds = %143
  tail call void @zcopy_(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull @c__1) #5
  br label %.sink.split

.sink.split:                                      ; preds = %28, %152
  %.sink220 = phi double [ %149, %152 ], [ %33, %28 ]
  store double %.sink220, ptr %3, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %.sink.split, %143
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %153, %._crit_edge, %._crit_edge182, %._crit_edge187, %._crit_edge192, %._crit_edge197
  ret void
}

declare double @dlamch_(ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare double @cabs(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) local_unnamed_addr #3

declare double @dzsum1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @izmax1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @zcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 = { "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 #2 = { nofree 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 #3 = { inlinehint 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = !{!16, !10, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = distinct !{!18, !12, !14, !13}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass