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

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

@zlacon_.iter = external hidden global i32, align 4
@zlacon_.temp = external hidden global double, align 8
@zlacon_.jump = external hidden global i32, align 4
@zlacon_.i__ = external hidden global i32, align 4
@zlacon_.j = external hidden global i32, align 4
@zlacon_.absxi = external hidden global double, align 8
@zlacon_.jlast = external hidden global i32, align 4
@zlacon_.safmin = external hidden global double, align 8
@zlacon_.altsgn = external hidden global double, align 8
@zlacon_.estold = external hidden global double, align 8
@.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 @zlacon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.doublecomplex, align 8
  %17 = alloca i32, align 4
  %18 = alloca { double, double }, align 8
  %19 = alloca { double, double }, align 8
  %20 = alloca { double, double }, align 8
  %21 = alloca { double, double }, align 8
  %22 = alloca { double, double }, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 -1
  store ptr %24, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 -1
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = call double @dlamch_(ptr noundef @.str)
  store double %27, ptr @zlacon_.safmin, align 8, !tbaa !9
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %66

31:                                               ; preds = %5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load i32, ptr %32, align 4, !tbaa !11
  store i32 %33, ptr %11, align 4, !tbaa !11
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %61, %31
  %35 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %36 = load i32, ptr %11, align 4, !tbaa !11
  %37 = icmp sle i32 %35, %36
  br i1 %37, label %38, label %64

38:                                               ; preds = %34
  %39 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %39, ptr %12, align 4, !tbaa !11
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = sitofp i32 %41 to double
  %43 = fdiv double 1.000000e+00, %42
  store double %43, ptr %14, align 8, !tbaa !9
  %44 = load double, ptr %14, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %44, ptr %45, align 8, !tbaa !13
  %46 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double 0.000000e+00, ptr %46, align 8, !tbaa !15
  %47 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %48 = load double, ptr %47, align 8, !tbaa !13
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load i32, ptr %12, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %49, i64 %51
  %53 = getelementptr inbounds %struct.doublecomplex, ptr %52, i32 0, i32 0
  store double %48, ptr %53, align 8, !tbaa !13
  %54 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %55 = load double, ptr %54, align 8, !tbaa !15
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %12, align 4, !tbaa !11
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %struct.doublecomplex, ptr %56, i64 %58
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %59, i32 0, i32 1
  store double %55, ptr %60, align 8, !tbaa !15
  br label %61

61:                                               ; preds = %38
  %62 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %34, !llvm.loop !16

64:                                               ; preds = %34
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %65, align 4, !tbaa !11
  store i32 1, ptr @zlacon_.jump, align 4, !tbaa !11
  store i32 1, ptr %17, align 4
  br label %443

66:                                               ; preds = %5
  %67 = load i32, ptr @zlacon_.jump, align 4, !tbaa !11
  switch i32 %67, label %73 [
    i32 1, label %68
    i32 2, label %69
    i32 3, label %70
    i32 4, label %71
    i32 5, label %72
  ]

68:                                               ; preds = %66
  br label %74

69:                                               ; preds = %66
  br label %192

70:                                               ; preds = %66
  br label %232

71:                                               ; preds = %66
  br label %331

72:                                               ; preds = %66
  br label %417

73:                                               ; preds = %66
  br label %74

74:                                               ; preds = %73, %68
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %78, label %106

78:                                               ; preds = %74
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.doublecomplex, ptr %79, i64 1
  %81 = getelementptr inbounds %struct.doublecomplex, ptr %80, i32 0, i32 0
  %82 = load double, ptr %81, align 8, !tbaa !13
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.doublecomplex, ptr %83, i64 1
  %85 = getelementptr inbounds %struct.doublecomplex, ptr %84, i32 0, i32 0
  store double %82, ptr %85, align 8, !tbaa !13
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %86, i64 1
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %87, i32 0, i32 1
  %89 = load double, ptr %88, align 8, !tbaa !15
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.doublecomplex, ptr %90, i64 1
  %92 = getelementptr inbounds %struct.doublecomplex, ptr %91, i32 0, i32 1
  store double %89, ptr %92, align 8, !tbaa !15
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.doublecomplex, ptr %93, i64 1
  %95 = call { double, double } @Cd(ptr noundef %94)
  %96 = extractvalue { double, double } %95, 0
  %97 = extractvalue { double, double } %95, 1
  %98 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %99 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  store double %96, ptr %98, align 8
  store double %97, ptr %99, align 8
  %100 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %101 = load double, ptr %100, align 8
  %102 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %103 = load double, ptr %102, align 8
  %104 = call double @cabs(double noundef %101, double noundef %103) #5
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  store double %104, ptr %105, align 8, !tbaa !9
  br label %441

106:                                              ; preds = %74
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.doublecomplex, ptr %108, i64 1
  %110 = call double @dzsum1_(ptr noundef %107, ptr noundef %109, ptr noundef @c__1)
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  store double %110, ptr %111, align 8, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !11
  store i32 %113, ptr %11, align 4, !tbaa !11
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %114

114:                                              ; preds = %187, %106
  %115 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %116 = load i32, ptr %11, align 4, !tbaa !11
  %117 = icmp sle i32 %115, %116
  br i1 %117, label %118, label %190

