; LLVM IR from tangjz/acm-icpc :: lydsy/4752.ll (Z7PolyMuliPiiS_S_)

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

%struct.complex = type { double, double }

@mod = external dso_local global i32, align 4
@nlim = external dso_local global i32, align 4
@sp = external dso_local global i32, align 4
@msk = external dso_local global i32, align 4
@sd = external dso_local global i32, align 4
@_ZZ7PolyMuliPiiS_S_E1X = external hidden global [1025 x %struct.complex], align 16
@_ZGVZ7PolyMuliPiiS_S_E1X = external hidden global i64, align 8
@_ZZ7PolyMuliPiiS_S_E1Y = external hidden global [1025 x %struct.complex], align 16
@_ZGVZ7PolyMuliPiiS_S_E1Y = external hidden global i64, align 8
@_ZZ7PolyMuliPiiS_S_E2tr = external hidden global %struct.complex, align 8
@_ZGVZ7PolyMuliPiiS_S_E2tr = external hidden global i64, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3FFTiP7complexi(i32 noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7PolyMuliPiiS_S_(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.complex, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.complex, align 8
  %20 = alloca %struct.complex, align 8
  %21 = alloca %struct.complex, align 8
  %22 = alloca %struct.complex, align 8
  %23 = alloca %struct.complex, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %struct.complex, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %struct.complex, align 8
  %31 = alloca %struct.complex, align 8
  %32 = alloca %struct.complex, align 8
  %33 = alloca %struct.complex, align 8
  %34 = alloca %struct.complex, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %struct.complex, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %struct.complex, align 8
  %41 = alloca %struct.complex, align 8
  %42 = alloca %struct.complex, align 8
  %43 = alloca %struct.complex, align 8
  %44 = alloca %struct.complex, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca %struct.complex, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca %struct.complex, align 8
  %51 = alloca %struct.complex, align 8
  %52 = alloca %struct.complex, align 8
  %53 = alloca %struct.complex, align 8
  %54 = alloca %struct.complex, align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca %struct.complex, align 8
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca %struct.complex, align 8
  %61 = alloca %struct.complex, align 8
  %62 = alloca %struct.complex, align 8
  %63 = alloca %struct.complex, align 8
  %64 = alloca %struct.complex, align 8
  %65 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !9
  %66 = load atomic i8, ptr @_ZGVZ7PolyMuliPiiS_S_E1X acquire, align 8
  %67 = icmp eq i8 %66, 0
  br i1 %67, label %68, label %78, !prof !11

68:                                               ; preds = %5
  %69 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ7PolyMuliPiiS_S_E1X) #4
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %78

71:                                               ; preds = %68
  br label %72

72:                                               ; preds = %74, %71
  %73 = phi ptr [ @_ZZ7PolyMuliPiiS_S_E1X, %71 ], [ %75, %74 ]
  invoke void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %73)
          to label %74 unwind label %111

74:                                               ; preds = %72
  %75 = getelementptr inbounds %struct.complex, ptr %73, i64 1
  %76 = icmp eq ptr %75, getelementptr inbounds (%struct.complex, ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 1025)
  br i1 %76, label %77, label %72

77:                                               ; preds = %74
  call void @__cxa_guard_release(ptr @_ZGVZ7PolyMuliPiiS_S_E1X) #4
  br label %78

78:                                               ; preds = %77, %68, %5
  %79 = load atomic i8, ptr @_ZGVZ7PolyMuliPiiS_S_E1Y acquire, align 8
  %80 = icmp eq i8 %79, 0
  br i1 %80, label %81, label %91, !prof !11

81:                                               ; preds = %78
  %82 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ7PolyMuliPiiS_S_E1Y) #4
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %91

84:                                               ; preds = %81
  br label %85

85:                                               ; preds = %87, %84
  %86 = phi ptr [ @_ZZ7PolyMuliPiiS_S_E1Y, %84 ], [ %88, %87 ]
  invoke void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %86)
          to label %87 unwind label %115

87:                                               ; preds = %85
  %88 = getelementptr inbounds %struct.complex, ptr %86, i64 1
  %89 = icmp eq ptr %88, getelementptr inbounds (%struct.complex, ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 1025)
  br i1 %89, label %90, label %85

90:                                               ; preds = %87
  call void @__cxa_guard_release(ptr @_ZGVZ7PolyMuliPiiS_S_E1Y) #4
  br label %91

91:                                               ; preds = %90, %81, %78
  %92 = load atomic i8, ptr @_ZGVZ7PolyMuliPiiS_S_E2tr acquire, align 8
  %93 = icmp eq i8 %92, 0
  br i1 %93, label %94, label %99, !prof !11

94:                                               ; preds = %91
  %95 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ7PolyMuliPiiS_S_E2tr) #4
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  invoke void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr, double noundef 0.000000e+00, double noundef -2.500000e-01)
          to label %98 unwind label %119

98:                                               ; preds = %97
  call void @__cxa_guard_release(ptr @_ZGVZ7PolyMuliPiiS_S_E2tr) #4
  br label %99

99:                                               ; preds = %98, %94, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = add nsw i32 %100, %101
  store i32 %102, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %108, %99
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %107, label %123

107:                                              ; preds = %103
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %14, align 4, !tbaa !5
  %110 = shl i32 %109, 1
  store i32 %110, ptr %14, align 4, !tbaa !5
  br label %103, !llvm.loop !12

111:                                              ; preds = %72
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ7PolyMuliPiiS_S_E1X) #4
  br label %787

115:                                              ; preds = %85
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %11, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %12, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ7PolyMuliPiiS_S_E1Y) #4
  br label %787

119:                                              ; preds = %97
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %11, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %12, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ7PolyMuliPiiS_S_E2tr) #4
  br label %787

123:                                              ; preds = %103
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr @nlim, align 4, !tbaa !5
  %127 = icmp sle i32 %125, %126
  br i1 %127, label %128, label %250

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %164, %128
  %130 = load i32, ptr %15, align 4, !tbaa !5
  %131 = load i32, ptr %14, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %167

134:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %138, label %144

138:                                              ; preds = %134
  %139 = load ptr, ptr %7, align 8, !tbaa !9
  %140 = load i32, ptr %15, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i32, ptr %139, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  br label %145

144:                                              ; preds = %134
  br label %145

145:                                              ; preds = %144, %138
  %146 = phi i32 [ %143, %138 ], [ 0, %144 ]
  %147 = sitofp i32 %146 to double
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = load i32, ptr %8, align 4, !tbaa !5
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %151, label %157

151:                                              ; preds = %145
  %152 = load ptr, ptr %9, align 8, !tbaa !9
  %153 = load i32, ptr %15, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %152, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  br label %158

157:                                              ; preds = %145
  br label %158

158:                                              ; preds = %157, %151
  %159 = phi i32 [ %156, %151 ], [ 0, %157 ]
  %160 = sitofp i32 %159 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %147, double noundef %160)
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %162
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %163, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  br label %164

164:                                              ; preds = %158
  %165 = load i32, ptr %15, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %15, align 4, !tbaa !5
  br label %129, !llvm.loop !17

167:                                              ; preds = %133
  %168 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %168, ptr noundef @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %169 = load i32, ptr %14, align 4, !tbaa !5
  %170 = load i32, ptr %17, align 4, !tbaa !5
  %171 = sub nsw i32 %169, %170
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = sub nsw i32 %172, 1
  %174 = and i32 %171, %173
  store i32 %174, ptr %18, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %215, %167
  %176 = load i32, ptr %17, align 4, !tbaa !5
  %177 = load i32, ptr %14, align 4, !tbaa !5
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %223

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %181 = load i32, ptr %17, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %182
  %184 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %183)
  %185 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %186 = extractvalue { double, double } %184, 0
  store double %186, ptr %185, align 8
  %187 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %188 = extractvalue { double, double } %184, 1
  store double %188, ptr %187, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %189 = load i32, ptr %18, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %190
  %192 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %191)
  %193 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %194 = extractvalue { double, double } %192, 0
  store double %194, ptr %193, align 8
  %195 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %196 = extractvalue { double, double } %192, 1
  store double %196, ptr %195, align 8
  %197 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %198 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %199 = extractvalue { double, double } %197, 0
  store double %199, ptr %198, align 8
  %200 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %201 = extractvalue { double, double } %197, 1
  store double %201, ptr %200, align 8
  %202 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %203 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %204 = extractvalue { double, double } %202, 0
  store double %204, ptr %203, align 8
  %205 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %206 = extractvalue { double, double } %202, 1
  store double %206, ptr %205, align 8
  %207 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %208 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %209 = extractvalue { double, double } %207, 0
  store double %209, ptr %208, align 8
  %210 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %211 = extractvalue { double, double } %207, 1
  store double %211, ptr %210, align 8
  %212 = load i32, ptr %17, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %213
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %214, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  br label %215

215:                                              ; preds = %180
  %216 = load i32, ptr %14, align 4, !tbaa !5
  %217 = load i32, ptr %17, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %17, align 4, !tbaa !5
  %219 = sub nsw i32 %216, %218
  %220 = load i32, ptr %14, align 4, !tbaa !5
  %221 = sub nsw i32 %220, 1
  %222 = and i32 %219, %221
  store i32 %222, ptr %18, align 4, !tbaa !5
  br label %175, !llvm.loop !18

223:                                              ; preds = %179
  %224 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %224, ptr noundef @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %225

225:                                              ; preds = %246, %223
  %226 = load i32, ptr %24, align 4, !tbaa !5
  %227 = load i32, ptr %13, align 4, !tbaa !5
  %228 = icmp slt i32 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %249

230:                                              ; preds = %225
  %231 = load i32, ptr %24, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %232
  %234 = getelementptr inbounds %struct.complex, ptr %233, i32 0, i32 0
  %235 = load double, ptr %234, align 16, !tbaa !19
  %236 = fadd double %235, 5.000000e-01
  %237 = fptosi double %236 to i64
  %238 = load i32, ptr @mod, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = srem i64 %237, %239
  %241 = trunc i64 %240 to i32
  %242 = load ptr, ptr %10, align 8, !tbaa !9
  %243 = load i32, ptr %24, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds i32, ptr %242, i64 %244
  store i32 %241, ptr %245, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %230
  %247 = load i32, ptr %24, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %24, align 4, !tbaa !5
  br label %225, !llvm.loop !21

249:                                              ; preds = %229
  store i32 1, ptr %25, align 4
  br label %784

250:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %251

251:                                              ; preds = %290, %250
  %252 = load i32, ptr %26, align 4, !tbaa !5
  %253 = load i32, ptr %14, align 4, !tbaa !5
  %254 = icmp slt i32 %252, %253
  br i1 %254, label %256, label %255

255:                                              ; preds = %251
  store i32 14, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %293

256:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  %257 = load i32, ptr %26, align 4, !tbaa !5
  %258 = load i32, ptr %6, align 4, !tbaa !5
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %260, label %268

260:                                              ; preds = %256
  %261 = load ptr, ptr %7, align 8, !tbaa !9
  %262 = load i32, ptr %26, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds i32, ptr %261, i64 %263
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = load i32, ptr @msk, align 4, !tbaa !5
  %267 = and i32 %265, %266
  br label %269

268:                                              ; preds = %256
  br label %269

269:                                              ; preds = %268, %260
  %270 = phi i32 [ %267, %260 ], [ 0, %268 ]
  %271 = sitofp i32 %270 to double
  %272 = load i32, ptr %26, align 4, !tbaa !5
  %273 = load i32, ptr %8, align 4, !tbaa !5
  %274 = icmp slt i32 %272, %273
  br i1 %274, label %275, label %283

275:                                              ; preds = %269
  %276 = load ptr, ptr %9, align 8, !tbaa !9
  %277 = load i32, ptr %26, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds i32, ptr %276, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = load i32, ptr @msk, align 4, !tbaa !5
  %282 = and i32 %280, %281
  br label %284

283:                                              ; preds = %269
  br label %284

284:                                              ; preds = %283, %275
  %285 = phi i32 [ %282, %275 ], [ 0, %283 ]
  %286 = sitofp i32 %285 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef %271, double noundef %286)
  %287 = load i32, ptr %26, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %288
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %289, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  br label %290

290:                                              ; preds = %284
  %291 = load i32, ptr %26, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %26, align 4, !tbaa !5
  br label %251, !llvm.loop !22

293:                                              ; preds = %255
  %294 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %294, ptr noundef @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %295 = load i32, ptr %14, align 4, !tbaa !5
  %296 = load i32, ptr %28, align 4, !tbaa !5
  %297 = sub nsw i32 %295, %296
  %298 = load i32, ptr %14, align 4, !tbaa !5
  %299 = sub nsw i32 %298, 1
  %300 = and i32 %297, %299
  store i32 %300, ptr %29, align 4, !tbaa !5
  br label %301

301:                                              ; preds = %341, %293
  %302 = load i32, ptr %28, align 4, !tbaa !5
  %303 = load i32, ptr %14, align 4, !tbaa !5
  %304 = icmp slt i32 %302, %303
  br i1 %304, label %306, label %305

305:                                              ; preds = %301
  store i32 17, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %349

306:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #4
  %307 = load i32, ptr %28, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %308
  %310 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %309)
  %311 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %312 = extractvalue { double, double } %310, 0
  store double %312, ptr %311, align 8
  %313 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %314 = extractvalue { double, double } %310, 1
  store double %314, ptr %313, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #4
  %315 = load i32, ptr %29, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %316
  %318 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %317)
  %319 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %320 = extractvalue { double, double } %318, 0
  store double %320, ptr %319, align 8
  %321 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %322 = extractvalue { double, double } %318, 1
  store double %322, ptr %321, align 8
  %323 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
  %324 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %325 = extractvalue { double, double } %323, 0
  store double %325, ptr %324, align 8
  %326 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %327 = extractvalue { double, double } %323, 1
  store double %327, ptr %326, align 8
  %328 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %33)
  %329 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %330 = extractvalue { double, double } %328, 0
  store double %330, ptr %329, align 8
  %331 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %332 = extractvalue { double, double } %328, 1
  store double %332, ptr %331, align 8
  %333 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %334 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %335 = extractvalue { double, double } %333, 0
  store double %335, ptr %334, align 8
  %336 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %337 = extractvalue { double, double } %333, 1
  store double %337, ptr %336, align 8
  %338 = load i32, ptr %28, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %339
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %340, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  br label %341

341:                                              ; preds = %306
  %342 = load i32, ptr %14, align 4, !tbaa !5
  %343 = load i32, ptr %28, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %28, align 4, !tbaa !5
  %345 = sub nsw i32 %342, %344
  %346 = load i32, ptr %14, align 4, !tbaa !5
  %347 = sub nsw i32 %346, 1
  %348 = and i32 %345, %347
  store i32 %348, ptr %29, align 4, !tbaa !5
  br label %301, !llvm.loop !23

349:                                              ; preds = %305
  %350 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %350, ptr noundef @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %351

351:                                              ; preds = %372, %349
  %352 = load i32, ptr %35, align 4, !tbaa !5
  %353 = load i32, ptr %13, align 4, !tbaa !5
  %354 = icmp slt i32 %352, %353
  br i1 %354, label %356, label %355

355:                                              ; preds = %351
  store i32 20, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  br label %375

356:                                              ; preds = %351
  %357 = load i32, ptr %35, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %358
  %360 = getelementptr inbounds %struct.complex, ptr %359, i32 0, i32 0
  %361 = load double, ptr %360, align 16, !tbaa !19
  %362 = fadd double %361, 5.000000e-01
  %363 = fptosi double %362 to i64
  %364 = load i32, ptr @mod, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = srem i64 %363, %365
  %367 = trunc i64 %366 to i32
  %368 = load ptr, ptr %10, align 8, !tbaa !9
  %369 = load i32, ptr %35, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds i32, ptr %368, i64 %370
  store i32 %367, ptr %371, align 4, !tbaa !5
  br label %372

372:                                              ; preds = %356
  %373 = load i32, ptr %35, align 4, !tbaa !5
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %35, align 4, !tbaa !5
  br label %351, !llvm.loop !24

375:                                              ; preds = %355
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %376

376:                                              ; preds = %415, %375
  %377 = load i32, ptr %36, align 4, !tbaa !5
  %378 = load i32, ptr %14, align 4, !tbaa !5
  %379 = icmp slt i32 %377, %378
  br i1 %379, label %381, label %380

380:                                              ; preds = %376
  store i32 23, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  br label %418

381:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #4
  %382 = load i32, ptr %36, align 4, !tbaa !5
  %383 = load i32, ptr %6, align 4, !tbaa !5
  %384 = icmp slt i32 %382, %383
  br i1 %384, label %385, label %393

385:                                              ; preds = %381
  %386 = load ptr, ptr %7, align 8, !tbaa !9
  %387 = load i32, ptr %36, align 4, !tbaa !5
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds i32, ptr %386, i64 %388
  %390 = load i32, ptr %389, align 4, !tbaa !5
  %391 = load i32, ptr @msk, align 4, !tbaa !5
  %392 = and i32 %390, %391
  br label %394

393:                                              ; preds = %381
  br label %394

394:                                              ; preds = %393, %385
  %395 = phi i32 [ %392, %385 ], [ 0, %393 ]
  %396 = sitofp i32 %395 to double
  %397 = load i32, ptr %36, align 4, !tbaa !5
  %398 = load i32, ptr %8, align 4, !tbaa !5
  %399 = icmp slt i32 %397, %398
  br i1 %399, label %400, label %408

400:                                              ; preds = %394
  %401 = load ptr, ptr %9, align 8, !tbaa !9
  %402 = load i32, ptr %36, align 4, !tbaa !5
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds i32, ptr %401, i64 %403
  %405 = load i32, ptr %404, align 4, !tbaa !5
  %406 = load i32, ptr @sp, align 4, !tbaa !5
  %407 = ashr i32 %405, %406
  br label %409

408:                                              ; preds = %394
  br label %409

409:                                              ; preds = %408, %400
  %410 = phi i32 [ %407, %400 ], [ 0, %408 ]
  %411 = sitofp i32 %410 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %37, double noundef %396, double noundef %411)
  %412 = load i32, ptr %36, align 4, !tbaa !5
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %413
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %414, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #4
  br label %415

415:                                              ; preds = %409
  %416 = load i32, ptr %36, align 4, !tbaa !5
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %36, align 4, !tbaa !5
  br label %376, !llvm.loop !25

418:                                              ; preds = %380
  %419 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %419, ptr noundef @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %420 = load i32, ptr %14, align 4, !tbaa !5
  %421 = load i32, ptr %38, align 4, !tbaa !5
  %422 = sub nsw i32 %420, %421
  %423 = load i32, ptr %14, align 4, !tbaa !5
  %424 = sub nsw i32 %423, 1
  %425 = and i32 %422, %424
  store i32 %425, ptr %39, align 4, !tbaa !5
  br label %426

426:                                              ; preds = %466, %418
  %427 = load i32, ptr %38, align 4, !tbaa !5
  %428 = load i32, ptr %14, align 4, !tbaa !5
  %429 = icmp slt i32 %427, %428
  br i1 %429, label %431, label %430

430:                                              ; preds = %426
  store i32 26, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  br label %474

431:                                              ; preds = %426
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #4
  %432 = load i32, ptr %38, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %433
  %435 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %434)
  %436 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %437 = extractvalue { double, double } %435, 0
  store double %437, ptr %436, align 8
  %438 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %439 = extractvalue { double, double } %435, 1
  store double %439, ptr %438, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #4
  %440 = load i32, ptr %39, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %441
  %443 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %442)
  %444 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %445 = extractvalue { double, double } %443, 0
  store double %445, ptr %444, align 8
  %446 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %447 = extractvalue { double, double } %443, 1
  store double %447, ptr %446, align 8
  %448 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %449 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %450 = extractvalue { double, double } %448, 0
  store double %450, ptr %449, align 8
  %451 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %452 = extractvalue { double, double } %448, 1
  store double %452, ptr %451, align 8
  %453 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %43)
  %454 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %455 = extractvalue { double, double } %453, 0
  store double %455, ptr %454, align 8
  %456 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %457 = extractvalue { double, double } %453, 1
  store double %457, ptr %456, align 8
  %458 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %459 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %460 = extractvalue { double, double } %458, 0
  store double %460, ptr %459, align 8
  %461 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %462 = extractvalue { double, double } %458, 1
  store double %462, ptr %461, align 8
  %463 = load i32, ptr %38, align 4, !tbaa !5
  %464 = sext i32 %463 to i64
  %465 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %464
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %465, ptr align 8 %40, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #4
  br label %466

466:                                              ; preds = %431
  %467 = load i32, ptr %14, align 4, !tbaa !5
  %468 = load i32, ptr %38, align 4, !tbaa !5
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %38, align 4, !tbaa !5
  %470 = sub nsw i32 %467, %469
  %471 = load i32, ptr %14, align 4, !tbaa !5
  %472 = sub nsw i32 %471, 1
  %473 = and i32 %470, %472
  store i32 %473, ptr %39, align 4, !tbaa !5
  br label %426, !llvm.loop !26

474:                                              ; preds = %430
  %475 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %475, ptr noundef @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %476

476:                                              ; preds = %507, %474
  %477 = load i32, ptr %45, align 4, !tbaa !5
  %478 = load i32, ptr %13, align 4, !tbaa !5
  %479 = icmp slt i32 %477, %478
  br i1 %479, label %481, label %480

480:                                              ; preds = %476
  store i32 29, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  br label %510

481:                                              ; preds = %476
  %482 = load ptr, ptr %10, align 8, !tbaa !9
  %483 = load i32, ptr %45, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds i32, ptr %482, i64 %484
  %486 = load i32, ptr %485, align 4, !tbaa !5
  %487 = sext i32 %486 to i64
  %488 = load i32, ptr %45, align 4, !tbaa !5
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %489
  %491 = getelementptr inbounds %struct.complex, ptr %490, i32 0, i32 0
  %492 = load double, ptr %491, align 16, !tbaa !19
  %493 = fadd double %492, 5.000000e-01
  %494 = fptosi double %493 to i64
  %495 = load i32, ptr @sp, align 4, !tbaa !5
  %496 = zext i32 %495 to i64
  %497 = shl i64 %494, %496
  %498 = add nsw i64 %487, %497
  %499 = load i32, ptr @mod, align 4, !tbaa !5
  %500 = sext i32 %499 to i64
  %501 = srem i64 %498, %500
  %502 = trunc i64 %501 to i32
  %503 = load ptr, ptr %10, align 8, !tbaa !9
  %504 = load i32, ptr %45, align 4, !tbaa !5
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds i32, ptr %503, i64 %505
  store i32 %502, ptr %506, align 4, !tbaa !5
  br label %507

507:                                              ; preds = %481
  %508 = load i32, ptr %45, align 4, !tbaa !5
  %509 = add nsw i32 %508, 1
  store i32 %509, ptr %45, align 4, !tbaa !5
  br label %476, !llvm.loop !27

510:                                              ; preds = %480
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #4
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %511

511:                                              ; preds = %550, %510
  %512 = load i32, ptr %46, align 4, !tbaa !5
  %513 = load i32, ptr %14, align 4, !tbaa !5
  %514 = icmp slt i32 %512, %513
  br i1 %514, label %516, label %515

515:                                              ; preds = %511
  store i32 32, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #4
  br label %553

516:                                              ; preds = %511
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #4
  %517 = load i32, ptr %46, align 4, !tbaa !5
  %518 = load i32, ptr %6, align 4, !tbaa !5
  %519 = icmp slt i32 %517, %518
  br i1 %519, label %520, label %528

520:                                              ; preds = %516
  %521 = load ptr, ptr %7, align 8, !tbaa !9
  %522 = load i32, ptr %46, align 4, !tbaa !5
  %523 = sext i32 %522 to i64
  %524 = getelementptr inbounds i32, ptr %521, i64 %523
  %525 = load i32, ptr %524, align 4, !tbaa !5
  %526 = load i32, ptr @sp, align 4, !tbaa !5
  %527 = ashr i32 %525, %526
  br label %529

528:                                              ; preds = %516
  br label %529

529:                                              ; preds = %528, %520
  %530 = phi i32 [ %527, %520 ], [ 0, %528 ]
  %531 = sitofp i32 %530 to double
  %532 = load i32, ptr %46, align 4, !tbaa !5
  %533 = load i32, ptr %8, align 4, !tbaa !5
  %534 = icmp slt i32 %532, %533
  br i1 %534, label %535, label %543

535:                                              ; preds = %529
  %536 = load ptr, ptr %9, align 8, !tbaa !9
  %537 = load i32, ptr %46, align 4, !tbaa !5
  %538 = sext i32 %537 to i64
  %539 = getelementptr inbounds i32, ptr %536, i64 %538
  %540 = load i32, ptr %539, align 4, !tbaa !5
  %541 = load i32, ptr @msk, align 4, !tbaa !5
  %542 = and i32 %540, %541
  br label %544

543:                                              ; preds = %529
  br label %544

544:                                              ; preds = %543, %535
  %545 = phi i32 [ %542, %535 ], [ 0, %543 ]
  %546 = sitofp i32 %545 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %47, double noundef %531, double noundef %546)
  %547 = load i32, ptr %46, align 4, !tbaa !5
  %548 = sext i32 %547 to i64
  %549 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %548
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %549, ptr align 8 %47, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #4
  br label %550

550:                                              ; preds = %544
  %551 = load i32, ptr %46, align 4, !tbaa !5
  %552 = add nsw i32 %551, 1
  store i32 %552, ptr %46, align 4, !tbaa !5
  br label %511, !llvm.loop !28

553:                                              ; preds = %515
  %554 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %554, ptr noundef @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #4
  store i32 0, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #4
  %555 = load i32, ptr %14, align 4, !tbaa !5
  %556 = load i32, ptr %48, align 4, !tbaa !5
  %557 = sub nsw i32 %555, %556
  %558 = load i32, ptr %14, align 4, !tbaa !5
  %559 = sub nsw i32 %558, 1
  %560 = and i32 %557, %559
  store i32 %560, ptr %49, align 4, !tbaa !5
  br label %561

561:                                              ; preds = %601, %553
  %562 = load i32, ptr %48, align 4, !tbaa !5
  %563 = load i32, ptr %14, align 4, !tbaa !5
  %564 = icmp slt i32 %562, %563
  br i1 %564, label %566, label %565

565:                                              ; preds = %561
  store i32 35, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  br label %609

566:                                              ; preds = %561
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #4
  %567 = load i32, ptr %48, align 4, !tbaa !5
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %568
  %570 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %569)
  %571 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %572 = extractvalue { double, double } %570, 0
  store double %572, ptr %571, align 8
  %573 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %574 = extractvalue { double, double } %570, 1
  store double %574, ptr %573, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #4
  %575 = load i32, ptr %49, align 4, !tbaa !5
  %576 = sext i32 %575 to i64
  %577 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %576
  %578 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %577)
  %579 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %580 = extractvalue { double, double } %578, 0
  store double %580, ptr %579, align 8
  %581 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %582 = extractvalue { double, double } %578, 1
  store double %582, ptr %581, align 8
  %583 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %54)
  %584 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %585 = extractvalue { double, double } %583, 0
  store double %585, ptr %584, align 8
  %586 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %587 = extractvalue { double, double } %583, 1
  store double %587, ptr %586, align 8
  %588 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %53)
  %589 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %590 = extractvalue { double, double } %588, 0
  store double %590, ptr %589, align 8
  %591 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %592 = extractvalue { double, double } %588, 1
  store double %592, ptr %591, align 8
  %593 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %594 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %595 = extractvalue { double, double } %593, 0
  store double %595, ptr %594, align 8
  %596 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %597 = extractvalue { double, double } %593, 1
  store double %597, ptr %596, align 8
  %598 = load i32, ptr %48, align 4, !tbaa !5
  %599 = sext i32 %598 to i64
  %600 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %599
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %600, ptr align 8 %50, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #4
  br label %601

601:                                              ; preds = %566
  %602 = load i32, ptr %14, align 4, !tbaa !5
  %603 = load i32, ptr %48, align 4, !tbaa !5
  %604 = add nsw i32 %603, 1
  store i32 %604, ptr %48, align 4, !tbaa !5
  %605 = sub nsw i32 %602, %604
  %606 = load i32, ptr %14, align 4, !tbaa !5
  %607 = sub nsw i32 %606, 1
  %608 = and i32 %605, %607
  store i32 %608, ptr %49, align 4, !tbaa !5
  br label %561, !llvm.loop !29

609:                                              ; preds = %565
  %610 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %610, ptr noundef @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #4
  store i32 0, ptr %55, align 4, !tbaa !5
  br label %611

611:                                              ; preds = %642, %609
  %612 = load i32, ptr %55, align 4, !tbaa !5
  %613 = load i32, ptr %13, align 4, !tbaa !5
  %614 = icmp slt i32 %612, %613
  br i1 %614, label %616, label %615

615:                                              ; preds = %611
  store i32 38, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #4
  br label %645

616:                                              ; preds = %611
  %617 = load ptr, ptr %10, align 8, !tbaa !9
  %618 = load i32, ptr %55, align 4, !tbaa !5
  %619 = sext i32 %618 to i64
  %620 = getelementptr inbounds i32, ptr %617, i64 %619
  %621 = load i32, ptr %620, align 4, !tbaa !5
  %622 = sext i32 %621 to i64
  %623 = load i32, ptr %55, align 4, !tbaa !5
  %624 = sext i32 %623 to i64
  %625 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %624
  %626 = getelementptr inbounds %struct.complex, ptr %625, i32 0, i32 0
  %627 = load double, ptr %626, align 16, !tbaa !19
  %628 = fadd double %627, 5.000000e-01
  %629 = fptosi double %628 to i64
  %630 = load i32, ptr @sp, align 4, !tbaa !5
  %631 = zext i32 %630 to i64
  %632 = shl i64 %629, %631
  %633 = add nsw i64 %622, %632
  %634 = load i32, ptr @mod, align 4, !tbaa !5
  %635 = sext i32 %634 to i64
  %636 = srem i64 %633, %635
  %637 = trunc i64 %636 to i32
  %638 = load ptr, ptr %10, align 8, !tbaa !9
  %639 = load i32, ptr %55, align 4, !tbaa !5
  %640 = sext i32 %639 to i64
  %641 = getelementptr inbounds i32, ptr %638, i64 %640
  store i32 %637, ptr %641, align 4, !tbaa !5
  br label %642

642:                                              ; preds = %616
  %643 = load i32, ptr %55, align 4, !tbaa !5
  %644 = add nsw i32 %643, 1
  store i32 %644, ptr %55, align 4, !tbaa !5
  br label %611, !llvm.loop !30

645:                                              ; preds = %615
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #4
  store i32 0, ptr %56, align 4, !tbaa !5
  br label %646

646:                                              ; preds = %685, %645
  %647 = load i32, ptr %56, align 4, !tbaa !5
  %648 = load i32, ptr %14, align 4, !tbaa !5
  %649 = icmp slt i32 %647, %648
  br i1 %649, label %651, label %650

650:                                              ; preds = %646
  store i32 41, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #4
  br label %688

651:                                              ; preds = %646
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #4
  %652 = load i32, ptr %56, align 4, !tbaa !5
  %653 = load i32, ptr %6, align 4, !tbaa !5
  %654 = icmp slt i32 %652, %653
  br i1 %654, label %655, label %663

655:                                              ; preds = %651
  %656 = load ptr, ptr %7, align 8, !tbaa !9
  %657 = load i32, ptr %56, align 4, !tbaa !5
  %658 = sext i32 %657 to i64
  %659 = getelementptr inbounds i32, ptr %656, i64 %658
  %660 = load i32, ptr %659, align 4, !tbaa !5
  %661 = load i32, ptr @sp, align 4, !tbaa !5
  %662 = ashr i32 %660, %661
  br label %664

663:                                              ; preds = %651
  br label %664

664:                                              ; preds = %663, %655
  %665 = phi i32 [ %662, %655 ], [ 0, %663 ]
  %666 = sitofp i32 %665 to double
  %667 = load i32, ptr %56, align 4, !tbaa !5
  %668 = load i32, ptr %8, align 4, !tbaa !5
  %669 = icmp slt i32 %667, %668
  br i1 %669, label %670, label %678

670:                                              ; preds = %664
  %671 = load ptr, ptr %9, align 8, !tbaa !9
  %672 = load i32, ptr %56, align 4, !tbaa !5
  %673 = sext i32 %672 to i64
  %674 = getelementptr inbounds i32, ptr %671, i64 %673
  %675 = load i32, ptr %674, align 4, !tbaa !5
  %676 = load i32, ptr @sp, align 4, !tbaa !5
  %677 = ashr i32 %675, %676
  br label %679

678:                                              ; preds = %664
  br label %679

679:                                              ; preds = %678, %670
  %680 = phi i32 [ %677, %670 ], [ 0, %678 ]
  %681 = sitofp i32 %680 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %57, double noundef %666, double noundef %681)
  %682 = load i32, ptr %56, align 4, !tbaa !5
  %683 = sext i32 %682 to i64
  %684 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %683
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %684, ptr align 8 %57, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #4
  br label %685

685:                                              ; preds = %679
  %686 = load i32, ptr %56, align 4, !tbaa !5
  %687 = add nsw i32 %686, 1
  store i32 %687, ptr %56, align 4, !tbaa !5
  br label %646, !llvm.loop !31

688:                                              ; preds = %650
  %689 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %689, ptr noundef @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #4
  store i32 0, ptr %58, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #4
  %690 = load i32, ptr %14, align 4, !tbaa !5
  %691 = load i32, ptr %58, align 4, !tbaa !5
  %692 = sub nsw i32 %690, %691
  %693 = load i32, ptr %14, align 4, !tbaa !5
  %694 = sub nsw i32 %693, 1
  %695 = and i32 %692, %694
  store i32 %695, ptr %59, align 4, !tbaa !5
  br label %696

696:                                              ; preds = %736, %688
  %697 = load i32, ptr %58, align 4, !tbaa !5
  %698 = load i32, ptr %14, align 4, !tbaa !5
  %699 = icmp slt i32 %697, %698
  br i1 %699, label %701, label %700

700:                                              ; preds = %696
  store i32 44, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #4
  br label %744

701:                                              ; preds = %696
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #4
  %702 = load i32, ptr %58, align 4, !tbaa !5
  %703 = sext i32 %702 to i64
  %704 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %703
  %705 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %704)
  %706 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %707 = extractvalue { double, double } %705, 0
  store double %707, ptr %706, align 8
  %708 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %709 = extractvalue { double, double } %705, 1
  store double %709, ptr %708, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #4
  %710 = load i32, ptr %59, align 4, !tbaa !5
  %711 = sext i32 %710 to i64
  %712 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %711
  %713 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %712)
  %714 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %715 = extractvalue { double, double } %713, 0
  store double %715, ptr %714, align 8
  %716 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %717 = extractvalue { double, double } %713, 1
  store double %717, ptr %716, align 8
  %718 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
  %719 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %720 = extractvalue { double, double } %718, 0
  store double %720, ptr %719, align 8
  %721 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %722 = extractvalue { double, double } %718, 1
  store double %722, ptr %721, align 8
  %723 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 8 dereferenceable(16) %63)
  %724 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %725 = extractvalue { double, double } %723, 0
  store double %725, ptr %724, align 8
  %726 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %727 = extractvalue { double, double } %723, 1
  store double %727, ptr %726, align 8
  %728 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %729 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %730 = extractvalue { double, double } %728, 0
  store double %730, ptr %729, align 8
  %731 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %732 = extractvalue { double, double } %728, 1
  store double %732, ptr %731, align 8
  %733 = load i32, ptr %58, align 4, !tbaa !5
  %734 = sext i32 %733 to i64
  %735 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %734
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %735, ptr align 8 %60, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #4
  br label %736

736:                                              ; preds = %701
  %737 = load i32, ptr %14, align 4, !tbaa !5
  %738 = load i32, ptr %58, align 4, !tbaa !5
  %739 = add nsw i32 %738, 1
  store i32 %739, ptr %58, align 4, !tbaa !5
  %740 = sub nsw i32 %737, %739
  %741 = load i32, ptr %14, align 4, !tbaa !5
  %742 = sub nsw i32 %741, 1
  %743 = and i32 %740, %742
  store i32 %743, ptr %59, align 4, !tbaa !5
  br label %696, !llvm.loop !32

744:                                              ; preds = %700
  %745 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %745, ptr noundef @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #4
  store i32 0, ptr %65, align 4, !tbaa !5
  br label %746

746:                                              ; preds = %780, %744
  %747 = load i32, ptr %65, align 4, !tbaa !5
  %748 = load i32, ptr %13, align 4, !tbaa !5
  %749 = icmp slt i32 %747, %748
  br i1 %749, label %751, label %750

750:                                              ; preds = %746
  store i32 47, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #4
  br label %783

751:                                              ; preds = %746
  %752 = load ptr, ptr %10, align 8, !tbaa !9
  %753 = load i32, ptr %65, align 4, !tbaa !5
  %754 = sext i32 %753 to i64
  %755 = getelementptr inbounds i32, ptr %752, i64 %754
  %756 = load i32, ptr %755, align 4, !tbaa !5
  %757 = sext i32 %756 to i64
  %758 = load i32, ptr %65, align 4, !tbaa !5
  %759 = sext i32 %758 to i64
  %760 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %759
  %761 = getelementptr inbounds %struct.complex, ptr %760, i32 0, i32 0
  %762 = load double, ptr %761, align 16, !tbaa !19
  %763 = fadd double %762, 5.000000e-01
  %764 = fptosi double %763 to i64
  %765 = load i32, ptr @mod, align 4, !tbaa !5
  %766 = sext i32 %765 to i64
  %767 = srem i64 %764, %766
  %768 = load i32, ptr @sd, align 4, !tbaa !5
  %769 = sext i32 %768 to i64
  %770 = mul nsw i64 %767, %769
  %771 = add nsw i64 %757, %770
  %772 = load i32, ptr @mod, align 4, !tbaa !5
  %773 = sext i32 %772 to i64
  %774 = srem i64 %771, %773
  %775 = trunc i64 %774 to i32
  %776 = load ptr, ptr %10, align 8, !tbaa !9
  %777 = load i32, ptr %65, align 4, !tbaa !5
  %778 = sext i32 %777 to i64
  %779 = getelementptr inbounds i32, ptr %776, i64 %778
  store i32 %775, ptr %779, align 4, !tbaa !5
  br label %780

780:                                              ; preds = %751
  %781 = load i32, ptr %65, align 4, !tbaa !5
  %782 = add nsw i32 %781, 1
  store i32 %782, ptr %65, align 4, !tbaa !5
  br label %746, !llvm.loop !33

783:                                              ; preds = %750
  store i32 0, ptr %25, align 4
  br label %784

784:                                              ; preds = %783, %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %785 = load i32, ptr %25, align 4
  switch i32 %785, label %792 [
    i32 0, label %786
    i32 1, label %786
  ]

786:                                              ; preds = %784, %784
  ret void

787:                                              ; preds = %119, %115, %111
  %788 = load ptr, ptr %11, align 8
  %789 = load i32, ptr %12, align 4
  %790 = insertvalue { ptr, i32 } poison, ptr %788, 0
  %791 = insertvalue { ptr, i32 } %790, i32 %789, 1
  resume { ptr, i32 } %791

792:                                              ; preds = %784
  unreachable
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #4

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

attributes #0 = { mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
attributes #5 = { inlinehint mustprogress 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" }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"branch_weights", i32 1, i32 1048575}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{i64 0, i64 8, !15, i64 8, i64 8, !15}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{!20, !16, i64 0}
!20 = !{!"_ZTS7complex", !16, i64 0, !16, i64 8}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}
!24 = distinct !{!24, !13}
!25 = distinct !{!25, !13}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}
!29 = distinct !{!29, !13}
!30 = distinct !{!30, !13}
!31 = distinct !{!31, !13}
!32 = distinct !{!32, !13}
!33 = distinct !{!33, !13}


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

%struct.complex = type { double, double }

@mod = external dso_local local_unnamed_addr global i32, align 4
@nlim = external dso_local local_unnamed_addr global i32, align 4
@sp = external dso_local local_unnamed_addr global i32, align 4
@msk = external dso_local local_unnamed_addr global i32, align 4
@sd = external dso_local local_unnamed_addr global i32, align 4
@_ZZ7PolyMuliPiiS_S_E1X = external hidden global [1025 x %struct.complex], align 16
@_ZGVZ7PolyMuliPiiS_S_E1X = external hidden global i64, align 8
@_ZZ7PolyMuliPiiS_S_E1Y = external hidden global [1025 x %struct.complex], align 16
@_ZGVZ7PolyMuliPiiS_S_E1Y = external hidden global i64, align 8
@_ZZ7PolyMuliPiiS_S_E2tr = external hidden global %struct.complex, align 8
@_ZGVZ7PolyMuliPiiS_S_E2tr = external hidden global i64, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3FFTiP7complexi(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7PolyMuliPiiS_S_(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.complex, align 8
  %9 = alloca %struct.complex, align 8
  %10 = alloca %struct.complex, align 8
  %11 = alloca %struct.complex, align 8
  %12 = alloca %struct.complex, align 8
  %13 = alloca %struct.complex, align 8
  %14 = alloca %struct.complex, align 8
  %15 = alloca %struct.complex, align 8
  %16 = alloca %struct.complex, align 8
  %17 = alloca %struct.complex, align 8
  %18 = alloca %struct.complex, align 8
  %19 = alloca %struct.complex, align 8
  %20 = alloca %struct.complex, align 8
  %21 = alloca %struct.complex, align 8
  %22 = alloca %struct.complex, align 8
  %23 = alloca %struct.complex, align 8
  %24 = alloca %struct.complex, align 8
  %25 = alloca %struct.complex, align 8
  %26 = alloca %struct.complex, align 8
  %27 = alloca %struct.complex, align 8
  %28 = alloca %struct.complex, align 8
  %29 = alloca %struct.complex, align 8
  %30 = alloca %struct.complex, align 8
  %31 = alloca %struct.complex, align 8
  %32 = alloca %struct.complex, align 8
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  %33 = load atomic i8, ptr @_ZGVZ7PolyMuliPiiS_S_E1X acquire, align 8
  %34 = icmp eq i8 %33, 0
  br i1 %34, label %35, label %39, !prof !9

35:                                               ; preds = %5
  %36 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ7PolyMuliPiiS_S_E1X) #6
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %39, label %.preheader196

.preheader196:                                    ; preds = %35, %.preheader196
  %.idx = phi i64 [ %.add, %.preheader196 ], [ 0, %35 ]
  %.ptr = getelementptr inbounds i8, ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 %.idx
  tail call void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr)
  %.add = add nuw nsw i64 %.idx, 16
  %37 = icmp eq i64 %.add, 16400
  br i1 %37, label %38, label %.preheader196

38:                                               ; preds = %.preheader196
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ7PolyMuliPiiS_S_E1X) #6
  br label %39

39:                                               ; preds = %38, %35, %5
  %40 = load atomic i8, ptr @_ZGVZ7PolyMuliPiiS_S_E1Y acquire, align 8
  %41 = icmp eq i8 %40, 0
  br i1 %41, label %42, label %46, !prof !9

42:                                               ; preds = %39
  %43 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ7PolyMuliPiiS_S_E1Y) #6
  %.not183 = icmp eq i32 %43, 0
  br i1 %.not183, label %46, label %.preheader195

.preheader195:                                    ; preds = %42, %.preheader195
  %.idx184 = phi i64 [ %.add185, %.preheader195 ], [ 0, %42 ]
  %.ptr186 = getelementptr inbounds i8, ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 %.idx184
  tail call void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr186)
  %.add185 = add nuw nsw i64 %.idx184, 16
  %44 = icmp eq i64 %.add185, 16400
  br i1 %44, label %45, label %.preheader195

45:                                               ; preds = %.preheader195
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ7PolyMuliPiiS_S_E1Y) #6
  br label %46

46:                                               ; preds = %45, %42, %39
  %47 = load atomic i8, ptr @_ZGVZ7PolyMuliPiiS_S_E2tr acquire, align 8
  %48 = icmp eq i8 %47, 0
  br i1 %48, label %49, label %52, !prof !9

49:                                               ; preds = %46
  %50 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ7PolyMuliPiiS_S_E2tr) #6
  %.not188 = icmp eq i32 %50, 0
  br i1 %.not188, label %52, label %51

51:                                               ; preds = %49
  tail call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr, double noundef 0.000000e+00, double noundef -2.500000e-01)
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ7PolyMuliPiiS_S_E2tr) #6
  br label %52

52:                                               ; preds = %51, %49, %46
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = add nsw i32 %54, %53
  br label %56

56:                                               ; preds = %56, %52
  %.0161 = phi i32 [ 1, %52 ], [ %58, %56 ]
  %57 = icmp slt i32 %.0161, %55
  %58 = shl i32 %.0161, 1
  br i1 %57, label %56, label %59, !llvm.loop !10

59:                                               ; preds = %56
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = load i32, ptr @nlim, align 4, !tbaa !5
  %.not189 = icmp sgt i32 %61, %62
  %63 = icmp sgt i32 %.0161, 0
  br i1 %.not189, label %.preheader192, label %.preheader194

.preheader194:                                    ; preds = %59
  br i1 %63, label %.lr.ph.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader194
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  br label %._crit_edge202

.lr.ph.preheader:                                 ; preds = %.preheader194
  %wide.trip.count = zext nneg i32 %.0161 to i64
  br label %.lr.ph

.preheader192:                                    ; preds = %59
  br i1 %63, label %.lr.ph207.preheader, label %._crit_edge208.thread

._crit_edge208.thread:                            ; preds = %.preheader192
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  %64 = add nsw i32 %.0161, -1
  br label %._crit_edge213

.lr.ph207.preheader:                              ; preds = %.preheader192
  %wide.trip.count265 = zext nneg i32 %.0161 to i64
  br label %.lr.ph207

._crit_edge:                                      ; preds = %85
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  %65 = add nsw i32 %.0161, -1
  br i1 %63, label %.lr.ph201, label %._crit_edge202

.lr.ph201:                                        ; preds = %._crit_edge
  %66 = getelementptr inbounds i8, ptr %10, i64 8
  %67 = getelementptr inbounds i8, ptr %12, i64 8
  %68 = getelementptr inbounds i8, ptr %11, i64 8
  %69 = getelementptr inbounds i8, ptr %9, i64 8
  %wide.trip.count255 = zext nneg i32 %.0161 to i64
  br label %91

.lr.ph:                                           ; preds = %.lr.ph.preheader, %85
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %85 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv, %71
  br i1 %72, label %73, label %76

73:                                               ; preds = %.lr.ph
  %74 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv
  %75 = load i32, ptr %74, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %.lr.ph, %73
  %77 = phi i32 [ %75, %73 ], [ 0, %.lr.ph ]
  %78 = sitofp i32 %77 to double
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %76
  %83 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  %84 = load i32, ptr %83, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %76, %82
  %86 = phi i32 [ %84, %82 ], [ 0, %76 ]
  %87 = sitofp i32 %86 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %78, double noundef %87)
  %88 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %88, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge202:                                   ; preds = %91, %._crit_edge.thread, %._crit_edge
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  %89 = icmp sgt i32 %55, 0
  br i1 %89, label %.lr.ph205.preheader, label %.loopexit

.lr.ph205.preheader:                              ; preds = %._crit_edge202
  %wide.trip.count260 = zext nneg i32 %55 to i64
  %xtraiter = and i64 %wide.trip.count260, 1
  %90 = icmp eq i32 %55, 1
  br i1 %90, label %.loopexit.loopexit324.unr-lcssa, label %.lr.ph205.preheader.new

.lr.ph205.preheader.new:                          ; preds = %.lr.ph205.preheader
  %unroll_iter = and i64 %wide.trip.count260, 2147483646
  br label %.lr.ph205

91:                                               ; preds = %.lr.ph201, %91
  %indvars.iv252 = phi i64 [ 0, %.lr.ph201 ], [ %indvars.iv.next253, %91 ]
  %.0168198 = phi i32 [ 0, %.lr.ph201 ], [ %113, %91 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %92 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv252
  %93 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %92)
  %94 = extractvalue { double, double } %93, 0
  store double %94, ptr %10, align 8
  %95 = extractvalue { double, double } %93, 1
  store double %95, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %96 = sext i32 %.0168198 to i64
  %97 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %96
  %98 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %97)
  %99 = extractvalue { double, double } %98, 0
  store double %99, ptr %12, align 8
  %100 = extractvalue { double, double } %98, 1
  store double %100, ptr %67, align 8
  %101 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %102 = extractvalue { double, double } %101, 0
  store double %102, ptr %11, align 8
  %103 = extractvalue { double, double } %101, 1
  store double %103, ptr %68, align 8
  %104 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %105 = extractvalue { double, double } %104, 0
  store double %105, ptr %9, align 8
  %106 = extractvalue { double, double } %104, 1
  store double %106, ptr %69, align 8
  %107 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %108 = extractvalue { double, double } %107, 0
  %109 = extractvalue { double, double } %107, 1
  %110 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv252
  store double %108, ptr %110, align 16, !tbaa !13
  %.sroa.482.0..sroa_idx = getelementptr inbounds i8, ptr %110, i64 8
  store double %109, ptr %.sroa.482.0..sroa_idx, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  %indvars.iv.next253 = add nuw nsw i64 %indvars.iv252, 1
  %111 = trunc i64 %indvars.iv.next253 to i32
  %112 = sub i32 %.0161, %111
  %113 = and i32 %112, %65
  %exitcond256.not = icmp eq i64 %indvars.iv.next253, %wide.trip.count255
  br i1 %exitcond256.not, label %._crit_edge202, label %91, !llvm.loop !16

.lr.ph205:                                        ; preds = %.lr.ph205, %.lr.ph205.preheader.new
  %indvars.iv257 = phi i64 [ 0, %.lr.ph205.preheader.new ], [ %indvars.iv.next258.1, %.lr.ph205 ]
  %niter = phi i64 [ 0, %.lr.ph205.preheader.new ], [ %niter.next.1, %.lr.ph205 ]
  %114 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv257
  %115 = load double, ptr %114, align 16, !tbaa !17
  %116 = fadd double %115, 5.000000e-01
  %117 = fptosi double %116 to i64
  %118 = load i32, ptr @mod, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = srem i64 %117, %119
  %121 = trunc nsw i64 %120 to i32
  %122 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv257
  store i32 %121, ptr %122, align 4, !tbaa !5
  %indvars.iv.next258 = or disjoint i64 %indvars.iv257, 1
  %123 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv.next258
  %124 = load double, ptr %123, align 16, !tbaa !17
  %125 = fadd double %124, 5.000000e-01
  %126 = fptosi double %125 to i64
  %127 = load i32, ptr @mod, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = srem i64 %126, %128
  %130 = trunc nsw i64 %129 to i32
  %131 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv.next258
  store i32 %130, ptr %131, align 4, !tbaa !5
  %indvars.iv.next258.1 = add nuw nsw i64 %indvars.iv257, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit324.unr-lcssa, label %.lr.ph205, !llvm.loop !19

._crit_edge208:                                   ; preds = %156
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  %132 = add nsw i32 %.0161, -1
  br i1 %63, label %.lr.ph212, label %._crit_edge213

.lr.ph212:                                        ; preds = %._crit_edge208
  %133 = getelementptr inbounds i8, ptr %15, i64 8
  %134 = getelementptr inbounds i8, ptr %17, i64 8
  %135 = getelementptr inbounds i8, ptr %16, i64 8
  %136 = getelementptr inbounds i8, ptr %14, i64 8
  %wide.trip.count270 = zext nneg i32 %.0161 to i64
  br label %163

.lr.ph207:                                        ; preds = %.lr.ph207.preheader, %156
  %indvars.iv262 = phi i64 [ 0, %.lr.ph207.preheader ], [ %indvars.iv.next263, %156 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = icmp slt i64 %indvars.iv262, %138
  br i1 %139, label %140, label %145

140:                                              ; preds = %.lr.ph207
  %141 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv262
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = load i32, ptr @msk, align 4, !tbaa !5
  %144 = and i32 %143, %142
  br label %145

145:                                              ; preds = %.lr.ph207, %140
  %146 = phi i32 [ %144, %140 ], [ 0, %.lr.ph207 ]
  %147 = sitofp i32 %146 to double
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = icmp slt i64 %indvars.iv262, %149
  br i1 %150, label %151, label %156

151:                                              ; preds = %145
  %152 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv262
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = load i32, ptr @msk, align 4, !tbaa !5
  %155 = and i32 %154, %153
  br label %156

156:                                              ; preds = %145, %151
  %157 = phi i32 [ %155, %151 ], [ 0, %145 ]
  %158 = sitofp i32 %157 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %147, double noundef %158)
  %159 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv262
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %159, ptr noundef nonnull align 8 dereferenceable(16) %13, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %indvars.iv.next263 = add nuw nsw i64 %indvars.iv262, 1
  %exitcond266.not = icmp eq i64 %indvars.iv.next263, %wide.trip.count265
  br i1 %exitcond266.not, label %._crit_edge208, label %.lr.ph207, !llvm.loop !20

._crit_edge213:                                   ; preds = %163, %._crit_edge208.thread, %._crit_edge208
  %160 = phi i32 [ %64, %._crit_edge208.thread ], [ %132, %._crit_edge208 ], [ %132, %163 ]
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  %161 = icmp sgt i32 %55, 0
  br i1 %161, label %.lr.ph216.preheader, label %.preheader191

.lr.ph216.preheader:                              ; preds = %._crit_edge213
  %wide.trip.count275 = zext nneg i32 %55 to i64
  %xtraiter325 = and i64 %wide.trip.count275, 1
  %162 = icmp eq i32 %55, 1
  br i1 %162, label %.preheader191.loopexit.unr-lcssa, label %.lr.ph216.preheader.new

.lr.ph216.preheader.new:                          ; preds = %.lr.ph216.preheader
  %unroll_iter327 = and i64 %wide.trip.count275, 2147483646
  br label %.lr.ph216

163:                                              ; preds = %.lr.ph212, %163
  %indvars.iv267 = phi i64 [ 0, %.lr.ph212 ], [ %indvars.iv.next268, %163 ]
  %.0180209 = phi i32 [ 0, %.lr.ph212 ], [ %185, %163 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %164 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv267
  %165 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %164)
  %166 = extractvalue { double, double } %165, 0
  store double %166, ptr %15, align 8
  %167 = extractvalue { double, double } %165, 1
  store double %167, ptr %133, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  %168 = sext i32 %.0180209 to i64
  %169 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %168
  %170 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %169)
  %171 = extractvalue { double, double } %170, 0
  store double %171, ptr %17, align 8
  %172 = extractvalue { double, double } %170, 1
  store double %172, ptr %134, align 8
  %173 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %174 = extractvalue { double, double } %173, 0
  store double %174, ptr %16, align 8
  %175 = extractvalue { double, double } %173, 1
  store double %175, ptr %135, align 8
  %176 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %177 = extractvalue { double, double } %176, 0
  store double %177, ptr %14, align 8
  %178 = extractvalue { double, double } %176, 1
  store double %178, ptr %136, align 8
  %179 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %180 = extractvalue { double, double } %179, 0
  %181 = extractvalue { double, double } %179, 1
  %182 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv267
  store double %180, ptr %182, align 16, !tbaa !13
  %.sroa.463.0..sroa_idx = getelementptr inbounds i8, ptr %182, i64 8
  store double %181, ptr %.sroa.463.0..sroa_idx, align 8, !tbaa !13
  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 16, ptr nonnull %14) #6
  %indvars.iv.next268 = add nuw nsw i64 %indvars.iv267, 1
  %183 = trunc i64 %indvars.iv.next268 to i32
  %184 = sub i32 %.0161, %183
  %185 = and i32 %184, %132
  %exitcond271.not = icmp eq i64 %indvars.iv.next268, %wide.trip.count270
  br i1 %exitcond271.not, label %._crit_edge213, label %163, !llvm.loop !21

.preheader191.loopexit.unr-lcssa:                 ; preds = %.lr.ph216, %.lr.ph216.preheader
  %indvars.iv272.unr = phi i64 [ 0, %.lr.ph216.preheader ], [ %indvars.iv.next273.1, %.lr.ph216 ]
  %lcmp.mod326.not = icmp eq i64 %xtraiter325, 0
  br i1 %lcmp.mod326.not, label %.preheader191, label %.lr.ph216.epil

.lr.ph216.epil:                                   ; preds = %.preheader191.loopexit.unr-lcssa
  %186 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv272.unr
  %187 = load double, ptr %186, align 16, !tbaa !17
  %188 = fadd double %187, 5.000000e-01
  %189 = fptosi double %188 to i64
  %190 = load i32, ptr @mod, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = srem i64 %189, %191
  %193 = trunc nsw i64 %192 to i32
  %194 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv272.unr
  store i32 %193, ptr %194, align 4, !tbaa !5
  br label %.preheader191

.preheader191:                                    ; preds = %.lr.ph216.epil, %.preheader191.loopexit.unr-lcssa, %._crit_edge213
  br i1 %63, label %.lr.ph218.preheader, label %._crit_edge219.thread

._crit_edge219.thread:                            ; preds = %.preheader191
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  br label %._crit_edge224

.lr.ph218.preheader:                              ; preds = %.preheader191
  %wide.trip.count280 = zext nneg i32 %.0161 to i64
  br label %.lr.ph218

.lr.ph216:                                        ; preds = %.lr.ph216, %.lr.ph216.preheader.new
  %indvars.iv272 = phi i64 [ 0, %.lr.ph216.preheader.new ], [ %indvars.iv.next273.1, %.lr.ph216 ]
  %niter328 = phi i64 [ 0, %.lr.ph216.preheader.new ], [ %niter328.next.1, %.lr.ph216 ]
  %195 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv272
  %196 = load double, ptr %195, align 16, !tbaa !17
  %197 = fadd double %196, 5.000000e-01
  %198 = fptosi double %197 to i64
  %199 = load i32, ptr @mod, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = srem i64 %198, %200
  %202 = trunc nsw i64 %201 to i32
  %203 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv272
  store i32 %202, ptr %203, align 4, !tbaa !5
  %indvars.iv.next273 = or disjoint i64 %indvars.iv272, 1
  %204 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv.next273
  %205 = load double, ptr %204, align 16, !tbaa !17
  %206 = fadd double %205, 5.000000e-01
  %207 = fptosi double %206 to i64
  %208 = load i32, ptr @mod, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = srem i64 %207, %209
  %211 = trunc nsw i64 %210 to i32
  %212 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv.next273
  store i32 %211, ptr %212, align 4, !tbaa !5
  %indvars.iv.next273.1 = add nuw nsw i64 %indvars.iv272, 2
  %niter328.next.1 = add i64 %niter328, 2
  %niter328.ncmp.1 = icmp eq i64 %niter328.next.1, %unroll_iter327
  br i1 %niter328.ncmp.1, label %.preheader191.loopexit.unr-lcssa, label %.lr.ph216, !llvm.loop !22

._crit_edge219:                                   ; preds = %236
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  br i1 %63, label %.lr.ph223, label %._crit_edge224

.lr.ph223:                                        ; preds = %._crit_edge219
  %213 = getelementptr inbounds i8, ptr %20, i64 8
  %214 = getelementptr inbounds i8, ptr %22, i64 8
  %215 = getelementptr inbounds i8, ptr %21, i64 8
  %216 = getelementptr inbounds i8, ptr %19, i64 8
  %wide.trip.count285 = zext nneg i32 %.0161 to i64
  br label %240

.lr.ph218:                                        ; preds = %.lr.ph218.preheader, %236
  %indvars.iv277 = phi i64 [ 0, %.lr.ph218.preheader ], [ %indvars.iv.next278, %236 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %217 = load i32, ptr %6, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = icmp slt i64 %indvars.iv277, %218
  br i1 %219, label %220, label %225

220:                                              ; preds = %.lr.ph218
  %221 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv277
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = load i32, ptr @msk, align 4, !tbaa !5
  %224 = and i32 %223, %222
  br label %225

225:                                              ; preds = %.lr.ph218, %220
  %226 = phi i32 [ %224, %220 ], [ 0, %.lr.ph218 ]
  %227 = sitofp i32 %226 to double
  %228 = load i32, ptr %7, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = icmp slt i64 %indvars.iv277, %229
  br i1 %230, label %231, label %236

231:                                              ; preds = %225
  %232 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv277
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = load i32, ptr @sp, align 4, !tbaa !5
  %235 = ashr i32 %233, %234
  br label %236

236:                                              ; preds = %225, %231
  %237 = phi i32 [ %235, %231 ], [ 0, %225 ]
  %238 = sitofp i32 %237 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %227, double noundef %238)
  %239 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv277
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %239, ptr noundef nonnull align 8 dereferenceable(16) %18, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  %indvars.iv.next278 = add nuw nsw i64 %indvars.iv277, 1
  %exitcond281.not = icmp eq i64 %indvars.iv.next278, %wide.trip.count280
  br i1 %exitcond281.not, label %._crit_edge219, label %.lr.ph218, !llvm.loop !23

._crit_edge224:                                   ; preds = %240, %._crit_edge219.thread, %._crit_edge219
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  br i1 %161, label %.lr.ph227.preheader, label %.preheader190

.lr.ph227.preheader:                              ; preds = %._crit_edge224
  %wide.trip.count290 = zext nneg i32 %55 to i64
  br label %.lr.ph227

240:                                              ; preds = %.lr.ph223, %240
  %indvars.iv282 = phi i64 [ 0, %.lr.ph223 ], [ %indvars.iv.next283, %240 ]
  %.0174221 = phi i32 [ 0, %.lr.ph223 ], [ %262, %240 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  %241 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv282
  %242 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %241)
  %243 = extractvalue { double, double } %242, 0
  store double %243, ptr %20, align 8
  %244 = extractvalue { double, double } %242, 1
  store double %244, ptr %213, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  %245 = sext i32 %.0174221 to i64
  %246 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %245
  %247 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %246)
  %248 = extractvalue { double, double } %247, 0
  store double %248, ptr %22, align 8
  %249 = extractvalue { double, double } %247, 1
  store double %249, ptr %214, align 8
  %250 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %251 = extractvalue { double, double } %250, 0
  store double %251, ptr %21, align 8
  %252 = extractvalue { double, double } %250, 1
  store double %252, ptr %215, align 8
  %253 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %254 = extractvalue { double, double } %253, 0
  store double %254, ptr %19, align 8
  %255 = extractvalue { double, double } %253, 1
  store double %255, ptr %216, align 8
  %256 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %257 = extractvalue { double, double } %256, 0
  %258 = extractvalue { double, double } %256, 1
  %259 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv282
  store double %257, ptr %259, align 16, !tbaa !13
  %.sroa.444.0..sroa_idx = getelementptr inbounds i8, ptr %259, i64 8
  store double %258, ptr %.sroa.444.0..sroa_idx, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  %indvars.iv.next283 = add nuw nsw i64 %indvars.iv282, 1
  %260 = trunc i64 %indvars.iv.next283 to i32
  %261 = sub i32 %.0161, %260
  %262 = and i32 %261, %160
  %exitcond286.not = icmp eq i64 %indvars.iv.next283, %wide.trip.count285
  br i1 %exitcond286.not, label %._crit_edge224, label %240, !llvm.loop !24

.preheader190:                                    ; preds = %.lr.ph227, %._crit_edge224
  br i1 %63, label %.lr.ph229.preheader, label %._crit_edge230.thread

._crit_edge230.thread:                            ; preds = %.preheader190
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  br label %._crit_edge235

.lr.ph229.preheader:                              ; preds = %.preheader190
  %wide.trip.count295 = zext nneg i32 %.0161 to i64
  br label %.lr.ph229

.lr.ph227:                                        ; preds = %.lr.ph227.preheader, %.lr.ph227
  %indvars.iv287 = phi i64 [ 0, %.lr.ph227.preheader ], [ %indvars.iv.next288, %.lr.ph227 ]
  %263 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv287
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv287
  %267 = load double, ptr %266, align 16, !tbaa !17
  %268 = fadd double %267, 5.000000e-01
  %269 = fptosi double %268 to i64
  %270 = load i32, ptr @sp, align 4, !tbaa !5
  %271 = zext nneg i32 %270 to i64
  %272 = shl i64 %269, %271
  %273 = add nsw i64 %272, %265
  %274 = load i32, ptr @mod, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = srem i64 %273, %275
  %277 = trunc nsw i64 %276 to i32
  store i32 %277, ptr %263, align 4, !tbaa !5
  %indvars.iv.next288 = add nuw nsw i64 %indvars.iv287, 1
  %exitcond291.not = icmp eq i64 %indvars.iv.next288, %wide.trip.count290
  br i1 %exitcond291.not, label %.preheader190, label %.lr.ph227, !llvm.loop !25

._crit_edge230:                                   ; preds = %301
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  br i1 %63, label %.lr.ph234, label %._crit_edge235

.lr.ph234:                                        ; preds = %._crit_edge230
  %278 = getelementptr inbounds i8, ptr %25, i64 8
  %279 = getelementptr inbounds i8, ptr %27, i64 8
  %280 = getelementptr inbounds i8, ptr %26, i64 8
  %281 = getelementptr inbounds i8, ptr %24, i64 8
  %wide.trip.count300 = zext nneg i32 %.0161 to i64
  br label %305

.lr.ph229:                                        ; preds = %.lr.ph229.preheader, %301
  %indvars.iv292 = phi i64 [ 0, %.lr.ph229.preheader ], [ %indvars.iv.next293, %301 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  %282 = load i32, ptr %6, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = icmp slt i64 %indvars.iv292, %283
  br i1 %284, label %285, label %290

285:                                              ; preds = %.lr.ph229
  %286 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv292
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = load i32, ptr @sp, align 4, !tbaa !5
  %289 = ashr i32 %287, %288
  br label %290

290:                                              ; preds = %.lr.ph229, %285
  %291 = phi i32 [ %289, %285 ], [ 0, %.lr.ph229 ]
  %292 = sitofp i32 %291 to double
  %293 = load i32, ptr %7, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = icmp slt i64 %indvars.iv292, %294
  br i1 %295, label %296, label %301

296:                                              ; preds = %290
  %297 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv292
  %298 = load i32, ptr %297, align 4, !tbaa !5
  %299 = load i32, ptr @msk, align 4, !tbaa !5
  %300 = and i32 %299, %298
  br label %301

301:                                              ; preds = %290, %296
  %302 = phi i32 [ %300, %296 ], [ 0, %290 ]
  %303 = sitofp i32 %302 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef %292, double noundef %303)
  %304 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv292
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %304, ptr noundef nonnull align 8 dereferenceable(16) %23, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  %indvars.iv.next293 = add nuw nsw i64 %indvars.iv292, 1
  %exitcond296.not = icmp eq i64 %indvars.iv.next293, %wide.trip.count295
  br i1 %exitcond296.not, label %._crit_edge230, label %.lr.ph229, !llvm.loop !26

._crit_edge235:                                   ; preds = %305, %._crit_edge230.thread, %._crit_edge230
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  br i1 %161, label %.lr.ph238.preheader, label %.preheader

.lr.ph238.preheader:                              ; preds = %._crit_edge235
  %wide.trip.count305 = zext nneg i32 %55 to i64
  br label %.lr.ph238

305:                                              ; preds = %.lr.ph234, %305
  %indvars.iv297 = phi i64 [ 0, %.lr.ph234 ], [ %indvars.iv.next298, %305 ]
  %.0169232 = phi i32 [ 0, %.lr.ph234 ], [ %327, %305 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #6
  %306 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv297
  %307 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %306)
  %308 = extractvalue { double, double } %307, 0
  store double %308, ptr %25, align 8
  %309 = extractvalue { double, double } %307, 1
  store double %309, ptr %278, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #6
  %310 = sext i32 %.0169232 to i64
  %311 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %310
  %312 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %311)
  %313 = extractvalue { double, double } %312, 0
  store double %313, ptr %27, align 8
  %314 = extractvalue { double, double } %312, 1
  store double %314, ptr %279, align 8
  %315 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %316 = extractvalue { double, double } %315, 0
  store double %316, ptr %26, align 8
  %317 = extractvalue { double, double } %315, 1
  store double %317, ptr %280, align 8
  %318 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %319 = extractvalue { double, double } %318, 0
  store double %319, ptr %24, align 8
  %320 = extractvalue { double, double } %318, 1
  store double %320, ptr %281, align 8
  %321 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %322 = extractvalue { double, double } %321, 0
  %323 = extractvalue { double, double } %321, 1
  %324 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv297
  store double %322, ptr %324, align 16, !tbaa !13
  %.sroa.424.0..sroa_idx = getelementptr inbounds i8, ptr %324, i64 8
  store double %323, ptr %.sroa.424.0..sroa_idx, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 16, 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
  %indvars.iv.next298 = add nuw nsw i64 %indvars.iv297, 1
  %325 = trunc i64 %indvars.iv.next298 to i32
  %326 = sub i32 %.0161, %325
  %327 = and i32 %326, %160
  %exitcond301.not = icmp eq i64 %indvars.iv.next298, %wide.trip.count300
  br i1 %exitcond301.not, label %._crit_edge235, label %305, !llvm.loop !27

.preheader:                                       ; preds = %.lr.ph238, %._crit_edge235
  br i1 %63, label %.lr.ph240.preheader, label %._crit_edge241.thread

._crit_edge241.thread:                            ; preds = %.preheader
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  br label %._crit_edge246

.lr.ph240.preheader:                              ; preds = %.preheader
  %wide.trip.count310 = zext nneg i32 %.0161 to i64
  br label %.lr.ph240

.lr.ph238:                                        ; preds = %.lr.ph238.preheader, %.lr.ph238
  %indvars.iv302 = phi i64 [ 0, %.lr.ph238.preheader ], [ %indvars.iv.next303, %.lr.ph238 ]
  %328 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv302
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv302
  %332 = load double, ptr %331, align 16, !tbaa !17
  %333 = fadd double %332, 5.000000e-01
  %334 = fptosi double %333 to i64
  %335 = load i32, ptr @sp, align 4, !tbaa !5
  %336 = zext nneg i32 %335 to i64
  %337 = shl i64 %334, %336
  %338 = add nsw i64 %337, %330
  %339 = load i32, ptr @mod, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = srem i64 %338, %340
  %342 = trunc nsw i64 %341 to i32
  store i32 %342, ptr %328, align 4, !tbaa !5
  %indvars.iv.next303 = add nuw nsw i64 %indvars.iv302, 1
  %exitcond306.not = icmp eq i64 %indvars.iv.next303, %wide.trip.count305
  br i1 %exitcond306.not, label %.preheader, label %.lr.ph238, !llvm.loop !28

._crit_edge241:                                   ; preds = %366
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1X, i32 noundef 1)
  br i1 %63, label %.lr.ph245, label %._crit_edge246

.lr.ph245:                                        ; preds = %._crit_edge241
  %343 = getelementptr inbounds i8, ptr %30, i64 8
  %344 = getelementptr inbounds i8, ptr %32, i64 8
  %345 = getelementptr inbounds i8, ptr %31, i64 8
  %346 = getelementptr inbounds i8, ptr %29, i64 8
  %wide.trip.count315 = zext nneg i32 %.0161 to i64
  br label %370

.lr.ph240:                                        ; preds = %.lr.ph240.preheader, %366
  %indvars.iv307 = phi i64 [ 0, %.lr.ph240.preheader ], [ %indvars.iv.next308, %366 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  %347 = load i32, ptr %6, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = icmp slt i64 %indvars.iv307, %348
  br i1 %349, label %350, label %355

350:                                              ; preds = %.lr.ph240
  %351 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv307
  %352 = load i32, ptr %351, align 4, !tbaa !5
  %353 = load i32, ptr @sp, align 4, !tbaa !5
  %354 = ashr i32 %352, %353
  br label %355

355:                                              ; preds = %.lr.ph240, %350
  %356 = phi i32 [ %354, %350 ], [ 0, %.lr.ph240 ]
  %357 = sitofp i32 %356 to double
  %358 = load i32, ptr %7, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = icmp slt i64 %indvars.iv307, %359
  br i1 %360, label %361, label %366

361:                                              ; preds = %355
  %362 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv307
  %363 = load i32, ptr %362, align 4, !tbaa !5
  %364 = load i32, ptr @sp, align 4, !tbaa !5
  %365 = ashr i32 %363, %364
  br label %366

366:                                              ; preds = %355, %361
  %367 = phi i32 [ %365, %361 ], [ 0, %355 ]
  %368 = sitofp i32 %367 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %357, double noundef %368)
  %369 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv307
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %369, ptr noundef nonnull align 8 dereferenceable(16) %28, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  %indvars.iv.next308 = add nuw nsw i64 %indvars.iv307, 1
  %exitcond311.not = icmp eq i64 %indvars.iv.next308, %wide.trip.count310
  br i1 %exitcond311.not, label %._crit_edge241, label %.lr.ph240, !llvm.loop !29

._crit_edge246:                                   ; preds = %370, %._crit_edge241.thread, %._crit_edge241
  call void @_Z3FFTiP7complexi(i32 noundef %.0161, ptr noundef nonnull @_ZZ7PolyMuliPiiS_S_E1Y, i32 noundef -1)
  br i1 %161, label %.lr.ph249.preheader, label %.loopexit

.lr.ph249.preheader:                              ; preds = %._crit_edge246
  %wide.trip.count320 = zext nneg i32 %55 to i64
  br label %.lr.ph249

370:                                              ; preds = %.lr.ph245, %370
  %indvars.iv312 = phi i64 [ 0, %.lr.ph245 ], [ %indvars.iv.next313, %370 ]
  %.0163243 = phi i32 [ 0, %.lr.ph245 ], [ %392, %370 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #6
  %371 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %indvars.iv312
  %372 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %371)
  %373 = extractvalue { double, double } %372, 0
  store double %373, ptr %30, align 8
  %374 = extractvalue { double, double } %372, 1
  store double %374, ptr %343, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #6
  %375 = sext i32 %.0163243 to i64
  %376 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1X, i64 0, i64 %375
  %377 = call { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16) %376)
  %378 = extractvalue { double, double } %377, 0
  store double %378, ptr %32, align 8
  %379 = extractvalue { double, double } %377, 1
  store double %379, ptr %344, align 8
  %380 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
  %381 = extractvalue { double, double } %380, 0
  store double %381, ptr %31, align 8
  %382 = extractvalue { double, double } %380, 1
  store double %382, ptr %345, align 8
  %383 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
  %384 = extractvalue { double, double } %383, 0
  store double %384, ptr %29, align 8
  %385 = extractvalue { double, double } %383, 1
  store double %385, ptr %346, align 8
  %386 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) @_ZZ7PolyMuliPiiS_S_E2tr)
  %387 = extractvalue { double, double } %386, 0
  %388 = extractvalue { double, double } %386, 1
  %389 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv312
  store double %387, ptr %389, align 16, !tbaa !13
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %389, i64 8
  store double %388, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #6
  %indvars.iv.next313 = add nuw nsw i64 %indvars.iv312, 1
  %390 = trunc i64 %indvars.iv.next313 to i32
  %391 = sub i32 %.0161, %390
  %392 = and i32 %391, %160
  %exitcond316.not = icmp eq i64 %indvars.iv.next313, %wide.trip.count315
  br i1 %exitcond316.not, label %._crit_edge246, label %370, !llvm.loop !30

.lr.ph249:                                        ; preds = %.lr.ph249.preheader, %.lr.ph249
  %indvars.iv317 = phi i64 [ 0, %.lr.ph249.preheader ], [ %indvars.iv.next318, %.lr.ph249 ]
  %393 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv317
  %394 = load i32, ptr %393, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv317
  %397 = load double, ptr %396, align 16, !tbaa !17
  %398 = fadd double %397, 5.000000e-01
  %399 = fptosi double %398 to i64
  %400 = load i32, ptr @mod, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = srem i64 %399, %401
  %403 = load i32, ptr @sd, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = mul nsw i64 %402, %404
  %406 = add nsw i64 %405, %395
  %407 = srem i64 %406, %401
  %408 = trunc nsw i64 %407 to i32
  store i32 %408, ptr %393, align 4, !tbaa !5
  %indvars.iv.next318 = add nuw nsw i64 %indvars.iv317, 1
  %exitcond321.not = icmp eq i64 %indvars.iv.next318, %wide.trip.count320
  br i1 %exitcond321.not, label %.loopexit, label %.lr.ph249, !llvm.loop !31

.loopexit.loopexit324.unr-lcssa:                  ; preds = %.lr.ph205, %.lr.ph205.preheader
  %indvars.iv257.unr = phi i64 [ 0, %.lr.ph205.preheader ], [ %indvars.iv.next258.1, %.lr.ph205 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph205.epil

.lr.ph205.epil:                                   ; preds = %.loopexit.loopexit324.unr-lcssa
  %409 = getelementptr inbounds [1025 x %struct.complex], ptr @_ZZ7PolyMuliPiiS_S_E1Y, i64 0, i64 %indvars.iv257.unr
  %410 = load double, ptr %409, align 16, !tbaa !17
  %411 = fadd double %410, 5.000000e-01
  %412 = fptosi double %411 to i64
  %413 = load i32, ptr @mod, align 4, !tbaa !5
  %414 = sext i32 %413 to i64
  %415 = srem i64 %412, %414
  %416 = trunc nsw i64 %415 to i32
  %417 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv257.unr
  store i32 %416, ptr %417, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph205.epil, %.loopexit.loopexit324.unr-lcssa, %.lr.ph249, %._crit_edge202, %._crit_edge246
  ret void
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complex3sqrEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nofree nounwind }
attributes #5 = { inlinehint mustprogress 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"branch_weights", i32 1, i32 1048575}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = !{!18, !14, i64 0}
!18 = !{!"_ZTS7complex", !14, i64 0, !14, i64 8}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}
!30 = distinct !{!30, !11}
!31 = distinct !{!31, !11}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass