; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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_.i__ = external hidden global i64, align 8
@zlacon_.j = external hidden global i64, align 8
@zlacon_.iter = external hidden global i64, align 8
@zlacon_.temp = external hidden global double, align 8
@zlacon_.jump = external hidden global i64, align 8
@zlacon_.absxi = external hidden global double, align 8
@zlacon_.jlast = external hidden global i64, align 8
@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 i64, align 8

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

27:                                               ; preds = %5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !11
  store i64 %29, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %30

30:                                               ; preds = %55, %27
  %31 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %32 = load i64, ptr %12, align 8, !tbaa !11
  %33 = icmp sle i64 %31, %32
  br i1 %33, label %34, label %58

34:                                               ; preds = %30
  %35 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %35, ptr %13, align 8, !tbaa !11
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = sitofp i64 %37 to double
  %39 = fdiv double 1.000000e+00, %38
  store double %39, ptr %15, align 8, !tbaa !9
  %40 = load double, ptr %15, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %40, ptr %41, align 8, !tbaa !13
  %42 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double 0.000000e+00, ptr %42, align 8, !tbaa !15
  %43 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %44 = load double, ptr %43, align 8, !tbaa !13
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load i64, ptr %13, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct.doublecomplex, ptr %45, i64 %46
  %48 = getelementptr inbounds %struct.doublecomplex, ptr %47, i32 0, i32 0
  store double %44, ptr %48, align 8, !tbaa !13
  %49 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %50 = load double, ptr %49, align 8, !tbaa !15
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i64, ptr %13, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.doublecomplex, ptr %51, i64 %52
  %54 = getelementptr inbounds %struct.doublecomplex, ptr %53, i32 0, i32 1
  store double %50, ptr %54, align 8, !tbaa !15
  br label %55

55:                                               ; preds = %34
  %56 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %30, !llvm.loop !16

58:                                               ; preds = %30
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %59, align 8, !tbaa !11
  store i64 1, ptr @zlacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %368

60:                                               ; preds = %5
  %61 = load i64, ptr @zlacon_.jump, align 8, !tbaa !11
  switch i64 %61, label %67 [
    i64 1, label %62
    i64 2, label %63
    i64 3, label %64
    i64 4, label %65
    i64 5, label %66
  ]

62:                                               ; preds = %60
  br label %68

63:                                               ; preds = %60
  br label %159

64:                                               ; preds = %60
  br label %195

65:                                               ; preds = %60
  br label %277

66:                                               ; preds = %60
  br label %341

67:                                               ; preds = %60
  br label %68

68:                                               ; preds = %67, %62
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = icmp eq i64 %70, 1
  br i1 %71, label %72, label %91

72:                                               ; preds = %68
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.doublecomplex, ptr %73, i64 1
  %75 = getelementptr inbounds %struct.doublecomplex, ptr %74, i32 0, i32 0
  %76 = load double, ptr %75, align 8, !tbaa !13
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.doublecomplex, ptr %77, i64 1
  %79 = getelementptr inbounds %struct.doublecomplex, ptr %78, i32 0, i32 0
  store double %76, ptr %79, align 8, !tbaa !13
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.doublecomplex, ptr %80, i64 1
  %82 = getelementptr inbounds %struct.doublecomplex, ptr %81, i32 0, i32 1
  %83 = load double, ptr %82, align 8, !tbaa !15
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.doublecomplex, ptr %84, i64 1
  %86 = getelementptr inbounds %struct.doublecomplex, ptr %85, i32 0, i32 1
  store double %83, ptr %86, align 8, !tbaa !15
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %87, i64 1
  %89 = call double @z_abs(ptr noundef %88)
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  store double %89, ptr %90, align 8, !tbaa !9
  br label %366

91:                                               ; preds = %68
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.doublecomplex, ptr %93, i64 1
  %95 = call double @dzsum1_(ptr noundef %92, ptr noundef %94, ptr noundef @c__1)
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  store double %95, ptr %96, align 8, !tbaa !9
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !11
  store i64 %98, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %154, %91
  %100 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %101 = load i64, ptr %12, align 8, !tbaa !11
  %102 = icmp sle i64 %100, %101
  br i1 %102, label %103, label %157

103:                                              ; preds = %99
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %106 = getelementptr inbounds %struct.doublecomplex, ptr %104, i64 %105
  %107 = call double @z_abs(ptr noundef %106)
  store double %107, ptr @zlacon_.absxi, align 8, !tbaa !9
  %108 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %109 = load double, ptr @zlacon_.safmin, align 8, !tbaa !9
  %110 = fcmp ogt double %108, %109
  br i1 %110, label %111, label %143

111:                                              ; preds = %103
  %112 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %112, ptr %13, align 8, !tbaa !11
  %113 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %113, ptr %14, align 8, !tbaa !11
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load i64, ptr %14, align 8, !tbaa !11
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %114, i64 %115
  %117 = getelementptr inbounds %struct.doublecomplex, ptr %116, i32 0, i32 0
  %118 = load double, ptr %117, align 8, !tbaa !13
  %119 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %120 = fdiv double %118, %119
  store double %120, ptr %15, align 8, !tbaa !9
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.doublecomplex, ptr %121, i64 %122
  %124 = call double @d_imag(ptr noundef %123)
  %125 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %126 = fdiv double %124, %125
  store double %126, ptr %16, align 8, !tbaa !9
  %127 = load double, ptr %15, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %127, ptr %128, align 8, !tbaa !13
  %129 = load double, ptr %16, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %129, ptr %130, align 8, !tbaa !15
  %131 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load i64, ptr %13, align 8, !tbaa !11
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %133, i64 %134
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %135, i32 0, i32 0
  store double %132, ptr %136, align 8, !tbaa !13
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %138 = load double, ptr %137, align 8, !tbaa !15
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load i64, ptr %13, align 8, !tbaa !11
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.doublecomplex, ptr %141, i32 0, i32 1
  store double %138, ptr %142, align 8, !tbaa !15
  br label %153

143:                                              ; preds = %103
  %144 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %144, ptr %13, align 8, !tbaa !11
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = load i64, ptr %13, align 8, !tbaa !11
  %147 = getelementptr inbounds %struct.doublecomplex, ptr %145, i64 %146
  %148 = getelementptr inbounds %struct.doublecomplex, ptr %147, i32 0, i32 0
  store double 1.000000e+00, ptr %148, align 8, !tbaa !13
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = load i64, ptr %13, align 8, !tbaa !11
  %151 = getelementptr inbounds %struct.doublecomplex, ptr %149, i64 %150
  %152 = getelementptr inbounds %struct.doublecomplex, ptr %151, i32 0, i32 1
  store double 0.000000e+00, ptr %152, align 8, !tbaa !15
  br label %153

153:                                              ; preds = %143, %111
  br label %154

154:                                              ; preds = %153
  %155 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %99, !llvm.loop !18

157:                                              ; preds = %99
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 2, ptr %158, align 8, !tbaa !11
  store i64 2, ptr @zlacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %368

159:                                              ; preds = %63
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.doublecomplex, ptr %161, i64 1
  %163 = call i64 @izmax1_(ptr noundef %160, ptr noundef %162, ptr noundef @c__1)
  store i64 %163, ptr @zlacon_.j, align 8, !tbaa !11
  store i64 2, ptr @zlacon_.iter, align 8, !tbaa !11
  br label %164

164:                                              ; preds = %295, %159
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load i64, ptr %165, align 8, !tbaa !11
  store i64 %166, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %167

167:                                              ; preds = %181, %164
  %168 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %169 = load i64, ptr %12, align 8, !tbaa !11
  %170 = icmp sle i64 %168, %169
  br i1 %170, label %171, label %184

171:                                              ; preds = %167
  %172 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %172, ptr %13, align 8, !tbaa !11
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = load i64, ptr %13, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %173, i64 %174
  %176 = getelementptr inbounds %struct.doublecomplex, ptr %175, i32 0, i32 0
  store double 0.000000e+00, ptr %176, align 8, !tbaa !13
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load i64, ptr %13, align 8, !tbaa !11
  %179 = getelementptr inbounds %struct.doublecomplex, ptr %177, i64 %178
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %179, i32 0, i32 1
  store double 0.000000e+00, ptr %180, align 8, !tbaa !15
  br label %181

181:                                              ; preds = %171
  %182 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %167, !llvm.loop !19

184:                                              ; preds = %167
  %185 = load i64, ptr @zlacon_.j, align 8, !tbaa !11
  store i64 %185, ptr %12, align 8, !tbaa !11
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load i64, ptr %12, align 8, !tbaa !11
  %188 = getelementptr inbounds %struct.doublecomplex, ptr %186, i64 %187
  %189 = getelementptr inbounds %struct.doublecomplex, ptr %188, i32 0, i32 0
  store double 1.000000e+00, ptr %189, align 8, !tbaa !13
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = load i64, ptr %12, align 8, !tbaa !11
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %190, i64 %191
  %193 = getelementptr inbounds %struct.doublecomplex, ptr %192, i32 0, i32 1
  store double 0.000000e+00, ptr %193, align 8, !tbaa !15
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %194, align 8, !tbaa !11
  store i64 3, ptr @zlacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %368