118:                                              ; preds = %114
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %119, i64 %121
  %123 = call { double, double } @Cd(ptr noundef %122)
  %124 = extractvalue { double, double } %123, 0
  %125 = extractvalue { double, double } %123, 1
  %126 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %127 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  store double %124, ptr %126, align 8
  store double %125, ptr %127, align 8
  %128 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %129 = load double, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %131 = load double, ptr %130, align 8
  %132 = call double @cabs(double noundef %129, double noundef %131) #5
  store double %132, ptr @zlacon_.absxi, align 8, !tbaa !9
  %133 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %134 = load double, ptr @zlacon_.safmin, align 8, !tbaa !9
  %135 = fcmp ogt double %133, %134
  br i1 %135, label %136, label %174

136:                                              ; preds = %118
  %137 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %137, ptr %12, align 4, !tbaa !11
  %138 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %138, ptr %13, align 4, !tbaa !11
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = load i32, ptr %13, align 4, !tbaa !11
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct.doublecomplex, ptr %139, i64 %141
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %142, i32 0, i32 0
  %144 = load double, ptr %143, align 8, !tbaa !13
  %145 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %146 = fdiv double %144, %145
  store double %146, ptr %14, align 8, !tbaa !9
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %147, i64 %149
  %151 = call { double, double } @Cd(ptr noundef %150)
  %152 = extractvalue { double, double } %151, 0
  %153 = extractvalue { double, double } %151, 1
  %154 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %155 = fdiv double %153, %154
  store double %155, ptr %15, align 8, !tbaa !9
  %156 = load double, ptr %14, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %156, ptr %157, align 8, !tbaa !13
  %158 = load double, ptr %15, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %158, ptr %159, align 8, !tbaa !15
  %160 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %161 = load double, ptr %160, align 8, !tbaa !13
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load i32, ptr %12, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.doublecomplex, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.doublecomplex, ptr %165, i32 0, i32 0
  store double %161, ptr %166, align 8, !tbaa !13
  %167 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %168 = load double, ptr %167, align 8, !tbaa !15
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load i32, ptr %12, align 4, !tbaa !11
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %169, i64 %171
  %173 = getelementptr inbounds %struct.doublecomplex, ptr %172, i32 0, i32 1
  store double %168, ptr %173, align 8, !tbaa !15
  br label %186

174:                                              ; preds = %118
  %175 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %175, ptr %12, align 4, !tbaa !11
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = load i32, ptr %12, align 4, !tbaa !11
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct.doublecomplex, ptr %176, i64 %178
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %179, i32 0, i32 0
  store double 1.000000e+00, ptr %180, align 8, !tbaa !13
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = load i32, ptr %12, align 4, !tbaa !11
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %181, i64 %183
  %185 = getelementptr inbounds %struct.doublecomplex, ptr %184, i32 0, i32 1
  store double 0.000000e+00, ptr %185, align 8, !tbaa !15
  br label %186

186:                                              ; preds = %174, %136
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %114, !llvm.loop !18

190:                                              ; preds = %114
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 2, ptr %191, align 4, !tbaa !11
  store i32 2, ptr @zlacon_.jump, align 4, !tbaa !11
  store i32 1, ptr %17, align 4
  br label %443

192:                                              ; preds = %69
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.doublecomplex, ptr %194, i64 1
  %196 = call i32 @izmax1_(ptr noundef %193, ptr noundef %195, ptr noundef @c__1)
  store i32 %196, ptr @zlacon_.j, align 4, !tbaa !11
  store i32 2, ptr @zlacon_.iter, align 4, !tbaa !11
  br label %197

197:                                              ; preds = %369, %192
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = load i32, ptr %198, align 4, !tbaa !11
  store i32 %199, ptr %11, align 4, !tbaa !11
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %200

200:                                              ; preds = %216, %197
  %201 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %202 = load i32, ptr %11, align 4, !tbaa !11
  %203 = icmp sle i32 %201, %202
  br i1 %203, label %204, label %219

204:                                              ; preds = %200
  %205 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %205, ptr %12, align 4, !tbaa !11
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = load i32, ptr %12, align 4, !tbaa !11
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %struct.doublecomplex, ptr %206, i64 %208
  %210 = getelementptr inbounds %struct.doublecomplex, ptr %209, i32 0, i32 0
  store double 0.000000e+00, ptr %210, align 8, !tbaa !13
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = load i32, ptr %12, align 4, !tbaa !11
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds %struct.doublecomplex, ptr %211, i64 %213
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %214, i32 0, i32 1
  store double 0.000000e+00, ptr %215, align 8, !tbaa !15
  br label %216

216:                                              ; preds = %204
  %217 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %200, !llvm.loop !19

219:                                              ; preds = %200
  %220 = load i32, ptr @zlacon_.j, align 4, !tbaa !11
  store i32 %220, ptr %11, align 4, !tbaa !11
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = load i32, ptr %11, align 4, !tbaa !11
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %221, i64 %223
  %225 = getelementptr inbounds %struct.doublecomplex, ptr %224, i32 0, i32 0
  store double 1.000000e+00, ptr %225, align 8, !tbaa !13
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = load i32, ptr %11, align 4, !tbaa !11
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds %struct.doublecomplex, ptr %226, i64 %228
  %230 = getelementptr inbounds %struct.doublecomplex, ptr %229, i32 0, i32 1
  store double 0.000000e+00, ptr %230, align 8, !tbaa !15
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %231, align 4, !tbaa !11
  store i32 3, ptr @zlacon_.jump, align 4, !tbaa !11
  store i32 1, ptr %17, align 4
  br label %443

