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

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

; Function Attrs: nounwind uwtable
define dso_local void @zlarnv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.doublecomplex, align 8
  %17 = alloca %struct.doublecomplex, align 8
  %18 = alloca %struct.doublecomplex, align 8
  %19 = alloca i32, align 4
  %20 = alloca [128 x double], align 16
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca { double, double }, align 8
  %24 = alloca { double, double }, align 8
  %25 = alloca { double, double }, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 -1
  store ptr %27, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds i32, ptr %28, i32 -1
  store ptr %29, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %31, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %370, %4
  %33 = load i32, ptr %22, align 4, !tbaa !9
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %36, label %373

36:                                               ; preds = %32
  store i32 64, ptr %10, align 4, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = load i32, ptr %22, align 4, !tbaa !9
  %40 = sub nsw i32 %38, %39
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %45, label %47

45:                                               ; preds = %36
  %46 = load i32, ptr %10, align 4, !tbaa !9
  br label %49

47:                                               ; preds = %36
  %48 = load i32, ptr %11, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %47, %45
  %50 = phi i32 [ %46, %45 ], [ %48, %47 ]
  store i32 %50, ptr %21, align 4, !tbaa !9
  %51 = load i32, ptr %21, align 4, !tbaa !9
  %52 = shl i32 %51, 1
  store i32 %52, ptr %10, align 4, !tbaa !9
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds i32, ptr %53, i64 1
  %55 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 0
  call void @dlaruv_(ptr noundef %54, ptr noundef %10, ptr noundef %55)
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %104

59:                                               ; preds = %49
  %60 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %60, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %100, %59
  %62 = load i32, ptr %19, align 4, !tbaa !9
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = icmp sle i32 %62, %63
  br i1 %64, label %65, label %103

65:                                               ; preds = %61
  %66 = load i32, ptr %22, align 4, !tbaa !9
  %67 = load i32, ptr %19, align 4, !tbaa !9
  %68 = add nsw i32 %66, %67
  %69 = sub nsw i32 %68, 1
  store i32 %69, ptr %11, align 4, !tbaa !9
  %70 = load i32, ptr %19, align 4, !tbaa !9
  %71 = shl i32 %70, 1
  %72 = sub nsw i32 %71, 2
  store i32 %72, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %19, align 4, !tbaa !9
  %74 = shl i32 %73, 1
  %75 = sub nsw i32 %74, 1
  store i32 %75, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %79, ptr %80, align 8, !tbaa !13
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %84, ptr %85, align 8, !tbaa !15
  %86 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %87 = load double, ptr %86, align 8, !tbaa !13
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.doublecomplex, ptr %88, i64 %90
  %92 = getelementptr inbounds %struct.doublecomplex, ptr %91, i32 0, i32 0
  store double %87, ptr %92, align 8, !tbaa !13
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %94 = load double, ptr %93, align 8, !tbaa !15
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %struct.doublecomplex, ptr %95, i64 %97
  %99 = getelementptr inbounds %struct.doublecomplex, ptr %98, i32 0, i32 1
  store double %94, ptr %99, align 8, !tbaa !15
  br label %100

100:                                              ; preds = %65
  %101 = load i32, ptr %19, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %19, align 4, !tbaa !9
  br label %61, !llvm.loop !16

103:                                              ; preds = %61
  br label %369

104:                                              ; preds = %49
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = icmp eq i32 %106, 2
  br i1 %107, label %108, label %155

108:                                              ; preds = %104
  %109 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %109, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %151, %108
  %111 = load i32, ptr %19, align 4, !tbaa !9
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = icmp sle i32 %111, %112
  br i1 %113, label %114, label %154

114:                                              ; preds = %110
  %115 = load i32, ptr %22, align 4, !tbaa !9
  %116 = load i32, ptr %19, align 4, !tbaa !9
  %117 = add nsw i32 %115, %116
  %118 = sub nsw i32 %117, 1
  store i32 %118, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = shl i32 %119, 1
  %121 = sub nsw i32 %120, 2
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !11
  %125 = call double @llvm.fmuladd.f64(double %124, double 2.000000e+00, double -1.000000e+00)
  store double %125, ptr %14, align 8, !tbaa !11
  %126 = load i32, ptr %19, align 4, !tbaa !9
  %127 = shl i32 %126, 1
  %128 = sub nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !11
  %132 = call double @llvm.fmuladd.f64(double %131, double 2.000000e+00, double -1.000000e+00)
  store double %132, ptr %15, align 8, !tbaa !11
  %133 = load double, ptr %14, align 8, !tbaa !11
  %134 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %133, ptr %134, align 8, !tbaa !13
  %135 = load double, ptr %15, align 8, !tbaa !11
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %135, ptr %136, align 8, !tbaa !15
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %138 = load double, ptr %137, align 8, !tbaa !13
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct.doublecomplex, ptr %139, i64 %141
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %142, i32 0, i32 0
  store double %138, ptr %143, align 8, !tbaa !13
  %144 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %145 = load double, ptr %144, align 8, !tbaa !15
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds %struct.doublecomplex, ptr %146, i64 %148
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %149, i32 0, i32 1
  store double %145, ptr %150, align 8, !tbaa !15
  br label %151

151:                                              ; preds = %114
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %19, align 4, !tbaa !9
  br label %110, !llvm.loop !18

154:                                              ; preds = %110
  br label %368

155:                                              ; preds = %104
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 3
  br i1 %158, label %159, label %232

159:                                              ; preds = %155
  %160 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %160, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %228, %159
  %162 = load i32, ptr %19, align 4, !tbaa !9
  %163 = load i32, ptr %10, align 4, !tbaa !9
  %164 = icmp sle i32 %162, %163
  br i1 %164, label %165, label %231

165:                                              ; preds = %161
  %166 = load i32, ptr %22, align 4, !tbaa !9
  %167 = load i32, ptr %19, align 4, !tbaa !9
  %168 = add nsw i32 %166, %167
  %169 = sub nsw i32 %168, 1
  store i32 %169, ptr %11, align 4, !tbaa !9
  %170 = load i32, ptr %19, align 4, !tbaa !9
  %171 = shl i32 %170, 1
  %172 = sub nsw i32 %171, 2
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !11
  %176 = call double @log(double noundef %175) #6
  %177 = fmul double %176, -2.000000e+00
  %178 = call double @sqrt(double noundef %177) #6
  store double %178, ptr %14, align 8, !tbaa !11
  %179 = load i32, ptr %19, align 4, !tbaa !9
  %180 = shl i32 %179, 1
  %181 = sub nsw i32 %180, 1
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %182
  %184 = load double, ptr %183, align 8, !tbaa !11
  %185 = fmul double %184, 0x401921FB54442D18
  store double %185, ptr %15, align 8, !tbaa !11
  %186 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double 0.000000e+00, ptr %186, align 8, !tbaa !13
  %187 = load double, ptr %15, align 8, !tbaa !11
  %188 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double %187, ptr %188, align 8, !tbaa !15
  %189 = call { double, double } @Cd(ptr noundef %18)
  %190 = extractvalue { double, double } %189, 0
  %191 = extractvalue { double, double } %189, 1
  %192 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  store double %190, ptr %192, align 8
  store double %191, ptr %193, align 8
  %194 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %195 = load double, ptr %194, align 8
  %196 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %197 = load double, ptr %196, align 8
  %198 = call { double, double } @cexp(double noundef %195, double noundef %197) #6
  %199 = extractvalue { double, double } %198, 0
  %200 = extractvalue { double, double } %198, 1
  %201 = call ptr @_pCd(ptr noundef %17)
  %202 = getelementptr inbounds { double, double }, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds { double, double }, ptr %201, i32 0, i32 1
  store double %199, ptr %202, align 8
  store double %200, ptr %203, align 8
  %204 = load double, ptr %14, align 8, !tbaa !11
  %205 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %206 = load double, ptr %205, align 8, !tbaa !13
  %207 = fmul double %204, %206
  %208 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %207, ptr %208, align 8, !tbaa !13
  %209 = load double, ptr %14, align 8, !tbaa !11
  %210 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %211 = load double, ptr %210, align 8, !tbaa !15
  %212 = fmul double %209, %211
  %213 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %212, ptr %213, align 8, !tbaa !15
  %214 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %215 = load double, ptr %214, align 8, !tbaa !13
  %216 = load ptr, ptr %8, align 8, !tbaa !5
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds %struct.doublecomplex, ptr %216, i64 %218
  %220 = getelementptr inbounds %struct.doublecomplex, ptr %219, i32 0, i32 0
  store double %215, ptr %220, align 8, !tbaa !13
  %221 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %222 = load double, ptr %221, align 8, !tbaa !15
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds %struct.doublecomplex, ptr %223, i64 %225
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %226, i32 0, i32 1
  store double %222, ptr %227, align 8, !tbaa !15
  br label %228

228:                                              ; preds = %165
  %229 = load i32, ptr %19, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %19, align 4, !tbaa !9
  br label %161, !llvm.loop !19

231:                                              ; preds = %161
  br label %367

232:                                              ; preds = %155
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = load i32, ptr %233, align 4, !tbaa !9
  %235 = icmp eq i32 %234, 4
  br i1 %235, label %236, label %307

236:                                              ; preds = %232
  %237 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %237, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %238

238:                                              ; preds = %303, %236
  %239 = load i32, ptr %19, align 4, !tbaa !9
  %240 = load i32, ptr %10, align 4, !tbaa !9
  %241 = icmp sle i32 %239, %240
  br i1 %241, label %242, label %306

242:                                              ; preds = %238
  %243 = load i32, ptr %22, align 4, !tbaa !9
  %244 = load i32, ptr %19, align 4, !tbaa !9
  %245 = add nsw i32 %243, %244
  %246 = sub nsw i32 %245, 1
  store i32 %246, ptr %11, align 4, !tbaa !9
  %247 = load i32, ptr %19, align 4, !tbaa !9
  %248 = shl i32 %247, 1
  %249 = sub nsw i32 %248, 2
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !11
  %253 = call double @sqrt(double noundef %252) #6
  store double %253, ptr %14, align 8, !tbaa !11
  %254 = load i32, ptr %19, align 4, !tbaa !9
  %255 = shl i32 %254, 1
  %256 = sub nsw i32 %255, 1
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %257
  %259 = load double, ptr %258, align 8, !tbaa !11
  %260 = fmul double %259, 0x401921FB54442D18
  store double %260, ptr %15, align 8, !tbaa !11
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double 0.000000e+00, ptr %261, align 8, !tbaa !13
  %262 = load double, ptr %15, align 8, !tbaa !11
  %263 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double %262, ptr %263, align 8, !tbaa !15
  %264 = call { double, double } @Cd(ptr noundef %18)
  %265 = extractvalue { double, double } %264, 0
  %266 = extractvalue { double, double } %264, 1
  %267 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %268 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  store double %265, ptr %267, align 8
  store double %266, ptr %268, align 8
  %269 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %270 = load double, ptr %269, align 8
  %271 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %272 = load double, ptr %271, align 8
  %273 = call { double, double } @cexp(double noundef %270, double noundef %272) #6
  %274 = extractvalue { double, double } %273, 0
  %275 = extractvalue { double, double } %273, 1
  %276 = call ptr @_pCd(ptr noundef %17)
  %277 = getelementptr inbounds { double, double }, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds { double, double }, ptr %276, i32 0, i32 1
  store double %274, ptr %277, align 8
  store double %275, ptr %278, align 8
  %279 = load double, ptr %14, align 8, !tbaa !11
  %280 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %281 = load double, ptr %280, align 8, !tbaa !13
  %282 = fmul double %279, %281
  %283 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %282, ptr %283, align 8, !tbaa !13
  %284 = load double, ptr %14, align 8, !tbaa !11
  %285 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %286 = load double, ptr %285, align 8, !tbaa !15
  %287 = fmul double %284, %286
  %288 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %287, ptr %288, align 8, !tbaa !15
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %290 = load double, ptr %289, align 8, !tbaa !13
  %291 = load ptr, ptr %8, align 8, !tbaa !5
  %292 = load i32, ptr %11, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds %struct.doublecomplex, ptr %291, i64 %293
  %295 = getelementptr inbounds %struct.doublecomplex, ptr %294, i32 0, i32 0
  store double %290, ptr %295, align 8, !tbaa !13
  %296 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %297 = load double, ptr %296, align 8, !tbaa !15
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = load i32, ptr %11, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds %struct.doublecomplex, ptr %298, i64 %300
  %302 = getelementptr inbounds %struct.doublecomplex, ptr %301, i32 0, i32 1
  store double %297, ptr %302, align 8, !tbaa !15
  br label %303

303:                                              ; preds = %242
  %304 = load i32, ptr %19, align 4, !tbaa !9
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %19, align 4, !tbaa !9
  br label %238, !llvm.loop !20

306:                                              ; preds = %238
  br label %366

307:                                              ; preds = %232
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = load i32, ptr %308, align 4, !tbaa !9
  %310 = icmp eq i32 %309, 5
  br i1 %310, label %311, label %365

311:                                              ; preds = %307
  %312 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %312, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %313

313:                                              ; preds = %361, %311
  %314 = load i32, ptr %19, align 4, !tbaa !9
  %315 = load i32, ptr %10, align 4, !tbaa !9
  %316 = icmp sle i32 %314, %315
  br i1 %316, label %317, label %364

317:                                              ; preds = %313
  %318 = load i32, ptr %22, align 4, !tbaa !9
  %319 = load i32, ptr %19, align 4, !tbaa !9
  %320 = add nsw i32 %318, %319
  %321 = sub nsw i32 %320, 1
  store i32 %321, ptr %11, align 4, !tbaa !9
  %322 = load i32, ptr %19, align 4, !tbaa !9
  %323 = shl i32 %322, 1
  %324 = sub nsw i32 %323, 1
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [128 x double], ptr %20, i64 0, i64 %325
  %327 = load double, ptr %326, align 8, !tbaa !11
  %328 = fmul double %327, 0x401921FB54442D18
  store double %328, ptr %14, align 8, !tbaa !11
  %329 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double 0.000000e+00, ptr %329, align 8, !tbaa !13
  %330 = load double, ptr %14, align 8, !tbaa !11
  %331 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %330, ptr %331, align 8, !tbaa !15
  %332 = call { double, double } @Cd(ptr noundef %17)
  %333 = extractvalue { double, double } %332, 0
  %334 = extractvalue { double, double } %332, 1
  %335 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %336 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  store double %333, ptr %335, align 8
  store double %334, ptr %336, align 8
  %337 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %338 = load double, ptr %337, align 8
  %339 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %340 = load double, ptr %339, align 8
  %341 = call { double, double } @cexp(double noundef %338, double noundef %340) #6
  %342 = extractvalue { double, double } %341, 0
  %343 = extractvalue { double, double } %341, 1
  %344 = call ptr @_pCd(ptr noundef %16)
  %345 = getelementptr inbounds { double, double }, ptr %344, i32 0, i32 0
  %346 = getelementptr inbounds { double, double }, ptr %344, i32 0, i32 1
  store double %342, ptr %345, align 8
  store double %343, ptr %346, align 8
  %347 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %348 = load double, ptr %347, align 8, !tbaa !13
  %349 = load ptr, ptr %8, align 8, !tbaa !5
  %350 = load i32, ptr %11, align 4, !tbaa !9
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds %struct.doublecomplex, ptr %349, i64 %351
  %353 = getelementptr inbounds %struct.doublecomplex, ptr %352, i32 0, i32 0
  store double %348, ptr %353, align 8, !tbaa !13
  %354 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %355 = load double, ptr %354, align 8, !tbaa !15
  %356 = load ptr, ptr %8, align 8, !tbaa !5
  %357 = load i32, ptr %11, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds %struct.doublecomplex, ptr %356, i64 %358
  %360 = getelementptr inbounds %struct.doublecomplex, ptr %359, i32 0, i32 1
  store double %355, ptr %360, align 8, !tbaa !15
  br label %361

361:                                              ; preds = %317
  %362 = load i32, ptr %19, align 4, !tbaa !9
  %363 = add nsw i32 %362, 1
  store i32 %363, ptr %19, align 4, !tbaa !9
  br label %313, !llvm.loop !21

364:                                              ; preds = %313
  br label %365

365:                                              ; preds = %364, %307
  br label %366

366:                                              ; preds = %365, %306
  br label %367

367:                                              ; preds = %366, %231
  br label %368

368:                                              ; preds = %367, %154
  br label %369

369:                                              ; preds = %368, %103
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr %22, align 4, !tbaa !9
  %372 = add nsw i32 %371, 64
  store i32 %372, ptr %22, align 4, !tbaa !9
  br label %32, !llvm.loop !22

373:                                              ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

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

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

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

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

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

; Function Attrs: nounwind
declare { double, double } @cexp(double noundef, double noundef) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) #5

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

; Function Attrs: nounwind uwtable
define dso_local void @zlarnv_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = alloca %struct.doublecomplex, align 16
  %7 = alloca %struct.doublecomplex, align 16
  %8 = alloca %struct.doublecomplex, align 8
  %9 = alloca [128 x double], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %9) #7
  %10 = getelementptr inbounds i8, ptr %3, i64 -16
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %.not113 = icmp slt i32 %11, 1
  br i1 %.not113, label %._crit_edge, label %.lr.ph116

.lr.ph116:                                        ; preds = %4
  %12 = getelementptr inbounds i8, ptr %7, i64 8
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  %14 = zext nneg i32 %11 to i64
  %invariant.gep218 = getelementptr i8, ptr %10, i64 -16
  %invariant.gep = getelementptr i8, ptr %10, i64 -16
  %invariant.gep221 = getelementptr i8, ptr %10, i64 -16
  br label %15

15:                                               ; preds = %.lr.ph116, %.loopexit
  %indvars.iv137 = phi i64 [ 1, %.lr.ph116 ], [ %indvars.iv.next138, %.loopexit ]
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = trunc nuw nsw i64 %indvars.iv137 to i32
  %18 = sub nsw i32 %16, %17
  %19 = add nsw i32 %18, 1
  %20 = icmp sgt i32 %18, 62
  %21 = select i1 %20, i32 64, i32 %19
  %22 = shl i32 %21, 1
  store i32 %22, ptr %5, align 4, !tbaa !5
  call void @dlaruv_(ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %9) #7
  %23 = load i32, ptr %0, align 4, !tbaa !5
  switch i32 %23, label %.loopexit [
    i32 1, label %24
    i32 2, label %50
    i32 3, label %81
    i32 4, label %109
    i32 5, label %135
  ]

24:                                               ; preds = %15
  store i32 %21, ptr %5, align 4, !tbaa !5
  %.not91108 = icmp slt i32 %21, 1
  br i1 %.not91108, label %.loopexit, label %.lr.ph110.preheader

.lr.ph110.preheader:                              ; preds = %24
  %25 = add nuw i32 %21, 1
  %wide.trip.count135 = zext i32 %25 to i64
  %invariant.gep154 = getelementptr %struct.doublecomplex, ptr %10, i64 %indvars.iv137
  %26 = zext nneg i32 %21 to i64
  %min.iters.check = icmp ugt i32 %21, 5
  %27 = add nsw i64 %wide.trip.count135, -2
  %.not186 = icmp ult i64 %27, 1073741824
  %or.cond = select i1 %min.iters.check, i1 %.not186, i1 false
  br i1 %or.cond, label %vector.ph, label %.lr.ph110.preheader188

vector.ph:                                        ; preds = %.lr.ph110.preheader
  %n.vec = and i64 %26, 2147483646
  %ind.end = or i64 %26, 1
  %invariant.gep212 = getelementptr i8, ptr %invariant.gep154, i64 -16
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %28 = shl i64 %offset.idx, 33
  %29 = add nsw i64 %28, -8589934592
  %30 = ashr exact i64 %29, 32
  %31 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %30
  %wide.vec = load <4 x double>, ptr %31, align 16, !tbaa !9
  %gep213 = getelementptr %struct.doublecomplex, ptr %invariant.gep212, i64 %offset.idx
  store <4 x double> %wide.vec, ptr %gep213, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 2
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %26
  %33 = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 2, i32 3>
  br i1 %cmp.n, label %.loopexit.sink.split, label %.lr.ph110.preheader188

.lr.ph110.preheader188:                           ; preds = %middle.block, %.lr.ph110.preheader
  %indvars.iv132.ph = phi i64 [ 1, %.lr.ph110.preheader ], [ %ind.end, %middle.block ]
  %34 = zext nneg i32 %21 to i64
  %35 = and i32 %21, 1
  %lcmp.mod197.not = icmp eq i32 %35, 0
  br i1 %lcmp.mod197.not, label %.lr.ph110.prol.loopexit, label %.lr.ph110.prol

.lr.ph110.prol:                                   ; preds = %.lr.ph110.preheader188
  %36 = shl i64 %indvars.iv132.ph, 33
  %sext142.prol = add nsw i64 %36, -8589934592
  %37 = ashr exact i64 %sext142.prol, 32
  %38 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %37
  %39 = load <2 x double>, ptr %38, align 16, !tbaa !9
  %gep155.prol = getelementptr %struct.doublecomplex, ptr %invariant.gep154, i64 %indvars.iv132.ph
  %40 = getelementptr i8, ptr %gep155.prol, i64 -16
  store <2 x double> %39, ptr %40, align 8, !tbaa !9
  %indvars.iv.next133.prol = add nuw nsw i64 %indvars.iv132.ph, 1
  br label %.lr.ph110.prol.loopexit

.lr.ph110.prol.loopexit:                          ; preds = %.lr.ph110.prol, %.lr.ph110.preheader188
  %.lcssa195.unr = phi <2 x double> [ poison, %.lr.ph110.preheader188 ], [ %39, %.lr.ph110.prol ]
  %indvars.iv132.unr = phi i64 [ %indvars.iv132.ph, %.lr.ph110.preheader188 ], [ %indvars.iv.next133.prol, %.lr.ph110.prol ]
  %41 = icmp eq i64 %indvars.iv132.ph, %34
  br i1 %41, label %.loopexit.sink.split, label %.lr.ph110.preheader188.new

.lr.ph110.preheader188.new:                       ; preds = %.lr.ph110.prol.loopexit
  %invariant.gep214 = getelementptr i8, ptr %invariant.gep154, i64 -16
  %invariant.gep216 = getelementptr i8, ptr %invariant.gep154, i64 -16
  br label %.lr.ph110

.lr.ph110:                                        ; preds = %.lr.ph110, %.lr.ph110.preheader188.new
  %indvars.iv132 = phi i64 [ %indvars.iv132.unr, %.lr.ph110.preheader188.new ], [ %indvars.iv.next133.1, %.lr.ph110 ]
  %42 = shl i64 %indvars.iv132, 33
  %sext142 = add i64 %42, -8589934592
  %43 = ashr exact i64 %sext142, 32
  %44 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %43
  %45 = load <2 x double>, ptr %44, align 16, !tbaa !9
  %gep215 = getelementptr %struct.doublecomplex, ptr %invariant.gep214, i64 %indvars.iv132
  store <2 x double> %45, ptr %gep215, align 8, !tbaa !9
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %46 = shl i64 %indvars.iv.next133, 33
  %sext142.1 = add i64 %46, -8589934592
  %47 = ashr exact i64 %sext142.1, 32
  %48 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %47
  %49 = load <2 x double>, ptr %48, align 16, !tbaa !9
  %gep217 = getelementptr %struct.doublecomplex, ptr %invariant.gep216, i64 %indvars.iv.next133
  store <2 x double> %49, ptr %gep217, align 8, !tbaa !9
  %indvars.iv.next133.1 = add nuw nsw i64 %indvars.iv132, 2
  %exitcond136.not.1 = icmp eq i64 %indvars.iv.next133.1, %wide.trip.count135
  br i1 %exitcond136.not.1, label %.loopexit.sink.split, label %.lr.ph110, !llvm.loop !15

50:                                               ; preds = %15
  store i32 %21, ptr %5, align 4, !tbaa !5
  %.not90104 = icmp slt i32 %21, 1
  br i1 %.not90104, label %.loopexit, label %.lr.ph106.preheader

.lr.ph106.preheader:                              ; preds = %50
  %51 = add nuw i32 %21, 1
  %wide.trip.count = zext i32 %51 to i64
  %invariant.gep152 = getelementptr %struct.doublecomplex, ptr %10, i64 %indvars.iv137
  %52 = zext nneg i32 %21 to i64
  %min.iters.check168 = icmp ugt i32 %21, 3
  %53 = add nsw i64 %wide.trip.count, -2
  %.not184 = icmp ult i64 %53, 1073741824
  %or.cond187 = select i1 %min.iters.check168, i1 %.not184, i1 false
  br i1 %or.cond187, label %vector.ph169, label %.lr.ph106.preheader189

vector.ph169:                                     ; preds = %.lr.ph106.preheader
  %n.vec171 = and i64 %52, 2147483646
  %ind.end172 = or i64 %52, 1
  %invariant.gep206 = getelementptr i8, ptr %invariant.gep152, i64 -16
  br label %vector.body174

vector.body174:                                   ; preds = %vector.body174, %vector.ph169
  %index175 = phi i64 [ 0, %vector.ph169 ], [ %index.next181, %vector.body174 ]
  %offset.idx176 = or disjoint i64 %index175, 1
  %54 = shl i64 %offset.idx176, 33
  %55 = add nsw i64 %54, -8589934592
  %56 = ashr exact i64 %55, 32
  %57 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %56
  %wide.vec177 = load <4 x double>, ptr %57, align 16, !tbaa !9
  %strided.vec178 = shufflevector <4 x double> %wide.vec177, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec179 = shufflevector <4 x double> %wide.vec177, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %58 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %strided.vec178, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %59 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %strided.vec179, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %gep207 = getelementptr %struct.doublecomplex, ptr %invariant.gep206, i64 %offset.idx176
  %interleaved.vec180 = shufflevector <2 x double> %58, <2 x double> %59, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec180, ptr %gep207, align 8, !tbaa !9
  %index.next181 = add nuw i64 %index175, 2
  %60 = icmp eq i64 %index.next181, %n.vec171
  br i1 %60, label %middle.block166, label %vector.body174, !llvm.loop !16

middle.block166:                                  ; preds = %vector.body174
  %cmp.n182 = icmp eq i64 %n.vec171, %52
  %61 = shufflevector <2 x double> %58, <2 x double> %59, <2 x i32> <i32 1, i32 3>
  br i1 %cmp.n182, label %.loopexit.sink.split, label %.lr.ph106.preheader189

.lr.ph106.preheader189:                           ; preds = %middle.block166, %.lr.ph106.preheader
  %indvars.iv129.ph = phi i64 [ 1, %.lr.ph106.preheader ], [ %ind.end172, %middle.block166 ]
  %62 = zext nneg i32 %21 to i64
  %63 = and i32 %21, 1
  %lcmp.mod.not = icmp eq i32 %63, 0
  br i1 %lcmp.mod.not, label %.lr.ph106.prol.loopexit, label %.lr.ph106.prol

.lr.ph106.prol:                                   ; preds = %.lr.ph106.preheader189
  %64 = shl i64 %indvars.iv129.ph, 33
  %sext141.prol = add nsw i64 %64, -8589934592
  %65 = ashr exact i64 %sext141.prol, 32
  %66 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %65
  %67 = load <2 x double>, ptr %66, align 16, !tbaa !9
  %68 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %67, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %gep153.prol = getelementptr %struct.doublecomplex, ptr %invariant.gep152, i64 %indvars.iv129.ph
  %69 = getelementptr i8, ptr %gep153.prol, i64 -16
  store <2 x double> %68, ptr %69, align 8, !tbaa !9
  %indvars.iv.next130.prol = add nuw nsw i64 %indvars.iv129.ph, 1
  br label %.lr.ph106.prol.loopexit

.lr.ph106.prol.loopexit:                          ; preds = %.lr.ph106.prol, %.lr.ph106.preheader189
  %.lcssa194.unr = phi <2 x double> [ poison, %.lr.ph106.preheader189 ], [ %68, %.lr.ph106.prol ]
  %indvars.iv129.unr = phi i64 [ %indvars.iv129.ph, %.lr.ph106.preheader189 ], [ %indvars.iv.next130.prol, %.lr.ph106.prol ]
  %70 = icmp eq i64 %indvars.iv129.ph, %62
  br i1 %70, label %.loopexit.sink.split, label %.lr.ph106.preheader189.new

.lr.ph106.preheader189.new:                       ; preds = %.lr.ph106.prol.loopexit
  %invariant.gep208 = getelementptr i8, ptr %invariant.gep152, i64 -16
  %invariant.gep210 = getelementptr i8, ptr %invariant.gep152, i64 -16
  br label %.lr.ph106

.lr.ph106:                                        ; preds = %.lr.ph106, %.lr.ph106.preheader189.new
  %indvars.iv129 = phi i64 [ %indvars.iv129.unr, %.lr.ph106.preheader189.new ], [ %indvars.iv.next130.1, %.lr.ph106 ]
  %71 = shl i64 %indvars.iv129, 33
  %sext141 = add i64 %71, -8589934592
  %72 = ashr exact i64 %sext141, 32
  %73 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %72
  %74 = load <2 x double>, ptr %73, align 16, !tbaa !9
  %75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %74, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %gep209 = getelementptr %struct.doublecomplex, ptr %invariant.gep208, i64 %indvars.iv129
  store <2 x double> %75, ptr %gep209, align 8, !tbaa !9
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %76 = shl i64 %indvars.iv.next130, 33
  %sext141.1 = add i64 %76, -8589934592
  %77 = ashr exact i64 %sext141.1, 32
  %78 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %77
  %79 = load <2 x double>, ptr %78, align 16, !tbaa !9
  %80 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %79, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %gep211 = getelementptr %struct.doublecomplex, ptr %invariant.gep210, i64 %indvars.iv.next130
  store <2 x double> %80, ptr %gep211, align 8, !tbaa !9
  %indvars.iv.next130.1 = add nuw nsw i64 %indvars.iv129, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next130.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit.sink.split, label %.lr.ph106, !llvm.loop !17

81:                                               ; preds = %15
  store i32 %21, ptr %5, align 4, !tbaa !5
  %.not89101 = icmp slt i32 %21, 1
  br i1 %.not89101, label %.loopexit, label %.lr.ph103.preheader

.lr.ph103.preheader:                              ; preds = %81
  %gep222 = getelementptr %struct.doublecomplex, ptr %invariant.gep221, i64 %indvars.iv137
  br label %.lr.ph103

.lr.ph103:                                        ; preds = %.lr.ph103.preheader, %.lr.ph103
  %indvars.iv126 = phi i64 [ 1, %.lr.ph103.preheader ], [ %indvars.iv.next127, %.lr.ph103 ]
  %82 = shl i64 %indvars.iv126, 33
  %sext140 = add i64 %82, -8589934592
  %83 = ashr exact i64 %sext140, 32
  %84 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %83
  %85 = load double, ptr %84, align 16, !tbaa !9
  %86 = call double @log(double noundef %85) #7
  %87 = fmul double %86, -2.000000e+00
  %88 = call double @sqrt(double noundef %87) #7
  %indvars.iv126.tr = trunc i64 %indvars.iv126 to i32
  %89 = shl i32 %indvars.iv126.tr, 1
  %90 = add i32 %89, -1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = fmul double %93, 0x401921FB54442D18
  store double 0.000000e+00, ptr %8, align 8, !tbaa !18
  store double %94, ptr %13, align 8, !tbaa !20
  %95 = call { double, double } @Cd(ptr noundef nonnull %8)
  %96 = extractvalue { double, double } %95, 0
  %97 = extractvalue { double, double } %95, 1
  %98 = call { double, double } @cexp(double noundef %96, double noundef %97) #7
  %99 = extractvalue { double, double } %98, 0
  %100 = extractvalue { double, double } %98, 1
  %101 = call ptr @_pCd(ptr noundef nonnull %7)
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  store double %99, ptr %101, align 8
  store double %100, ptr %102, align 8
  %103 = load <2 x double>, ptr %7, align 16, !tbaa !9
  %104 = insertelement <2 x double> poison, double %88, i64 0
  %105 = shufflevector <2 x double> %104, <2 x double> poison, <2 x i32> zeroinitializer
  %106 = fmul <2 x double> %105, %103
  store <2 x double> %106, ptr %6, align 16, !tbaa !9
  %gep205 = getelementptr %struct.doublecomplex, ptr %gep222, i64 %indvars.iv126
  store <2 x double> %106, ptr %gep205, align 8, !tbaa !9
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %.not89.not = icmp slt i64 %indvars.iv126, %108
  br i1 %.not89.not, label %.lr.ph103, label %.loopexit, !llvm.loop !21

109:                                              ; preds = %15
  store i32 %21, ptr %5, align 4, !tbaa !5
  %.not8898 = icmp slt i32 %21, 1
  br i1 %.not8898, label %.loopexit, label %.lr.ph100.preheader

.lr.ph100.preheader:                              ; preds = %109
  %gep220 = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %indvars.iv137
  br label %.lr.ph100

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %.lr.ph100
  %indvars.iv123 = phi i64 [ 1, %.lr.ph100.preheader ], [ %indvars.iv.next124, %.lr.ph100 ]
  %110 = shl i64 %indvars.iv123, 33
  %sext = add i64 %110, -8589934592
  %111 = ashr exact i64 %sext, 32
  %112 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %111
  %113 = load double, ptr %112, align 16, !tbaa !9
  %114 = call double @sqrt(double noundef %113) #7
  %indvars.iv123.tr = trunc i64 %indvars.iv123 to i32
  %115 = shl i32 %indvars.iv123.tr, 1
  %116 = add i32 %115, -1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = fmul double %119, 0x401921FB54442D18
  store double 0.000000e+00, ptr %8, align 8, !tbaa !18
  store double %120, ptr %13, align 8, !tbaa !20
  %121 = call { double, double } @Cd(ptr noundef nonnull %8)
  %122 = extractvalue { double, double } %121, 0
  %123 = extractvalue { double, double } %121, 1
  %124 = call { double, double } @cexp(double noundef %122, double noundef %123) #7
  %125 = extractvalue { double, double } %124, 0
  %126 = extractvalue { double, double } %124, 1
  %127 = call ptr @_pCd(ptr noundef nonnull %7)
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  store double %125, ptr %127, align 8
  store double %126, ptr %128, align 8
  %129 = load <2 x double>, ptr %7, align 16, !tbaa !9
  %130 = insertelement <2 x double> poison, double %114, i64 0
  %131 = shufflevector <2 x double> %130, <2 x double> poison, <2 x i32> zeroinitializer
  %132 = fmul <2 x double> %131, %129
  store <2 x double> %132, ptr %6, align 16, !tbaa !9
  %gep = getelementptr %struct.doublecomplex, ptr %gep220, i64 %indvars.iv123
  store <2 x double> %132, ptr %gep, align 8, !tbaa !9
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %133 = load i32, ptr %5, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %.not88.not = icmp slt i64 %indvars.iv123, %134
  br i1 %.not88.not, label %.lr.ph100, label %.loopexit, !llvm.loop !22

135:                                              ; preds = %15
  store i32 %21, ptr %5, align 4, !tbaa !5
  %.not8796 = icmp slt i32 %21, 1
  br i1 %.not8796, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %135
  %gep219 = getelementptr %struct.doublecomplex, ptr %invariant.gep218, i64 %indvars.iv137
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %136 = shl i32 %indvars.iv.tr, 1
  %137 = add i32 %136, -1
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [128 x double], ptr %9, i64 0, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = fmul double %140, 0x401921FB54442D18
  store double 0.000000e+00, ptr %7, align 16, !tbaa !18
  store double %141, ptr %12, align 8, !tbaa !20
  %142 = call { double, double } @Cd(ptr noundef nonnull %7)
  %143 = extractvalue { double, double } %142, 0
  %144 = extractvalue { double, double } %142, 1
  %145 = call { double, double } @cexp(double noundef %143, double noundef %144) #7
  %146 = extractvalue { double, double } %145, 0
  %147 = extractvalue { double, double } %145, 1
  %148 = call ptr @_pCd(ptr noundef nonnull %6)
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  store double %146, ptr %148, align 8
  store double %147, ptr %149, align 8
  %gep202 = getelementptr %struct.doublecomplex, ptr %gep219, i64 %indvars.iv
  %150 = load <2 x double>, ptr %6, align 16, !tbaa !9
  store <2 x double> %150, ptr %gep202, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %.not87.not = icmp slt i64 %indvars.iv, %152
  br i1 %.not87.not, label %.lr.ph, label %.loopexit, !llvm.loop !23

.loopexit.sink.split:                             ; preds = %.lr.ph106.prol.loopexit, %.lr.ph106, %.lr.ph110.prol.loopexit, %.lr.ph110, %middle.block166, %middle.block
  %153 = phi <2 x double> [ %33, %middle.block ], [ %61, %middle.block166 ], [ %.lcssa195.unr, %.lr.ph110.prol.loopexit ], [ %49, %.lr.ph110 ], [ %.lcssa194.unr, %.lr.ph106.prol.loopexit ], [ %80, %.lr.ph106 ]
  store <2 x double> %153, ptr %6, align 16, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph100, %.lr.ph103, %.loopexit.sink.split, %135, %109, %81, %50, %24, %15
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 64
  %.not = icmp ugt i64 %indvars.iv.next138, %14
  br i1 %.not, label %._crit_edge, label %15, !llvm.loop !24

._crit_edge:                                      ; preds = %.loopexit, %4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  ret void
}

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

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

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

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

; Function Attrs: nounwind
declare { double, double } @cexp(double noundef, double noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) local_unnamed_addr #5

; 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 <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #6

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 = { 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 #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !13}
!16 = distinct !{!16, !12, !13, !14}
!17 = distinct !{!17, !12, !13}
!18 = !{!19, !10, i64 0}
!19 = !{!"", !10, i64 0, !10, i64 8}
!20 = !{!19, !10, i64 8}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass