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

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

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @zlartg_(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 double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca %struct.doublecomplex, align 8
  %24 = alloca %struct.doublecomplex, align 8
  %25 = alloca %struct.doublecomplex, align 8
  %26 = alloca double, align 8
  %27 = alloca i64, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca %struct.doublecomplex, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca %struct.doublecomplex, align 8
  %34 = alloca %struct.doublecomplex, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i64, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = 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) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  %44 = call double @dlamch_(ptr noundef @.str)
  store double %44, ptr %42, align 8, !tbaa !9
  %45 = call double @dlamch_(ptr noundef @.str.1)
  store double %45, ptr %37, align 8, !tbaa !9
  %46 = call double @dlamch_(ptr noundef @.str.2)
  store double %46, ptr %13, align 8, !tbaa !9
  %47 = load double, ptr %42, align 8, !tbaa !9
  %48 = load double, ptr %37, align 8, !tbaa !9
  %49 = fdiv double %47, %48
  %50 = call double @log(double noundef %49) #5
  %51 = call double @dlamch_(ptr noundef @.str.2)
  %52 = call double @log(double noundef %51) #5
  %53 = fdiv double %50, %52
  %54 = fdiv double %53, 2.000000e+00
  %55 = fptosi double %54 to i64
  store i64 %55, ptr %12, align 8, !tbaa !11
  %56 = call double @pow_di(ptr noundef %13, ptr noundef %12)
  store double %56, ptr %40, align 8, !tbaa !9
  %57 = load double, ptr %40, align 8, !tbaa !9
  %58 = fdiv double 1.000000e+00, %57
  store double %58, ptr %41, align 8, !tbaa !9
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %59, i32 0, i32 0
  %61 = load double, ptr %60, align 8, !tbaa !13
  store double %61, ptr %13, align 8, !tbaa !9
  %62 = load double, ptr %13, align 8, !tbaa !9
  %63 = fcmp oge double %62, 0.000000e+00
  br i1 %63, label %64, label %66

64:                                               ; preds = %5
  %65 = load double, ptr %13, align 8, !tbaa !9
  br label %69

66:                                               ; preds = %5
  %67 = load double, ptr %13, align 8, !tbaa !9
  %68 = fneg double %67
  br label %69

69:                                               ; preds = %66, %64
  %70 = phi double [ %65, %64 ], [ %68, %66 ]
  store double %70, ptr %19, align 8, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = call double @d_imag(ptr noundef %71)
  store double %72, ptr %14, align 8, !tbaa !9
  %73 = load double, ptr %14, align 8, !tbaa !9
  %74 = fcmp oge double %73, 0.000000e+00
  br i1 %74, label %75, label %77

75:                                               ; preds = %69
  %76 = load double, ptr %14, align 8, !tbaa !9
  br label %80

77:                                               ; preds = %69
  %78 = load double, ptr %14, align 8, !tbaa !9
  %79 = fneg double %78
  br label %80

80:                                               ; preds = %77, %75
  %81 = phi double [ %76, %75 ], [ %79, %77 ]
  store double %81, ptr %20, align 8, !tbaa !9
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.doublecomplex, ptr %82, i32 0, i32 0
  %84 = load double, ptr %83, align 8, !tbaa !13
  store double %84, ptr %15, align 8, !tbaa !9
  %85 = load double, ptr %15, align 8, !tbaa !9
  %86 = fcmp oge double %85, 0.000000e+00
  br i1 %86, label %87, label %89

87:                                               ; preds = %80
  %88 = load double, ptr %15, align 8, !tbaa !9
  br label %92

89:                                               ; preds = %80
  %90 = load double, ptr %15, align 8, !tbaa !9
  %91 = fneg double %90
  br label %92

92:                                               ; preds = %89, %87
  %93 = phi double [ %88, %87 ], [ %91, %89 ]
  store double %93, ptr %21, align 8, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = call double @d_imag(ptr noundef %94)
  store double %95, ptr %16, align 8, !tbaa !9
  %96 = load double, ptr %16, align 8, !tbaa !9
  %97 = fcmp oge double %96, 0.000000e+00
  br i1 %97, label %98, label %100

98:                                               ; preds = %92
  %99 = load double, ptr %16, align 8, !tbaa !9
  br label %103

100:                                              ; preds = %92
  %101 = load double, ptr %16, align 8, !tbaa !9
  %102 = fneg double %101
  br label %103

103:                                              ; preds = %100, %98
  %104 = phi double [ %99, %98 ], [ %102, %100 ]
  store double %104, ptr %22, align 8, !tbaa !9
  %105 = load double, ptr %19, align 8, !tbaa !9
  %106 = load double, ptr %20, align 8, !tbaa !9
  %107 = fcmp oge double %105, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %103
  %109 = load double, ptr %19, align 8, !tbaa !9
  br label %112

110:                                              ; preds = %103
  %111 = load double, ptr %20, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %110, %108
  %113 = phi double [ %109, %108 ], [ %111, %110 ]
  store double %113, ptr %17, align 8, !tbaa !9
  %114 = load double, ptr %21, align 8, !tbaa !9
  %115 = load double, ptr %22, align 8, !tbaa !9
  %116 = fcmp oge double %114, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %112
  %118 = load double, ptr %21, align 8, !tbaa !9
  br label %121

119:                                              ; preds = %112
  %120 = load double, ptr %22, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %119, %117
  %122 = phi double [ %118, %117 ], [ %120, %119 ]
  store double %122, ptr %18, align 8, !tbaa !9
  %123 = load double, ptr %17, align 8, !tbaa !9
  %124 = load double, ptr %18, align 8, !tbaa !9
  %125 = fcmp oge double %123, %124
  br i1 %125, label %126, label %128

126:                                              ; preds = %121
  %127 = load double, ptr %17, align 8, !tbaa !9
  br label %130

128:                                              ; preds = %121
  %129 = load double, ptr %18, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %128, %126
  %131 = phi double [ %127, %126 ], [ %129, %128 ]
  store double %131, ptr %38, align 8, !tbaa !9
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.doublecomplex, ptr %132, i32 0, i32 0
  %134 = load double, ptr %133, align 8, !tbaa !13
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  store double %134, ptr %135, align 8, !tbaa !13
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %136, i32 0, i32 1
  %138 = load double, ptr %137, align 8, !tbaa !15
  %139 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 1
  store double %138, ptr %139, align 8, !tbaa !15
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %140, i32 0, i32 0
  %142 = load double, ptr %141, align 8, !tbaa !13
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  store double %142, ptr %143, align 8, !tbaa !13
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.doublecomplex, ptr %144, i32 0, i32 1
  %146 = load double, ptr %145, align 8, !tbaa !15
  %147 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 1
  store double %146, ptr %147, align 8, !tbaa !15
  store i64 0, ptr %39, align 8, !tbaa !11
  %148 = load double, ptr %38, align 8, !tbaa !9
  %149 = load double, ptr %41, align 8, !tbaa !9
  %150 = fcmp oge double %148, %149
  br i1 %150, label %151, label %195

151:                                              ; preds = %130
  br label %152

152:                                              ; preds = %193, %151
  %153 = load i64, ptr %39, align 8, !tbaa !11
  %154 = add nsw i64 %153, 1
  store i64 %154, ptr %39, align 8, !tbaa !11
  %155 = load double, ptr %40, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  %157 = load double, ptr %156, align 8, !tbaa !13
  %158 = fmul double %155, %157
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %158, ptr %159, align 8, !tbaa !13
  %160 = load double, ptr %40, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 1
  %162 = load double, ptr %161, align 8, !tbaa !15
  %163 = fmul double %160, %162
  %164 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %163, ptr %164, align 8, !tbaa !15
  %165 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %166 = load double, ptr %165, align 8, !tbaa !13
  %167 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  store double %166, ptr %167, align 8, !tbaa !13
  %168 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %169 = load double, ptr %168, align 8, !tbaa !15
  %170 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 1
  store double %169, ptr %170, align 8, !tbaa !15
  %171 = load double, ptr %40, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  %173 = load double, ptr %172, align 8, !tbaa !13
  %174 = fmul double %171, %173
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %174, ptr %175, align 8, !tbaa !13
  %176 = load double, ptr %40, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 1
  %178 = load double, ptr %177, align 8, !tbaa !15
  %179 = fmul double %176, %178
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %179, ptr %180, align 8, !tbaa !15
  %181 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %182 = load double, ptr %181, align 8, !tbaa !13
  %183 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  store double %182, ptr %183, align 8, !tbaa !13
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %185 = load double, ptr %184, align 8, !tbaa !15
  %186 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 1
  store double %185, ptr %186, align 8, !tbaa !15
  %187 = load double, ptr %40, align 8, !tbaa !9
  %188 = load double, ptr %38, align 8, !tbaa !9
  %189 = fmul double %188, %187
  store double %189, ptr %38, align 8, !tbaa !9
  %190 = load double, ptr %38, align 8, !tbaa !9
  %191 = load double, ptr %41, align 8, !tbaa !9
  %192 = fcmp oge double %190, %191
  br i1 %192, label %193, label %194

193:                                              ; preds = %152
  br label %152

194:                                              ; preds = %152
  br label %270

195:                                              ; preds = %130
  %196 = load double, ptr %38, align 8, !tbaa !9
  %197 = load double, ptr %40, align 8, !tbaa !9
  %198 = fcmp ole double %196, %197
  br i1 %198, label %199, label %269

199:                                              ; preds = %195
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.doublecomplex, ptr %200, i32 0, i32 0
  %202 = load double, ptr %201, align 8, !tbaa !13
  %203 = fcmp oeq double %202, 0.000000e+00
  br i1 %203, label %204, label %225

204:                                              ; preds = %199
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %205, i32 0, i32 1
  %207 = load double, ptr %206, align 8, !tbaa !15
  %208 = fcmp oeq double %207, 0.000000e+00
  br i1 %208, label %209, label %225

209:                                              ; preds = %204
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  store double 1.000000e+00, ptr %210, align 8, !tbaa !9
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.doublecomplex, ptr %211, i32 0, i32 0
  store double 0.000000e+00, ptr %212, align 8, !tbaa !13
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.doublecomplex, ptr %213, i32 0, i32 1
  store double 0.000000e+00, ptr %214, align 8, !tbaa !15
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.doublecomplex, ptr %215, i32 0, i32 0
  %217 = load double, ptr %216, align 8, !tbaa !13
  %218 = load ptr, ptr %11, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.doublecomplex, ptr %218, i32 0, i32 0
  store double %217, ptr %219, align 8, !tbaa !13
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.doublecomplex, ptr %220, i32 0, i32 1
  %222 = load double, ptr %221, align 8, !tbaa !15
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %223, i32 0, i32 1
  store double %222, ptr %224, align 8, !tbaa !15
  store i32 0, ptr %6, align 4
  store i32 1, ptr %43, align 4
  br label %711

225:                                              ; preds = %204, %199
  br label %226

226:                                              ; preds = %267, %225
  %227 = load i64, ptr %39, align 8, !tbaa !11
  %228 = add nsw i64 %227, -1
  store i64 %228, ptr %39, align 8, !tbaa !11
  %229 = load double, ptr %41, align 8, !tbaa !9
  %230 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  %231 = load double, ptr %230, align 8, !tbaa !13
  %232 = fmul double %229, %231
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %232, ptr %233, align 8, !tbaa !13
  %234 = load double, ptr %41, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 1
  %236 = load double, ptr %235, align 8, !tbaa !15
  %237 = fmul double %234, %236
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %237, ptr %238, align 8, !tbaa !15
  %239 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %240 = load double, ptr %239, align 8, !tbaa !13
  %241 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  store double %240, ptr %241, align 8, !tbaa !13
  %242 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %243 = load double, ptr %242, align 8, !tbaa !15
  %244 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 1
  store double %243, ptr %244, align 8, !tbaa !15
  %245 = load double, ptr %41, align 8, !tbaa !9
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  %247 = load double, ptr %246, align 8, !tbaa !13
  %248 = fmul double %245, %247
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %248, ptr %249, align 8, !tbaa !13
  %250 = load double, ptr %41, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 1
  %252 = load double, ptr %251, align 8, !tbaa !15
  %253 = fmul double %250, %252
  %254 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %253, ptr %254, align 8, !tbaa !15
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %256 = load double, ptr %255, align 8, !tbaa !13
  %257 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  store double %256, ptr %257, align 8, !tbaa !13
  %258 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %259 = load double, ptr %258, align 8, !tbaa !15
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 1
  store double %259, ptr %260, align 8, !tbaa !15
  %261 = load double, ptr %41, align 8, !tbaa !9
  %262 = load double, ptr %38, align 8, !tbaa !9
  %263 = fmul double %262, %261
  store double %263, ptr %38, align 8, !tbaa !9
  %264 = load double, ptr %38, align 8, !tbaa !9
  %265 = load double, ptr %40, align 8, !tbaa !9
  %266 = fcmp ole double %264, %265
  br i1 %266, label %267, label %268

267:                                              ; preds = %226
  br label %226

268:                                              ; preds = %226
  br label %269

269:                                              ; preds = %268, %195
  br label %270

270:                                              ; preds = %269, %194
  %271 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  %272 = load double, ptr %271, align 8, !tbaa !13
  store double %272, ptr %13, align 8, !tbaa !9
  %273 = call double @d_imag(ptr noundef %33)
  store double %273, ptr %14, align 8, !tbaa !9
  %274 = load double, ptr %13, align 8, !tbaa !9
  %275 = load double, ptr %13, align 8, !tbaa !9
  %276 = load double, ptr %14, align 8, !tbaa !9
  %277 = load double, ptr %14, align 8, !tbaa !9
  %278 = fmul double %276, %277
  %279 = call double @llvm.fmuladd.f64(double %274, double %275, double %278)
  store double %279, ptr %28, align 8, !tbaa !9
  %280 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  %281 = load double, ptr %280, align 8, !tbaa !13
  store double %281, ptr %13, align 8, !tbaa !9
  %282 = call double @d_imag(ptr noundef %34)
  store double %282, ptr %14, align 8, !tbaa !9
  %283 = load double, ptr %13, align 8, !tbaa !9
  %284 = load double, ptr %13, align 8, !tbaa !9
  %285 = load double, ptr %14, align 8, !tbaa !9
  %286 = load double, ptr %14, align 8, !tbaa !9
  %287 = fmul double %285, %286
  %288 = call double @llvm.fmuladd.f64(double %283, double %284, double %287)
  store double %288, ptr %29, align 8, !tbaa !9
  %289 = load double, ptr %28, align 8, !tbaa !9
  %290 = load double, ptr %29, align 8, !tbaa !9
  %291 = fcmp oge double %290, 1.000000e+00
  br i1 %291, label %292, label %294

292:                                              ; preds = %270
  %293 = load double, ptr %29, align 8, !tbaa !9
  br label %295

294:                                              ; preds = %270
  br label %295

295:                                              ; preds = %294, %292
  %296 = phi double [ %293, %292 ], [ 1.000000e+00, %294 ]
  %297 = load double, ptr %42, align 8, !tbaa !9
  %298 = fmul double %296, %297
  %299 = fcmp ole double %289, %298
  br i1 %299, label %300, label %553

300:                                              ; preds = %295
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.doublecomplex, ptr %301, i32 0, i32 0
  %303 = load double, ptr %302, align 8, !tbaa !13
  %304 = fcmp oeq double %303, 0.000000e+00
  br i1 %304, label %305, label %347

305:                                              ; preds = %300
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.doublecomplex, ptr %306, i32 0, i32 1
  %308 = load double, ptr %307, align 8, !tbaa !15
  %309 = fcmp oeq double %308, 0.000000e+00
  br i1 %309, label %310, label %347

310:                                              ; preds = %305
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  store double 0.000000e+00, ptr %311, align 8, !tbaa !9
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.doublecomplex, ptr %312, i32 0, i32 0
  %314 = load double, ptr %313, align 8, !tbaa !13
  store double %314, ptr %14, align 8, !tbaa !9
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  %316 = call double @d_imag(ptr noundef %315)
  store double %316, ptr %15, align 8, !tbaa !9
  %317 = call double @dlapy2_(ptr noundef %14, ptr noundef %15)
  store double %317, ptr %13, align 8, !tbaa !9
  %318 = load double, ptr %13, align 8, !tbaa !9
  %319 = load ptr, ptr %11, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.doublecomplex, ptr %319, i32 0, i32 0
  store double %318, ptr %320, align 8, !tbaa !13
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.doublecomplex, ptr %321, i32 0, i32 1
  store double 0.000000e+00, ptr %322, align 8, !tbaa !15
  %323 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  %324 = load double, ptr %323, align 8, !tbaa !13
  store double %324, ptr %13, align 8, !tbaa !9
  %325 = call double @d_imag(ptr noundef %34)
  store double %325, ptr %14, align 8, !tbaa !9
  %326 = call double @dlapy2_(ptr noundef %13, ptr noundef %14)
  store double %326, ptr %26, align 8, !tbaa !9
  %327 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  %328 = load double, ptr %327, align 8, !tbaa !13
  %329 = load double, ptr %26, align 8, !tbaa !9
  %330 = fdiv double %328, %329
  store double %330, ptr %13, align 8, !tbaa !9
  %331 = call double @d_imag(ptr noundef %34)
  %332 = fneg double %331
  %333 = load double, ptr %26, align 8, !tbaa !9
  %334 = fdiv double %332, %333
  store double %334, ptr %14, align 8, !tbaa !9
  %335 = load double, ptr %13, align 8, !tbaa !9
  %336 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %335, ptr %336, align 8, !tbaa !13
  %337 = load double, ptr %14, align 8, !tbaa !9
  %338 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %337, ptr %338, align 8, !tbaa !15
  %339 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %340 = load double, ptr %339, align 8, !tbaa !13
  %341 = load ptr, ptr %10, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.doublecomplex, ptr %341, i32 0, i32 0
  store double %340, ptr %342, align 8, !tbaa !13
  %343 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %344 = load double, ptr %343, align 8, !tbaa !15
  %345 = load ptr, ptr %10, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.doublecomplex, ptr %345, i32 0, i32 1
  store double %344, ptr %346, align 8, !tbaa !15
  store i32 0, ptr %6, align 4
  store i32 1, ptr %43, align 4
  br label %711

347:                                              ; preds = %305, %300
  %348 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  %349 = load double, ptr %348, align 8, !tbaa !13
  store double %349, ptr %13, align 8, !tbaa !9
  %350 = call double @d_imag(ptr noundef %33)
  store double %350, ptr %14, align 8, !tbaa !9
  %351 = call double @dlapy2_(ptr noundef %13, ptr noundef %14)
  store double %351, ptr %35, align 8, !tbaa !9
  %352 = load double, ptr %29, align 8, !tbaa !9
  %353 = call double @sqrt(double noundef %352) #5
  store double %353, ptr %36, align 8, !tbaa !9
  %354 = load double, ptr %35, align 8, !tbaa !9
  %355 = load double, ptr %36, align 8, !tbaa !9
  %356 = fdiv double %354, %355
  %357 = load ptr, ptr %9, align 8, !tbaa !5
  store double %356, ptr %357, align 8, !tbaa !9
  %358 = load ptr, ptr %7, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.doublecomplex, ptr %358, i32 0, i32 0
  %360 = load double, ptr %359, align 8, !tbaa !13
  store double %360, ptr %13, align 8, !tbaa !9
  %361 = load double, ptr %13, align 8, !tbaa !9
  %362 = fcmp oge double %361, 0.000000e+00
  br i1 %362, label %363, label %365

363:                                              ; preds = %347
  %364 = load double, ptr %13, align 8, !tbaa !9
  br label %368

365:                                              ; preds = %347
  %366 = load double, ptr %13, align 8, !tbaa !9
  %367 = fneg double %366
  br label %368

368:                                              ; preds = %365, %363
  %369 = phi double [ %364, %363 ], [ %367, %365 ]
  store double %369, ptr %15, align 8, !tbaa !9
  %370 = load ptr, ptr %7, align 8, !tbaa !5
  %371 = call double @d_imag(ptr noundef %370)
  store double %371, ptr %14, align 8, !tbaa !9
  %372 = load double, ptr %14, align 8, !tbaa !9
  %373 = fcmp oge double %372, 0.000000e+00
  br i1 %373, label %374, label %376

374:                                              ; preds = %368
  %375 = load double, ptr %14, align 8, !tbaa !9
  br label %379

376:                                              ; preds = %368
  %377 = load double, ptr %14, align 8, !tbaa !9
  %378 = fneg double %377
  br label %379

379:                                              ; preds = %376, %374
  %380 = phi double [ %375, %374 ], [ %378, %376 ]
  store double %380, ptr %16, align 8, !tbaa !9
  %381 = load double, ptr %15, align 8, !tbaa !9
  %382 = load double, ptr %16, align 8, !tbaa !9
  %383 = fcmp oge double %381, %382
  br i1 %383, label %384, label %386

384:                                              ; preds = %379
  %385 = load double, ptr %15, align 8, !tbaa !9
  br label %388

386:                                              ; preds = %379
  %387 = load double, ptr %16, align 8, !tbaa !9
  br label %388

388:                                              ; preds = %386, %384
  %389 = phi double [ %385, %384 ], [ %387, %386 ]
  %390 = fcmp ogt double %389, 1.000000e+00
  br i1 %390, label %391, label %417

391:                                              ; preds = %388
  %392 = load ptr, ptr %7, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.doublecomplex, ptr %392, i32 0, i32 0
  %394 = load double, ptr %393, align 8, !tbaa !13
  store double %394, ptr %13, align 8, !tbaa !9
  %395 = load ptr, ptr %7, align 8, !tbaa !5
  %396 = call double @d_imag(ptr noundef %395)
  store double %396, ptr %14, align 8, !tbaa !9
  %397 = call double @dlapy2_(ptr noundef %13, ptr noundef %14)
  store double %397, ptr %26, align 8, !tbaa !9
  %398 = load ptr, ptr %7, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.doublecomplex, ptr %398, i32 0, i32 0
  %400 = load double, ptr %399, align 8, !tbaa !13
  %401 = load double, ptr %26, align 8, !tbaa !9
  %402 = fdiv double %400, %401
  store double %402, ptr %13, align 8, !tbaa !9
  %403 = load ptr, ptr %7, align 8, !tbaa !5
  %404 = call double @d_imag(ptr noundef %403)
  %405 = load double, ptr %26, align 8, !tbaa !9
  %406 = fdiv double %404, %405
  store double %406, ptr %14, align 8, !tbaa !9
  %407 = load double, ptr %13, align 8, !tbaa !9
  %408 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %407, ptr %408, align 8, !tbaa !13
  %409 = load double, ptr %14, align 8, !tbaa !9
  %410 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %409, ptr %410, align 8, !tbaa !15
  %411 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %412 = load double, ptr %411, align 8, !tbaa !13
  %413 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  store double %412, ptr %413, align 8, !tbaa !13
  %414 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %415 = load double, ptr %414, align 8, !tbaa !15
  %416 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  store double %415, ptr %416, align 8, !tbaa !15
  br label %444

417:                                              ; preds = %388
  %418 = load double, ptr %41, align 8, !tbaa !9
  %419 = load ptr, ptr %7, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.doublecomplex, ptr %419, i32 0, i32 0
  %421 = load double, ptr %420, align 8, !tbaa !13
  %422 = fmul double %418, %421
  store double %422, ptr %32, align 8, !tbaa !9
  %423 = load double, ptr %41, align 8, !tbaa !9
  %424 = load ptr, ptr %7, align 8, !tbaa !5
  %425 = call double @d_imag(ptr noundef %424)
  %426 = fmul double %423, %425
  store double %426, ptr %31, align 8, !tbaa !9
  %427 = call double @dlapy2_(ptr noundef %32, ptr noundef %31)
  store double %427, ptr %26, align 8, !tbaa !9
  %428 = load double, ptr %32, align 8, !tbaa !9
  %429 = load double, ptr %26, align 8, !tbaa !9
  %430 = fdiv double %428, %429
  store double %430, ptr %13, align 8, !tbaa !9
  %431 = load double, ptr %31, align 8, !tbaa !9
  %432 = load double, ptr %26, align 8, !tbaa !9
  %433 = fdiv double %431, %432
  store double %433, ptr %14, align 8, !tbaa !9
  %434 = load double, ptr %13, align 8, !tbaa !9
  %435 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %434, ptr %435, align 8, !tbaa !13
  %436 = load double, ptr %14, align 8, !tbaa !9
  %437 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %436, ptr %437, align 8, !tbaa !15
  %438 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %439 = load double, ptr %438, align 8, !tbaa !13
  %440 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  store double %439, ptr %440, align 8, !tbaa !13
  %441 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %442 = load double, ptr %441, align 8, !tbaa !15
  %443 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  store double %442, ptr %443, align 8, !tbaa !15
  br label %444

444:                                              ; preds = %417, %391
  %445 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  %446 = load double, ptr %445, align 8, !tbaa !13
  %447 = load double, ptr %36, align 8, !tbaa !9
  %448 = fdiv double %446, %447
  store double %448, ptr %13, align 8, !tbaa !9
  %449 = call double @d_imag(ptr noundef %34)
  %450 = fneg double %449
  %451 = load double, ptr %36, align 8, !tbaa !9
  %452 = fdiv double %450, %451
  store double %452, ptr %14, align 8, !tbaa !9
  %453 = load double, ptr %13, align 8, !tbaa !9
  %454 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %453, ptr %454, align 8, !tbaa !13
  %455 = load double, ptr %14, align 8, !tbaa !9
  %456 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %455, ptr %456, align 8, !tbaa !15
  %457 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %458 = load double, ptr %457, align 8, !tbaa !13
  %459 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %460 = load double, ptr %459, align 8, !tbaa !13
  %461 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %462 = load double, ptr %461, align 8, !tbaa !15
  %463 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %464 = load double, ptr %463, align 8, !tbaa !15
  %465 = fmul double %462, %464
  %466 = fneg double %465
  %467 = call double @llvm.fmuladd.f64(double %458, double %460, double %466)
  %468 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %467, ptr %468, align 8, !tbaa !13
  %469 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %470 = load double, ptr %469, align 8, !tbaa !13
  %471 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %472 = load double, ptr %471, align 8, !tbaa !15
  %473 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %474 = load double, ptr %473, align 8, !tbaa !15
  %475 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %476 = load double, ptr %475, align 8, !tbaa !13
  %477 = fmul double %474, %476
  %478 = call double @llvm.fmuladd.f64(double %470, double %472, double %477)
  %479 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %478, ptr %479, align 8, !tbaa !15
  %480 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %481 = load double, ptr %480, align 8, !tbaa !13
  %482 = load ptr, ptr %10, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.doublecomplex, ptr %482, i32 0, i32 0
  store double %481, ptr %483, align 8, !tbaa !13
  %484 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %485 = load double, ptr %484, align 8, !tbaa !15
  %486 = load ptr, ptr %10, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.doublecomplex, ptr %486, i32 0, i32 1
  store double %485, ptr %487, align 8, !tbaa !15
  %488 = load ptr, ptr %9, align 8, !tbaa !5
  %489 = load double, ptr %488, align 8, !tbaa !9
  %490 = load ptr, ptr %7, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.doublecomplex, ptr %490, i32 0, i32 0
  %492 = load double, ptr %491, align 8, !tbaa !13
  %493 = fmul double %489, %492
  %494 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %493, ptr %494, align 8, !tbaa !13
  %495 = load ptr, ptr %9, align 8, !tbaa !5
  %496 = load double, ptr %495, align 8, !tbaa !9
  %497 = load ptr, ptr %7, align 8, !tbaa !5
  %498 = getelementptr inbounds %struct.doublecomplex, ptr %497, i32 0, i32 1
  %499 = load double, ptr %498, align 8, !tbaa !15
  %500 = fmul double %496, %499
  %501 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %500, ptr %501, align 8, !tbaa !15
  %502 = load ptr, ptr %10, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.doublecomplex, ptr %502, i32 0, i32 0
  %504 = load double, ptr %503, align 8, !tbaa !13
  %505 = load ptr, ptr %8, align 8, !tbaa !5
  %506 = getelementptr inbounds %struct.doublecomplex, ptr %505, i32 0, i32 0
  %507 = load double, ptr %506, align 8, !tbaa !13
  %508 = load ptr, ptr %10, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.doublecomplex, ptr %508, i32 0, i32 1
  %510 = load double, ptr %509, align 8, !tbaa !15
  %511 = load ptr, ptr %8, align 8, !tbaa !5
  %512 = getelementptr inbounds %struct.doublecomplex, ptr %511, i32 0, i32 1
  %513 = load double, ptr %512, align 8, !tbaa !15
  %514 = fmul double %510, %513
  %515 = fneg double %514
  %516 = call double @llvm.fmuladd.f64(double %504, double %507, double %515)
  %517 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %516, ptr %517, align 8, !tbaa !13
  %518 = load ptr, ptr %10, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.doublecomplex, ptr %518, i32 0, i32 0
  %520 = load double, ptr %519, align 8, !tbaa !13
  %521 = load ptr, ptr %8, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.doublecomplex, ptr %521, i32 0, i32 1
  %523 = load double, ptr %522, align 8, !tbaa !15
  %524 = load ptr, ptr %10, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.doublecomplex, ptr %524, i32 0, i32 1
  %526 = load double, ptr %525, align 8, !tbaa !15
  %527 = load ptr, ptr %8, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.doublecomplex, ptr %527, i32 0, i32 0
  %529 = load double, ptr %528, align 8, !tbaa !13
  %530 = fmul double %526, %529
  %531 = call double @llvm.fmuladd.f64(double %520, double %523, double %530)
  %532 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %531, ptr %532, align 8, !tbaa !15
  %533 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %534 = load double, ptr %533, align 8, !tbaa !13
  %535 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %536 = load double, ptr %535, align 8, !tbaa !13
  %537 = fadd double %534, %536
  %538 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %537, ptr %538, align 8, !tbaa !13
  %539 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %540 = load double, ptr %539, align 8, !tbaa !15
  %541 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %542 = load double, ptr %541, align 8, !tbaa !15
  %543 = fadd double %540, %542
  %544 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %543, ptr %544, align 8, !tbaa !15
  %545 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %546 = load double, ptr %545, align 8, !tbaa !13
  %547 = load ptr, ptr %11, align 8, !tbaa !5
  %548 = getelementptr inbounds %struct.doublecomplex, ptr %547, i32 0, i32 0
  store double %546, ptr %548, align 8, !tbaa !13
  %549 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %550 = load double, ptr %549, align 8, !tbaa !15
  %551 = load ptr, ptr %11, align 8, !tbaa !5
  %552 = getelementptr inbounds %struct.doublecomplex, ptr %551, i32 0, i32 1
  store double %550, ptr %552, align 8, !tbaa !15
  br label %710

553:                                              ; preds = %295
  %554 = load double, ptr %29, align 8, !tbaa !9
  %555 = load double, ptr %28, align 8, !tbaa !9
  %556 = fdiv double %554, %555
  %557 = fadd double %556, 1.000000e+00
  %558 = call double @sqrt(double noundef %557) #5
  store double %558, ptr %35, align 8, !tbaa !9
  %559 = load double, ptr %35, align 8, !tbaa !9
  %560 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 0, i32 0
  %561 = load double, ptr %560, align 8, !tbaa !13
  %562 = fmul double %559, %561
  store double %562, ptr %13, align 8, !tbaa !9
  %563 = load double, ptr %35, align 8, !tbaa !9
  %564 = call double @d_imag(ptr noundef %33)
  %565 = fmul double %563, %564
  store double %565, ptr %14, align 8, !tbaa !9
  %566 = load double, ptr %13, align 8, !tbaa !9
  %567 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %566, ptr %567, align 8, !tbaa !13
  %568 = load double, ptr %14, align 8, !tbaa !9
  %569 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %568, ptr %569, align 8, !tbaa !15
  %570 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %571 = load double, ptr %570, align 8, !tbaa !13
  %572 = load ptr, ptr %11, align 8, !tbaa !5
  %573 = getelementptr inbounds %struct.doublecomplex, ptr %572, i32 0, i32 0
  store double %571, ptr %573, align 8, !tbaa !13
  %574 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %575 = load double, ptr %574, align 8, !tbaa !15
  %576 = load ptr, ptr %11, align 8, !tbaa !5
  %577 = getelementptr inbounds %struct.doublecomplex, ptr %576, i32 0, i32 1
  store double %575, ptr %577, align 8, !tbaa !15
  %578 = load double, ptr %35, align 8, !tbaa !9
  %579 = fdiv double 1.000000e+00, %578
  %580 = load ptr, ptr %9, align 8, !tbaa !5
  store double %579, ptr %580, align 8, !tbaa !9
  %581 = load double, ptr %28, align 8, !tbaa !9
  %582 = load double, ptr %29, align 8, !tbaa !9
  %583 = fadd double %581, %582
  store double %583, ptr %26, align 8, !tbaa !9
  %584 = load ptr, ptr %11, align 8, !tbaa !5
  %585 = getelementptr inbounds %struct.doublecomplex, ptr %584, i32 0, i32 0
  %586 = load double, ptr %585, align 8, !tbaa !13
  %587 = load double, ptr %26, align 8, !tbaa !9
  %588 = fdiv double %586, %587
  store double %588, ptr %13, align 8, !tbaa !9
  %589 = load ptr, ptr %11, align 8, !tbaa !5
  %590 = call double @d_imag(ptr noundef %589)
  %591 = load double, ptr %26, align 8, !tbaa !9
  %592 = fdiv double %590, %591
  store double %592, ptr %14, align 8, !tbaa !9
  %593 = load double, ptr %13, align 8, !tbaa !9
  %594 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %593, ptr %594, align 8, !tbaa !13
  %595 = load double, ptr %14, align 8, !tbaa !9
  %596 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %595, ptr %596, align 8, !tbaa !15
  %597 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %598 = load double, ptr %597, align 8, !tbaa !13
  %599 = load ptr, ptr %10, align 8, !tbaa !5
  %600 = getelementptr inbounds %struct.doublecomplex, ptr %599, i32 0, i32 0
  store double %598, ptr %600, align 8, !tbaa !13
  %601 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %602 = load double, ptr %601, align 8, !tbaa !15
  %603 = load ptr, ptr %10, align 8, !tbaa !5
  %604 = getelementptr inbounds %struct.doublecomplex, ptr %603, i32 0, i32 1
  store double %602, ptr %604, align 8, !tbaa !15
  call void @d_cnjg(ptr noundef %24, ptr noundef %34)
  %605 = load ptr, ptr %10, align 8, !tbaa !5
  %606 = getelementptr inbounds %struct.doublecomplex, ptr %605, i32 0, i32 0
  %607 = load double, ptr %606, align 8, !tbaa !13
  %608 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %609 = load double, ptr %608, align 8, !tbaa !13
  %610 = load ptr, ptr %10, align 8, !tbaa !5
  %611 = getelementptr inbounds %struct.doublecomplex, ptr %610, i32 0, i32 1
  %612 = load double, ptr %611, align 8, !tbaa !15
  %613 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %614 = load double, ptr %613, align 8, !tbaa !15
  %615 = fmul double %612, %614
  %616 = fneg double %615
  %617 = call double @llvm.fmuladd.f64(double %607, double %609, double %616)
  %618 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %617, ptr %618, align 8, !tbaa !13
  %619 = load ptr, ptr %10, align 8, !tbaa !5
  %620 = getelementptr inbounds %struct.doublecomplex, ptr %619, i32 0, i32 0
  %621 = load double, ptr %620, align 8, !tbaa !13
  %622 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %623 = load double, ptr %622, align 8, !tbaa !15
  %624 = load ptr, ptr %10, align 8, !tbaa !5
  %625 = getelementptr inbounds %struct.doublecomplex, ptr %624, i32 0, i32 1
  %626 = load double, ptr %625, align 8, !tbaa !15
  %627 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %628 = load double, ptr %627, align 8, !tbaa !13
  %629 = fmul double %626, %628
  %630 = call double @llvm.fmuladd.f64(double %621, double %623, double %629)
  %631 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %630, ptr %631, align 8, !tbaa !15
  %632 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %633 = load double, ptr %632, align 8, !tbaa !13
  %634 = load ptr, ptr %10, align 8, !tbaa !5
  %635 = getelementptr inbounds %struct.doublecomplex, ptr %634, i32 0, i32 0
  store double %633, ptr %635, align 8, !tbaa !13
  %636 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %637 = load double, ptr %636, align 8, !tbaa !15
  %638 = load ptr, ptr %10, align 8, !tbaa !5
  %639 = getelementptr inbounds %struct.doublecomplex, ptr %638, i32 0, i32 1
  store double %637, ptr %639, align 8, !tbaa !15
  %640 = load i64, ptr %39, align 8, !tbaa !11
  %641 = icmp ne i64 %640, 0
  br i1 %641, label %642, label %709

642:                                              ; preds = %553
  %643 = load i64, ptr %39, align 8, !tbaa !11
  %644 = icmp sgt i64 %643, 0
  br i1 %644, label %645, label %676

645:                                              ; preds = %642
  %646 = load i64, ptr %39, align 8, !tbaa !11
  store i64 %646, ptr %12, align 8, !tbaa !11
  store i64 1, ptr %27, align 8, !tbaa !11
  br label %647

647:                                              ; preds = %672, %645
  %648 = load i64, ptr %27, align 8, !tbaa !11
  %649 = load i64, ptr %12, align 8, !tbaa !11
  %650 = icmp sle i64 %648, %649
  br i1 %650, label %651, label %675

651:                                              ; preds = %647
  %652 = load double, ptr %41, align 8, !tbaa !9
  %653 = load ptr, ptr %11, align 8, !tbaa !5
  %654 = getelementptr inbounds %struct.doublecomplex, ptr %653, i32 0, i32 0
  %655 = load double, ptr %654, align 8, !tbaa !13
  %656 = fmul double %652, %655
  %657 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %656, ptr %657, align 8, !tbaa !13
  %658 = load double, ptr %41, align 8, !tbaa !9
  %659 = load ptr, ptr %11, align 8, !tbaa !5
  %660 = getelementptr inbounds %struct.doublecomplex, ptr %659, i32 0, i32 1
  %661 = load double, ptr %660, align 8, !tbaa !15
  %662 = fmul double %658, %661
  %663 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %662, ptr %663, align 8, !tbaa !15
  %664 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %665 = load double, ptr %664, align 8, !tbaa !13
  %666 = load ptr, ptr %11, align 8, !tbaa !5
  %667 = getelementptr inbounds %struct.doublecomplex, ptr %666, i32 0, i32 0
  store double %665, ptr %667, align 8, !tbaa !13
  %668 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %669 = load double, ptr %668, align 8, !tbaa !15
  %670 = load ptr, ptr %11, align 8, !tbaa !5
  %671 = getelementptr inbounds %struct.doublecomplex, ptr %670, i32 0, i32 1
  store double %669, ptr %671, align 8, !tbaa !15
  br label %672

672:                                              ; preds = %651
  %673 = load i64, ptr %27, align 8, !tbaa !11
  %674 = add nsw i64 %673, 1
  store i64 %674, ptr %27, align 8, !tbaa !11
  br label %647, !llvm.loop !16

675:                                              ; preds = %647
  br label %708

676:                                              ; preds = %642
  %677 = load i64, ptr %39, align 8, !tbaa !11
  %678 = sub nsw i64 0, %677
  store i64 %678, ptr %12, align 8, !tbaa !11
  store i64 1, ptr %27, align 8, !tbaa !11
  br label %679

679:                                              ; preds = %704, %676
  %680 = load i64, ptr %27, align 8, !tbaa !11
  %681 = load i64, ptr %12, align 8, !tbaa !11
  %682 = icmp sle i64 %680, %681
  br i1 %682, label %683, label %707

683:                                              ; preds = %679
  %684 = load double, ptr %40, align 8, !tbaa !9
  %685 = load ptr, ptr %11, align 8, !tbaa !5
  %686 = getelementptr inbounds %struct.doublecomplex, ptr %685, i32 0, i32 0
  %687 = load double, ptr %686, align 8, !tbaa !13
  %688 = fmul double %684, %687
  %689 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %688, ptr %689, align 8, !tbaa !13
  %690 = load double, ptr %40, align 8, !tbaa !9
  %691 = load ptr, ptr %11, align 8, !tbaa !5
  %692 = getelementptr inbounds %struct.doublecomplex, ptr %691, i32 0, i32 1
  %693 = load double, ptr %692, align 8, !tbaa !15
  %694 = fmul double %690, %693
  %695 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %694, ptr %695, align 8, !tbaa !15
  %696 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %697 = load double, ptr %696, align 8, !tbaa !13
  %698 = load ptr, ptr %11, align 8, !tbaa !5
  %699 = getelementptr inbounds %struct.doublecomplex, ptr %698, i32 0, i32 0
  store double %697, ptr %699, align 8, !tbaa !13
  %700 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %701 = load double, ptr %700, align 8, !tbaa !15
  %702 = load ptr, ptr %11, align 8, !tbaa !5
  %703 = getelementptr inbounds %struct.doublecomplex, ptr %702, i32 0, i32 1
  store double %701, ptr %703, align 8, !tbaa !15
  br label %704

704:                                              ; preds = %683
  %705 = load i64, ptr %27, align 8, !tbaa !11
  %706 = add nsw i64 %705, 1
  store i64 %706, ptr %27, align 8, !tbaa !11
  br label %679, !llvm.loop !18

707:                                              ; preds = %679
  br label %708

708:                                              ; preds = %707, %675
  br label %709

709:                                              ; preds = %708, %553
  br label %710

710:                                              ; preds = %709, %444
  store i32 0, ptr %6, align 4
  store i32 1, ptr %43, align 4
  br label %711

711:                                              ; preds = %710, %310, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %712 = load i32, ptr %6, align 4
  ret i32 %712
}

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

declare double @dlamch_(ptr noundef) #2

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

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

declare double @d_imag(ptr noundef) #2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"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}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @zlartg_(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %struct.doublecomplex, align 16
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %struct.doublecomplex, align 16
  %14 = alloca %struct.doublecomplex, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %15 = tail call double @dlamch_(ptr noundef nonnull @.str) #7
  %16 = tail call double @dlamch_(ptr noundef nonnull @.str.1) #7
  %17 = tail call double @dlamch_(ptr noundef nonnull @.str.2) #7
  store double %17, ptr %7, align 8, !tbaa !5
  %18 = fdiv double %15, %16
  %19 = tail call double @log(double noundef %18) #7
  %20 = tail call double @dlamch_(ptr noundef nonnull @.str.2) #7
  %21 = tail call double @log(double noundef %20) #7
  %22 = fdiv double %19, %21
  %23 = fmul double %22, 5.000000e-01
  %24 = fptosi double %23 to i64
  store i64 %24, ptr %6, align 8, !tbaa !9
  %25 = call double @pow_di(ptr noundef nonnull %7, ptr noundef nonnull %6) #7
  %26 = fdiv double 1.000000e+00, %25
  %27 = load double, ptr %0, align 8, !tbaa !11
  store double %27, ptr %7, align 8, !tbaa !5
  %28 = call double @d_imag(ptr noundef nonnull %0) #7
  %29 = load double, ptr %1, align 8, !tbaa !11
  %30 = call double @d_imag(ptr noundef nonnull %1) #7
  %31 = insertelement <2 x double> poison, double %27, i64 0
  %32 = insertelement <2 x double> %31, double %29, i64 1
  %33 = fcmp oge <2 x double> %32, zeroinitializer
  %34 = fneg <2 x double> %32
  %35 = select <2 x i1> %33, <2 x double> %32, <2 x double> %34
  %36 = insertelement <2 x double> poison, double %28, i64 0
  %37 = insertelement <2 x double> %36, double %30, i64 1
  %38 = fcmp oge <2 x double> %37, zeroinitializer
  %39 = fneg <2 x double> %37
  %40 = select <2 x i1> %38, <2 x double> %37, <2 x double> %39
  %41 = fcmp oge <2 x double> %35, %40
  %42 = select <2 x i1> %41, <2 x double> %35, <2 x double> %40
  %43 = extractelement <2 x double> %42, i64 0
  %44 = extractelement <2 x double> %42, i64 1
  %45 = fcmp oge double %43, %44
  %46 = select i1 %45, double %43, double %44
  %47 = getelementptr inbounds i8, ptr %0, i64 8
  %48 = load <2 x double>, ptr %0, align 8, !tbaa !5
  store <2 x double> %48, ptr %13, align 16, !tbaa !5
  %49 = load <2 x double>, ptr %1, align 8, !tbaa !5
  store <2 x double> %49, ptr %14, align 16, !tbaa !5
  %50 = fcmp ult double %46, %26
  br i1 %50, label %60, label %.preheader196.preheader

.preheader196.preheader:                          ; preds = %5
  %51 = insertelement <2 x double> poison, double %25, i64 0
  %52 = shufflevector <2 x double> %51, <2 x double> poison, <2 x i32> zeroinitializer
  br label %.preheader196

.preheader196:                                    ; preds = %.preheader196.preheader, %.preheader196
  %.0183 = phi double [ %58, %.preheader196 ], [ %46, %.preheader196.preheader ]
  %.0182 = phi i64 [ %55, %.preheader196 ], [ 0, %.preheader196.preheader ]
  %53 = phi <2 x double> [ %56, %.preheader196 ], [ %48, %.preheader196.preheader ]
  %54 = phi <2 x double> [ %57, %.preheader196 ], [ %49, %.preheader196.preheader ]
  %55 = add nuw nsw i64 %.0182, 1
  %56 = fmul <2 x double> %52, %53
  %57 = fmul <2 x double> %52, %54
  %58 = fmul double %25, %.0183
  %59 = fcmp ult double %58, %26
  br i1 %59, label %.sink.split, label %.preheader196

60:                                               ; preds = %5
  %61 = fcmp ugt double %46, %25
  %62 = extractelement <2 x double> %48, i64 0
  %63 = extractelement <2 x double> %49, i64 0
  br i1 %61, label %83, label %64

64:                                               ; preds = %60
  %65 = fcmp oeq double %63, 0.000000e+00
  %66 = extractelement <2 x double> %49, i64 1
  %67 = fcmp oeq double %66, 0.000000e+00
  %or.cond = select i1 %65, i1 %67, i1 false
  br i1 %or.cond, label %70, label %.preheader.preheader

.preheader.preheader:                             ; preds = %64
  %68 = insertelement <2 x double> poison, double %26, i64 0
  %69 = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> zeroinitializer
  br label %.preheader

70:                                               ; preds = %64
  store double 1.000000e+00, ptr %2, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  %71 = load <2 x double>, ptr %0, align 8, !tbaa !5
  store <2 x double> %71, ptr %4, align 8, !tbaa !5
  br label %.loopexit194

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.1184 = phi double [ %77, %.preheader ], [ %46, %.preheader.preheader ]
  %.1 = phi i64 [ %74, %.preheader ], [ 0, %.preheader.preheader ]
  %72 = phi <2 x double> [ %75, %.preheader ], [ %48, %.preheader.preheader ]
  %73 = phi <2 x double> [ %76, %.preheader ], [ %49, %.preheader.preheader ]
  %74 = add nsw i64 %.1, -1
  %75 = fmul <2 x double> %69, %72
  %76 = fmul <2 x double> %69, %73
  %77 = fmul double %26, %.1184
  %78 = fcmp ugt double %77, %25
  br i1 %78, label %.sink.split, label %.preheader

.sink.split:                                      ; preds = %.preheader196, %.preheader
  %.2.ph = phi i64 [ %74, %.preheader ], [ %55, %.preheader196 ]
  %79 = phi <2 x double> [ %75, %.preheader ], [ %56, %.preheader196 ]
  %80 = phi <2 x double> [ %76, %.preheader ], [ %57, %.preheader196 ]
  store <2 x double> %79, ptr %13, align 16, !tbaa !5
  store <2 x double> %80, ptr %14, align 16, !tbaa !5
  %81 = extractelement <2 x double> %79, i64 0
  %82 = extractelement <2 x double> %80, i64 0
  br label %83

83:                                               ; preds = %.sink.split, %60
  %84 = phi double [ %63, %60 ], [ %82, %.sink.split ]
  %85 = phi double [ %62, %60 ], [ %81, %.sink.split ]
  %.2 = phi i64 [ 0, %60 ], [ %.2.ph, %.sink.split ]
  store double %85, ptr %7, align 8, !tbaa !5
  %86 = call double @d_imag(ptr noundef nonnull %13) #7
  %87 = load double, ptr %7, align 8, !tbaa !5
  %88 = fmul double %86, %86
  %89 = call double @llvm.fmuladd.f64(double %87, double %87, double %88)
  store double %84, ptr %7, align 8, !tbaa !5
  %90 = call double @d_imag(ptr noundef nonnull %14) #7
  store double %90, ptr %8, align 8, !tbaa !5
  %91 = load double, ptr %7, align 8, !tbaa !5
  %92 = fmul double %90, %90
  %93 = call double @llvm.fmuladd.f64(double %91, double %91, double %92)
  %94 = fcmp oge double %93, 1.000000e+00
  %95 = select i1 %94, double %93, double 1.000000e+00
  %96 = fmul double %15, %95
  %97 = fcmp ugt double %89, %96
  br i1 %97, label %190, label %98

98:                                               ; preds = %83
  %99 = load double, ptr %0, align 8, !tbaa !11
  %100 = fcmp oeq double %99, 0.000000e+00
  br i1 %100, label %101, label %119

101:                                              ; preds = %98
  %102 = load double, ptr %47, align 8, !tbaa !13
  %103 = fcmp oeq double %102, 0.000000e+00
  br i1 %103, label %104, label %119

104:                                              ; preds = %101
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  %105 = load double, ptr %1, align 8, !tbaa !11
  store double %105, ptr %8, align 8, !tbaa !5
  %106 = call double @d_imag(ptr noundef nonnull %1) #7
  store double %106, ptr %9, align 8, !tbaa !5
  %107 = call double @dlapy2_(ptr noundef nonnull %8, ptr noundef nonnull %9) #7
  store double %107, ptr %4, align 8, !tbaa !11
  %108 = getelementptr inbounds i8, ptr %4, i64 8
  store double 0.000000e+00, ptr %108, align 8, !tbaa !13
  %109 = load double, ptr %14, align 16, !tbaa !11
  store double %109, ptr %7, align 8, !tbaa !5
  %110 = call double @d_imag(ptr noundef nonnull %14) #7
  store double %110, ptr %8, align 8, !tbaa !5
  %111 = call double @dlapy2_(ptr noundef nonnull %7, ptr noundef nonnull %8) #7
  %112 = load double, ptr %14, align 16, !tbaa !11
  %113 = fdiv double %112, %111
  store double %113, ptr %7, align 8, !tbaa !5
  %114 = call double @d_imag(ptr noundef nonnull %14) #7
  %115 = fneg double %114
  %116 = fdiv double %115, %111
  %117 = load double, ptr %7, align 8, !tbaa !5
  store double %117, ptr %3, align 8, !tbaa !11
  %118 = getelementptr inbounds i8, ptr %3, i64 8
  store double %116, ptr %118, align 8, !tbaa !13
  br label %.loopexit194

119:                                              ; preds = %101, %98
  %120 = load double, ptr %13, align 16, !tbaa !11
  store double %120, ptr %7, align 8, !tbaa !5
  %121 = call double @d_imag(ptr noundef nonnull %13) #7
  store double %121, ptr %8, align 8, !tbaa !5
  %122 = call double @dlapy2_(ptr noundef nonnull %7, ptr noundef nonnull %8) #7
  %sqrt = call double @llvm.sqrt.f64(double %93)
  %123 = fdiv double %122, %sqrt
  store double %123, ptr %2, align 8, !tbaa !5
  %124 = load double, ptr %0, align 8, !tbaa !11
  store double %124, ptr %7, align 8, !tbaa !5
  %125 = call double @d_imag(ptr noundef nonnull %0) #7
  store double %125, ptr %8, align 8, !tbaa !5
  %126 = insertelement <2 x double> poison, double %124, i64 0
  %127 = insertelement <2 x double> %126, double %125, i64 1
  %128 = fcmp oge <2 x double> %127, zeroinitializer
  %129 = fneg <2 x double> %127
  %130 = select <2 x i1> %128, <2 x double> %127, <2 x double> %129
  %131 = extractelement <2 x double> %130, i64 0
  %132 = extractelement <2 x double> %130, i64 1
  %133 = fcmp oge double %131, %132
  %134 = select i1 %133, double %131, double %132
  %135 = fcmp ogt double %134, 1.000000e+00
  %136 = load double, ptr %0, align 8, !tbaa !11
  br i1 %135, label %137, label %147

137:                                              ; preds = %119
  store double %136, ptr %7, align 8, !tbaa !5
  %138 = call double @d_imag(ptr noundef nonnull %0) #7
  store double %138, ptr %8, align 8, !tbaa !5
  %139 = call double @dlapy2_(ptr noundef nonnull %7, ptr noundef nonnull %8) #7
  %140 = load double, ptr %0, align 8, !tbaa !11
  %141 = fdiv double %140, %139
  store double %141, ptr %7, align 8, !tbaa !5
  %142 = call double @d_imag(ptr noundef nonnull %0) #7
  %143 = fdiv double %142, %139
  %144 = load double, ptr %7, align 8, !tbaa !5
  %145 = insertelement <2 x double> poison, double %144, i64 0
  %146 = insertelement <2 x double> %145, double %143, i64 1
  br label %159

147:                                              ; preds = %119
  %148 = fmul double %26, %136
  store double %148, ptr %12, align 8, !tbaa !5
  %149 = call double @d_imag(ptr noundef nonnull %0) #7
  %150 = fmul double %26, %149
  store double %150, ptr %11, align 8, !tbaa !5
  %151 = call double @dlapy2_(ptr noundef nonnull %12, ptr noundef nonnull %11) #7
  %152 = load double, ptr %12, align 8, !tbaa !5
  %153 = load double, ptr %11, align 8, !tbaa !5
  %154 = insertelement <2 x double> poison, double %152, i64 0
  %155 = insertelement <2 x double> %154, double %153, i64 1
  %156 = insertelement <2 x double> poison, double %151, i64 0
  %157 = shufflevector <2 x double> %156, <2 x double> poison, <2 x i32> zeroinitializer
  %158 = fdiv <2 x double> %155, %157
  br label %159

159:                                              ; preds = %147, %137
  %160 = phi <2 x double> [ %146, %137 ], [ %158, %147 ]
  %161 = extractelement <2 x double> %160, i64 1
  store double %161, ptr %8, align 8
  %162 = load double, ptr %14, align 16, !tbaa !11
  %163 = fdiv double %162, %sqrt
  store double %163, ptr %7, align 8, !tbaa !5
  %164 = call double @d_imag(ptr noundef nonnull %14) #7
  %165 = fneg double %164
  %166 = fdiv double %165, %sqrt
  %167 = load double, ptr %7, align 8, !tbaa !5
  %168 = fneg double %161
  %169 = insertelement <2 x double> %160, double %166, i64 0
  %170 = insertelement <2 x double> poison, double %168, i64 0
  %171 = insertelement <2 x double> %170, double %167, i64 1
  %172 = fmul <2 x double> %169, %171
  %173 = shufflevector <2 x double> %160, <2 x double> poison, <2 x i32> zeroinitializer
  %174 = shufflevector <2 x double> %171, <2 x double> %169, <2 x i32> <i32 1, i32 2>
  %175 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %173, <2 x double> %174, <2 x double> %172)
  store <2 x double> %175, ptr %3, align 8, !tbaa !5
  %176 = load double, ptr %2, align 8, !tbaa !5
  %177 = load <2 x double>, ptr %0, align 8, !tbaa !5
  %178 = insertelement <2 x double> poison, double %176, i64 0
  %179 = shufflevector <2 x double> %178, <2 x double> poison, <2 x i32> zeroinitializer
  %180 = fmul <2 x double> %179, %177
  %181 = load <2 x double>, ptr %1, align 8, !tbaa !5
  %182 = shufflevector <2 x double> %175, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %183 = fneg <2 x double> %175
  %184 = shufflevector <2 x double> %182, <2 x double> %183, <2 x i32> <i32 0, i32 3>
  %185 = fmul <2 x double> %181, %184
  %186 = shufflevector <2 x double> %185, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %187 = shufflevector <2 x double> %175, <2 x double> poison, <2 x i32> zeroinitializer
  %188 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %187, <2 x double> %181, <2 x double> %186)
  %189 = fadd <2 x double> %180, %188
  store <2 x double> %189, ptr %4, align 8, !tbaa !5
  br label %.loopexit194

190:                                              ; preds = %83
  %191 = fdiv double %93, %89
  %192 = fadd double %191, 1.000000e+00
  %sqrt193 = call double @llvm.sqrt.f64(double %192)
  %193 = load double, ptr %13, align 16, !tbaa !11
  %194 = fmul double %sqrt193, %193
  store double %194, ptr %7, align 8, !tbaa !5
  %195 = call double @d_imag(ptr noundef nonnull %13) #7
  %196 = fmul double %sqrt193, %195
  %197 = load double, ptr %7, align 8, !tbaa !5
  store double %197, ptr %4, align 8, !tbaa !11
  %198 = getelementptr inbounds i8, ptr %4, i64 8
  store double %196, ptr %198, align 8, !tbaa !13
  %199 = fdiv double 1.000000e+00, %sqrt193
  store double %199, ptr %2, align 8, !tbaa !5
  %200 = fadd double %89, %93
  %201 = load double, ptr %4, align 8, !tbaa !11
  %202 = fdiv double %201, %200
  store double %202, ptr %7, align 8, !tbaa !5
  %203 = call double @d_imag(ptr noundef nonnull %4) #7
  %204 = fdiv double %203, %200
  %205 = load double, ptr %7, align 8, !tbaa !5
  store double %205, ptr %3, align 8, !tbaa !11
  %206 = getelementptr inbounds i8, ptr %3, i64 8
  store double %204, ptr %206, align 8, !tbaa !13
  call void @d_cnjg(ptr noundef nonnull %10, ptr noundef nonnull %14) #7
  %207 = load double, ptr %3, align 8, !tbaa !11
  %208 = load double, ptr %206, align 8, !tbaa !13
  %209 = fneg double %208
  %210 = load <2 x double>, ptr %10, align 16, !tbaa !5
  %211 = insertelement <2 x double> poison, double %208, i64 0
  %212 = insertelement <2 x double> %211, double %209, i64 1
  %213 = fmul <2 x double> %210, %212
  %214 = shufflevector <2 x double> %213, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %215 = insertelement <2 x double> poison, double %207, i64 0
  %216 = shufflevector <2 x double> %215, <2 x double> poison, <2 x i32> zeroinitializer
  %217 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %216, <2 x double> %210, <2 x double> %214)
  store <2 x double> %217, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i64 %.2, 0
  br i1 %.not, label %.loopexit194, label %218

218:                                              ; preds = %190
  %219 = icmp sgt i64 %.2, 0
  br i1 %219, label %220, label %.lr.ph

220:                                              ; preds = %218
  %221 = load <2 x double>, ptr %4, align 8, !tbaa !5
  %222 = insertelement <2 x double> poison, double %26, i64 0
  %223 = shufflevector <2 x double> %222, <2 x double> poison, <2 x i32> zeroinitializer
  %xtraiter277 = and i64 %.2, 7
  %224 = icmp ult i64 %.2, 8
  br i1 %224, label %.loopexit.unr-lcssa, label %.new

.new:                                             ; preds = %220
  %unroll_iter282 = and i64 %.2, 9223372036854775800
  br label %225

225:                                              ; preds = %225, %.new
  %226 = phi <2 x double> [ %221, %.new ], [ %234, %225 ]
  %niter283 = phi i64 [ 0, %.new ], [ %niter283.next.7, %225 ]
  %227 = fmul <2 x double> %223, %226
  %228 = fmul <2 x double> %223, %227
  %229 = fmul <2 x double> %223, %228
  %230 = fmul <2 x double> %223, %229
  %231 = fmul <2 x double> %223, %230
  %232 = fmul <2 x double> %223, %231
  %233 = fmul <2 x double> %223, %232
  %234 = fmul <2 x double> %223, %233
  %niter283.next.7 = add i64 %niter283, 8
  %niter283.ncmp.7 = icmp eq i64 %niter283.next.7, %unroll_iter282
  br i1 %niter283.ncmp.7, label %.loopexit.unr-lcssa, label %225, !llvm.loop !14

.lr.ph:                                           ; preds = %218
  %235 = sub i64 0, %.2
  %236 = load <2 x double>, ptr %4, align 8, !tbaa !5
  %smax = call i64 @llvm.smax.i64(i64 %235, i64 1)
  %237 = insertelement <2 x double> poison, double %25, i64 0
  %238 = shufflevector <2 x double> %237, <2 x double> poison, <2 x i32> zeroinitializer
  %xtraiter = and i64 %smax, 7
  %239 = icmp slt i64 %235, 8
  br i1 %239, label %..loopexit194_crit_edge.unr-lcssa, label %.lr.ph.new

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

240:                                              ; preds = %240, %.lr.ph.new
  %241 = phi <2 x double> [ %236, %.lr.ph.new ], [ %249, %240 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.7, %240 ]
  %242 = fmul <2 x double> %238, %241
  %243 = fmul <2 x double> %238, %242
  %244 = fmul <2 x double> %238, %243
  %245 = fmul <2 x double> %238, %244
  %246 = fmul <2 x double> %238, %245
  %247 = fmul <2 x double> %238, %246
  %248 = fmul <2 x double> %238, %247
  %249 = fmul <2 x double> %238, %248
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %..loopexit194_crit_edge.unr-lcssa, label %240, !llvm.loop !16

.loopexit.unr-lcssa:                              ; preds = %225, %220
  %.lcssa.ph = phi <2 x double> [ poison, %220 ], [ %234, %225 ]
  %.unr279 = phi <2 x double> [ %221, %220 ], [ %234, %225 ]
  %lcmp.mod280.not = icmp eq i64 %xtraiter277, 0
  br i1 %lcmp.mod280.not, label %.loopexit, label %.epil.preheader276

.epil.preheader276:                               ; preds = %.loopexit.unr-lcssa, %.epil.preheader276
  %250 = phi <2 x double> [ %251, %.epil.preheader276 ], [ %.unr279, %.loopexit.unr-lcssa ]
  %epil.iter278 = phi i64 [ %epil.iter278.next, %.epil.preheader276 ], [ 0, %.loopexit.unr-lcssa ]
  %251 = fmul <2 x double> %223, %250
  %epil.iter278.next = add i64 %epil.iter278, 1
  %epil.iter278.cmp.not = icmp eq i64 %epil.iter278.next, %xtraiter277
  br i1 %epil.iter278.cmp.not, label %.loopexit, label %.epil.preheader276, !llvm.loop !17

.loopexit:                                        ; preds = %.epil.preheader276, %.loopexit.unr-lcssa
  %.lcssa = phi <2 x double> [ %.lcssa.ph, %.loopexit.unr-lcssa ], [ %251, %.epil.preheader276 ]
  store <2 x double> %.lcssa, ptr %4, align 8, !tbaa !5
  br label %.loopexit194

..loopexit194_crit_edge.unr-lcssa:                ; preds = %240, %.lr.ph
  %.lcssa267.ph = phi <2 x double> [ poison, %.lr.ph ], [ %249, %240 ]
  %.unr = phi <2 x double> [ %236, %.lr.ph ], [ %249, %240 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %..loopexit194_crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %..loopexit194_crit_edge.unr-lcssa, %.epil.preheader
  %252 = phi <2 x double> [ %253, %.epil.preheader ], [ %.unr, %..loopexit194_crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %..loopexit194_crit_edge.unr-lcssa ]
  %253 = fmul <2 x double> %238, %252
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %..loopexit194_crit_edge, label %.epil.preheader, !llvm.loop !19

..loopexit194_crit_edge:                          ; preds = %.epil.preheader, %..loopexit194_crit_edge.unr-lcssa
  %.lcssa267 = phi <2 x double> [ %.lcssa267.ph, %..loopexit194_crit_edge.unr-lcssa ], [ %253, %.epil.preheader ]
  store <2 x double> %.lcssa267, ptr %4, align 8, !tbaa !5
  br label %.loopexit194

.loopexit194:                                     ; preds = %..loopexit194_crit_edge, %.loopexit, %159, %190, %104, %70
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret i32 0
}

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #3

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

declare double @d_imag(ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !18}


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