232:                                              ; preds = %70
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %234, i64 1
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.doublecomplex, ptr %236, i64 1
  call void @zcopy_(ptr noundef %233, ptr noundef %235, ptr noundef @c__1, ptr noundef %237, ptr noundef @c__1)
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = load double, ptr %238, align 8, !tbaa !9
  store double %239, ptr @zlacon_.estold, align 8, !tbaa !9
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.doublecomplex, ptr %241, i64 1
  %243 = call double @dzsum1_(ptr noundef %240, ptr noundef %242, ptr noundef @c__1)
  %244 = load ptr, ptr %9, align 8, !tbaa !5
  store double %243, ptr %244, align 8, !tbaa !9
  %245 = load ptr, ptr %9, align 8, !tbaa !5
  %246 = load double, ptr %245, align 8, !tbaa !9
  %247 = load double, ptr @zlacon_.estold, align 8, !tbaa !9
  %248 = fcmp ole double %246, %247
  br i1 %248, label %249, label %250

249:                                              ; preds = %232
  br label %373

250:                                              ; preds = %232
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = load i32, ptr %251, align 4, !tbaa !11
  store i32 %252, ptr %11, align 4, !tbaa !11
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %253

253:                                              ; preds = %326, %250
  %254 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %255 = load i32, ptr %11, align 4, !tbaa !11
  %256 = icmp sle i32 %254, %255
  br i1 %256, label %257, label %329

257:                                              ; preds = %253
  %258 = load ptr, ptr %8, align 8, !tbaa !5
  %259 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %258, i64 %260
  %262 = call { double, double } @Cd(ptr noundef %261)
  %263 = extractvalue { double, double } %262, 0
  %264 = extractvalue { double, double } %262, 1
  %265 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %266 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  store double %263, ptr %265, align 8
  store double %264, ptr %266, align 8
  %267 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %268 = load double, ptr %267, align 8
  %269 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %270 = load double, ptr %269, align 8
  %271 = call double @cabs(double noundef %268, double noundef %270) #5
  store double %271, ptr @zlacon_.absxi, align 8, !tbaa !9
  %272 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %273 = load double, ptr @zlacon_.safmin, align 8, !tbaa !9
  %274 = fcmp ogt double %272, %273
  br i1 %274, label %275, label %313

275:                                              ; preds = %257
  %276 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %276, ptr %12, align 4, !tbaa !11
  %277 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %277, ptr %13, align 4, !tbaa !11
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = load i32, ptr %13, align 4, !tbaa !11
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds %struct.doublecomplex, ptr %278, i64 %280
  %282 = getelementptr inbounds %struct.doublecomplex, ptr %281, i32 0, i32 0
  %283 = load double, ptr %282, align 8, !tbaa !13
  %284 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %285 = fdiv double %283, %284
  store double %285, ptr %14, align 8, !tbaa !9
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  %287 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %286, i64 %288
  %290 = call { double, double } @Cd(ptr noundef %289)
  %291 = extractvalue { double, double } %290, 0
  %292 = extractvalue { double, double } %290, 1
  %293 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %294 = fdiv double %292, %293
  store double %294, ptr %15, align 8, !tbaa !9
  %295 = load double, ptr %14, align 8, !tbaa !9
  %296 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %295, ptr %296, align 8, !tbaa !13
  %297 = load double, ptr %15, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %297, ptr %298, align 8, !tbaa !15
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %300 = load double, ptr %299, align 8, !tbaa !13
  %301 = load ptr, ptr %8, align 8, !tbaa !5
  %302 = load i32, ptr %12, align 4, !tbaa !11
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds %struct.doublecomplex, ptr %301, i64 %303
  %305 = getelementptr inbounds %struct.doublecomplex, ptr %304, i32 0, i32 0
  store double %300, ptr %305, align 8, !tbaa !13
  %306 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %307 = load double, ptr %306, align 8, !tbaa !15
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = load i32, ptr %12, align 4, !tbaa !11
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %struct.doublecomplex, ptr %308, i64 %310
  %312 = getelementptr inbounds %struct.doublecomplex, ptr %311, i32 0, i32 1
  store double %307, ptr %312, align 8, !tbaa !15
  br label %325

313:                                              ; preds = %257
  %314 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %314, ptr %12, align 4, !tbaa !11
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  %316 = load i32, ptr %12, align 4, !tbaa !11
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds %struct.doublecomplex, ptr %315, i64 %317
  %319 = getelementptr inbounds %struct.doublecomplex, ptr %318, i32 0, i32 0
  store double 1.000000e+00, ptr %319, align 8, !tbaa !13
  %320 = load ptr, ptr %8, align 8, !tbaa !5
  %321 = load i32, ptr %12, align 4, !tbaa !11
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds %struct.doublecomplex, ptr %320, i64 %322
  %324 = getelementptr inbounds %struct.doublecomplex, ptr %323, i32 0, i32 1
  store double 0.000000e+00, ptr %324, align 8, !tbaa !15
  br label %325

325:                                              ; preds = %313, %275
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %253, !llvm.loop !20