195:                                              ; preds = %64
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %197, i64 1
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.doublecomplex, ptr %199, i64 1
  %201 = call i32 @f2c_zcopy(ptr noundef %196, ptr noundef %198, ptr noundef @c__1, ptr noundef %200, ptr noundef @c__1)
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = load double, ptr %202, align 8, !tbaa !9
  store double %203, ptr @zlacon_.estold, align 8, !tbaa !9
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %205, i64 1
  %207 = call double @dzsum1_(ptr noundef %204, ptr noundef %206, ptr noundef @c__1)
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  store double %207, ptr %208, align 8, !tbaa !9
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = load double, ptr %209, align 8, !tbaa !9
  %211 = load double, ptr @zlacon_.estold, align 8, !tbaa !9
  %212 = fcmp ole double %210, %211
  br i1 %212, label %213, label %214

213:                                              ; preds = %195
  br label %299

214:                                              ; preds = %195
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = load i64, ptr %215, align 8, !tbaa !11
  store i64 %216, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %272, %214
  %218 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %219 = load i64, ptr %12, align 8, !tbaa !11
  %220 = icmp sle i64 %218, %219
  br i1 %220, label %221, label %275

221:                                              ; preds = %217
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  %223 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %222, i64 %223
  %225 = call double @z_abs(ptr noundef %224)
  store double %225, ptr @zlacon_.absxi, align 8, !tbaa !9
  %226 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %227 = load double, ptr @zlacon_.safmin, align 8, !tbaa !9
  %228 = fcmp ogt double %226, %227
  br i1 %228, label %229, label %261

229:                                              ; preds = %221
  %230 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %230, ptr %13, align 8, !tbaa !11
  %231 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %231, ptr %14, align 8, !tbaa !11
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = load i64, ptr %14, align 8, !tbaa !11
  %234 = getelementptr inbounds %struct.doublecomplex, ptr %232, i64 %233
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %234, i32 0, i32 0
  %236 = load double, ptr %235, align 8, !tbaa !13
  %237 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %238 = fdiv double %236, %237
  store double %238, ptr %15, align 8, !tbaa !9
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %241 = getelementptr inbounds %struct.doublecomplex, ptr %239, i64 %240
  %242 = call double @d_imag(ptr noundef %241)
  %243 = load double, ptr @zlacon_.absxi, align 8, !tbaa !9
  %244 = fdiv double %242, %243
  store double %244, ptr %16, align 8, !tbaa !9
  %245 = load double, ptr %15, align 8, !tbaa !9
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %245, ptr %246, align 8, !tbaa !13
  %247 = load double, ptr %16, align 8, !tbaa !9
  %248 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %247, ptr %248, align 8, !tbaa !15
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %250 = load double, ptr %249, align 8, !tbaa !13
  %251 = load ptr, ptr %9, align 8, !tbaa !5
  %252 = load i64, ptr %13, align 8, !tbaa !11
  %253 = getelementptr inbounds %struct.doublecomplex, ptr %251, i64 %252
  %254 = getelementptr inbounds %struct.doublecomplex, ptr %253, i32 0, i32 0
  store double %250, ptr %254, align 8, !tbaa !13
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %256 = load double, ptr %255, align 8, !tbaa !15
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = load i64, ptr %13, align 8, !tbaa !11
  %259 = getelementptr inbounds %struct.doublecomplex, ptr %257, i64 %258
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %259, i32 0, i32 1
  store double %256, ptr %260, align 8, !tbaa !15
  br label %271

261:                                              ; preds = %221
  %262 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %262, ptr %13, align 8, !tbaa !11
  %263 = load ptr, ptr %9, align 8, !tbaa !5
  %264 = load i64, ptr %13, align 8, !tbaa !11
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %263, i64 %264
  %266 = getelementptr inbounds %struct.doublecomplex, ptr %265, i32 0, i32 0
  store double 1.000000e+00, ptr %266, align 8, !tbaa !13
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = load i64, ptr %13, align 8, !tbaa !11
  %269 = getelementptr inbounds %struct.doublecomplex, ptr %267, i64 %268
  %270 = getelementptr inbounds %struct.doublecomplex, ptr %269, i32 0, i32 1
  store double 0.000000e+00, ptr %270, align 8, !tbaa !15
  br label %271

271:                                              ; preds = %261, %229
  br label %272

272:                                              ; preds = %271
  %273 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %274 = add nsw i64 %273, 1
  store i64 %274, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %217, !llvm.loop !20

275:                                              ; preds = %217
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 2, ptr %276, align 8, !tbaa !11
  store i64 4, ptr @zlacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %368

277:                                              ; preds = %65
  %278 = load i64, ptr @zlacon_.j, align 8, !tbaa !11
  store i64 %278, ptr @zlacon_.jlast, align 8, !tbaa !11
  %279 = load ptr, ptr %7, align 8, !tbaa !5
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.doublecomplex, ptr %280, i64 1
  %282 = call i64 @izmax1_(ptr noundef %279, ptr noundef %281, ptr noundef @c__1)
  store i64 %282, ptr @zlacon_.j, align 8, !tbaa !11
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = load i64, ptr @zlacon_.jlast, align 8, !tbaa !11
  %285 = getelementptr inbounds %struct.doublecomplex, ptr %283, i64 %284
  %286 = call double @z_abs(ptr noundef %285)
  %287 = load ptr, ptr %9, align 8, !tbaa !5
  %288 = load i64, ptr @zlacon_.j, align 8, !tbaa !11
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %287, i64 %288
  %290 = call double @z_abs(ptr noundef %289)
  %291 = fcmp une double %286, %290
  br i1 %291, label %292, label %298

292:                                              ; preds = %277
  %293 = load i64, ptr @zlacon_.iter, align 8, !tbaa !11
  %294 = icmp slt i64 %293, 5
  br i1 %294, label %295, label %298

295:                                              ; preds = %292
  %296 = load i64, ptr @zlacon_.iter, align 8, !tbaa !11
  %297 = add nsw i64 %296, 1
  store i64 %297, ptr @zlacon_.iter, align 8, !tbaa !11
  br label %164

298:                                              ; preds = %292, %277
  br label %299

299:                                              ; preds = %298, %213
  store double 1.000000e+00, ptr @zlacon_.altsgn, align 8, !tbaa !9
  %300 = load ptr, ptr %7, align 8, !tbaa !5
  %301 = load i64, ptr %300, align 8, !tbaa !11
  store i64 %301, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %302

302:                                              ; preds = %336, %299
  %303 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %304 = load i64, ptr %12, align 8, !tbaa !11
  %305 = icmp sle i64 %303, %304
  br i1 %305, label %306, label %339

306:                                              ; preds = %302
  %307 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  store i64 %307, ptr %13, align 8, !tbaa !11
  %308 = load double, ptr @zlacon_.altsgn, align 8, !tbaa !9
  %309 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %310 = sub nsw i64 %309, 1
  %311 = sitofp i64 %310 to double
  %312 = load ptr, ptr %7, align 8, !tbaa !5
  %313 = load i64, ptr %312, align 8, !tbaa !11
  %314 = sub nsw i64 %313, 1
  %315 = sitofp i64 %314 to double
  %316 = fdiv double %311, %315
  %317 = fadd double %316, 1.000000e+00
  %318 = fmul double %308, %317
  store double %318, ptr %15, align 8, !tbaa !9
  %319 = load double, ptr %15, align 8, !tbaa !9
  %320 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %319, ptr %320, align 8, !tbaa !13
  %321 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double 0.000000e+00, ptr %321, align 8, !tbaa !15
  %322 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %323 = load double, ptr %322, align 8, !tbaa !13
  %324 = load ptr, ptr %9, align 8, !tbaa !5
  %325 = load i64, ptr %13, align 8, !tbaa !11
  %326 = getelementptr inbounds %struct.doublecomplex, ptr %324, i64 %325
  %327 = getelementptr inbounds %struct.doublecomplex, ptr %326, i32 0, i32 0
  store double %323, ptr %327, align 8, !tbaa !13
  %328 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %329 = load double, ptr %328, align 8, !tbaa !15
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = load i64, ptr %13, align 8, !tbaa !11
  %332 = getelementptr inbounds %struct.doublecomplex, ptr %330, i64 %331
  %333 = getelementptr inbounds %struct.doublecomplex, ptr %332, i32 0, i32 1
  store double %329, ptr %333, align 8, !tbaa !15
  %334 = load double, ptr @zlacon_.altsgn, align 8, !tbaa !9
  %335 = fneg double %334
  store double %335, ptr @zlacon_.altsgn, align 8, !tbaa !9
  br label %336

336:                                              ; preds = %306
  %337 = load i64, ptr @zlacon_.i__, align 8, !tbaa !11
  %338 = add nsw i64 %337, 1
  store i64 %338, ptr @zlacon_.i__, align 8, !tbaa !11
  br label %302, !llvm.loop !21

339:                                              ; preds = %302
  %340 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %340, align 8, !tbaa !11
  store i64 5, ptr @zlacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %368

341:                                              ; preds = %66
  %342 = load ptr, ptr %7, align 8, !tbaa !5
  %343 = load ptr, ptr %9, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.doublecomplex, ptr %343, i64 1
  %345 = call double @dzsum1_(ptr noundef %342, ptr noundef %344, ptr noundef @c__1)
  %346 = load ptr, ptr %7, align 8, !tbaa !5
  %347 = load i64, ptr %346, align 8, !tbaa !11
  %348 = mul nsw i64 %347, 3
  %349 = sitofp i64 %348 to double
  %350 = fdiv double %345, %349
  %351 = fmul double %350, 2.000000e+00
  store double %351, ptr @zlacon_.temp, align 8, !tbaa !9
  %352 = load double, ptr @zlacon_.temp, align 8, !tbaa !9
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  %354 = load double, ptr %353, align 8, !tbaa !9
  %355 = fcmp ogt double %352, %354
  br i1 %355, label %356, label %365

356:                                              ; preds = %341
  %357 = load ptr, ptr %7, align 8, !tbaa !5
  %358 = load ptr, ptr %9, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.doublecomplex, ptr %358, i64 1
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.doublecomplex, ptr %360, i64 1
  %362 = call i32 @f2c_zcopy(ptr noundef %357, ptr noundef %359, ptr noundef @c__1, ptr noundef %361, ptr noundef @c__1)
  %363 = load double, ptr @zlacon_.temp, align 8, !tbaa !9
  %364 = load ptr, ptr %10, align 8, !tbaa !5
  store double %363, ptr %364, align 8, !tbaa !9
  br label %365

365:                                              ; preds = %356, %341
  br label %366

366:                                              ; preds = %365, %72
  %367 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %367, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %368

368:                                              ; preds = %366, %339, %275, %184, %157, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %369 = load i32, ptr %6, align 4
  ret i32 %369
}

; 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

declare double @z_abs(ptr noundef) #2

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

declare double @d_imag(ptr noundef) #2

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

declare i32 @f2c_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 }

!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 = !{!"long", !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_.i__ = external hidden local_unnamed_addr global i64, align 8
@zlacon_.j = external hidden local_unnamed_addr global i64, align 8
@zlacon_.iter = external hidden local_unnamed_addr global i64, align 8
@zlacon_.temp = external hidden local_unnamed_addr global double, align 8
@zlacon_.jump = external hidden local_unnamed_addr global i64, align 8
@zlacon_.absxi = external hidden local_unnamed_addr global double, align 8
@zlacon_.jlast = external hidden local_unnamed_addr global i64, align 8
@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 i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @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) #3
  store double %7, ptr @zlacon_.safmin, align 8, !tbaa !5
  %8 = load i64, ptr %4, align 8, !tbaa !9
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %10, label %40

10:                                               ; preds = %5
  %11 = load i64, ptr %0, align 8, !tbaa !9
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !9
  %.not121139 = icmp slt i64 %11, 1
  br i1 %.not121139, label %._crit_edge143, label %.lr.ph142.preheader

.lr.ph142.preheader:                              ; preds = %10
  %min.iters.check = icmp eq i64 %11, 1
  br i1 %min.iters.check, label %.lr.ph142.preheader146, label %vector.memcheck

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

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

middle.block:                                     ; preds = %vector.body
  store i64 %18, ptr @zlacon_.i__, align 8, !tbaa !9, !alias.scope !18, !noalias !11
  %cmp.n = icmp eq i64 %11, %n.vec
  br i1 %cmp.n, label %._crit_edge143, label %.lr.ph142.preheader146

.lr.ph142.preheader146:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph142.preheader
  %storemerge120140.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph142.preheader ], [ %ind.end, %middle.block ]
  %xtraiter = and i64 %11, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph142.prol.loopexit, label %.lr.ph142.prol

.lr.ph142.prol:                                   ; preds = %.lr.ph142.preheader146
  %21 = load i64, ptr %0, align 8, !tbaa !9
  %22 = sitofp i64 %21 to double
  %23 = fdiv double 1.000000e+00, %22
  %24 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %storemerge120140.ph
  store double %23, ptr %24, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  store double 0.000000e+00, ptr %25, align 8, !tbaa !22
  %26 = add nuw i64 %storemerge120140.ph, 1
  store i64 %26, ptr @zlacon_.i__, align 8, !tbaa !9
  br label %.lr.ph142.prol.loopexit

.lr.ph142.prol.loopexit:                          ; preds = %.lr.ph142.prol, %.lr.ph142.preheader146
  %storemerge120140.unr = phi i64 [ %storemerge120140.ph, %.lr.ph142.preheader146 ], [ %26, %.lr.ph142.prol ]
  %27 = icmp eq i64 %11, %storemerge120140.ph
  br i1 %27, label %._crit_edge143, label %.lr.ph142

.lr.ph142:                                        ; preds = %.lr.ph142.prol.loopexit, %.lr.ph142
  %storemerge120140 = phi i64 [ %39, %.lr.ph142 ], [ %storemerge120140.unr, %.lr.ph142.prol.loopexit ]
  %28 = load i64, ptr %0, align 8, !tbaa !9
  %29 = sitofp i64 %28 to double
  %30 = fdiv double 1.000000e+00, %29
  %31 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %storemerge120140
  store double %30, ptr %31, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  store double 0.000000e+00, ptr %32, align 8, !tbaa !22
  %33 = add nuw i64 %storemerge120140, 1
  store i64 %33, ptr @zlacon_.i__, align 8, !tbaa !9
  %34 = load i64, ptr %0, align 8, !tbaa !9
  %35 = sitofp i64 %34 to double
  %36 = fdiv double 1.000000e+00, %35
  %37 = getelementptr %struct.doublecomplex, ptr %2, i64 %storemerge120140
  store double %36, ptr %37, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  store double 0.000000e+00, ptr %38, align 8, !tbaa !22
  %39 = add nuw i64 %storemerge120140, 2
  store i64 %39, ptr @zlacon_.i__, align 8, !tbaa !9
  %exitcond144.not.1 = icmp eq i64 %33, %11
  br i1 %exitcond144.not.1, label %._crit_edge143, label %.lr.ph142, !llvm.loop !23

._crit_edge143:                                   ; preds = %.lr.ph142.prol.loopexit, %.lr.ph142, %middle.block, %10
  store i64 1, ptr %4, align 8, !tbaa !9
  store i64 1, ptr @zlacon_.jump, align 8, !tbaa !9
  br label %148

40:                                               ; preds = %5
  %41 = load i64, ptr @zlacon_.jump, align 8, !tbaa !9
  switch i64 %41, label %42 [
    i64 5, label %135
    i64 2, label %70
    i64 3, label %78
    i64 4, label %105
  ]

42:                                               ; preds = %40
  %43 = load i64, ptr %0, align 8, !tbaa !9
  %44 = icmp eq i64 %43, 1
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = load <2 x double>, ptr %2, align 8, !tbaa !5
  store <2 x double> %46, ptr %1, align 8, !tbaa !5
  %47 = tail call double @z_abs(ptr noundef nonnull %1) #3
  br label %.sink.split

48:                                               ; preds = %42
  %49 = tail call double @dzsum1_(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull @c__1) #3
  store double %49, ptr %3, align 8, !tbaa !5
  %50 = load i64, ptr %0, align 8, !tbaa !9
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !9
  %.not119134 = icmp slt i64 %50, 1
  br i1 %.not119134, label %._crit_edge138, label %.lr.ph137

.lr.ph137:                                        ; preds = %48, %67
  %storemerge118135 = phi i64 [ %69, %67 ], [ 1, %48 ]
  %51 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %storemerge118135
  %52 = tail call double @z_abs(ptr noundef nonnull %51) #3
  store double %52, ptr @zlacon_.absxi, align 8, !tbaa !5
  %53 = load double, ptr @zlacon_.safmin, align 8, !tbaa !5
  %54 = fcmp ogt double %52, %53
  %55 = load i64, ptr @zlacon_.i__, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %55
  br i1 %54, label %57, label %66

57:                                               ; preds = %.lr.ph137
  %58 = load double, ptr %56, align 8, !tbaa !20
  %59 = tail call double @d_imag(ptr noundef nonnull %56) #3
  %60 = load double, ptr @zlacon_.absxi, align 8, !tbaa !5
  %61 = insertelement <2 x double> poison, double %58, i64 0
  %62 = insertelement <2 x double> %61, double %59, i64 1
  %63 = insertelement <2 x double> poison, double %52, i64 0
  %64 = insertelement <2 x double> %63, double %60, i64 1
  %65 = fdiv <2 x double> %62, %64
  store <2 x double> %65, ptr %56, align 8, !tbaa !5
  %.pre145 = load i64, ptr @zlacon_.i__, align 8, !tbaa !9
  br label %67

66:                                               ; preds = %.lr.ph137
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %56, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %57, %66
  %68 = phi i64 [ %.pre145, %57 ], [ %55, %66 ]
  %69 = add nsw i64 %68, 1
  store i64 %69, ptr @zlacon_.i__, align 8, !tbaa !9
  %.not119.not = icmp slt i64 %68, %50
  br i1 %.not119.not, label %.lr.ph137, label %._crit_edge138, !llvm.loop !24

._crit_edge138:                                   ; preds = %67, %48
  store i64 2, ptr %4, align 8, !tbaa !9
  store i64 2, ptr @zlacon_.jump, align 8, !tbaa !9
  br label %148

70:                                               ; preds = %40
  %71 = tail call i64 @izmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #3
  store i64 %71, ptr @zlacon_.j, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %117, %70
  %storemerge = phi i64 [ %118, %117 ], [ 2, %70 ]
  store i64 %storemerge, ptr @zlacon_.iter, align 8, !tbaa !9
  %73 = load i64, ptr %0, align 8, !tbaa !9
  %.not117129 = icmp slt i64 %73, 1
  br i1 %.not117129, label %._crit_edge133, label %.lr.ph132.preheader

.lr.ph132.preheader:                              ; preds = %72
  %74 = shl nuw i64 %73, 4
  tail call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 %74, i1 false), !tbaa !5
  %75 = add nuw i64 %73, 1
  br label %._crit_edge133

._crit_edge133:                                   ; preds = %.lr.ph132.preheader, %72
  %storemerge116.lcssa = phi i64 [ 1, %72 ], [ %75, %.lr.ph132.preheader ]
  store i64 %storemerge116.lcssa, ptr @zlacon_.i__, align 8, !tbaa !9
  %76 = load i64, ptr @zlacon_.j, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %76
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %77, align 8, !tbaa !5
  store i64 1, ptr %4, align 8, !tbaa !9
  store i64 3, ptr @zlacon_.jump, align 8, !tbaa !9
  br label %148

78:                                               ; preds = %40
  %79 = tail call i32 @f2c_zcopy(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull @c__1) #3
  %80 = load double, ptr %3, align 8, !tbaa !5
  store double %80, ptr @zlacon_.estold, align 8, !tbaa !5
  %81 = tail call double @dzsum1_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull @c__1) #3
  store double %81, ptr %3, align 8, !tbaa !5
  %82 = load double, ptr @zlacon_.estold, align 8, !tbaa !5
  %83 = fcmp ugt double %81, %82
  br i1 %83, label %84, label %119

84:                                               ; preds = %78
  %85 = load i64, ptr %0, align 8, !tbaa !9
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !9
  %.not124 = icmp slt i64 %85, 1
  br i1 %.not124, label %._crit_edge128, label %.lr.ph127

.lr.ph127:                                        ; preds = %84, %102
  %storemerge113125 = phi i64 [ %104, %102 ], [ 1, %84 ]
  %86 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %storemerge113125
  %87 = tail call double @z_abs(ptr noundef nonnull %86) #3
  store double %87, ptr @zlacon_.absxi, align 8, !tbaa !5
  %88 = load double, ptr @zlacon_.safmin, align 8, !tbaa !5
  %89 = fcmp ogt double %87, %88
  %90 = load i64, ptr @zlacon_.i__, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %90
  br i1 %89, label %92, label %101

92:                                               ; preds = %.lr.ph127
  %93 = load double, ptr %91, align 8, !tbaa !20
  %94 = tail call double @d_imag(ptr noundef nonnull %91) #3
  %95 = load double, ptr @zlacon_.absxi, align 8, !tbaa !5
  %96 = insertelement <2 x double> poison, double %93, i64 0
  %97 = insertelement <2 x double> %96, double %94, i64 1
  %98 = insertelement <2 x double> poison, double %87, i64 0
  %99 = insertelement <2 x double> %98, double %95, i64 1
  %100 = fdiv <2 x double> %97, %99
  store <2 x double> %100, ptr %91, align 8, !tbaa !5
  %.pre = load i64, ptr @zlacon_.i__, align 8, !tbaa !9
  br label %102

101:                                              ; preds = %.lr.ph127
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %91, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %92, %101
  %103 = phi i64 [ %.pre, %92 ], [ %90, %101 ]
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr @zlacon_.i__, align 8, !tbaa !9
  %.not.not = icmp slt i64 %103, %85
  br i1 %.not.not, label %.lr.ph127, label %._crit_edge128, !llvm.loop !25

._crit_edge128:                                   ; preds = %102, %84
  store i64 2, ptr %4, align 8, !tbaa !9
  store i64 4, ptr @zlacon_.jump, align 8, !tbaa !9
  br label %148

105:                                              ; preds = %40
  %106 = load i64, ptr @zlacon_.j, align 8, !tbaa !9
  store i64 %106, ptr @zlacon_.jlast, align 8, !tbaa !9
  %107 = tail call i64 @izmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #3
  store i64 %107, ptr @zlacon_.j, align 8, !tbaa !9
  %108 = load i64, ptr @zlacon_.jlast, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %108
  %110 = tail call double @z_abs(ptr noundef nonnull %109) #3
  %111 = load i64, ptr @zlacon_.j, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %111
  %113 = tail call double @z_abs(ptr noundef nonnull %112) #3
  %114 = fcmp une double %110, %113
  %115 = load i64, ptr @zlacon_.iter, align 8
  %116 = icmp slt i64 %115, 5
  %or.cond = select i1 %114, i1 %116, i1 false
  br i1 %or.cond, label %117, label %119

117:                                              ; preds = %105
  %118 = add nsw i64 %115, 1
  br label %72

119:                                              ; preds = %105, %78
  store double 1.000000e+00, ptr @zlacon_.altsgn, align 8, !tbaa !5
  %120 = load i64, ptr %0, align 8, !tbaa !9
  store i64 1, ptr @zlacon_.i__, align 8, !tbaa !9
  %.not115122 = icmp slt i64 %120, 1
  br i1 %.not115122, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %119, %.lr.ph
  %121 = phi double [ %133, %.lr.ph ], [ 1.000000e+00, %119 ]
  %storemerge114123 = phi i64 [ %134, %.lr.ph ], [ 1, %119 ]
  %122 = add nsw i64 %storemerge114123, -1
  %123 = sitofp i64 %122 to double
  %124 = load i64, ptr %0, align 8, !tbaa !9
  %125 = add nsw i64 %124, -1
  %126 = sitofp i64 %125 to double
  %127 = fdiv double %123, %126
  %128 = fadd double %127, 1.000000e+00
  %129 = fmul double %121, %128
  %130 = getelementptr inbounds %struct.doublecomplex, ptr %6, i64 %storemerge114123
  store double %129, ptr %130, align 8, !tbaa !20
  %131 = getelementptr inbounds i8, ptr %130, i64 8
  store double 0.000000e+00, ptr %131, align 8, !tbaa !22
  %132 = load double, ptr @zlacon_.altsgn, align 8, !tbaa !5
  %133 = fneg double %132
  store double %133, ptr @zlacon_.altsgn, align 8, !tbaa !5
  %134 = add nuw i64 %storemerge114123, 1
  store i64 %134, ptr @zlacon_.i__, align 8, !tbaa !9
  %exitcond.not = icmp eq i64 %storemerge114123, %120
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !26

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

135:                                              ; preds = %40
  %136 = tail call double @dzsum1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #3
  %137 = load i64, ptr %0, align 8, !tbaa !9
  %138 = mul nsw i64 %137, 3
  %139 = sitofp i64 %138 to double
  %140 = fdiv double %136, %139
  %141 = fmul double %140, 2.000000e+00
  store double %141, ptr @zlacon_.temp, align 8, !tbaa !5
  %142 = load double, ptr %3, align 8, !tbaa !5
  %143 = fcmp ogt double %141, %142
  br i1 %143, label %144, label %147

144:                                              ; preds = %135
  %145 = tail call i32 @f2c_zcopy(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull @c__1) #3
  %146 = load double, ptr @zlacon_.temp, align 8, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %45, %144
  %.sink = phi double [ %146, %144 ], [ %47, %45 ]
  store double %.sink, ptr %3, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %.sink.split, %135
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %147, %._crit_edge, %._crit_edge128, %._crit_edge133, %._crit_edge138, %._crit_edge143
  ret i32 0
}

declare double @dlamch_(ptr noundef) local_unnamed_addr #1

declare double @z_abs(ptr noundef) local_unnamed_addr #1

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

declare double @d_imag(ptr noundef) local_unnamed_addr #1

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

declare i32 @f2c_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) #2

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = !{!"long", !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: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass