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

; 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.complex = type { float, float }

@clacon_.i__ = external hidden global i64, align 8
@clacon_.j = external hidden global i64, align 8
@clacon_.iter = external hidden global i64, align 8
@clacon_.temp = external hidden global float, align 4
@clacon_.jump = external hidden global i64, align 8
@clacon_.absxi = external hidden global float, align 4
@clacon_.jlast = external hidden global i64, align 8
@clacon_.safmin = external hidden global float, align 4
@clacon_.altsgn = external hidden global float, align 4
@clacon_.estold = external hidden global float, align 4
@.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 @clacon_(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 float, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.complex, align 4
  %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 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.complex, 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.complex, ptr %21, i32 -1
  store ptr %22, ptr %8, align 8, !tbaa !5
  %23 = call double @slamch_(ptr noundef @.str)
  %24 = fptrunc double %23 to float
  store float %24, ptr @clacon_.safmin, align 4, !tbaa !9
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %28, label %61

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

31:                                               ; preds = %56, %28
  %32 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %33 = load i64, ptr %12, align 8, !tbaa !11
  %34 = icmp sle i64 %32, %33
  br i1 %34, label %35, label %59

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

56:                                               ; preds = %35
  %57 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr @clacon_.i__, align 8, !tbaa !11
  br label %31, !llvm.loop !16

59:                                               ; preds = %31
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %60, align 8, !tbaa !11
  store i64 1, ptr @clacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %380

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

63:                                               ; preds = %61
  br label %69

64:                                               ; preds = %61
  br label %165

65:                                               ; preds = %61
  br label %201

66:                                               ; preds = %61
  br label %287

67:                                               ; preds = %61
  br label %351

68:                                               ; preds = %61
  br label %69

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

73:                                               ; preds = %69
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.complex, ptr %74, i64 1
  %76 = getelementptr inbounds %struct.complex, ptr %75, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !13
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.complex, ptr %78, i64 1
  %80 = getelementptr inbounds %struct.complex, ptr %79, i32 0, i32 0
  store float %77, ptr %80, align 4, !tbaa !13
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.complex, ptr %81, i64 1
  %83 = getelementptr inbounds %struct.complex, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.complex, ptr %85, i64 1
  %87 = getelementptr inbounds %struct.complex, ptr %86, i32 0, i32 1
  store float %84, ptr %87, align 4, !tbaa !15
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.complex, ptr %88, i64 1
  %90 = call double @c_abs(ptr noundef %89)
  %91 = fptrunc double %90 to float
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  store float %91, ptr %92, align 4, !tbaa !9
  br label %378

93:                                               ; preds = %69
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.complex, ptr %95, i64 1
  %97 = call double @scsum1_(ptr noundef %94, ptr noundef %96, ptr noundef @c__1)
  %98 = fptrunc double %97 to float
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  store float %98, ptr %99, align 4, !tbaa !9
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !11
  store i64 %101, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @clacon_.i__, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %160, %93
  %103 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %104 = load i64, ptr %12, align 8, !tbaa !11
  %105 = icmp sle i64 %103, %104
  br i1 %105, label %106, label %163

106:                                              ; preds = %102
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.complex, ptr %107, i64 %108
  %110 = call double @c_abs(ptr noundef %109)
  %111 = fptrunc double %110 to float
  store float %111, ptr @clacon_.absxi, align 4, !tbaa !9
  %112 = load float, ptr @clacon_.absxi, align 4, !tbaa !9
  %113 = load float, ptr @clacon_.safmin, align 4, !tbaa !9
  %114 = fcmp ogt float %112, %113
  br i1 %114, label %115, label %149

115:                                              ; preds = %106
  %116 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %116, ptr %13, align 8, !tbaa !11
  %117 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %117, ptr %14, align 8, !tbaa !11
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load i64, ptr %14, align 8, !tbaa !11
  %120 = getelementptr inbounds %struct.complex, ptr %118, i64 %119
  %121 = getelementptr inbounds %struct.complex, ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !13
  %123 = load float, ptr @clacon_.absxi, align 4, !tbaa !9
  %124 = fdiv float %122, %123
  store float %124, ptr %15, align 4, !tbaa !9
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %127 = getelementptr inbounds %struct.complex, ptr %125, i64 %126
  %128 = call double @r_imag(ptr noundef %127)
  %129 = load float, ptr @clacon_.absxi, align 4, !tbaa !9
  %130 = fpext float %129 to double
  %131 = fdiv double %128, %130
  %132 = fptrunc double %131 to float
  store float %132, ptr %16, align 4, !tbaa !9
  %133 = load float, ptr %15, align 4, !tbaa !9
  %134 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  store float %133, ptr %134, align 4, !tbaa !13
  %135 = load float, ptr %16, align 4, !tbaa !9
  %136 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  store float %135, ptr %136, align 4, !tbaa !15
  %137 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %138 = load float, ptr %137, align 4, !tbaa !13
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load i64, ptr %13, align 8, !tbaa !11
  %141 = getelementptr inbounds %struct.complex, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.complex, ptr %141, i32 0, i32 0
  store float %138, ptr %142, align 4, !tbaa !13
  %143 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %144 = load float, ptr %143, align 4, !tbaa !15
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = load i64, ptr %13, align 8, !tbaa !11
  %147 = getelementptr inbounds %struct.complex, ptr %145, i64 %146
  %148 = getelementptr inbounds %struct.complex, ptr %147, i32 0, i32 1
  store float %144, ptr %148, align 4, !tbaa !15
  br label %159

149:                                              ; preds = %106
  %150 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %150, ptr %13, align 8, !tbaa !11
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load i64, ptr %13, align 8, !tbaa !11
  %153 = getelementptr inbounds %struct.complex, ptr %151, i64 %152
  %154 = getelementptr inbounds %struct.complex, ptr %153, i32 0, i32 0
  store float 1.000000e+00, ptr %154, align 4, !tbaa !13
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = load i64, ptr %13, align 8, !tbaa !11
  %157 = getelementptr inbounds %struct.complex, ptr %155, i64 %156
  %158 = getelementptr inbounds %struct.complex, ptr %157, i32 0, i32 1
  store float 0.000000e+00, ptr %158, align 4, !tbaa !15
  br label %159

159:                                              ; preds = %149, %115
  br label %160

160:                                              ; preds = %159
  %161 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %162 = add nsw i64 %161, 1
  store i64 %162, ptr @clacon_.i__, align 8, !tbaa !11
  br label %102, !llvm.loop !18

163:                                              ; preds = %102
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 2, ptr %164, align 8, !tbaa !11
  store i64 2, ptr @clacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %380

165:                                              ; preds = %64
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.complex, ptr %167, i64 1
  %169 = call i64 @icmax1_(ptr noundef %166, ptr noundef %168, ptr noundef @c__1)
  store i64 %169, ptr @clacon_.j, align 8, !tbaa !11
  store i64 2, ptr @clacon_.iter, align 8, !tbaa !11
  br label %170

170:                                              ; preds = %305, %165
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = load i64, ptr %171, align 8, !tbaa !11
  store i64 %172, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @clacon_.i__, align 8, !tbaa !11
  br label %173

173:                                              ; preds = %187, %170
  %174 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %175 = load i64, ptr %12, align 8, !tbaa !11
  %176 = icmp sle i64 %174, %175
  br i1 %176, label %177, label %190

177:                                              ; preds = %173
  %178 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %178, ptr %13, align 8, !tbaa !11
  %179 = load ptr, ptr %9, align 8, !tbaa !5
  %180 = load i64, ptr %13, align 8, !tbaa !11
  %181 = getelementptr inbounds %struct.complex, ptr %179, i64 %180
  %182 = getelementptr inbounds %struct.complex, ptr %181, i32 0, i32 0
  store float 0.000000e+00, ptr %182, align 4, !tbaa !13
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = load i64, ptr %13, align 8, !tbaa !11
  %185 = getelementptr inbounds %struct.complex, ptr %183, i64 %184
  %186 = getelementptr inbounds %struct.complex, ptr %185, i32 0, i32 1
  store float 0.000000e+00, ptr %186, align 4, !tbaa !15
  br label %187

187:                                              ; preds = %177
  %188 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr @clacon_.i__, align 8, !tbaa !11
  br label %173, !llvm.loop !19

190:                                              ; preds = %173
  %191 = load i64, ptr @clacon_.j, align 8, !tbaa !11
  store i64 %191, ptr %12, align 8, !tbaa !11
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = load i64, ptr %12, align 8, !tbaa !11
  %194 = getelementptr inbounds %struct.complex, ptr %192, i64 %193
  %195 = getelementptr inbounds %struct.complex, ptr %194, i32 0, i32 0
  store float 1.000000e+00, ptr %195, align 4, !tbaa !13
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = load i64, ptr %12, align 8, !tbaa !11
  %198 = getelementptr inbounds %struct.complex, ptr %196, i64 %197
  %199 = getelementptr inbounds %struct.complex, ptr %198, i32 0, i32 1
  store float 0.000000e+00, ptr %199, align 4, !tbaa !15
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %200, align 8, !tbaa !11
  store i64 3, ptr @clacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %380

201:                                              ; preds = %65
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.complex, ptr %203, i64 1
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.complex, ptr %205, i64 1
  %207 = call i32 @f2c_ccopy(ptr noundef %202, ptr noundef %204, ptr noundef @c__1, ptr noundef %206, ptr noundef @c__1)
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  %209 = load float, ptr %208, align 4, !tbaa !9
  store float %209, ptr @clacon_.estold, align 4, !tbaa !9
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.complex, ptr %211, i64 1
  %213 = call double @scsum1_(ptr noundef %210, ptr noundef %212, ptr noundef @c__1)
  %214 = fptrunc double %213 to float
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  store float %214, ptr %215, align 4, !tbaa !9
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = load float, ptr %216, align 4, !tbaa !9
  %218 = load float, ptr @clacon_.estold, align 4, !tbaa !9
  %219 = fcmp ole float %217, %218
  br i1 %219, label %220, label %221

220:                                              ; preds = %201
  br label %309

221:                                              ; preds = %201
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = load i64, ptr %222, align 8, !tbaa !11
  store i64 %223, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @clacon_.i__, align 8, !tbaa !11
  br label %224

224:                                              ; preds = %282, %221
  %225 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %226 = load i64, ptr %12, align 8, !tbaa !11
  %227 = icmp sle i64 %225, %226
  br i1 %227, label %228, label %285

228:                                              ; preds = %224
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %231 = getelementptr inbounds %struct.complex, ptr %229, i64 %230
  %232 = call double @c_abs(ptr noundef %231)
  %233 = fptrunc double %232 to float
  store float %233, ptr @clacon_.absxi, align 4, !tbaa !9
  %234 = load float, ptr @clacon_.absxi, align 4, !tbaa !9
  %235 = load float, ptr @clacon_.safmin, align 4, !tbaa !9
  %236 = fcmp ogt float %234, %235
  br i1 %236, label %237, label %271

237:                                              ; preds = %228
  %238 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %238, ptr %13, align 8, !tbaa !11
  %239 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %239, ptr %14, align 8, !tbaa !11
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = load i64, ptr %14, align 8, !tbaa !11
  %242 = getelementptr inbounds %struct.complex, ptr %240, i64 %241
  %243 = getelementptr inbounds %struct.complex, ptr %242, i32 0, i32 0
  %244 = load float, ptr %243, align 4, !tbaa !13
  %245 = load float, ptr @clacon_.absxi, align 4, !tbaa !9
  %246 = fdiv float %244, %245
  store float %246, ptr %15, align 4, !tbaa !9
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %249 = getelementptr inbounds %struct.complex, ptr %247, i64 %248
  %250 = call double @r_imag(ptr noundef %249)
  %251 = load float, ptr @clacon_.absxi, align 4, !tbaa !9
  %252 = fpext float %251 to double
  %253 = fdiv double %250, %252
  %254 = fptrunc double %253 to float
  store float %254, ptr %16, align 4, !tbaa !9
  %255 = load float, ptr %15, align 4, !tbaa !9
  %256 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  store float %255, ptr %256, align 4, !tbaa !13
  %257 = load float, ptr %16, align 4, !tbaa !9
  %258 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  store float %257, ptr %258, align 4, !tbaa !15
  %259 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %260 = load float, ptr %259, align 4, !tbaa !13
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = load i64, ptr %13, align 8, !tbaa !11
  %263 = getelementptr inbounds %struct.complex, ptr %261, i64 %262
  %264 = getelementptr inbounds %struct.complex, ptr %263, i32 0, i32 0
  store float %260, ptr %264, align 4, !tbaa !13
  %265 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %266 = load float, ptr %265, align 4, !tbaa !15
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = load i64, ptr %13, align 8, !tbaa !11
  %269 = getelementptr inbounds %struct.complex, ptr %267, i64 %268
  %270 = getelementptr inbounds %struct.complex, ptr %269, i32 0, i32 1
  store float %266, ptr %270, align 4, !tbaa !15
  br label %281

271:                                              ; preds = %228
  %272 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %272, ptr %13, align 8, !tbaa !11
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = load i64, ptr %13, align 8, !tbaa !11
  %275 = getelementptr inbounds %struct.complex, ptr %273, i64 %274
  %276 = getelementptr inbounds %struct.complex, ptr %275, i32 0, i32 0
  store float 1.000000e+00, ptr %276, align 4, !tbaa !13
  %277 = load ptr, ptr %9, align 8, !tbaa !5
  %278 = load i64, ptr %13, align 8, !tbaa !11
  %279 = getelementptr inbounds %struct.complex, ptr %277, i64 %278
  %280 = getelementptr inbounds %struct.complex, ptr %279, i32 0, i32 1
  store float 0.000000e+00, ptr %280, align 4, !tbaa !15
  br label %281

281:                                              ; preds = %271, %237
  br label %282

282:                                              ; preds = %281
  %283 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %284 = add nsw i64 %283, 1
  store i64 %284, ptr @clacon_.i__, align 8, !tbaa !11
  br label %224, !llvm.loop !20

285:                                              ; preds = %224
  %286 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 2, ptr %286, align 8, !tbaa !11
  store i64 4, ptr @clacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %380

287:                                              ; preds = %66
  %288 = load i64, ptr @clacon_.j, align 8, !tbaa !11
  store i64 %288, ptr @clacon_.jlast, align 8, !tbaa !11
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = load ptr, ptr %9, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.complex, ptr %290, i64 1
  %292 = call i64 @icmax1_(ptr noundef %289, ptr noundef %291, ptr noundef @c__1)
  store i64 %292, ptr @clacon_.j, align 8, !tbaa !11
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = load i64, ptr @clacon_.jlast, align 8, !tbaa !11
  %295 = getelementptr inbounds %struct.complex, ptr %293, i64 %294
  %296 = call double @c_abs(ptr noundef %295)
  %297 = load ptr, ptr %9, align 8, !tbaa !5
  %298 = load i64, ptr @clacon_.j, align 8, !tbaa !11
  %299 = getelementptr inbounds %struct.complex, ptr %297, i64 %298
  %300 = call double @c_abs(ptr noundef %299)
  %301 = fcmp une double %296, %300
  br i1 %301, label %302, label %308

302:                                              ; preds = %287
  %303 = load i64, ptr @clacon_.iter, align 8, !tbaa !11
  %304 = icmp slt i64 %303, 5
  br i1 %304, label %305, label %308

305:                                              ; preds = %302
  %306 = load i64, ptr @clacon_.iter, align 8, !tbaa !11
  %307 = add nsw i64 %306, 1
  store i64 %307, ptr @clacon_.iter, align 8, !tbaa !11
  br label %170

308:                                              ; preds = %302, %287
  br label %309

309:                                              ; preds = %308, %220
  store float 1.000000e+00, ptr @clacon_.altsgn, align 4, !tbaa !9
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = load i64, ptr %310, align 8, !tbaa !11
  store i64 %311, ptr %12, align 8, !tbaa !11
  store i64 1, ptr @clacon_.i__, align 8, !tbaa !11
  br label %312

312:                                              ; preds = %346, %309
  %313 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %314 = load i64, ptr %12, align 8, !tbaa !11
  %315 = icmp sle i64 %313, %314
  br i1 %315, label %316, label %349

316:                                              ; preds = %312
  %317 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  store i64 %317, ptr %13, align 8, !tbaa !11
  %318 = load float, ptr @clacon_.altsgn, align 4, !tbaa !9
  %319 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %320 = sub nsw i64 %319, 1
  %321 = sitofp i64 %320 to float
  %322 = load ptr, ptr %7, align 8, !tbaa !5
  %323 = load i64, ptr %322, align 8, !tbaa !11
  %324 = sub nsw i64 %323, 1
  %325 = sitofp i64 %324 to float
  %326 = fdiv float %321, %325
  %327 = fadd float %326, 1.000000e+00
  %328 = fmul float %318, %327
  store float %328, ptr %15, align 4, !tbaa !9
  %329 = load float, ptr %15, align 4, !tbaa !9
  %330 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  store float %329, ptr %330, align 4, !tbaa !13
  %331 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  store float 0.000000e+00, ptr %331, align 4, !tbaa !15
  %332 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %333 = load float, ptr %332, align 4, !tbaa !13
  %334 = load ptr, ptr %9, align 8, !tbaa !5
  %335 = load i64, ptr %13, align 8, !tbaa !11
  %336 = getelementptr inbounds %struct.complex, ptr %334, i64 %335
  %337 = getelementptr inbounds %struct.complex, ptr %336, i32 0, i32 0
  store float %333, ptr %337, align 4, !tbaa !13
  %338 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %339 = load float, ptr %338, align 4, !tbaa !15
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = load i64, ptr %13, align 8, !tbaa !11
  %342 = getelementptr inbounds %struct.complex, ptr %340, i64 %341
  %343 = getelementptr inbounds %struct.complex, ptr %342, i32 0, i32 1
  store float %339, ptr %343, align 4, !tbaa !15
  %344 = load float, ptr @clacon_.altsgn, align 4, !tbaa !9
  %345 = fneg float %344
  store float %345, ptr @clacon_.altsgn, align 4, !tbaa !9
  br label %346

346:                                              ; preds = %316
  %347 = load i64, ptr @clacon_.i__, align 8, !tbaa !11
  %348 = add nsw i64 %347, 1
  store i64 %348, ptr @clacon_.i__, align 8, !tbaa !11
  br label %312, !llvm.loop !21

349:                                              ; preds = %312
  %350 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %350, align 8, !tbaa !11
  store i64 5, ptr @clacon_.jump, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %380

351:                                              ; preds = %67
  %352 = load ptr, ptr %7, align 8, !tbaa !5
  %353 = load ptr, ptr %9, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.complex, ptr %353, i64 1
  %355 = call double @scsum1_(ptr noundef %352, ptr noundef %354, ptr noundef @c__1)
  %356 = load ptr, ptr %7, align 8, !tbaa !5
  %357 = load i64, ptr %356, align 8, !tbaa !11
  %358 = mul nsw i64 %357, 3
  %359 = sitofp i64 %358 to float
  %360 = fpext float %359 to double
  %361 = fdiv double %355, %360
  %362 = fmul double %361, 2.000000e+00
  %363 = fptrunc double %362 to float
  store float %363, ptr @clacon_.temp, align 4, !tbaa !9
  %364 = load float, ptr @clacon_.temp, align 4, !tbaa !9
  %365 = load ptr, ptr %10, align 8, !tbaa !5
  %366 = load float, ptr %365, align 4, !tbaa !9
  %367 = fcmp ogt float %364, %366
  br i1 %367, label %368, label %377

368:                                              ; preds = %351
  %369 = load ptr, ptr %7, align 8, !tbaa !5
  %370 = load ptr, ptr %9, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.complex, ptr %370, i64 1
  %372 = load ptr, ptr %8, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.complex, ptr %372, i64 1
  %374 = call i32 @f2c_ccopy(ptr noundef %369, ptr noundef %371, ptr noundef @c__1, ptr noundef %373, ptr noundef @c__1)
  %375 = load float, ptr @clacon_.temp, align 4, !tbaa !9
  %376 = load ptr, ptr %10, align 8, !tbaa !5
  store float %375, ptr %376, align 4, !tbaa !9
  br label %377

377:                                              ; preds = %368, %351
  br label %378

378:                                              ; preds = %377, %73
  %379 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %379, align 8, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %380

380:                                              ; preds = %378, %349, %285, %190, %163, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %381 = load i32, ptr %6, align 4
  ret i32 %381
}

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

declare double @slamch_(ptr noundef) #2

declare double @c_abs(ptr noundef) #2

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

declare double @r_imag(ptr noundef) #2

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

declare i32 @f2c_ccopy(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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 4}
!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.complex = type { float, float }

@clacon_.i__ = external hidden local_unnamed_addr global i64, align 8
@clacon_.j = external hidden local_unnamed_addr global i64, align 8
@clacon_.iter = external hidden local_unnamed_addr global i64, align 8
@clacon_.temp = external hidden local_unnamed_addr global float, align 4
@clacon_.jump = external hidden local_unnamed_addr global i64, align 8
@clacon_.absxi = external hidden local_unnamed_addr global float, align 4
@clacon_.jlast = external hidden local_unnamed_addr global i64, align 8
@clacon_.safmin = external hidden local_unnamed_addr global float, align 4
@clacon_.altsgn = external hidden local_unnamed_addr global float, align 4
@clacon_.estold = external hidden local_unnamed_addr global float, align 4
@.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 @clacon_(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 -8
  %7 = tail call double @slamch_(ptr noundef nonnull @.str) #3
  %8 = fptrunc double %7 to float
  store float %8, ptr @clacon_.safmin, align 4, !tbaa !5
  %9 = load i64, ptr %4, align 8, !tbaa !9
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %11, label %40

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

.lr.ph142.preheader:                              ; preds = %11
  %min.iters.check = icmp eq i64 %12, 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, @clacon_.i__
  %bound1 = icmp ult ptr %0, getelementptr inbounds (i8, ptr @clacon_.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 %12, 9223372036854775806
  %ind.end = or i64 %12, 1
  %13 = load i64, ptr %0, align 8, !tbaa !9, !alias.scope !11
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %13, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %14 = sitofp <2 x i64> %broadcast.splat to <2 x float>
  %15 = fdiv <2 x float> <float 1.000000e+00, float 1.000000e+00>, %14
  %interleaved.vec = shufflevector <2 x float> %15, <2 x float> 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.complex, ptr %2, i64 %index
  store <4 x float> %interleaved.vec, ptr %17, align 4, !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 @clacon_.i__, align 8, !tbaa !9, !alias.scope !18, !noalias !11
  %cmp.n = icmp eq i64 %12, %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 %12, 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 float
  %23 = fdiv float 1.000000e+00, %22
  %24 = getelementptr inbounds %struct.complex, ptr %6, i64 %storemerge120140.ph
  store float %23, ptr %24, align 4, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %24, i64 4
  store float 0.000000e+00, ptr %25, align 4, !tbaa !22
  %26 = add nuw i64 %storemerge120140.ph, 1
  store i64 %26, ptr @clacon_.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 %12, %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 float
  %30 = fdiv float 1.000000e+00, %29
  %31 = getelementptr inbounds %struct.complex, ptr %6, i64 %storemerge120140
  store float %30, ptr %31, align 4, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %31, i64 4
  store float 0.000000e+00, ptr %32, align 4, !tbaa !22
  %33 = add nuw i64 %storemerge120140, 1
  store i64 %33, ptr @clacon_.i__, align 8, !tbaa !9
  %34 = load i64, ptr %0, align 8, !tbaa !9
  %35 = sitofp i64 %34 to float
  %36 = fdiv float 1.000000e+00, %35
  %37 = getelementptr %struct.complex, ptr %2, i64 %storemerge120140
  store float %36, ptr %37, align 4, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  store float 0.000000e+00, ptr %38, align 4, !tbaa !22
  %39 = add nuw i64 %storemerge120140, 2
  store i64 %39, ptr @clacon_.i__, align 8, !tbaa !9
  %exitcond144.not.1 = icmp eq i64 %33, %12
  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, %11
  store i64 1, ptr %4, align 8, !tbaa !9
  store i64 1, ptr @clacon_.jump, align 8, !tbaa !9
  br label %155

40:                                               ; preds = %5
  %41 = load i64, ptr @clacon_.jump, align 8, !tbaa !9
  switch i64 %41, label %42 [
    i64 5, label %140
    i64 2, label %73
    i64 3, label %81
    i64 4, label %110
  ]

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

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

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

.lr.ph137:                                        ; preds = %49, %70
  %storemerge118135 = phi i64 [ %72, %70 ], [ 1, %49 ]
  %53 = getelementptr inbounds %struct.complex, ptr %6, i64 %storemerge118135
  %54 = tail call double @c_abs(ptr noundef nonnull %53) #3
  %55 = fptrunc double %54 to float
  store float %55, ptr @clacon_.absxi, align 4, !tbaa !5
  %56 = load float, ptr @clacon_.safmin, align 4, !tbaa !5
  %57 = fcmp olt float %56, %55
  %58 = load i64, ptr @clacon_.i__, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.complex, ptr %6, i64 %58
  br i1 %57, label %60, label %69

60:                                               ; preds = %.lr.ph137
  %61 = load float, ptr %59, align 4, !tbaa !20
  %62 = fdiv float %61, %55
  %63 = tail call double @r_imag(ptr noundef nonnull %59) #3
  %64 = load float, ptr @clacon_.absxi, align 4, !tbaa !5
  %65 = fpext float %64 to double
  %66 = fdiv double %63, %65
  %67 = fptrunc double %66 to float
  store float %62, ptr %59, align 4, !tbaa !20
  %68 = getelementptr inbounds i8, ptr %59, i64 4
  store float %67, ptr %68, align 4, !tbaa !22
  %.pre145 = load i64, ptr @clacon_.i__, align 8, !tbaa !9
  br label %70

69:                                               ; preds = %.lr.ph137
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %59, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %60, %69
  %71 = phi i64 [ %.pre145, %60 ], [ %58, %69 ]
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr @clacon_.i__, align 8, !tbaa !9
  %.not119.not = icmp slt i64 %71, %52
  br i1 %.not119.not, label %.lr.ph137, label %._crit_edge138, !llvm.loop !24

._crit_edge138:                                   ; preds = %70, %49
  store i64 2, ptr %4, align 8, !tbaa !9
  store i64 2, ptr @clacon_.jump, align 8, !tbaa !9
  br label %155

73:                                               ; preds = %40
  %74 = tail call i64 @icmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #3
  store i64 %74, ptr @clacon_.j, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %122, %73
  %storemerge = phi i64 [ %123, %122 ], [ 2, %73 ]
  store i64 %storemerge, ptr @clacon_.iter, align 8, !tbaa !9
  %76 = load i64, ptr %0, align 8, !tbaa !9
  %.not117129 = icmp slt i64 %76, 1
  br i1 %.not117129, label %._crit_edge133, label %.lr.ph132.preheader

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

._crit_edge133:                                   ; preds = %.lr.ph132.preheader, %75
  %storemerge116.lcssa = phi i64 [ 1, %75 ], [ %78, %.lr.ph132.preheader ]
  store i64 %storemerge116.lcssa, ptr @clacon_.i__, align 8, !tbaa !9
  %79 = load i64, ptr @clacon_.j, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.complex, ptr %6, i64 %79
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %80, align 4, !tbaa !5
  store i64 1, ptr %4, align 8, !tbaa !9
  store i64 3, ptr @clacon_.jump, align 8, !tbaa !9
  br label %155

81:                                               ; preds = %40
  %82 = tail call i32 @f2c_ccopy(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull @c__1) #3
  %83 = load float, ptr %3, align 4, !tbaa !5
  store float %83, ptr @clacon_.estold, align 4, !tbaa !5
  %84 = tail call double @scsum1_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull @c__1) #3
  %85 = fptrunc double %84 to float
  store float %85, ptr %3, align 4, !tbaa !5
  %86 = load float, ptr @clacon_.estold, align 4, !tbaa !5
  %87 = fcmp ult float %86, %85
  br i1 %87, label %88, label %124

88:                                               ; preds = %81
  %89 = load i64, ptr %0, align 8, !tbaa !9
  store i64 1, ptr @clacon_.i__, align 8, !tbaa !9
  %.not124 = icmp slt i64 %89, 1
  br i1 %.not124, label %._crit_edge128, label %.lr.ph127

.lr.ph127:                                        ; preds = %88, %107
  %storemerge113125 = phi i64 [ %109, %107 ], [ 1, %88 ]
  %90 = getelementptr inbounds %struct.complex, ptr %6, i64 %storemerge113125
  %91 = tail call double @c_abs(ptr noundef nonnull %90) #3
  %92 = fptrunc double %91 to float
  store float %92, ptr @clacon_.absxi, align 4, !tbaa !5
  %93 = load float, ptr @clacon_.safmin, align 4, !tbaa !5
  %94 = fcmp olt float %93, %92
  %95 = load i64, ptr @clacon_.i__, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.complex, ptr %6, i64 %95
  br i1 %94, label %97, label %106

97:                                               ; preds = %.lr.ph127
  %98 = load float, ptr %96, align 4, !tbaa !20
  %99 = fdiv float %98, %92
  %100 = tail call double @r_imag(ptr noundef nonnull %96) #3
  %101 = load float, ptr @clacon_.absxi, align 4, !tbaa !5
  %102 = fpext float %101 to double
  %103 = fdiv double %100, %102
  %104 = fptrunc double %103 to float
  store float %99, ptr %96, align 4, !tbaa !20
  %105 = getelementptr inbounds i8, ptr %96, i64 4
  store float %104, ptr %105, align 4, !tbaa !22
  %.pre = load i64, ptr @clacon_.i__, align 8, !tbaa !9
  br label %107

106:                                              ; preds = %.lr.ph127
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %96, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %97, %106
  %108 = phi i64 [ %.pre, %97 ], [ %95, %106 ]
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr @clacon_.i__, align 8, !tbaa !9
  %.not.not = icmp slt i64 %108, %89
  br i1 %.not.not, label %.lr.ph127, label %._crit_edge128, !llvm.loop !25

._crit_edge128:                                   ; preds = %107, %88
  store i64 2, ptr %4, align 8, !tbaa !9
  store i64 4, ptr @clacon_.jump, align 8, !tbaa !9
  br label %155

110:                                              ; preds = %40
  %111 = load i64, ptr @clacon_.j, align 8, !tbaa !9
  store i64 %111, ptr @clacon_.jlast, align 8, !tbaa !9
  %112 = tail call i64 @icmax1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #3
  store i64 %112, ptr @clacon_.j, align 8, !tbaa !9
  %113 = load i64, ptr @clacon_.jlast, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.complex, ptr %6, i64 %113
  %115 = tail call double @c_abs(ptr noundef nonnull %114) #3
  %116 = load i64, ptr @clacon_.j, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.complex, ptr %6, i64 %116
  %118 = tail call double @c_abs(ptr noundef nonnull %117) #3
  %119 = fcmp une double %115, %118
  %120 = load i64, ptr @clacon_.iter, align 8
  %121 = icmp slt i64 %120, 5
  %or.cond = select i1 %119, i1 %121, i1 false
  br i1 %or.cond, label %122, label %124

122:                                              ; preds = %110
  %123 = add nsw i64 %120, 1
  br label %75

124:                                              ; preds = %110, %81
  store float 1.000000e+00, ptr @clacon_.altsgn, align 4, !tbaa !5
  %125 = load i64, ptr %0, align 8, !tbaa !9
  store i64 1, ptr @clacon_.i__, align 8, !tbaa !9
  %.not115122 = icmp slt i64 %125, 1
  br i1 %.not115122, label %._crit_edge, label %.lr.ph

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

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

140:                                              ; preds = %40
  %141 = tail call double @scsum1_(ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c__1) #3
  %142 = load i64, ptr %0, align 8, !tbaa !9
  %143 = mul nsw i64 %142, 3
  %144 = sitofp i64 %143 to float
  %145 = fpext float %144 to double
  %146 = fdiv double %141, %145
  %147 = fmul double %146, 2.000000e+00
  %148 = fptrunc double %147 to float
  store float %148, ptr @clacon_.temp, align 4, !tbaa !5
  %149 = load float, ptr %3, align 4, !tbaa !5
  %150 = fcmp olt float %149, %148
  br i1 %150, label %151, label %154

151:                                              ; preds = %140
  %152 = tail call i32 @f2c_ccopy(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull @c__1) #3
  %153 = load float, ptr @clacon_.temp, align 4, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %45, %151
  %.sink = phi float [ %153, %151 ], [ %48, %45 ]
  store float %.sink, ptr %3, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %.sink.split, %140
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %155

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

declare double @slamch_(ptr noundef) local_unnamed_addr #1

declare double @c_abs(ptr noundef) local_unnamed_addr #1

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

declare double @r_imag(ptr noundef) local_unnamed_addr #1

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

declare i32 @f2c_ccopy(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 = !{!"float", !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 4}
!22 = !{!21, !6, i64 4}
!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