329:                                              ; preds = %253
  %330 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 2, ptr %330, align 4, !tbaa !11
  store i32 4, ptr @zlacon_.jump, align 4, !tbaa !11
  store i32 1, ptr %17, align 4
  br label %443

331:                                              ; preds = %71
  %332 = load i32, ptr @zlacon_.j, align 4, !tbaa !11
  store i32 %332, ptr @zlacon_.jlast, align 4, !tbaa !11
  %333 = load ptr, ptr %6, align 8, !tbaa !5
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.doublecomplex, ptr %334, i64 1
  %336 = call i32 @izmax1_(ptr noundef %333, ptr noundef %335, ptr noundef @c__1)
  store i32 %336, ptr @zlacon_.j, align 4, !tbaa !11
  %337 = load ptr, ptr %8, align 8, !tbaa !5
  %338 = load i32, ptr @zlacon_.jlast, align 4, !tbaa !11
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds %struct.doublecomplex, ptr %337, i64 %339
  %341 = call { double, double } @Cd(ptr noundef %340)
  %342 = extractvalue { double, double } %341, 0
  %343 = extractvalue { double, double } %341, 1
  %344 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %345 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  store double %342, ptr %344, align 8
  store double %343, ptr %345, align 8
  %346 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %347 = load double, ptr %346, align 8
  %348 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %349 = load double, ptr %348, align 8
  %350 = call double @cabs(double noundef %347, double noundef %349) #5
  %351 = load ptr, ptr %8, align 8, !tbaa !5
  %352 = load i32, ptr @zlacon_.j, align 4, !tbaa !11
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds %struct.doublecomplex, ptr %351, i64 %353
  %355 = call { double, double } @Cd(ptr noundef %354)
  %356 = extractvalue { double, double } %355, 0
  %357 = extractvalue { double, double } %355, 1
  %358 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %359 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  store double %356, ptr %358, align 8
  store double %357, ptr %359, align 8
  %360 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %361 = load double, ptr %360, align 8
  %362 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %363 = load double, ptr %362, align 8
  %364 = call double @cabs(double noundef %361, double noundef %363) #5
  %365 = fcmp une double %350, %364
  br i1 %365, label %366, label %372

366:                                              ; preds = %331
  %367 = load i32, ptr @zlacon_.iter, align 4, !tbaa !11
  %368 = icmp slt i32 %367, 5
  br i1 %368, label %369, label %372

369:                                              ; preds = %366
  %370 = load i32, ptr @zlacon_.iter, align 4, !tbaa !11
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr @zlacon_.iter, align 4, !tbaa !11
  br label %197

372:                                              ; preds = %366, %331
  br label %373

373:                                              ; preds = %372, %249
  store double 1.000000e+00, ptr @zlacon_.altsgn, align 8, !tbaa !9
  %374 = load ptr, ptr %6, align 8, !tbaa !5
  %375 = load i32, ptr %374, align 4, !tbaa !11
  store i32 %375, ptr %11, align 4, !tbaa !11
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %376

376:                                              ; preds = %412, %373
  %377 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %378 = load i32, ptr %11, align 4, !tbaa !11
  %379 = icmp sle i32 %377, %378
  br i1 %379, label %380, label %415

380:                                              ; preds = %376
  %381 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  store i32 %381, ptr %12, align 4, !tbaa !11
  %382 = load double, ptr @zlacon_.altsgn, align 8, !tbaa !9
  %383 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %384 = sub nsw i32 %383, 1
  %385 = sitofp i32 %384 to double
  %386 = load ptr, ptr %6, align 8, !tbaa !5
  %387 = load i32, ptr %386, align 4, !tbaa !11
  %388 = sub nsw i32 %387, 1
  %389 = sitofp i32 %388 to double
  %390 = fdiv double %385, %389
  %391 = fadd double %390, 1.000000e+00
  %392 = fmul double %382, %391
  store double %392, ptr %14, align 8, !tbaa !9
  %393 = load double, ptr %14, align 8, !tbaa !9
  %394 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %393, ptr %394, align 8, !tbaa !13
  %395 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double 0.000000e+00, ptr %395, align 8, !tbaa !15
  %396 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %397 = load double, ptr %396, align 8, !tbaa !13
  %398 = load ptr, ptr %8, align 8, !tbaa !5
  %399 = load i32, ptr %12, align 4, !tbaa !11
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds %struct.doublecomplex, ptr %398, i64 %400
  %402 = getelementptr inbounds %struct.doublecomplex, ptr %401, i32 0, i32 0
  store double %397, ptr %402, align 8, !tbaa !13
  %403 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %404 = load double, ptr %403, align 8, !tbaa !15
  %405 = load ptr, ptr %8, align 8, !tbaa !5
  %406 = load i32, ptr %12, align 4, !tbaa !11
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds %struct.doublecomplex, ptr %405, i64 %407
  %409 = getelementptr inbounds %struct.doublecomplex, ptr %408, i32 0, i32 1
  store double %404, ptr %409, align 8, !tbaa !15
  %410 = load double, ptr @zlacon_.altsgn, align 8, !tbaa !9
  %411 = fneg double %410
  store double %411, ptr @zlacon_.altsgn, align 8, !tbaa !9
  br label %412

412:                                              ; preds = %380
  %413 = load i32, ptr @zlacon_.i__, align 4, !tbaa !11
  %414 = add nsw i32 %413, 1
  store i32 %414, ptr @zlacon_.i__, align 4, !tbaa !11
  br label %376, !llvm.loop !21

415:                                              ; preds = %376
  %416 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %416, align 4, !tbaa !11
  store i32 5, ptr @zlacon_.jump, align 4, !tbaa !11
  store i32 1, ptr %17, align 4
  br label %443

417:                                              ; preds = %72
  %418 = load ptr, ptr %6, align 8, !tbaa !5
  %419 = load ptr, ptr %8, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.doublecomplex, ptr %419, i64 1
  %421 = call double @dzsum1_(ptr noundef %418, ptr noundef %420, ptr noundef @c__1)
  %422 = load ptr, ptr %6, align 8, !tbaa !5
  %423 = load i32, ptr %422, align 4, !tbaa !11
  %424 = mul nsw i32 %423, 3
  %425 = sitofp i32 %424 to double
  %426 = fdiv double %421, %425
  %427 = fmul double %426, 2.000000e+00
  store double %427, ptr @zlacon_.temp, align 8, !tbaa !9
  %428 = load double, ptr @zlacon_.temp, align 8, !tbaa !9
  %429 = load ptr, ptr %9, align 8, !tbaa !5
  %430 = load double, ptr %429, align 8, !tbaa !9
  %431 = fcmp ogt double %428, %430
  br i1 %431, label %432, label %440

432:                                              ; preds = %417
  %433 = load ptr, ptr %6, align 8, !tbaa !5
  %434 = load ptr, ptr %8, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.doublecomplex, ptr %434, i64 1
  %436 = load ptr, ptr %7, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.doublecomplex, ptr %436, i64 1
  call void @zcopy_(ptr noundef %433, ptr noundef %435, ptr noundef @c__1, ptr noundef %437, ptr noundef @c__1)
  %438 = load double, ptr @zlacon_.temp, align 8, !tbaa !9
  %439 = load ptr, ptr %9, align 8, !tbaa !5
  store double %438, ptr %439, align 8, !tbaa !9
  br label %440

440:                                              ; preds = %432, %417
  br label %441

441:                                              ; preds = %440, %78
  %442 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %442, align 4, !tbaa !11
  store i32 1, ptr %17, align 4
  br label %443

443:                                              ; preds = %441, %415, %329, %219, %190, %64
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #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 }

@zlacon_.iter = external hidden local_unnamed_addr global i32, align 4
@zlacon_.temp = external hidden local_unnamed_addr global double, align 8
@zlacon_.jump = external hidden local_unnamed_addr global i32, align 4
@zlacon_.i__ = external hidden local_unnamed_addr global i32, align 4
@zlacon_.j = external hidden local_unnamed_addr global i32, align 4
@zlacon_.absxi = external hidden local_unnamed_addr global double, align 8
@zlacon_.jlast = external hidden local_unnamed_addr global i32, align 4
@zlacon_.safmin = external hidden local_unnamed_addr global double, align 8
@zlacon_.altsgn = external hidden local_unnamed_addr global double, align 8
@zlacon_.estold = external hidden local_unnamed_addr global double, align 8
@.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 @zlacon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %2, i64 -16
  %7 = tail call double @dlamch_(ptr noundef nonnull @.str) #5
  store double %7, ptr @zlacon_.safmin, align 8, !tbaa !5
  %8 = load i32, ptr %4, align 4, !tbaa !9
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %45

10:                                               ; preds = %5
  %11 = load i32, ptr %0, align 4, !tbaa !9
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !9
  %.not129147 = icmp slt i32 %11, 1
  br i1 %.not129147, label %._crit_edge151, label %.lr.ph150.preheader

.lr.ph150.preheader:                              ; preds = %10
  %12 = add nuw i32 %11, 1
  %wide.trip.count161 = zext i32 %12 to i64
  %13 = zext nneg i32 %11 to i64
  %min.iters.check = icmp eq i32 %11, 1
  br i1 %min.iters.check, label %.lr.ph150.preheader164, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph150.preheader
  %scevgep = getelementptr i8, ptr %0, i64 4
  %bound0 = icmp ugt ptr %scevgep, @zlacon_.i__
  %bound1 = icmp ult ptr %0, getelementptr inbounds (i8, ptr @zlacon_.i__, i64 4)
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph150.preheader164, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %13, 2147483646
  %ind.end = or i64 %13, 1
  %14 = load i32, ptr %0, align 4, !tbaa !9, !alias.scope !11
  %broadcast.splatinsert = insertelement <2 x i32> poison, i32 %14, i64 0
  %broadcast.splat = shufflevector <2 x i32> %broadcast.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
  %15 = sitofp <2 x i32> %broadcast.splat to <2 x double>
  %16 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %15
  %interleaved.vec = shufflevector <2 x double> %16, <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 = phi i64 [ 2, %vector.ph ], [ %21, %vector.body ]
  %18 = getelementptr %struct.doublecomplex, ptr %2, i64 %index
  store <4 x double> %interleaved.vec, ptr %18, align 8, !tbaa !5
  %19 = trunc i64 %17 to i32
  %20 = or disjoint i32 %19, 1
  %index.next = add nuw i64 %index, 2
  %21 = add i64 %17, 2
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  store i32 %20, ptr @zlacon_.i__, align 4, !tbaa !9, !alias.scope !18, !noalias !11
  %cmp.n = icmp eq i64 %n.vec, %13
  br i1 %cmp.n, label %._crit_edge151, label %.lr.ph150.preheader164

.lr.ph150.preheader164:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph150.preheader
  %indvars.iv158.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph150.preheader ], [ %ind.end, %middle.block ]
  %23 = zext nneg i32 %11 to i64
  %24 = and i32 %11, 1
  %lcmp.mod.not = icmp eq i32 %24, 0
  br i1 %lcmp.mod.not, label %.lr.ph150.prol.loopexit, label %.lr.ph150.prol

.lr.ph150.prol:                                   ; preds = %.lr.ph150.preheader164
  %25 = load i32, ptr %0, align 4, !tbaa !9
  %26 = sitofp i32 %25 to double
  %27 = fdiv double 1.000000e+00, %26
  %28 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %indvars.iv158.ph
  store double %27, ptr %28, align 8, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  store double 0.000000e+00, ptr %29, align 8, !tbaa !22
  %indvars.iv.next159.prol = add nuw nsw i64 %indvars.iv158.ph, 1
  %30 = trunc nuw i64 %indvars.iv.next159.prol to i32
  store i32 %30, ptr @zlacon_.i__, align 4, !tbaa !9
  br label %.lr.ph150.prol.loopexit

.lr.ph150.prol.loopexit:                          ; preds = %.lr.ph150.prol, %.lr.ph150.preheader164
  %indvars.iv158.unr = phi i64 [ %indvars.iv158.ph, %.lr.ph150.preheader164 ], [ %indvars.iv.next159.prol, %.lr.ph150.prol ]
  %31 = icmp eq i64 %indvars.iv158.ph, %23
  br i1 %31, label %._crit_edge151, label %.lr.ph150

.lr.ph150:                                        ; preds = %.lr.ph150.prol.loopexit, %.lr.ph150
  %indvars.iv158 = phi i64 [ %indvars.iv.next159.1, %.lr.ph150 ], [ %indvars.iv158.unr, %.lr.ph150.prol.loopexit ]
  %32 = load i32, ptr %0, align 4, !tbaa !9
  %33 = sitofp i32 %32 to double
  %34 = fdiv double 1.000000e+00, %33
  %35 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %indvars.iv158
  store double %34, ptr %35, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  store double 0.000000e+00, ptr %36, align 8, !tbaa !22
  %37 = trunc i64 %indvars.iv158 to i32
  %38 = add i32 %37, 1
  store i32 %38, ptr @zlacon_.i__, align 4, !tbaa !9
  %39 = load i32, ptr %0, align 4, !tbaa !9
  %40 = sitofp i32 %39 to double
  %41 = fdiv double 1.000000e+00, %40
  %42 = getelementptr %struct.doublecomplex, ptr %2, i64 %indvars.iv158
  store double %41, ptr %42, align 8, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  store double 0.000000e+00, ptr %43, align 8, !tbaa !22
  %indvars.iv.next159.1 = add nuw nsw i64 %indvars.iv158, 2
  %44 = trunc nuw i64 %indvars.iv.next159.1 to i32
  store i32 %44, ptr @zlacon_.i__, align 4, !tbaa !9
  %exitcond162.not.1 = icmp eq i64 %indvars.iv.next159.1, %wide.trip.count161
  br i1 %exitcond162.not.1, label %._crit_edge151, label %.lr.ph150, !llvm.loop !23

._crit_edge151:                                   ; preds = %.lr.ph150.prol.loopexit, %.lr.ph150, %middle.block, %10
  store i32 1, ptr %4, align 4, !tbaa !9
  store i32 1, ptr @zlacon_.jump, align 4, !tbaa !9
  br label %178

45:                                               ; preds = %5
  %46 = load i32, ptr @zlacon_.jump, align 4, !tbaa !9
  switch i32 %46, label %47 [
    i32 5, label %166
    i32 2, label %84
    i32 3, label %94
    i32 4, label %126
  ]

47:                                               ; preds = %45
  %48 = load i32, ptr %0, align 4, !tbaa !9
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %56

50:                                               ; preds = %47
  %51 = load <2 x double>, ptr %2, align 8, !tbaa !5
  store <2 x double> %51, ptr %1, align 8, !tbaa !5
  %52 = tail call { double, double } @Cd(ptr noundef nonnull %1)
  %53 = extractvalue { double, double } %52, 0
  %54 = extractvalue { double, double } %52, 1
  %55 = tail call double @cabs(double noundef %53, double noundef %54) #5
  br label %.sink.split

56:                                               ; preds = %47
  %57 = tail call double @dzsum1_(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  store double %57, ptr %3, align 8, !tbaa !5
  %58 = load i32, ptr %0, align 4, !tbaa !9
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !9
  %.not127142 = icmp slt i32 %58, 1
  br i1 %.not127142, label %._crit_edge146, label %.lr.ph145

.lr.ph145:                                        ; preds = %56, %81
  %storemerge126143 = phi i32 [ %83, %81 ], [ 1, %56 ]
  %59 = sext i32 %storemerge126143 to i64
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %59
  %61 = tail call { double, double } @Cd(ptr noundef nonnull %60)
  %62 = extractvalue { double, double } %61, 0
  %63 = extractvalue { double, double } %61, 1
  %64 = tail call double @cabs(double noundef %62, double noundef %63) #5
  store double %64, ptr @zlacon_.absxi, align 8, !tbaa !5
  %65 = load double, ptr @zlacon_.safmin, align 8, !tbaa !5
  %66 = fcmp ogt double %64, %65
  %67 = load i32, ptr @zlacon_.i__, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %68
  br i1 %66, label %70, label %80

70:                                               ; preds = %.lr.ph145
  %71 = load double, ptr %69, align 8, !tbaa !20
  %72 = tail call { double, double } @Cd(ptr noundef nonnull %69)
  %73 = extractvalue { double, double } %72, 1
  %74 = load double, ptr @zlacon_.absxi, align 8, !tbaa !5
  %75 = insertelement <2 x double> poison, double %71, i64 0
  %76 = insertelement <2 x double> %75, double %73, i64 1
  %77 = insertelement <2 x double> poison, double %64, i64 0
  %78 = insertelement <2 x double> %77, double %74, i64 1
  %79 = fdiv <2 x double> %76, %78
  store <2 x double> %79, ptr %69, align 8, !tbaa !5
  %.pre163 = load i32, ptr @zlacon_.i__, align 4, !tbaa !9
  br label %81

80:                                               ; preds = %.lr.ph145
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %69, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %70, %80
  %82 = phi i32 [ %.pre163, %70 ], [ %67, %80 ]
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr @zlacon_.i__, align 4, !tbaa !9
  %.not127.not = icmp slt i32 %82, %58
  br i1 %.not127.not, label %.lr.ph145, label %._crit_edge146, !llvm.loop !24

._crit_edge146:                                   ; preds = %81, %56
  store i32 2, ptr %4, align 4, !tbaa !9
  store i32 2, ptr @zlacon_.jump, align 4, !tbaa !9
  br label %178

84:                                               ; preds = %45
  %85 = tail call i32 @izmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  store i32 %85, ptr @zlacon_.j, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %146, %84
  %storemerge = phi i32 [ %147, %146 ], [ 2, %84 ]
  store i32 %storemerge, ptr @zlacon_.iter, align 4, !tbaa !9
  %87 = load i32, ptr %0, align 4, !tbaa !9
  %.not125137 = icmp slt i32 %87, 1
  br i1 %.not125137, label %._crit_edge141, label %.lr.ph140.preheader

.lr.ph140.preheader:                              ; preds = %86
  %88 = zext nneg i32 %87 to i64
  %89 = shl nuw nsw i64 %88, 4
  tail call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 %89, i1 false), !tbaa !5
  %90 = add nuw i32 %87, 1
  br label %._crit_edge141

._crit_edge141:                                   ; preds = %.lr.ph140.preheader, %86
  %storemerge124.lcssa = phi i32 [ 1, %86 ], [ %90, %.lr.ph140.preheader ]
  store i32 %storemerge124.lcssa, ptr @zlacon_.i__, align 4, !tbaa !9
  %91 = load i32, ptr @zlacon_.j, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %92
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %93, align 8, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !9
  store i32 3, ptr @zlacon_.jump, align 4, !tbaa !9
  br label %178

94:                                               ; preds = %45
  tail call void @zcopy_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull @c__1) #5
  %95 = load double, ptr %3, align 8, !tbaa !5
  store double %95, ptr @zlacon_.estold, align 8, !tbaa !5
  %96 = tail call double @dzsum1_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull @c__1) #5
  store double %96, ptr %3, align 8, !tbaa !5
  %97 = load double, ptr @zlacon_.estold, align 8, !tbaa !5
  %98 = fcmp ugt double %96, %97
  br i1 %98, label %99, label %148

99:                                               ; preds = %94
  %100 = load i32, ptr %0, align 4, !tbaa !9
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !9
  %.not132 = icmp slt i32 %100, 1
  br i1 %.not132, label %._crit_edge136, label %.lr.ph135

.lr.ph135:                                        ; preds = %99, %123
  %storemerge121133 = phi i32 [ %125, %123 ], [ 1, %99 ]
  %101 = sext i32 %storemerge121133 to i64
  %102 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %101
  %103 = tail call { double, double } @Cd(ptr noundef nonnull %102)
  %104 = extractvalue { double, double } %103, 0
  %105 = extractvalue { double, double } %103, 1
  %106 = tail call double @cabs(double noundef %104, double noundef %105) #5
  store double %106, ptr @zlacon_.absxi, align 8, !tbaa !5
  %107 = load double, ptr @zlacon_.safmin, align 8, !tbaa !5
  %108 = fcmp ogt double %106, %107
  %109 = load i32, ptr @zlacon_.i__, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %110
  br i1 %108, label %112, label %122

112:                                              ; preds = %.lr.ph135
  %113 = load double, ptr %111, align 8, !tbaa !20
  %114 = tail call { double, double } @Cd(ptr noundef nonnull %111)
  %115 = extractvalue { double, double } %114, 1
  %116 = load double, ptr @zlacon_.absxi, align 8, !tbaa !5
  %117 = insertelement <2 x double> poison, double %113, i64 0
  %118 = insertelement <2 x double> %117, double %115, i64 1
  %119 = insertelement <2 x double> poison, double %106, i64 0
  %120 = insertelement <2 x double> %119, double %116, i64 1
  %121 = fdiv <2 x double> %118, %120
  store <2 x double> %121, ptr %111, align 8, !tbaa !5
  %.pre = load i32, ptr @zlacon_.i__, align 4, !tbaa !9
  br label %123

122:                                              ; preds = %.lr.ph135
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %111, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %112, %122
  %124 = phi i32 [ %.pre, %112 ], [ %109, %122 ]
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr @zlacon_.i__, align 4, !tbaa !9
  %.not.not = icmp slt i32 %124, %100
  br i1 %.not.not, label %.lr.ph135, label %._crit_edge136, !llvm.loop !25

._crit_edge136:                                   ; preds = %123, %99
  store i32 2, ptr %4, align 4, !tbaa !9
  store i32 4, ptr @zlacon_.jump, align 4, !tbaa !9
  br label %178

126:                                              ; preds = %45
  %127 = load i32, ptr @zlacon_.j, align 4, !tbaa !9
  store i32 %127, ptr @zlacon_.jlast, align 4, !tbaa !9
  %128 = tail call i32 @izmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  store i32 %128, ptr @zlacon_.j, align 4, !tbaa !9
  %129 = load i32, ptr @zlacon_.jlast, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %130
  %132 = tail call { double, double } @Cd(ptr noundef nonnull %131)
  %133 = extractvalue { double, double } %132, 0
  %134 = extractvalue { double, double } %132, 1
  %135 = tail call double @cabs(double noundef %133, double noundef %134) #5
  %136 = load i32, ptr @zlacon_.j, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %137
  %139 = tail call { double, double } @Cd(ptr noundef nonnull %138)
  %140 = extractvalue { double, double } %139, 0
  %141 = extractvalue { double, double } %139, 1
  %142 = tail call double @cabs(double noundef %140, double noundef %141) #5
  %143 = fcmp une double %135, %142
  %144 = load i32, ptr @zlacon_.iter, align 4
  %145 = icmp slt i32 %144, 5
  %or.cond = select i1 %143, i1 %145, i1 false
  br i1 %or.cond, label %146, label %148

146:                                              ; preds = %126
  %147 = add nsw i32 %144, 1
  br label %86

148:                                              ; preds = %126, %94
  store double 1.000000e+00, ptr @zlacon_.altsgn, align 8, !tbaa !5
  %149 = load i32, ptr %0, align 4, !tbaa !9
  store i32 1, ptr @zlacon_.i__, align 4, !tbaa !9
  %.not123130 = icmp slt i32 %149, 1
  br i1 %.not123130, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %148
  %150 = add nuw i32 %149, 1
  %wide.trip.count = zext i32 %150 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %151 = phi double [ 1.000000e+00, %.lr.ph.preheader ], [ %164, %.lr.ph ]
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %152 = trunc i64 %indvars.iv to i32
  %153 = add i32 %152, -1
  %154 = sitofp i32 %153 to double
  %155 = load i32, ptr %0, align 4, !tbaa !9
  %156 = add nsw i32 %155, -1
  %157 = sitofp i32 %156 to double
  %158 = fdiv double %154, %157
  %159 = fadd double %158, 1.000000e+00
  %160 = fmul double %151, %159
  %161 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %indvars.iv
  store double %160, ptr %161, align 8, !tbaa !20
  %162 = getelementptr inbounds i8, ptr %161, i64 8
  store double 0.000000e+00, ptr %162, align 8, !tbaa !22
  %163 = load double, ptr @zlacon_.altsgn, align 8, !tbaa !5
  %164 = fneg double %163
  store double %164, ptr @zlacon_.altsgn, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %165 = trunc nuw i64 %indvars.iv.next to i32
  store i32 %165, ptr @zlacon_.i__, align 4, !tbaa !9
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph, %148
  store i32 1, ptr %4, align 4, !tbaa !9
  store i32 5, ptr @zlacon_.jump, align 4, !tbaa !9
  br label %178

166:                                              ; preds = %45
  %167 = tail call double @dzsum1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #5
  %168 = load i32, ptr %0, align 4, !tbaa !9
  %169 = mul nsw i32 %168, 3
  %170 = sitofp i32 %169 to double
  %171 = fdiv double %167, %170
  %172 = fmul double %171, 2.000000e+00
  store double %172, ptr @zlacon_.temp, align 8, !tbaa !5
  %173 = load double, ptr %3, align 8, !tbaa !5
  %174 = fcmp ogt double %172, %173
  br i1 %174, label %175, label %177

175:                                              ; preds = %166
  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
  %176 = load double, ptr @zlacon_.temp, align 8, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %50, %175
  %.sink = phi double [ %176, %175 ], [ %55, %50 ]
  store double %.sink, ptr %3, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %.sink.split, %166
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %177, %._crit_edge, %._crit_edge136, %._crit_edge141, %._crit_edge146, %._crit_edge151
  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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = !{!19}
!19 = distinct !{!19, !13}
!20 = !{!21, !6, i64 0}
!21 = !{!"", !6, i64 0, !6, i64 8}
!22 = !{!21, !6, i64 8}
!23 = distinct !{!23, !15, !16}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}


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