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

; 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 [5 x i8], align 1
@c__2 = external hidden global i64, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @ztgex2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 {
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca double, align 8
  %40 = alloca %struct.doublecomplex, align 8
  %41 = alloca %struct.doublecomplex, align 8
  %42 = alloca %struct.doublecomplex, align 8
  %43 = alloca %struct.doublecomplex, align 8
  %44 = alloca %struct.doublecomplex, align 8
  %45 = alloca i64, align 8
  %46 = alloca i64, align 8
  %47 = alloca [4 x %struct.doublecomplex], align 16
  %48 = alloca [4 x %struct.doublecomplex], align 16
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca double, align 8
  %53 = alloca %struct.doublecomplex, align 8
  %54 = alloca double, align 8
  %55 = alloca double, align 8
  %56 = alloca %struct.doublecomplex, align 8
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca i64, align 8
  %60 = alloca %struct.doublecomplex, align 8
  %61 = alloca [8 x %struct.doublecomplex], align 16
  %62 = alloca double, align 8
  %63 = alloca i64, align 8
  %64 = alloca double, align 8
  %65 = alloca double, align 8
  %66 = alloca i32, align 4
  store ptr %0, ptr %15, align 8, !tbaa !5
  store ptr %1, ptr %16, align 8, !tbaa !5
  store ptr %2, ptr %17, align 8, !tbaa !5
  store ptr %3, ptr %18, align 8, !tbaa !5
  store ptr %4, ptr %19, align 8, !tbaa !5
  store ptr %5, ptr %20, align 8, !tbaa !5
  store ptr %6, ptr %21, align 8, !tbaa !5
  store ptr %7, ptr %22, align 8, !tbaa !5
  store ptr %8, ptr %23, align 8, !tbaa !5
  store ptr %9, ptr %24, align 8, !tbaa !5
  store ptr %10, ptr %25, align 8, !tbaa !5
  store ptr %11, ptr %26, align 8, !tbaa !5
  store ptr %12, ptr %27, align 8, !tbaa !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 8, 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 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 16, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %61) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #5
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  store i64 %68, ptr %28, align 8, !tbaa !9
  %69 = load i64, ptr %28, align 8, !tbaa !9
  %70 = add nsw i64 1, %69
  store i64 %70, ptr %29, align 8, !tbaa !9
  %71 = load i64, ptr %29, align 8, !tbaa !9
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  %73 = sub i64 0, %71
  %74 = getelementptr inbounds %struct.doublecomplex, ptr %72, i64 %73
  store ptr %74, ptr %18, align 8, !tbaa !5
  %75 = load ptr, ptr %21, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  store i64 %76, ptr %30, align 8, !tbaa !9
  %77 = load i64, ptr %30, align 8, !tbaa !9
  %78 = add nsw i64 1, %77
  store i64 %78, ptr %31, align 8, !tbaa !9
  %79 = load i64, ptr %31, align 8, !tbaa !9
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = sub i64 0, %79
  %82 = getelementptr inbounds %struct.doublecomplex, ptr %80, i64 %81
  store ptr %82, ptr %20, align 8, !tbaa !5
  %83 = load ptr, ptr %23, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  store i64 %84, ptr %32, align 8, !tbaa !9
  %85 = load i64, ptr %32, align 8, !tbaa !9
  %86 = add nsw i64 1, %85
  store i64 %86, ptr %33, align 8, !tbaa !9
  %87 = load i64, ptr %33, align 8, !tbaa !9
  %88 = load ptr, ptr %22, align 8, !tbaa !5
  %89 = sub i64 0, %87
  %90 = getelementptr inbounds %struct.doublecomplex, ptr %88, i64 %89
  store ptr %90, ptr %22, align 8, !tbaa !5
  %91 = load ptr, ptr %25, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  store i64 %92, ptr %34, align 8, !tbaa !9
  %93 = load i64, ptr %34, align 8, !tbaa !9
  %94 = add nsw i64 1, %93
  store i64 %94, ptr %35, align 8, !tbaa !9
  %95 = load i64, ptr %35, align 8, !tbaa !9
  %96 = load ptr, ptr %24, align 8, !tbaa !5
  %97 = sub i64 0, %95
  %98 = getelementptr inbounds %struct.doublecomplex, ptr %96, i64 %97
  store ptr %98, ptr %24, align 8, !tbaa !5
  %99 = load ptr, ptr %27, align 8, !tbaa !5
  store i64 0, ptr %99, align 8, !tbaa !9
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = icmp sle i64 %101, 1
  br i1 %102, label %103, label %104

103:                                              ; preds = %13
  store i32 0, ptr %14, align 4
  store i32 1, ptr %66, align 4
  br label %820

104:                                              ; preds = %13
  store i64 2, ptr %46, align 8, !tbaa !9
  store i64 0, ptr %59, align 8, !tbaa !9
  store i64 0, ptr %63, align 8, !tbaa !9
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = load ptr, ptr %26, align 8, !tbaa !5
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = load ptr, ptr %26, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = load i64, ptr %28, align 8, !tbaa !9
  %111 = mul nsw i64 %109, %110
  %112 = add nsw i64 %107, %111
  %113 = getelementptr inbounds %struct.doublecomplex, ptr %105, i64 %112
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %116 = call i32 @zlacpy_(ptr noundef @.str, ptr noundef %46, ptr noundef %46, ptr noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef @c__2)
  %117 = load ptr, ptr %20, align 8, !tbaa !5
  %118 = load ptr, ptr %26, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %26, align 8, !tbaa !5
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = load i64, ptr %30, align 8, !tbaa !9
  %123 = mul nsw i64 %121, %122
  %124 = add nsw i64 %119, %123
  %125 = getelementptr inbounds %struct.doublecomplex, ptr %117, i64 %124
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %128 = call i32 @zlacpy_(ptr noundef @.str, ptr noundef %46, ptr noundef %46, ptr noundef %125, ptr noundef %126, ptr noundef %127, ptr noundef @c__2)
  %129 = call double @dlamch_(ptr noundef @.str.1)
  store double %129, ptr %57, align 8, !tbaa !11
  %130 = call double @dlamch_(ptr noundef @.str.2)
  %131 = load double, ptr %57, align 8, !tbaa !11
  %132 = fdiv double %130, %131
  store double %132, ptr %65, align 8, !tbaa !11
  store double 0.000000e+00, ptr %62, align 8, !tbaa !11
  store double 1.000000e+00, ptr %58, align 8, !tbaa !11
  %133 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %134 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 0
  %135 = call i32 @zlacpy_(ptr noundef @.str, ptr noundef %46, ptr noundef %46, ptr noundef %133, ptr noundef @c__2, ptr noundef %134, ptr noundef %46)
  %136 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %137 = load i64, ptr %46, align 8, !tbaa !9
  %138 = load i64, ptr %46, align 8, !tbaa !9
  %139 = mul nsw i64 %137, %138
  %140 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %139
  %141 = call i32 @zlacpy_(ptr noundef @.str, ptr noundef %46, ptr noundef %46, ptr noundef %136, ptr noundef @c__2, ptr noundef %140, ptr noundef %46)
  %142 = load i64, ptr %46, align 8, !tbaa !9
  %143 = shl i64 %142, 1
  %144 = load i64, ptr %46, align 8, !tbaa !9
  %145 = mul nsw i64 %143, %144
  store i64 %145, ptr %36, align 8, !tbaa !9
  %146 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 0
  %147 = call i32 @zlassq_(ptr noundef %36, ptr noundef %146, ptr noundef @c__1, ptr noundef %62, ptr noundef %58)
  %148 = load double, ptr %62, align 8, !tbaa !11
  %149 = load double, ptr %58, align 8, !tbaa !11
  %150 = call double @sqrt(double noundef %149) #5
  %151 = fmul double %148, %150
  store double %151, ptr %50, align 8, !tbaa !11
  %152 = load double, ptr %57, align 8, !tbaa !11
  %153 = fmul double %152, 1.000000e+01
  %154 = load double, ptr %50, align 8, !tbaa !11
  %155 = fmul double %153, %154
  store double %155, ptr %39, align 8, !tbaa !11
  %156 = load double, ptr %39, align 8, !tbaa !11
  %157 = load double, ptr %65, align 8, !tbaa !11
  %158 = fcmp oge double %156, %157
  br i1 %158, label %159, label %161

159:                                              ; preds = %104
  %160 = load double, ptr %39, align 8, !tbaa !11
  br label %163

161:                                              ; preds = %104
  %162 = load double, ptr %65, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %161, %159
  %164 = phi double [ %160, %159 ], [ %162, %161 ]
  store double %164, ptr %64, align 8, !tbaa !11
  %165 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %166 = getelementptr inbounds %struct.doublecomplex, ptr %165, i32 0, i32 0
  %167 = load double, ptr %166, align 16, !tbaa !13
  %168 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %169 = getelementptr inbounds %struct.doublecomplex, ptr %168, i32 0, i32 0
  %170 = load double, ptr %169, align 16, !tbaa !13
  %171 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %171, i32 0, i32 1
  %173 = load double, ptr %172, align 8, !tbaa !15
  %174 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %174, i32 0, i32 1
  %176 = load double, ptr %175, align 8, !tbaa !15
  %177 = fmul double %173, %176
  %178 = fneg double %177
  %179 = call double @llvm.fmuladd.f64(double %167, double %170, double %178)
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 0
  store double %179, ptr %180, align 8, !tbaa !13
  %181 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %182 = getelementptr inbounds %struct.doublecomplex, ptr %181, i32 0, i32 0
  %183 = load double, ptr %182, align 16, !tbaa !13
  %184 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %185 = getelementptr inbounds %struct.doublecomplex, ptr %184, i32 0, i32 1
  %186 = load double, ptr %185, align 8, !tbaa !15
  %187 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %188 = getelementptr inbounds %struct.doublecomplex, ptr %187, i32 0, i32 1
  %189 = load double, ptr %188, align 8, !tbaa !15
  %190 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %191 = getelementptr inbounds %struct.doublecomplex, ptr %190, i32 0, i32 0
  %192 = load double, ptr %191, align 16, !tbaa !13
  %193 = fmul double %189, %192
  %194 = call double @llvm.fmuladd.f64(double %183, double %186, double %193)
  %195 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 1
  store double %194, ptr %195, align 8, !tbaa !15
  %196 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %197 = getelementptr inbounds %struct.doublecomplex, ptr %196, i32 0, i32 0
  %198 = load double, ptr %197, align 16, !tbaa !13
  %199 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %200 = getelementptr inbounds %struct.doublecomplex, ptr %199, i32 0, i32 0
  %201 = load double, ptr %200, align 16, !tbaa !13
  %202 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %203 = getelementptr inbounds %struct.doublecomplex, ptr %202, i32 0, i32 1
  %204 = load double, ptr %203, align 8, !tbaa !15
  %205 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %205, i32 0, i32 1
  %207 = load double, ptr %206, align 8, !tbaa !15
  %208 = fmul double %204, %207
  %209 = fneg double %208
  %210 = call double @llvm.fmuladd.f64(double %198, double %201, double %209)
  %211 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 0
  store double %210, ptr %211, align 8, !tbaa !13
  %212 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %213 = getelementptr inbounds %struct.doublecomplex, ptr %212, i32 0, i32 0
  %214 = load double, ptr %213, align 16, !tbaa !13
  %215 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %216 = getelementptr inbounds %struct.doublecomplex, ptr %215, i32 0, i32 1
  %217 = load double, ptr %216, align 8, !tbaa !15
  %218 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %219 = getelementptr inbounds %struct.doublecomplex, ptr %218, i32 0, i32 1
  %220 = load double, ptr %219, align 8, !tbaa !15
  %221 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %222 = getelementptr inbounds %struct.doublecomplex, ptr %221, i32 0, i32 0
  %223 = load double, ptr %222, align 16, !tbaa !13
  %224 = fmul double %220, %223
  %225 = call double @llvm.fmuladd.f64(double %214, double %217, double %224)
  %226 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 1
  store double %225, ptr %226, align 8, !tbaa !15
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 0
  %228 = load double, ptr %227, align 8, !tbaa !13
  %229 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 0
  %230 = load double, ptr %229, align 8, !tbaa !13
  %231 = fsub double %228, %230
  %232 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %231, ptr %232, align 8, !tbaa !13
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 1
  %234 = load double, ptr %233, align 8, !tbaa !15
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 1
  %236 = load double, ptr %235, align 8, !tbaa !15
  %237 = fsub double %234, %236
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %237, ptr %238, align 8, !tbaa !15
  %239 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  %240 = load double, ptr %239, align 8, !tbaa !13
  %241 = getelementptr inbounds %struct.doublecomplex, ptr %43, i32 0, i32 0
  store double %240, ptr %241, align 8, !tbaa !13
  %242 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  %243 = load double, ptr %242, align 8, !tbaa !15
  %244 = getelementptr inbounds %struct.doublecomplex, ptr %43, i32 0, i32 1
  store double %243, ptr %244, align 8, !tbaa !15
  %245 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %245, i32 0, i32 0
  %247 = load double, ptr %246, align 16, !tbaa !13
  %248 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 2
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %248, i32 0, i32 0
  %250 = load double, ptr %249, align 16, !tbaa !13
  %251 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %251, i32 0, i32 1
  %253 = load double, ptr %252, align 8, !tbaa !15
  %254 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 2
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %254, i32 0, i32 1
  %256 = load double, ptr %255, align 8, !tbaa !15
  %257 = fmul double %253, %256
  %258 = fneg double %257
  %259 = call double @llvm.fmuladd.f64(double %247, double %250, double %258)
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 0
  store double %259, ptr %260, align 8, !tbaa !13
  %261 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %262 = getelementptr inbounds %struct.doublecomplex, ptr %261, i32 0, i32 0
  %263 = load double, ptr %262, align 16, !tbaa !13
  %264 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 2
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %264, i32 0, i32 1
  %266 = load double, ptr %265, align 8, !tbaa !15
  %267 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %268 = getelementptr inbounds %struct.doublecomplex, ptr %267, i32 0, i32 1
  %269 = load double, ptr %268, align 8, !tbaa !15
  %270 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 2
  %271 = getelementptr inbounds %struct.doublecomplex, ptr %270, i32 0, i32 0
  %272 = load double, ptr %271, align 16, !tbaa !13
  %273 = fmul double %269, %272
  %274 = call double @llvm.fmuladd.f64(double %263, double %266, double %273)
  %275 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 1
  store double %274, ptr %275, align 8, !tbaa !15
  %276 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %277 = getelementptr inbounds %struct.doublecomplex, ptr %276, i32 0, i32 0
  %278 = load double, ptr %277, align 16, !tbaa !13
  %279 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 2
  %280 = getelementptr inbounds %struct.doublecomplex, ptr %279, i32 0, i32 0
  %281 = load double, ptr %280, align 16, !tbaa !13
  %282 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %283 = getelementptr inbounds %struct.doublecomplex, ptr %282, i32 0, i32 1
  %284 = load double, ptr %283, align 8, !tbaa !15
  %285 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 2
  %286 = getelementptr inbounds %struct.doublecomplex, ptr %285, i32 0, i32 1
  %287 = load double, ptr %286, align 8, !tbaa !15
  %288 = fmul double %284, %287
  %289 = fneg double %288
  %290 = call double @llvm.fmuladd.f64(double %278, double %281, double %289)
  %291 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 0
  store double %290, ptr %291, align 8, !tbaa !13
  %292 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %293 = getelementptr inbounds %struct.doublecomplex, ptr %292, i32 0, i32 0
  %294 = load double, ptr %293, align 16, !tbaa !13
  %295 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 2
  %296 = getelementptr inbounds %struct.doublecomplex, ptr %295, i32 0, i32 1
  %297 = load double, ptr %296, align 8, !tbaa !15
  %298 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %298, i32 0, i32 1
  %300 = load double, ptr %299, align 8, !tbaa !15
  %301 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 2
  %302 = getelementptr inbounds %struct.doublecomplex, ptr %301, i32 0, i32 0
  %303 = load double, ptr %302, align 16, !tbaa !13
  %304 = fmul double %300, %303
  %305 = call double @llvm.fmuladd.f64(double %294, double %297, double %304)
  %306 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 1
  store double %305, ptr %306, align 8, !tbaa !15
  %307 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 0
  %308 = load double, ptr %307, align 8, !tbaa !13
  %309 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 0
  %310 = load double, ptr %309, align 8, !tbaa !13
  %311 = fsub double %308, %310
  %312 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %311, ptr %312, align 8, !tbaa !13
  %313 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 1
  %314 = load double, ptr %313, align 8, !tbaa !15
  %315 = getelementptr inbounds %struct.doublecomplex, ptr %42, i32 0, i32 1
  %316 = load double, ptr %315, align 8, !tbaa !15
  %317 = fsub double %314, %316
  %318 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %317, ptr %318, align 8, !tbaa !15
  %319 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  %320 = load double, ptr %319, align 8, !tbaa !13
  %321 = getelementptr inbounds %struct.doublecomplex, ptr %44, i32 0, i32 0
  store double %320, ptr %321, align 8, !tbaa !13
  %322 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  %323 = load double, ptr %322, align 8, !tbaa !15
  %324 = getelementptr inbounds %struct.doublecomplex, ptr %44, i32 0, i32 1
  store double %323, ptr %324, align 8, !tbaa !15
  %325 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 3
  %326 = call double @z_abs(ptr noundef %325)
  store double %326, ptr %50, align 8, !tbaa !11
  %327 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 3
  %328 = call double @z_abs(ptr noundef %327)
  store double %328, ptr %51, align 8, !tbaa !11
  %329 = call i32 @zlartg_(ptr noundef %44, ptr noundef %43, ptr noundef %52, ptr noundef %56, ptr noundef %60)
  %330 = getelementptr inbounds %struct.doublecomplex, ptr %56, i32 0, i32 0
  %331 = load double, ptr %330, align 8, !tbaa !13
  %332 = fneg double %331
  %333 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %332, ptr %333, align 8, !tbaa !13
  %334 = getelementptr inbounds %struct.doublecomplex, ptr %56, i32 0, i32 1
  %335 = load double, ptr %334, align 8, !tbaa !15
  %336 = fneg double %335
  %337 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %336, ptr %337, align 8, !tbaa !15
  %338 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  %339 = load double, ptr %338, align 8, !tbaa !13
  %340 = getelementptr inbounds %struct.doublecomplex, ptr %56, i32 0, i32 0
  store double %339, ptr %340, align 8, !tbaa !13
  %341 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  %342 = load double, ptr %341, align 8, !tbaa !15
  %343 = getelementptr inbounds %struct.doublecomplex, ptr %56, i32 0, i32 1
  store double %342, ptr %343, align 8, !tbaa !15
  call void @d_cnjg(ptr noundef %40, ptr noundef %56)
  %344 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %345 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 2
  %346 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %344, ptr noundef @c__1, ptr noundef %345, ptr noundef @c__1, ptr noundef %52, ptr noundef %40)
  call void @d_cnjg(ptr noundef %40, ptr noundef %56)
  %347 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %348 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 2
  %349 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %347, ptr noundef @c__1, ptr noundef %348, ptr noundef @c__1, ptr noundef %52, ptr noundef %40)
  %350 = load double, ptr %50, align 8, !tbaa !11
  %351 = load double, ptr %51, align 8, !tbaa !11
  %352 = fcmp oge double %350, %351
  br i1 %352, label %353, label %357

353:                                              ; preds = %163
  %354 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %355 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 1
  %356 = call i32 @zlartg_(ptr noundef %354, ptr noundef %355, ptr noundef %49, ptr noundef %53, ptr noundef %60)
  br label %361

357:                                              ; preds = %163
  %358 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %359 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 1
  %360 = call i32 @zlartg_(ptr noundef %358, ptr noundef %359, ptr noundef %49, ptr noundef %53, ptr noundef %60)
  br label %361

361:                                              ; preds = %357, %353
  %362 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %363 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 1
  %364 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %362, ptr noundef @c__2, ptr noundef %363, ptr noundef @c__2, ptr noundef %49, ptr noundef %53)
  %365 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %366 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 1
  %367 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %365, ptr noundef @c__2, ptr noundef %366, ptr noundef @c__2, ptr noundef %49, ptr noundef %53)
  %368 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 1
  %369 = call double @z_abs(ptr noundef %368)
  %370 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 1
  %371 = call double @z_abs(ptr noundef %370)
  %372 = fadd double %369, %371
  store double %372, ptr %55, align 8, !tbaa !11
  %373 = load double, ptr %55, align 8, !tbaa !11
  %374 = load double, ptr %64, align 8, !tbaa !11
  %375 = fcmp ole double %373, %374
  %376 = zext i1 %375 to i32
  %377 = sext i32 %376 to i64
  store i64 %377, ptr %59, align 8, !tbaa !9
  %378 = load i64, ptr %59, align 8, !tbaa !9
  %379 = icmp ne i64 %378, 0
  br i1 %379, label %381, label %380

380:                                              ; preds = %361
  br label %818

381:                                              ; preds = %361
  %382 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %47, i64 0, i64 0
  %383 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 0
  %384 = call i32 @zlacpy_(ptr noundef @.str, ptr noundef %46, ptr noundef %46, ptr noundef %382, ptr noundef @c__2, ptr noundef %383, ptr noundef %46)
  %385 = getelementptr inbounds [4 x %struct.doublecomplex], ptr %48, i64 0, i64 0
  %386 = load i64, ptr %46, align 8, !tbaa !9
  %387 = load i64, ptr %46, align 8, !tbaa !9
  %388 = mul nsw i64 %386, %387
  %389 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %388
  %390 = call i32 @zlacpy_(ptr noundef @.str, ptr noundef %46, ptr noundef %46, ptr noundef %385, ptr noundef @c__2, ptr noundef %389, ptr noundef %46)
  call void @d_cnjg(ptr noundef %41, ptr noundef %56)
  %391 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 0
  %392 = load double, ptr %391, align 8, !tbaa !13
  %393 = fneg double %392
  %394 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %393, ptr %394, align 8, !tbaa !13
  %395 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 1
  %396 = load double, ptr %395, align 8, !tbaa !15
  %397 = fneg double %396
  %398 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %397, ptr %398, align 8, !tbaa !15
  %399 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 0
  %400 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 2
  %401 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %399, ptr noundef @c__1, ptr noundef %400, ptr noundef @c__1, ptr noundef %52, ptr noundef %40)
  call void @d_cnjg(ptr noundef %41, ptr noundef %56)
  %402 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 0
  %403 = load double, ptr %402, align 8, !tbaa !13
  %404 = fneg double %403
  %405 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %404, ptr %405, align 8, !tbaa !13
  %406 = getelementptr inbounds %struct.doublecomplex, ptr %41, i32 0, i32 1
  %407 = load double, ptr %406, align 8, !tbaa !15
  %408 = fneg double %407
  %409 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %408, ptr %409, align 8, !tbaa !15
  %410 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 4
  %411 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 6
  %412 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %410, ptr noundef @c__1, ptr noundef %411, ptr noundef @c__1, ptr noundef %52, ptr noundef %40)
  %413 = getelementptr inbounds %struct.doublecomplex, ptr %53, i32 0, i32 0
  %414 = load double, ptr %413, align 8, !tbaa !13
  %415 = fneg double %414
  %416 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %415, ptr %416, align 8, !tbaa !13
  %417 = getelementptr inbounds %struct.doublecomplex, ptr %53, i32 0, i32 1
  %418 = load double, ptr %417, align 8, !tbaa !15
  %419 = fneg double %418
  %420 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %419, ptr %420, align 8, !tbaa !15
  %421 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 0
  %422 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 1
  %423 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %421, ptr noundef @c__2, ptr noundef %422, ptr noundef @c__2, ptr noundef %49, ptr noundef %40)
  %424 = getelementptr inbounds %struct.doublecomplex, ptr %53, i32 0, i32 0
  %425 = load double, ptr %424, align 8, !tbaa !13
  %426 = fneg double %425
  %427 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %426, ptr %427, align 8, !tbaa !13
  %428 = getelementptr inbounds %struct.doublecomplex, ptr %53, i32 0, i32 1
  %429 = load double, ptr %428, align 8, !tbaa !15
  %430 = fneg double %429
  %431 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %430, ptr %431, align 8, !tbaa !15
  %432 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 4
  %433 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 5
  %434 = call i32 @zrot_(ptr noundef @c__2, ptr noundef %432, ptr noundef @c__2, ptr noundef %433, ptr noundef @c__2, ptr noundef %49, ptr noundef %40)
  store i64 1, ptr %45, align 8, !tbaa !9
  br label %435

435:                                              ; preds = %625, %381
  %436 = load i64, ptr %45, align 8, !tbaa !9
  %437 = icmp sle i64 %436, 2
  br i1 %437, label %438, label %628

438:                                              ; preds = %435
  %439 = load i64, ptr %45, align 8, !tbaa !9
  %440 = sub nsw i64 %439, 1
  store i64 %440, ptr %36, align 8, !tbaa !9
  %441 = load i64, ptr %45, align 8, !tbaa !9
  %442 = sub nsw i64 %441, 1
  store i64 %442, ptr %37, align 8, !tbaa !9
  %443 = load ptr, ptr %26, align 8, !tbaa !5
  %444 = load i64, ptr %443, align 8, !tbaa !9
  %445 = load i64, ptr %45, align 8, !tbaa !9
  %446 = add nsw i64 %444, %445
  %447 = sub nsw i64 %446, 1
  %448 = load ptr, ptr %26, align 8, !tbaa !5
  %449 = load i64, ptr %448, align 8, !tbaa !9
  %450 = load i64, ptr %28, align 8, !tbaa !9
  %451 = mul nsw i64 %449, %450
  %452 = add nsw i64 %447, %451
  store i64 %452, ptr %38, align 8, !tbaa !9
  %453 = load i64, ptr %37, align 8, !tbaa !9
  %454 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %453
  %455 = getelementptr inbounds %struct.doublecomplex, ptr %454, i32 0, i32 0
  %456 = load double, ptr %455, align 16, !tbaa !13
  %457 = load ptr, ptr %18, align 8, !tbaa !5
  %458 = load i64, ptr %38, align 8, !tbaa !9
  %459 = getelementptr inbounds %struct.doublecomplex, ptr %457, i64 %458
  %460 = getelementptr inbounds %struct.doublecomplex, ptr %459, i32 0, i32 0
  %461 = load double, ptr %460, align 8, !tbaa !13
  %462 = fsub double %456, %461
  %463 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %462, ptr %463, align 8, !tbaa !13
  %464 = load i64, ptr %37, align 8, !tbaa !9
  %465 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %464
  %466 = getelementptr inbounds %struct.doublecomplex, ptr %465, i32 0, i32 1
  %467 = load double, ptr %466, align 8, !tbaa !15
  %468 = load ptr, ptr %18, align 8, !tbaa !5
  %469 = load i64, ptr %38, align 8, !tbaa !9
  %470 = getelementptr inbounds %struct.doublecomplex, ptr %468, i64 %469
  %471 = getelementptr inbounds %struct.doublecomplex, ptr %470, i32 0, i32 1
  %472 = load double, ptr %471, align 8, !tbaa !15
  %473 = fsub double %467, %472
  %474 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %473, ptr %474, align 8, !tbaa !15
  %475 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  %476 = load double, ptr %475, align 8, !tbaa !13
  %477 = load i64, ptr %36, align 8, !tbaa !9
  %478 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %477
  %479 = getelementptr inbounds %struct.doublecomplex, ptr %478, i32 0, i32 0
  store double %476, ptr %479, align 16, !tbaa !13
  %480 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  %481 = load double, ptr %480, align 8, !tbaa !15
  %482 = load i64, ptr %36, align 8, !tbaa !9
  %483 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %482
  %484 = getelementptr inbounds %struct.doublecomplex, ptr %483, i32 0, i32 1
  store double %481, ptr %484, align 8, !tbaa !15
  %485 = load i64, ptr %45, align 8, !tbaa !9
  %486 = add nsw i64 %485, 1
  store i64 %486, ptr %36, align 8, !tbaa !9
  %487 = load i64, ptr %45, align 8, !tbaa !9
  %488 = add nsw i64 %487, 1
  store i64 %488, ptr %37, align 8, !tbaa !9
  %489 = load ptr, ptr %26, align 8, !tbaa !5
  %490 = load i64, ptr %489, align 8, !tbaa !9
  %491 = load i64, ptr %45, align 8, !tbaa !9
  %492 = add nsw i64 %490, %491
  %493 = sub nsw i64 %492, 1
  %494 = load ptr, ptr %26, align 8, !tbaa !5
  %495 = load i64, ptr %494, align 8, !tbaa !9
  %496 = add nsw i64 %495, 1
  %497 = load i64, ptr %28, align 8, !tbaa !9
  %498 = mul nsw i64 %496, %497
  %499 = add nsw i64 %493, %498
  store i64 %499, ptr %38, align 8, !tbaa !9
  %500 = load i64, ptr %37, align 8, !tbaa !9
  %501 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %500
  %502 = getelementptr inbounds %struct.doublecomplex, ptr %501, i32 0, i32 0
  %503 = load double, ptr %502, align 16, !tbaa !13
  %504 = load ptr, ptr %18, align 8, !tbaa !5
  %505 = load i64, ptr %38, align 8, !tbaa !9
  %506 = getelementptr inbounds %struct.doublecomplex, ptr %504, i64 %505
  %507 = getelementptr inbounds %struct.doublecomplex, ptr %506, i32 0, i32 0
  %508 = load double, ptr %507, align 8, !tbaa !13
  %509 = fsub double %503, %508
  %510 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %509, ptr %510, align 8, !tbaa !13
  %511 = load i64, ptr %37, align 8, !tbaa !9
  %512 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %511
  %513 = getelementptr inbounds %struct.doublecomplex, ptr %512, i32 0, i32 1
  %514 = load double, ptr %513, align 8, !tbaa !15
  %515 = load ptr, ptr %18, align 8, !tbaa !5
  %516 = load i64, ptr %38, align 8, !tbaa !9
  %517 = getelementptr inbounds %struct.doublecomplex, ptr %515, i64 %516
  %518 = getelementptr inbounds %struct.doublecomplex, ptr %517, i32 0, i32 1
  %519 = load double, ptr %518, align 8, !tbaa !15
  %520 = fsub double %514, %519
  %521 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %520, ptr %521, align 8, !tbaa !15
  %522 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  %523 = load double, ptr %522, align 8, !tbaa !13
  %524 = load i64, ptr %36, align 8, !tbaa !9
  %525 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %524
  %526 = getelementptr inbounds %struct.doublecomplex, ptr %525, i32 0, i32 0
  store double %523, ptr %526, align 16, !tbaa !13
  %527 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  %528 = load double, ptr %527, align 8, !tbaa !15
  %529 = load i64, ptr %36, align 8, !tbaa !9
  %530 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %529
  %531 = getelementptr inbounds %struct.doublecomplex, ptr %530, i32 0, i32 1
  store double %528, ptr %531, align 8, !tbaa !15
  %532 = load i64, ptr %45, align 8, !tbaa !9
  %533 = add nsw i64 %532, 3
  store i64 %533, ptr %36, align 8, !tbaa !9
  %534 = load i64, ptr %45, align 8, !tbaa !9
  %535 = add nsw i64 %534, 3
  store i64 %535, ptr %37, align 8, !tbaa !9
  %536 = load ptr, ptr %26, align 8, !tbaa !5
  %537 = load i64, ptr %536, align 8, !tbaa !9
  %538 = load i64, ptr %45, align 8, !tbaa !9
  %539 = add nsw i64 %537, %538
  %540 = sub nsw i64 %539, 1
  %541 = load ptr, ptr %26, align 8, !tbaa !5
  %542 = load i64, ptr %541, align 8, !tbaa !9
  %543 = load i64, ptr %30, align 8, !tbaa !9
  %544 = mul nsw i64 %542, %543
  %545 = add nsw i64 %540, %544
  store i64 %545, ptr %38, align 8, !tbaa !9
  %546 = load i64, ptr %37, align 8, !tbaa !9
  %547 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %546
  %548 = getelementptr inbounds %struct.doublecomplex, ptr %547, i32 0, i32 0
  %549 = load double, ptr %548, align 16, !tbaa !13
  %550 = load ptr, ptr %20, align 8, !tbaa !5
  %551 = load i64, ptr %38, align 8, !tbaa !9
  %552 = getelementptr inbounds %struct.doublecomplex, ptr %550, i64 %551
  %553 = getelementptr inbounds %struct.doublecomplex, ptr %552, i32 0, i32 0
  %554 = load double, ptr %553, align 8, !tbaa !13
  %555 = fsub double %549, %554
  %556 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %555, ptr %556, align 8, !tbaa !13
  %557 = load i64, ptr %37, align 8, !tbaa !9
  %558 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %557
  %559 = getelementptr inbounds %struct.doublecomplex, ptr %558, i32 0, i32 1
  %560 = load double, ptr %559, align 8, !tbaa !15
  %561 = load ptr, ptr %20, align 8, !tbaa !5
  %562 = load i64, ptr %38, align 8, !tbaa !9
  %563 = getelementptr inbounds %struct.doublecomplex, ptr %561, i64 %562
  %564 = getelementptr inbounds %struct.doublecomplex, ptr %563, i32 0, i32 1
  %565 = load double, ptr %564, align 8, !tbaa !15
  %566 = fsub double %560, %565
  %567 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %566, ptr %567, align 8, !tbaa !15
  %568 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  %569 = load double, ptr %568, align 8, !tbaa !13
  %570 = load i64, ptr %36, align 8, !tbaa !9
  %571 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %570
  %572 = getelementptr inbounds %struct.doublecomplex, ptr %571, i32 0, i32 0
  store double %569, ptr %572, align 16, !tbaa !13
  %573 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  %574 = load double, ptr %573, align 8, !tbaa !15
  %575 = load i64, ptr %36, align 8, !tbaa !9
  %576 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %575
  %577 = getelementptr inbounds %struct.doublecomplex, ptr %576, i32 0, i32 1
  store double %574, ptr %577, align 8, !tbaa !15
  %578 = load i64, ptr %45, align 8, !tbaa !9
  %579 = add nsw i64 %578, 5
  store i64 %579, ptr %36, align 8, !tbaa !9
  %580 = load i64, ptr %45, align 8, !tbaa !9
  %581 = add nsw i64 %580, 5
  store i64 %581, ptr %37, align 8, !tbaa !9
  %582 = load ptr, ptr %26, align 8, !tbaa !5
  %583 = load i64, ptr %582, align 8, !tbaa !9
  %584 = load i64, ptr %45, align 8, !tbaa !9
  %585 = add nsw i64 %583, %584
  %586 = sub nsw i64 %585, 1
  %587 = load ptr, ptr %26, align 8, !tbaa !5
  %588 = load i64, ptr %587, align 8, !tbaa !9
  %589 = add nsw i64 %588, 1
  %590 = load i64, ptr %30, align 8, !tbaa !9
  %591 = mul nsw i64 %589, %590
  %592 = add nsw i64 %586, %591
  store i64 %592, ptr %38, align 8, !tbaa !9
  %593 = load i64, ptr %37, align 8, !tbaa !9
  %594 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %593
  %595 = getelementptr inbounds %struct.doublecomplex, ptr %594, i32 0, i32 0
  %596 = load double, ptr %595, align 16, !tbaa !13
  %597 = load ptr, ptr %20, align 8, !tbaa !5
  %598 = load i64, ptr %38, align 8, !tbaa !9
  %599 = getelementptr inbounds %struct.doublecomplex, ptr %597, i64 %598
  %600 = getelementptr inbounds %struct.doublecomplex, ptr %599, i32 0, i32 0
  %601 = load double, ptr %600, align 8, !tbaa !13
  %602 = fsub double %596, %601
  %603 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  store double %602, ptr %603, align 8, !tbaa !13
  %604 = load i64, ptr %37, align 8, !tbaa !9
  %605 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %604
  %606 = getelementptr inbounds %struct.doublecomplex, ptr %605, i32 0, i32 1
  %607 = load double, ptr %606, align 8, !tbaa !15
  %608 = load ptr, ptr %20, align 8, !tbaa !5
  %609 = load i64, ptr %38, align 8, !tbaa !9
  %610 = getelementptr inbounds %struct.doublecomplex, ptr %608, i64 %609
  %611 = getelementptr inbounds %struct.doublecomplex, ptr %610, i32 0, i32 1
  %612 = load double, ptr %611, align 8, !tbaa !15
  %613 = fsub double %607, %612
  %614 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  store double %613, ptr %614, align 8, !tbaa !15
  %615 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 0
  %616 = load double, ptr %615, align 8, !tbaa !13
  %617 = load i64, ptr %36, align 8, !tbaa !9
  %618 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %617
  %619 = getelementptr inbounds %struct.doublecomplex, ptr %618, i32 0, i32 0
  store double %616, ptr %619, align 16, !tbaa !13
  %620 = getelementptr inbounds %struct.doublecomplex, ptr %40, i32 0, i32 1
  %621 = load double, ptr %620, align 8, !tbaa !15
  %622 = load i64, ptr %36, align 8, !tbaa !9
  %623 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 %622
  %624 = getelementptr inbounds %struct.doublecomplex, ptr %623, i32 0, i32 1
  store double %621, ptr %624, align 8, !tbaa !15
  br label %625

625:                                              ; preds = %438
  %626 = load i64, ptr %45, align 8, !tbaa !9
  %627 = add nsw i64 %626, 1
  store i64 %627, ptr %45, align 8, !tbaa !9
  br label %435, !llvm.loop !16

628:                                              ; preds = %435
  store double 0.000000e+00, ptr %62, align 8, !tbaa !11
  store double 1.000000e+00, ptr %58, align 8, !tbaa !11
  %629 = load i64, ptr %46, align 8, !tbaa !9
  %630 = shl i64 %629, 1
  %631 = load i64, ptr %46, align 8, !tbaa !9
  %632 = mul nsw i64 %630, %631
  store i64 %632, ptr %36, align 8, !tbaa !9
  %633 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %61, i64 0, i64 0
  %634 = call i32 @zlassq_(ptr noundef %36, ptr noundef %633, ptr noundef @c__1, ptr noundef %62, ptr noundef %58)
  %635 = load double, ptr %62, align 8, !tbaa !11
  %636 = load double, ptr %58, align 8, !tbaa !11
  %637 = call double @sqrt(double noundef %636) #5
  %638 = fmul double %635, %637
  store double %638, ptr %54, align 8, !tbaa !11
  %639 = load double, ptr %54, align 8, !tbaa !11
  %640 = load double, ptr %64, align 8, !tbaa !11
  %641 = fcmp ole double %639, %640
  %642 = zext i1 %641 to i32
  %643 = sext i32 %642 to i64
  store i64 %643, ptr %63, align 8, !tbaa !9
  %644 = load i64, ptr %63, align 8, !tbaa !9
  %645 = icmp ne i64 %644, 0
  br i1 %645, label %647, label %646

646:                                              ; preds = %628
  br label %818

647:                                              ; preds = %628
  %648 = load ptr, ptr %26, align 8, !tbaa !5
  %649 = load i64, ptr %648, align 8, !tbaa !9
  %650 = add nsw i64 %649, 1
  store i64 %650, ptr %36, align 8, !tbaa !9
  call void @d_cnjg(ptr noundef %40, ptr noundef %56)
  %651 = load ptr, ptr %18, align 8, !tbaa !5
  %652 = load ptr, ptr %26, align 8, !tbaa !5
  %653 = load i64, ptr %652, align 8, !tbaa !9
  %654 = load i64, ptr %28, align 8, !tbaa !9
  %655 = mul nsw i64 %653, %654
  %656 = add nsw i64 %655, 1
  %657 = getelementptr inbounds %struct.doublecomplex, ptr %651, i64 %656
  %658 = load ptr, ptr %18, align 8, !tbaa !5
  %659 = load ptr, ptr %26, align 8, !tbaa !5
  %660 = load i64, ptr %659, align 8, !tbaa !9
  %661 = add nsw i64 %660, 1
  %662 = load i64, ptr %28, align 8, !tbaa !9
  %663 = mul nsw i64 %661, %662
  %664 = add nsw i64 %663, 1
  %665 = getelementptr inbounds %struct.doublecomplex, ptr %658, i64 %664
  %666 = call i32 @zrot_(ptr noundef %36, ptr noundef %657, ptr noundef @c__1, ptr noundef %665, ptr noundef @c__1, ptr noundef %52, ptr noundef %40)
  %667 = load ptr, ptr %26, align 8, !tbaa !5
  %668 = load i64, ptr %667, align 8, !tbaa !9
  %669 = add nsw i64 %668, 1
  store i64 %669, ptr %36, align 8, !tbaa !9
  call void @d_cnjg(ptr noundef %40, ptr noundef %56)
  %670 = load ptr, ptr %20, align 8, !tbaa !5
  %671 = load ptr, ptr %26, align 8, !tbaa !5
  %672 = load i64, ptr %671, align 8, !tbaa !9
  %673 = load i64, ptr %30, align 8, !tbaa !9
  %674 = mul nsw i64 %672, %673
  %675 = add nsw i64 %674, 1
  %676 = getelementptr inbounds %struct.doublecomplex, ptr %670, i64 %675
  %677 = load ptr, ptr %20, align 8, !tbaa !5
  %678 = load ptr, ptr %26, align 8, !tbaa !5
  %679 = load i64, ptr %678, align 8, !tbaa !9
  %680 = add nsw i64 %679, 1
  %681 = load i64, ptr %30, align 8, !tbaa !9
  %682 = mul nsw i64 %680, %681
  %683 = add nsw i64 %682, 1
  %684 = getelementptr inbounds %struct.doublecomplex, ptr %677, i64 %683
  %685 = call i32 @zrot_(ptr noundef %36, ptr noundef %676, ptr noundef @c__1, ptr noundef %684, ptr noundef @c__1, ptr noundef %52, ptr noundef %40)
  %686 = load ptr, ptr %17, align 8, !tbaa !5
  %687 = load i64, ptr %686, align 8, !tbaa !9
  %688 = load ptr, ptr %26, align 8, !tbaa !5
  %689 = load i64, ptr %688, align 8, !tbaa !9
  %690 = sub nsw i64 %687, %689
  %691 = add nsw i64 %690, 1
  store i64 %691, ptr %36, align 8, !tbaa !9
  %692 = load ptr, ptr %18, align 8, !tbaa !5
  %693 = load ptr, ptr %26, align 8, !tbaa !5
  %694 = load i64, ptr %693, align 8, !tbaa !9
  %695 = load ptr, ptr %26, align 8, !tbaa !5
  %696 = load i64, ptr %695, align 8, !tbaa !9
  %697 = load i64, ptr %28, align 8, !tbaa !9
  %698 = mul nsw i64 %696, %697
  %699 = add nsw i64 %694, %698
  %700 = getelementptr inbounds %struct.doublecomplex, ptr %692, i64 %699
  %701 = load ptr, ptr %19, align 8, !tbaa !5
  %702 = load ptr, ptr %18, align 8, !tbaa !5
  %703 = load ptr, ptr %26, align 8, !tbaa !5
  %704 = load i64, ptr %703, align 8, !tbaa !9
  %705 = add nsw i64 %704, 1
  %706 = load ptr, ptr %26, align 8, !tbaa !5
  %707 = load i64, ptr %706, align 8, !tbaa !9
  %708 = load i64, ptr %28, align 8, !tbaa !9
  %709 = mul nsw i64 %707, %708
  %710 = add nsw i64 %705, %709
  %711 = getelementptr inbounds %struct.doublecomplex, ptr %702, i64 %710
  %712 = load ptr, ptr %19, align 8, !tbaa !5
  %713 = call i32 @zrot_(ptr noundef %36, ptr noundef %700, ptr noundef %701, ptr noundef %711, ptr noundef %712, ptr noundef %49, ptr noundef %53)
  %714 = load ptr, ptr %17, align 8, !tbaa !5
  %715 = load i64, ptr %714, align 8, !tbaa !9
  %716 = load ptr, ptr %26, align 8, !tbaa !5
  %717 = load i64, ptr %716, align 8, !tbaa !9
  %718 = sub nsw i64 %715, %717
  %719 = add nsw i64 %718, 1
  store i64 %719, ptr %36, align 8, !tbaa !9
  %720 = load ptr, ptr %20, align 8, !tbaa !5
  %721 = load ptr, ptr %26, align 8, !tbaa !5
  %722 = load i64, ptr %721, align 8, !tbaa !9
  %723 = load ptr, ptr %26, align 8, !tbaa !5
  %724 = load i64, ptr %723, align 8, !tbaa !9
  %725 = load i64, ptr %30, align 8, !tbaa !9
  %726 = mul nsw i64 %724, %725
  %727 = add nsw i64 %722, %726
  %728 = getelementptr inbounds %struct.doublecomplex, ptr %720, i64 %727
  %729 = load ptr, ptr %21, align 8, !tbaa !5
  %730 = load ptr, ptr %20, align 8, !tbaa !5
  %731 = load ptr, ptr %26, align 8, !tbaa !5
  %732 = load i64, ptr %731, align 8, !tbaa !9
  %733 = add nsw i64 %732, 1
  %734 = load ptr, ptr %26, align 8, !tbaa !5
  %735 = load i64, ptr %734, align 8, !tbaa !9
  %736 = load i64, ptr %30, align 8, !tbaa !9
  %737 = mul nsw i64 %735, %736
  %738 = add nsw i64 %733, %737
  %739 = getelementptr inbounds %struct.doublecomplex, ptr %730, i64 %738
  %740 = load ptr, ptr %21, align 8, !tbaa !5
  %741 = call i32 @zrot_(ptr noundef %36, ptr noundef %728, ptr noundef %729, ptr noundef %739, ptr noundef %740, ptr noundef %49, ptr noundef %53)
  %742 = load ptr, ptr %26, align 8, !tbaa !5
  %743 = load i64, ptr %742, align 8, !tbaa !9
  %744 = add nsw i64 %743, 1
  %745 = load ptr, ptr %26, align 8, !tbaa !5
  %746 = load i64, ptr %745, align 8, !tbaa !9
  %747 = load i64, ptr %28, align 8, !tbaa !9
  %748 = mul nsw i64 %746, %747
  %749 = add nsw i64 %744, %748
  store i64 %749, ptr %36, align 8, !tbaa !9
  %750 = load ptr, ptr %18, align 8, !tbaa !5
  %751 = load i64, ptr %36, align 8, !tbaa !9
  %752 = getelementptr inbounds %struct.doublecomplex, ptr %750, i64 %751
  %753 = getelementptr inbounds %struct.doublecomplex, ptr %752, i32 0, i32 0
  store double 0.000000e+00, ptr %753, align 8, !tbaa !13
  %754 = load ptr, ptr %18, align 8, !tbaa !5
  %755 = load i64, ptr %36, align 8, !tbaa !9
  %756 = getelementptr inbounds %struct.doublecomplex, ptr %754, i64 %755
  %757 = getelementptr inbounds %struct.doublecomplex, ptr %756, i32 0, i32 1
  store double 0.000000e+00, ptr %757, align 8, !tbaa !15
  %758 = load ptr, ptr %26, align 8, !tbaa !5
  %759 = load i64, ptr %758, align 8, !tbaa !9
  %760 = add nsw i64 %759, 1
  %761 = load ptr, ptr %26, align 8, !tbaa !5
  %762 = load i64, ptr %761, align 8, !tbaa !9
  %763 = load i64, ptr %30, align 8, !tbaa !9
  %764 = mul nsw i64 %762, %763
  %765 = add nsw i64 %760, %764
  store i64 %765, ptr %36, align 8, !tbaa !9
  %766 = load ptr, ptr %20, align 8, !tbaa !5
  %767 = load i64, ptr %36, align 8, !tbaa !9
  %768 = getelementptr inbounds %struct.doublecomplex, ptr %766, i64 %767
  %769 = getelementptr inbounds %struct.doublecomplex, ptr %768, i32 0, i32 0
  store double 0.000000e+00, ptr %769, align 8, !tbaa !13
  %770 = load ptr, ptr %20, align 8, !tbaa !5
  %771 = load i64, ptr %36, align 8, !tbaa !9
  %772 = getelementptr inbounds %struct.doublecomplex, ptr %770, i64 %771
  %773 = getelementptr inbounds %struct.doublecomplex, ptr %772, i32 0, i32 1
  store double 0.000000e+00, ptr %773, align 8, !tbaa !15
  %774 = load ptr, ptr %16, align 8, !tbaa !5
  %775 = load i64, ptr %774, align 8, !tbaa !9
  %776 = icmp ne i64 %775, 0
  br i1 %776, label %777, label %795

777:                                              ; preds = %647
  call void @d_cnjg(ptr noundef %40, ptr noundef %56)
  %778 = load ptr, ptr %17, align 8, !tbaa !5
  %779 = load ptr, ptr %24, align 8, !tbaa !5
  %780 = load ptr, ptr %26, align 8, !tbaa !5
  %781 = load i64, ptr %780, align 8, !tbaa !9
  %782 = load i64, ptr %34, align 8, !tbaa !9
  %783 = mul nsw i64 %781, %782
  %784 = add nsw i64 %783, 1
  %785 = getelementptr inbounds %struct.doublecomplex, ptr %779, i64 %784
  %786 = load ptr, ptr %24, align 8, !tbaa !5
  %787 = load ptr, ptr %26, align 8, !tbaa !5
  %788 = load i64, ptr %787, align 8, !tbaa !9
  %789 = add nsw i64 %788, 1
  %790 = load i64, ptr %34, align 8, !tbaa !9
  %791 = mul nsw i64 %789, %790
  %792 = add nsw i64 %791, 1
  %793 = getelementptr inbounds %struct.doublecomplex, ptr %786, i64 %792
  %794 = call i32 @zrot_(ptr noundef %778, ptr noundef %785, ptr noundef @c__1, ptr noundef %793, ptr noundef @c__1, ptr noundef %52, ptr noundef %40)
  br label %795

795:                                              ; preds = %777, %647
  %796 = load ptr, ptr %15, align 8, !tbaa !5
  %797 = load i64, ptr %796, align 8, !tbaa !9
  %798 = icmp ne i64 %797, 0
  br i1 %798, label %799, label %817

799:                                              ; preds = %795
  call void @d_cnjg(ptr noundef %40, ptr noundef %53)
  %800 = load ptr, ptr %17, align 8, !tbaa !5
  %801 = load ptr, ptr %22, align 8, !tbaa !5
  %802 = load ptr, ptr %26, align 8, !tbaa !5
  %803 = load i64, ptr %802, align 8, !tbaa !9
  %804 = load i64, ptr %32, align 8, !tbaa !9
  %805 = mul nsw i64 %803, %804
  %806 = add nsw i64 %805, 1
  %807 = getelementptr inbounds %struct.doublecomplex, ptr %801, i64 %806
  %808 = load ptr, ptr %22, align 8, !tbaa !5
  %809 = load ptr, ptr %26, align 8, !tbaa !5
  %810 = load i64, ptr %809, align 8, !tbaa !9
  %811 = add nsw i64 %810, 1
  %812 = load i64, ptr %32, align 8, !tbaa !9
  %813 = mul nsw i64 %811, %812
  %814 = add nsw i64 %813, 1
  %815 = getelementptr inbounds %struct.doublecomplex, ptr %808, i64 %814
  %816 = call i32 @zrot_(ptr noundef %800, ptr noundef %807, ptr noundef @c__1, ptr noundef %815, ptr noundef @c__1, ptr noundef %49, ptr noundef %40)
  br label %817

817:                                              ; preds = %799, %795
  store i32 0, ptr %14, align 4
  store i32 1, ptr %66, align 4
  br label %820

818:                                              ; preds = %646, %380
  %819 = load ptr, ptr %27, align 8, !tbaa !5
  store i64 1, ptr %819, align 8, !tbaa !9
  store i32 0, ptr %14, align 4
  store i32 1, ptr %66, align 4
  br label %820

820:                                              ; preds = %818, %817, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 16, 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 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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
  %821 = load i32, ptr %14, align 4
  ret i32 %821
}

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

declare i32 @zlacpy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare double @dlamch_(ptr noundef) #2

declare i32 @zlassq_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare double @z_abs(ptr noundef) #2

declare i32 @zlartg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare i32 @zrot_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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


; 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 [5 x i8], align 1
@c__2 = external hidden global i64, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ztgex2_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr nocapture noundef readonly %8, ptr noundef %9, ptr nocapture noundef readonly %10, ptr nocapture noundef readonly %11, ptr nocapture noundef writeonly %12) local_unnamed_addr #0 {
  %14 = alloca i64, align 8
  %15 = alloca %struct.doublecomplex, align 16
  %16 = alloca %struct.doublecomplex, align 16
  %17 = alloca %struct.doublecomplex, align 16
  %18 = alloca %struct.doublecomplex, align 16
  %19 = alloca i64, align 8
  %20 = alloca [4 x %struct.doublecomplex], align 16
  %21 = alloca [4 x %struct.doublecomplex], align 16
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca %struct.doublecomplex, align 16
  %25 = alloca %struct.doublecomplex, align 16
  %26 = alloca double, align 8
  %27 = alloca %struct.doublecomplex, align 8
  %28 = alloca [8 x %struct.doublecomplex], align 16
  %29 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #6
  %30 = load i64, ptr %4, align 8, !tbaa !5
  %31 = xor i64 %30, -1
  %32 = getelementptr inbounds %struct.doublecomplex, ptr %3, i64 %31
  %33 = load i64, ptr %6, align 8, !tbaa !5
  %34 = xor i64 %33, -1
  %35 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %34
  %36 = load i64, ptr %8, align 8, !tbaa !5
  %37 = xor i64 %36, -1
  %38 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %37
  %39 = load i64, ptr %10, align 8, !tbaa !5
  %40 = xor i64 %39, -1
  %41 = getelementptr inbounds %struct.doublecomplex, ptr %9, i64 %40
  store i64 0, ptr %12, align 8, !tbaa !5
  %42 = load i64, ptr %2, align 8, !tbaa !5
  %43 = icmp slt i64 %42, 2
  br i1 %43, label %277, label %44

44:                                               ; preds = %13
  store i64 2, ptr %19, align 8, !tbaa !5
  %45 = load i64, ptr %11, align 8, !tbaa !5
  %46 = add i64 %30, 1
  %47 = mul i64 %45, %46
  %48 = getelementptr inbounds %struct.doublecomplex, ptr %32, i64 %47
  %49 = call i32 @zlacpy_(ptr noundef nonnull @.str, ptr noundef nonnull %19, ptr noundef nonnull %19, ptr noundef %48, ptr noundef nonnull %4, ptr noundef nonnull %20, ptr noundef nonnull @c__2) #6
  %50 = load i64, ptr %11, align 8, !tbaa !5
  %51 = add i64 %33, 1
  %52 = mul i64 %50, %51
  %53 = getelementptr inbounds %struct.doublecomplex, ptr %35, i64 %52
  %54 = call i32 @zlacpy_(ptr noundef nonnull @.str, ptr noundef nonnull %19, ptr noundef nonnull %19, ptr noundef %53, ptr noundef nonnull %6, ptr noundef nonnull %21, ptr noundef nonnull @c__2) #6
  %55 = call double @dlamch_(ptr noundef nonnull @.str.1) #6
  %56 = call double @dlamch_(ptr noundef nonnull @.str.2) #6
  %57 = fdiv double %56, %55
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  store double 1.000000e+00, ptr %26, align 8, !tbaa !9
  %58 = call i32 @zlacpy_(ptr noundef nonnull @.str, ptr noundef nonnull %19, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull @c__2, ptr noundef nonnull %28, ptr noundef nonnull %19) #6
  %59 = load i64, ptr %19, align 8, !tbaa !5
  %60 = mul nsw i64 %59, %59
  %61 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %28, i64 0, i64 %60
  %62 = call i32 @zlacpy_(ptr noundef nonnull @.str, ptr noundef nonnull %19, ptr noundef nonnull %19, ptr noundef nonnull %21, ptr noundef nonnull @c__2, ptr noundef nonnull %61, ptr noundef nonnull %19) #6
  %63 = load i64, ptr %19, align 8, !tbaa !5
  %64 = shl i64 %63, 1
  %65 = mul nsw i64 %64, %63
  store i64 %65, ptr %14, align 8, !tbaa !5
  %66 = call i32 @zlassq_(ptr noundef nonnull %14, ptr noundef nonnull %28, ptr noundef nonnull @c__1, ptr noundef nonnull %29, ptr noundef nonnull %26) #6
  %67 = load double, ptr %29, align 8, !tbaa !9
  %68 = load double, ptr %26, align 8, !tbaa !9
  %69 = call double @sqrt(double noundef %68) #6
  %70 = fmul double %67, %69
  %71 = fmul double %55, 1.000000e+01
  %72 = fmul double %71, %70
  %73 = fcmp oge double %72, %57
  %74 = select i1 %73, double %72, double %57
  %75 = getelementptr inbounds i8, ptr %20, i64 48
  %76 = load <2 x double>, ptr %75, align 16
  %77 = getelementptr inbounds i8, ptr %20, i64 56
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = fneg double %78
  %80 = getelementptr inbounds i8, ptr %21, i64 48
  %81 = load <2 x double>, ptr %80, align 16
  %82 = getelementptr inbounds i8, ptr %21, i64 56
  %83 = load double, ptr %82, align 8, !tbaa !11
  %84 = fneg double %83
  %85 = load <2 x double>, ptr %21, align 16, !tbaa !9
  %86 = insertelement <2 x double> poison, double %78, i64 0
  %87 = insertelement <2 x double> %86, double %79, i64 1
  %88 = fmul <2 x double> %85, %87
  %89 = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %90 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
  %91 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %85, <2 x double> %89)
  %92 = load <2 x double>, ptr %20, align 16, !tbaa !9
  %93 = insertelement <2 x double> poison, double %83, i64 0
  %94 = insertelement <2 x double> %93, double %84, i64 1
  %95 = fmul <2 x double> %92, %94
  %96 = shufflevector <2 x double> %95, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %97 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> zeroinitializer
  %98 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %97, <2 x double> %92, <2 x double> %96)
  %99 = fsub <2 x double> %91, %98
  store <2 x double> %99, ptr %17, align 16, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %21, i64 32
  %101 = load <2 x double>, ptr %100, align 16, !tbaa !9
  %102 = fmul <2 x double> %101, %87
  %103 = shufflevector <2 x double> %102, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %104 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %101, <2 x double> %103)
  store <2 x double> %104, ptr %16, align 16, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %20, i64 32
  %106 = load <2 x double>, ptr %105, align 16, !tbaa !9
  %107 = fmul <2 x double> %106, %94
  %108 = shufflevector <2 x double> %107, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %109 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %97, <2 x double> %106, <2 x double> %108)
  %110 = fsub <2 x double> %104, %109
  store <2 x double> %110, ptr %18, align 16, !tbaa !9
  %111 = call double @z_abs(ptr noundef nonnull %75) #6
  %112 = call double @z_abs(ptr noundef nonnull %80) #6
  %113 = call i32 @zlartg_(ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef nonnull %23, ptr noundef nonnull %25, ptr noundef nonnull %27) #6
  %114 = load <2 x double>, ptr %25, align 16, !tbaa !9
  %115 = fneg <2 x double> %114
  store <2 x double> %115, ptr %15, align 16, !tbaa !9
  store <2 x double> %115, ptr %25, align 16, !tbaa !9
  call void @d_cnjg(ptr noundef nonnull %15, ptr noundef nonnull %25) #6
  %116 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %20, ptr noundef nonnull @c__1, ptr noundef nonnull %105, ptr noundef nonnull @c__1, ptr noundef nonnull %23, ptr noundef nonnull %15) #6
  call void @d_cnjg(ptr noundef nonnull %15, ptr noundef nonnull %25) #6
  %117 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %21, ptr noundef nonnull @c__1, ptr noundef nonnull %100, ptr noundef nonnull @c__1, ptr noundef nonnull %23, ptr noundef nonnull %15) #6
  %118 = fcmp ult double %111, %112
  %. = select i1 %118, ptr %21, ptr %20
  %..sroa.sel.v = select i1 %118, ptr %21, ptr %20
  %..sroa.sel = getelementptr inbounds i8, ptr %..sroa.sel.v, i64 16
  %119 = call i32 @zlartg_(ptr noundef nonnull %., ptr noundef nonnull %..sroa.sel, ptr noundef nonnull %22, ptr noundef nonnull %24, ptr noundef nonnull %27) #6
  %120 = getelementptr inbounds i8, ptr %20, i64 16
  %121 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %20, ptr noundef nonnull @c__2, ptr noundef nonnull %120, ptr noundef nonnull @c__2, ptr noundef nonnull %22, ptr noundef nonnull %24) #6
  %122 = getelementptr inbounds i8, ptr %21, i64 16
  %123 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %21, ptr noundef nonnull @c__2, ptr noundef nonnull %122, ptr noundef nonnull @c__2, ptr noundef nonnull %22, ptr noundef nonnull %24) #6
  %124 = call double @z_abs(ptr noundef nonnull %120) #6
  %125 = call double @z_abs(ptr noundef nonnull %122) #6
  %126 = fadd double %124, %125
  %127 = fcmp ugt double %126, %74
  br i1 %127, label %276, label %128

128:                                              ; preds = %44
  %129 = call i32 @zlacpy_(ptr noundef nonnull @.str, ptr noundef nonnull %19, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull @c__2, ptr noundef nonnull %28, ptr noundef nonnull %19) #6
  %130 = load i64, ptr %19, align 8, !tbaa !5
  %131 = mul nsw i64 %130, %130
  %132 = getelementptr inbounds [8 x %struct.doublecomplex], ptr %28, i64 0, i64 %131
  %133 = call i32 @zlacpy_(ptr noundef nonnull @.str, ptr noundef nonnull %19, ptr noundef nonnull %19, ptr noundef nonnull %21, ptr noundef nonnull @c__2, ptr noundef nonnull %132, ptr noundef nonnull %19) #6
  call void @d_cnjg(ptr noundef nonnull %16, ptr noundef nonnull %25) #6
  %134 = load <2 x double>, ptr %16, align 16, !tbaa !9
  %135 = fneg <2 x double> %134
  store <2 x double> %135, ptr %15, align 16, !tbaa !9
  %136 = getelementptr inbounds i8, ptr %28, i64 32
  %137 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %28, ptr noundef nonnull @c__1, ptr noundef nonnull %136, ptr noundef nonnull @c__1, ptr noundef nonnull %23, ptr noundef nonnull %15) #6
  call void @d_cnjg(ptr noundef nonnull %16, ptr noundef nonnull %25) #6
  %138 = load <2 x double>, ptr %16, align 16, !tbaa !9
  %139 = fneg <2 x double> %138
  store <2 x double> %139, ptr %15, align 16, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %28, i64 64
  %141 = getelementptr inbounds i8, ptr %28, i64 96
  %142 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %140, ptr noundef nonnull @c__1, ptr noundef nonnull %141, ptr noundef nonnull @c__1, ptr noundef nonnull %23, ptr noundef nonnull %15) #6
  %143 = load <2 x double>, ptr %24, align 16, !tbaa !9
  %144 = fneg <2 x double> %143
  store <2 x double> %144, ptr %15, align 16, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %28, i64 16
  %146 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %28, ptr noundef nonnull @c__2, ptr noundef nonnull %145, ptr noundef nonnull @c__2, ptr noundef nonnull %22, ptr noundef nonnull %15) #6
  %147 = load <2 x double>, ptr %24, align 16, !tbaa !9
  %148 = fneg <2 x double> %147
  store <2 x double> %148, ptr %15, align 16, !tbaa !9
  %149 = getelementptr inbounds i8, ptr %28, i64 80
  %150 = call i32 @zrot_(ptr noundef nonnull @c__2, ptr noundef nonnull %140, ptr noundef nonnull @c__2, ptr noundef nonnull %149, ptr noundef nonnull @c__2, ptr noundef nonnull %22, ptr noundef nonnull %15) #6
  %151 = load i64, ptr %11, align 8, !tbaa !5
  %152 = mul nsw i64 %151, %30
  %153 = getelementptr %struct.doublecomplex, ptr %32, i64 %151
  %154 = add nsw i64 %151, 1
  %155 = mul nsw i64 %154, %30
  %156 = mul nsw i64 %151, %33
  %157 = getelementptr %struct.doublecomplex, ptr %35, i64 %151
  %158 = mul nsw i64 %154, %33
  %159 = getelementptr %struct.doublecomplex, ptr %153, i64 %152
  %160 = load <2 x double>, ptr %28, align 16, !tbaa !9
  %161 = load <2 x double>, ptr %159, align 8, !tbaa !9
  %162 = fsub <2 x double> %160, %161
  store <2 x double> %162, ptr %28, align 16, !tbaa !9
  %163 = getelementptr %struct.doublecomplex, ptr %153, i64 %155
  %164 = load <2 x double>, ptr %136, align 16, !tbaa !9
  %165 = load <2 x double>, ptr %163, align 8, !tbaa !9
  %166 = fsub <2 x double> %164, %165
  store <2 x double> %166, ptr %136, align 16, !tbaa !9
  %167 = getelementptr %struct.doublecomplex, ptr %157, i64 %156
  %168 = load <2 x double>, ptr %140, align 16, !tbaa !9
  %169 = load <2 x double>, ptr %167, align 8, !tbaa !9
  %170 = fsub <2 x double> %168, %169
  store <2 x double> %170, ptr %140, align 16, !tbaa !9
  %171 = getelementptr %struct.doublecomplex, ptr %157, i64 %158
  %172 = load <2 x double>, ptr %141, align 16, !tbaa !9
  %173 = load <2 x double>, ptr %171, align 8, !tbaa !9
  %174 = fsub <2 x double> %172, %173
  store <2 x double> %174, ptr %141, align 16, !tbaa !9
  %gep.1 = getelementptr i8, ptr %153, i64 16
  %175 = getelementptr %struct.doublecomplex, ptr %gep.1, i64 %152
  %176 = load <2 x double>, ptr %145, align 16, !tbaa !9
  %177 = load <2 x double>, ptr %175, align 8, !tbaa !9
  %178 = fsub <2 x double> %176, %177
  store <2 x double> %178, ptr %145, align 16, !tbaa !9
  %179 = getelementptr inbounds i8, ptr %28, i64 48
  %180 = getelementptr %struct.doublecomplex, ptr %gep.1, i64 %155
  %181 = load <2 x double>, ptr %179, align 16, !tbaa !9
  %182 = load <2 x double>, ptr %180, align 8, !tbaa !9
  %183 = fsub <2 x double> %181, %182
  store <2 x double> %183, ptr %179, align 16, !tbaa !9
  %gep164.1 = getelementptr i8, ptr %157, i64 16
  %184 = getelementptr %struct.doublecomplex, ptr %gep164.1, i64 %156
  %185 = load <2 x double>, ptr %149, align 16, !tbaa !9
  %186 = load <2 x double>, ptr %184, align 8, !tbaa !9
  %187 = fsub <2 x double> %185, %186
  store <2 x double> %187, ptr %149, align 16, !tbaa !9
  %188 = getelementptr inbounds i8, ptr %28, i64 112
  %189 = getelementptr %struct.doublecomplex, ptr %gep164.1, i64 %158
  %190 = load <2 x double>, ptr %188, align 16, !tbaa !9
  %191 = load <2 x double>, ptr %189, align 8, !tbaa !9
  %192 = fsub <2 x double> %190, %191
  store <2 x double> %192, ptr %188, align 16, !tbaa !9
  store <2 x double> %192, ptr %15, align 16, !tbaa !9
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  store double 1.000000e+00, ptr %26, align 8, !tbaa !9
  %193 = load i64, ptr %19, align 8, !tbaa !5
  %194 = shl i64 %193, 1
  %195 = mul nsw i64 %194, %193
  store i64 %195, ptr %14, align 8, !tbaa !5
  %196 = call i32 @zlassq_(ptr noundef nonnull %14, ptr noundef nonnull %28, ptr noundef nonnull @c__1, ptr noundef nonnull %29, ptr noundef nonnull %26) #6
  %197 = load double, ptr %29, align 8, !tbaa !9
  %198 = load double, ptr %26, align 8, !tbaa !9
  %199 = call double @sqrt(double noundef %198) #6
  %200 = fmul double %197, %199
  %201 = fcmp ugt double %200, %74
  br i1 %201, label %276, label %202

202:                                              ; preds = %128
  %203 = load i64, ptr %11, align 8, !tbaa !5
  %204 = add nsw i64 %203, 1
  store i64 %204, ptr %14, align 8, !tbaa !5
  call void @d_cnjg(ptr noundef nonnull %15, ptr noundef nonnull %25) #6
  %205 = load i64, ptr %11, align 8, !tbaa !5
  %206 = mul nsw i64 %205, %30
  %207 = getelementptr %struct.doublecomplex, ptr %32, i64 %206
  %208 = getelementptr i8, ptr %207, i64 16
  %209 = add nsw i64 %205, 1
  %210 = mul nsw i64 %209, %30
  %211 = getelementptr %struct.doublecomplex, ptr %32, i64 %210
  %212 = getelementptr i8, ptr %211, i64 16
  %213 = call i32 @zrot_(ptr noundef nonnull %14, ptr noundef %208, ptr noundef nonnull @c__1, ptr noundef %212, ptr noundef nonnull @c__1, ptr noundef nonnull %23, ptr noundef nonnull %15) #6
  %214 = load i64, ptr %11, align 8, !tbaa !5
  %215 = add nsw i64 %214, 1
  store i64 %215, ptr %14, align 8, !tbaa !5
  call void @d_cnjg(ptr noundef nonnull %15, ptr noundef nonnull %25) #6
  %216 = load i64, ptr %11, align 8, !tbaa !5
  %217 = mul nsw i64 %216, %33
  %218 = getelementptr %struct.doublecomplex, ptr %35, i64 %217
  %219 = getelementptr i8, ptr %218, i64 16
  %220 = add nsw i64 %216, 1
  %221 = mul nsw i64 %220, %33
  %222 = getelementptr %struct.doublecomplex, ptr %35, i64 %221
  %223 = getelementptr i8, ptr %222, i64 16
  %224 = call i32 @zrot_(ptr noundef nonnull %14, ptr noundef %219, ptr noundef nonnull @c__1, ptr noundef %223, ptr noundef nonnull @c__1, ptr noundef nonnull %23, ptr noundef nonnull %15) #6
  %225 = load i64, ptr %2, align 8, !tbaa !5
  %226 = load i64, ptr %11, align 8, !tbaa !5
  %227 = add i64 %225, 1
  %228 = sub i64 %227, %226
  store i64 %228, ptr %14, align 8, !tbaa !5
  %229 = mul nsw i64 %226, %30
  %230 = getelementptr %struct.doublecomplex, ptr %32, i64 %226
  %231 = getelementptr %struct.doublecomplex, ptr %230, i64 %229
  %232 = getelementptr i8, ptr %230, i64 16
  %233 = getelementptr %struct.doublecomplex, ptr %232, i64 %229
  %234 = call i32 @zrot_(ptr noundef nonnull %14, ptr noundef %231, ptr noundef nonnull %4, ptr noundef %233, ptr noundef nonnull %4, ptr noundef nonnull %22, ptr noundef nonnull %24) #6
  %235 = load i64, ptr %2, align 8, !tbaa !5
  %236 = load i64, ptr %11, align 8, !tbaa !5
  %237 = add i64 %235, 1
  %238 = sub i64 %237, %236
  store i64 %238, ptr %14, align 8, !tbaa !5
  %239 = mul nsw i64 %236, %33
  %240 = getelementptr %struct.doublecomplex, ptr %35, i64 %236
  %241 = getelementptr %struct.doublecomplex, ptr %240, i64 %239
  %242 = getelementptr i8, ptr %240, i64 16
  %243 = getelementptr %struct.doublecomplex, ptr %242, i64 %239
  %244 = call i32 @zrot_(ptr noundef nonnull %14, ptr noundef %241, ptr noundef nonnull %6, ptr noundef %243, ptr noundef nonnull %6, ptr noundef nonnull %22, ptr noundef nonnull %24) #6
  %245 = load i64, ptr %11, align 8, !tbaa !5
  %246 = add nsw i64 %245, 1
  %247 = mul nsw i64 %245, %30
  %248 = getelementptr %struct.doublecomplex, ptr %32, i64 %246
  %249 = getelementptr %struct.doublecomplex, ptr %248, i64 %247
  %250 = mul nsw i64 %245, %33
  %251 = add nsw i64 %246, %250
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %249, i8 0, i64 16, i1 false)
  store i64 %251, ptr %14, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %35, i64 %251
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %252, i8 0, i64 16, i1 false)
  %253 = load i64, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %253, 0
  br i1 %.not, label %264, label %254

254:                                              ; preds = %202
  call void @d_cnjg(ptr noundef nonnull %15, ptr noundef nonnull %25) #6
  %255 = load i64, ptr %11, align 8, !tbaa !5
  %256 = mul nsw i64 %255, %39
  %257 = getelementptr %struct.doublecomplex, ptr %41, i64 %256
  %258 = getelementptr i8, ptr %257, i64 16
  %259 = add nsw i64 %255, 1
  %260 = mul nsw i64 %259, %39
  %261 = getelementptr %struct.doublecomplex, ptr %41, i64 %260
  %262 = getelementptr i8, ptr %261, i64 16
  %263 = call i32 @zrot_(ptr noundef nonnull %2, ptr noundef %258, ptr noundef nonnull @c__1, ptr noundef %262, ptr noundef nonnull @c__1, ptr noundef nonnull %23, ptr noundef nonnull %15) #6
  br label %264

264:                                              ; preds = %254, %202
  %265 = load i64, ptr %0, align 8, !tbaa !5
  %.not161 = icmp eq i64 %265, 0
  br i1 %.not161, label %277, label %266

266:                                              ; preds = %264
  call void @d_cnjg(ptr noundef nonnull %15, ptr noundef nonnull %24) #6
  %267 = load i64, ptr %11, align 8, !tbaa !5
  %268 = mul nsw i64 %267, %36
  %269 = getelementptr %struct.doublecomplex, ptr %38, i64 %268
  %270 = getelementptr i8, ptr %269, i64 16
  %271 = add nsw i64 %267, 1
  %272 = mul nsw i64 %271, %36
  %273 = getelementptr %struct.doublecomplex, ptr %38, i64 %272
  %274 = getelementptr i8, ptr %273, i64 16
  %275 = call i32 @zrot_(ptr noundef nonnull %2, ptr noundef %270, ptr noundef nonnull @c__1, ptr noundef %274, ptr noundef nonnull @c__1, ptr noundef nonnull %22, ptr noundef nonnull %15) #6
  br label %277

276:                                              ; preds = %128, %44
  store i64 1, ptr %12, align 8, !tbaa !5
  br label %277

277:                                              ; preds = %264, %266, %13, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  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 i32 @zlacpy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

declare i32 @zlassq_(ptr noundef, ptr noundef, 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

declare double @z_abs(ptr noundef) local_unnamed_addr #2

declare i32 @zlartg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @zrot_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !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, !10, i64 8}
!12 = !{!"", !10, i64 0, !10, i64 8}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass