; LLVM IR from tangjz/acm-icpc :: 51nod (1739)

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

@_ZL2pi = external hidden global double, align 8
@buf = external dso_local global [600001 x i8], align 16
@kk = external dso_local global i32, align 4
@mod = external dso_local global i32, align 4
@len = external dso_local global i32, align 4
@seq = external dso_local global [262145 x i32], align 16
@cnt = external dso_local global i32, align 4
@pos = external dso_local global [262145 x i32], align 16
@tmp = external dso_local global [262145 x i32], align 16
@elen = external dso_local global i32, align 4
@ex = external dso_local global [262145 x i32], align 16
@tot = external dso_local global i32, align 4
@pr = external dso_local global [1000001 x i32], align 16
@d = external dso_local global [1000001 x i32], align 16
@pw = external dso_local global [1000001 x i32], align 16
@inv = external dso_local global [1000001 x i32], align 16
@fact = external dso_local global [1000001 x i32], align 16
@iact = external dso_local global [1000001 x i32], align 16
@w = external dso_local global [262145 x %struct.complex], align 16
@A = external dso_local global [262145 x %struct.complex], align 16
@B = external dso_local global [262145 x %struct.complex], align 16
@C = external dso_local global [262145 x %struct.complex], align 16
@D = external dso_local global [262145 x %struct.complex], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 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)) #0 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) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7mod_powii(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.complex, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %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 i32, align 4
  %28 = alloca %struct.complex, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca %struct.complex, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %struct.complex, align 8
  %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 %struct.complex, align 8
  %46 = alloca %struct.complex, align 8
  %47 = alloca %struct.complex, align 8
  %48 = alloca %struct.complex, align 8
  %49 = alloca %struct.complex, align 8
  %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 %struct.complex, align 8
  %56 = alloca %struct.complex, align 8
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca i64, align 8
  %63 = alloca i32, align 4
  %64 = alloca i64, align 8
  %65 = alloca i64, align 8
  %66 = alloca i64, align 8
  %67 = alloca i64, align 8
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca %struct.complex, align 8
  %71 = alloca %struct.complex, align 8
  %72 = alloca %struct.complex, align 8
  %73 = alloca %struct.complex, align 8
  %74 = alloca %struct.complex, align 8
  %75 = alloca %struct.complex, align 8
  %76 = alloca %struct.complex, align 8
  %77 = alloca %struct.complex, align 8
  %78 = alloca %struct.complex, align 8
  %79 = alloca %struct.complex, align 8
  %80 = alloca %struct.complex, align 8
  %81 = alloca %struct.complex, align 8
  %82 = alloca i64, align 8
  %83 = alloca i32, align 4
  %84 = alloca i64, align 8
  %85 = alloca i64, align 8
  %86 = alloca i64, align 8
  %87 = alloca i64, align 8
  %88 = alloca i32, align 4
  %89 = alloca i32, align 4
  %90 = alloca i32, align 4
  %91 = alloca i32, align 4
  %92 = alloca i32, align 4
  %93 = alloca i32, align 4
  %94 = alloca i32, align 4
  %95 = alloca i32, align 4
  %96 = alloca i32, align 4
  %97 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %98 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @buf)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  %99 = call i64 @strlen(ptr noundef @buf) #10
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %2, align 4, !tbaa !5
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = sdiv i32 %102, 6
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr @len, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %129, %0
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = load i32, ptr @len, align 4, !tbaa !5
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %132

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = mul nsw i32 %112, 6
  %114 = sub nsw i32 %111, %113
  store i32 %114, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = sub nsw i32 %115, 6
  store i32 %116, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %118 = load i32, ptr %117, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  store i32 %118, ptr %5, align 4, !tbaa !5
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [600001 x i8], ptr @buf, i64 0, i64 %120
  store i8 0, ptr %121, align 1, !tbaa !9
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i8, ptr @buf, i64 %123
  %125 = load i32, ptr %3, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr @seq, i64 %126
  %128 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %124, ptr noundef @.str.6, ptr noundef %127) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %129

129:                                              ; preds = %110
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %3, align 4, !tbaa !5
  br label %105, !llvm.loop !10

132:                                              ; preds = %109
  %133 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.7, ptr noundef @buf, ptr noundef @mod)
  %134 = load i32, ptr @mod, align 4, !tbaa !5
  %135 = icmp eq i32 %134, 2
  br i1 %135, label %136, label %138

136:                                              ; preds = %132
  %137 = call i32 @puts(ptr noundef @.str.8)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %1244

138:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %162, %138
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [600001 x i8], ptr @buf, i64 0, i64 %141
  %143 = load i8, ptr %142, align 1, !tbaa !9
  %144 = icmp ne i8 %143, 0
  br i1 %144, label %146, label %145

145:                                              ; preds = %139
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %165

146:                                              ; preds = %139
  %147 = load i32, ptr @kk, align 4, !tbaa !5
  %148 = shl i32 %147, 3
  %149 = load i32, ptr @kk, align 4, !tbaa !5
  %150 = shl i32 %149, 1
  %151 = add nsw i32 %148, %150
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [600001 x i8], ptr @buf, i64 0, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !9
  %156 = sext i8 %155 to i32
  %157 = sub nsw i32 %156, 48
  %158 = add nsw i32 %151, %157
  %159 = load i32, ptr @mod, align 4, !tbaa !5
  %160 = sub nsw i32 %159, 1
  %161 = srem i32 %158, %160
  store i32 %161, ptr @kk, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %146
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %9, align 4, !tbaa !5
  br label %139, !llvm.loop !12

165:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 262144, ptr %11, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %212, %165
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = load i32, ptr %11, align 4, !tbaa !5
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %215

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %172 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %172, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = ashr i32 %173, 1
  store i32 %174, ptr %13, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %187, %171
  %176 = load i32, ptr %12, align 4, !tbaa !5
  %177 = and i32 %176, 1
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %184, label %179

179:                                              ; preds = %175
  %180 = load i32, ptr %13, align 4, !tbaa !5
  %181 = and i32 %180, 1
  %182 = icmp ne i32 %181, 0
  %183 = xor i1 %182, true
  br label %184

184:                                              ; preds = %179, %175
  %185 = phi i1 [ false, %175 ], [ %183, %179 ]
  br i1 %185, label %186, label %192

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %12, align 4, !tbaa !5
  %189 = ashr i32 %188, 1
  store i32 %189, ptr %12, align 4, !tbaa !5
  %190 = load i32, ptr %13, align 4, !tbaa !5
  %191 = ashr i32 %190, 1
  store i32 %191, ptr %13, align 4, !tbaa !5
  br label %175, !llvm.loop !13

192:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %193 = load double, ptr @_ZL2pi, align 8, !tbaa !14
  %194 = load i32, ptr %13, align 4, !tbaa !5
  %195 = sitofp i32 %194 to double
  %196 = fdiv double %193, %195
  %197 = load i32, ptr %12, align 4, !tbaa !5
  %198 = sitofp i32 %197 to double
  %199 = fmul double %196, %198
  %200 = call double @cos(double noundef %199) #9
  %201 = load double, ptr @_ZL2pi, align 8, !tbaa !14
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = sitofp i32 %202 to double
  %204 = fdiv double %201, %203
  %205 = load i32, ptr %12, align 4, !tbaa !5
  %206 = sitofp i32 %205 to double
  %207 = fmul double %204, %206
  %208 = call double @sin(double noundef %207) #9
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %200, double noundef %208)
  %209 = load i32, ptr %10, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [262145 x %struct.complex], ptr @w, i64 0, i64 %210
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %211, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %212

212:                                              ; preds = %192
  %213 = load i32, ptr %10, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %10, align 4, !tbaa !5
  br label %166, !llvm.loop !17

215:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %223, %215
  %217 = load i32, ptr %15, align 4, !tbaa !5
  %218 = shl i32 %217, 1
  %219 = shl i32 1, %218
  %220 = load i32, ptr @mod, align 4, !tbaa !5
  %221 = icmp slt i32 %219, %220
  br i1 %221, label %222, label %226

222:                                              ; preds = %216
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %15, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %15, align 4, !tbaa !5
  br label %216, !llvm.loop !18

226:                                              ; preds = %216
  %227 = load i32, ptr %15, align 4, !tbaa !5
  %228 = shl i32 1, %227
  %229 = sub nsw i32 %228, 1
  store i32 %229, ptr %16, align 4, !tbaa !5
  %230 = load i32, ptr @len, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = mul i64 %231, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @ex, ptr align 16 @seq, i64 %232, i1 false)
  %233 = load i32, ptr @len, align 4, !tbaa !5
  store i32 %233, ptr @cnt, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %265, %226
  %235 = load i32, ptr %18, align 4, !tbaa !5
  %236 = load i32, ptr @len, align 4, !tbaa !5
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %234
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %268

239:                                              ; preds = %234
  %240 = load i32, ptr %17, align 4, !tbaa !5
  %241 = load i32, ptr %18, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %242
  store i32 %240, ptr %243, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %244 = load i32, ptr %18, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !5
  store i32 %247, ptr %19, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %260, %239
  %249 = load i32, ptr %19, align 4, !tbaa !5
  %250 = icmp sgt i32 %249, 0
  br i1 %250, label %252, label %251

251:                                              ; preds = %248
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %264

252:                                              ; preds = %248
  %253 = load i32, ptr %19, align 4, !tbaa !5
  %254 = load i32, ptr @mod, align 4, !tbaa !5
  %255 = srem i32 %253, %254
  %256 = load i32, ptr %17, align 4, !tbaa !5
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %17, align 4, !tbaa !5
  %258 = sext i32 %256 to i64
  %259 = getelementptr inbounds [262145 x i32], ptr @seq, i64 0, i64 %258
  store i32 %255, ptr %259, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %252
  %261 = load i32, ptr @mod, align 4, !tbaa !5
  %262 = load i32, ptr %19, align 4, !tbaa !5
  %263 = sdiv i32 %262, %261
  store i32 %263, ptr %19, align 4, !tbaa !5
  br label %248, !llvm.loop !19

264:                                              ; preds = %251
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %18, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %18, align 4, !tbaa !5
  br label %234, !llvm.loop !20

268:                                              ; preds = %238
  %269 = load i32, ptr %17, align 4, !tbaa !5
  %270 = load i32, ptr @cnt, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %271
  store i32 %269, ptr %272, align 4, !tbaa !5
  %273 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %273, ptr @len, align 4, !tbaa !5
  store i32 0, ptr @elen, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 1000000, ptr %20, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %286, %268
  %275 = load i32, ptr %20, align 4, !tbaa !5
  %276 = icmp sgt i32 %275, 0
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %290

278:                                              ; preds = %274
  %279 = load i32, ptr %20, align 4, !tbaa !5
  %280 = load i32, ptr @mod, align 4, !tbaa !5
  %281 = srem i32 %279, %280
  %282 = load i32, ptr @elen, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr @elen, align 4, !tbaa !5
  %284 = sext i32 %282 to i64
  %285 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %284
  store i32 %281, ptr %285, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %278
  %287 = load i32, ptr @mod, align 4, !tbaa !5
  %288 = load i32, ptr %20, align 4, !tbaa !5
  %289 = sdiv i32 %288, %287
  store i32 %289, ptr %20, align 4, !tbaa !5
  br label %274, !llvm.loop !21

290:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 0.000000e+00, double noundef 1.000000e+00)
  br label %291

291:                                              ; preds = %961, %290
  %292 = load i32, ptr @cnt, align 4, !tbaa !5
  %293 = icmp sgt i32 %292, 1
  br i1 %293, label %294, label %962

294:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %295

295:                                              ; preds = %302, %294
  %296 = load i32, ptr %24, align 4, !tbaa !5
  %297 = load i32, ptr @elen, align 4, !tbaa !5
  %298 = shl i32 %297, 1
  %299 = sub nsw i32 %298, 1
  %300 = icmp slt i32 %296, %299
  br i1 %300, label %301, label %305

301:                                              ; preds = %295
  br label %302

302:                                              ; preds = %301
  %303 = load i32, ptr %24, align 4, !tbaa !5
  %304 = shl i32 %303, 1
  store i32 %304, ptr %24, align 4, !tbaa !5
  br label %295, !llvm.loop !22

305:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %306

306:                                              ; preds = %335, %305
  %307 = load i32, ptr %25, align 4, !tbaa !5
  %308 = load i32, ptr @cnt, align 4, !tbaa !5
  %309 = icmp slt i32 %307, %308
  br i1 %309, label %311, label %310

310:                                              ; preds = %306
  store i32 31, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %338

311:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %312 = load i32, ptr @elen, align 4, !tbaa !5
  %313 = load i32, ptr %25, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %318 = add nsw i32 %312, %317
  %319 = load i32, ptr %25, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %320
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = sub nsw i32 %318, %322
  %324 = sub nsw i32 %323, 1
  store i32 %324, ptr %26, align 4, !tbaa !5
  br label %325

325:                                              ; preds = %331, %311
  %326 = load i32, ptr %24, align 4, !tbaa !5
  %327 = load i32, ptr %26, align 4, !tbaa !5
  %328 = icmp slt i32 %326, %327
  br i1 %328, label %330, label %329

329:                                              ; preds = %325
  store i32 34, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %334

330:                                              ; preds = %325
  br label %331

331:                                              ; preds = %330
  %332 = load i32, ptr %24, align 4, !tbaa !5
  %333 = shl i32 %332, 1
  store i32 %333, ptr %24, align 4, !tbaa !5
  br label %325, !llvm.loop !23

334:                                              ; preds = %329
  br label %335

335:                                              ; preds = %334
  %336 = load i32, ptr %25, align 4, !tbaa !5
  %337 = add nsw i32 %336, 2
  store i32 %337, ptr %25, align 4, !tbaa !5
  br label %306, !llvm.loop !24

338:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %339

339:                                              ; preds = %368, %338
  %340 = load i32, ptr %27, align 4, !tbaa !5
  %341 = load i32, ptr %24, align 4, !tbaa !5
  %342 = icmp slt i32 %340, %341
  br i1 %342, label %344, label %343

343:                                              ; preds = %339
  store i32 37, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %371

344:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %345 = load i32, ptr %27, align 4, !tbaa !5
  %346 = load i32, ptr @elen, align 4, !tbaa !5
  %347 = icmp slt i32 %345, %346
  br i1 %347, label %348, label %363

348:                                              ; preds = %344
  %349 = load i32, ptr %27, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %350
  %352 = load i32, ptr %351, align 4, !tbaa !5
  %353 = load i32, ptr %16, align 4, !tbaa !5
  %354 = and i32 %352, %353
  %355 = sitofp i32 %354 to double
  %356 = load i32, ptr %27, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %357
  %359 = load i32, ptr %358, align 4, !tbaa !5
  %360 = load i32, ptr %15, align 4, !tbaa !5
  %361 = ashr i32 %359, %360
  %362 = sitofp i32 %361 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %355, double noundef %362)
  br label %364

363:                                              ; preds = %344
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %364

364:                                              ; preds = %363, %348
  %365 = load i32, ptr %27, align 4, !tbaa !5
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %366
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %367, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %368

368:                                              ; preds = %364
  %369 = load i32, ptr %27, align 4, !tbaa !5
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %27, align 4, !tbaa !5
  br label %339, !llvm.loop !25

371:                                              ; preds = %343
  %372 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %372, ptr noundef @A, i32 noundef 1)
  %373 = load i32, ptr @len, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = mul i64 %374, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @tmp, ptr align 16 @seq, i64 %375, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %376

376:                                              ; preds = %748, %371
  %377 = load i32, ptr %30, align 4, !tbaa !5
  %378 = load i32, ptr @cnt, align 4, !tbaa !5
  %379 = icmp slt i32 %377, %378
  br i1 %379, label %381, label %380

380:                                              ; preds = %376
  store i32 40, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %751

381:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %382 = load i32, ptr %30, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %383
  %385 = load i32, ptr %384, align 4, !tbaa !5
  store i32 %385, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %386 = load i32, ptr %30, align 4, !tbaa !5
  %387 = add nsw i32 %386, 1
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %388
  %390 = load i32, ptr %389, align 4, !tbaa !5
  store i32 %390, ptr %32, align 4, !tbaa !5
  %391 = load i32, ptr %29, align 4, !tbaa !5
  %392 = load i32, ptr %30, align 4, !tbaa !5
  %393 = ashr i32 %392, 1
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %394
  store i32 %391, ptr %395, align 4, !tbaa !5
  %396 = load i32, ptr %30, align 4, !tbaa !5
  %397 = add nsw i32 %396, 1
  %398 = load i32, ptr @cnt, align 4, !tbaa !5
  %399 = icmp slt i32 %397, %398
  br i1 %399, label %400, label %730

400:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  %401 = load i32, ptr %30, align 4, !tbaa !5
  %402 = add nsw i32 %401, 2
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %403
  %405 = load i32, ptr %404, align 4, !tbaa !5
  store i32 %405, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %406 = load i32, ptr %32, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds i32, ptr @tmp, i64 %407
  store ptr %408, ptr %34, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %409

409:                                              ; preds = %442, %400
  %410 = load i32, ptr %35, align 4, !tbaa !5
  %411 = load i32, ptr %24, align 4, !tbaa !5
  %412 = icmp slt i32 %410, %411
  br i1 %412, label %414, label %413

413:                                              ; preds = %409
  store i32 43, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %445

414:                                              ; preds = %409
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #9
  %415 = load i32, ptr %32, align 4, !tbaa !5
  %416 = load i32, ptr %35, align 4, !tbaa !5
  %417 = add nsw i32 %415, %416
  %418 = load i32, ptr %33, align 4, !tbaa !5
  %419 = icmp slt i32 %417, %418
  br i1 %419, label %420, label %437

420:                                              ; preds = %414
  %421 = load ptr, ptr %34, align 8, !tbaa !26
  %422 = load i32, ptr %35, align 4, !tbaa !5
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds i32, ptr %421, i64 %423
  %425 = load i32, ptr %424, align 4, !tbaa !5
  %426 = load i32, ptr %16, align 4, !tbaa !5
  %427 = and i32 %425, %426
  %428 = sitofp i32 %427 to double
  %429 = load ptr, ptr %34, align 8, !tbaa !26
  %430 = load i32, ptr %35, align 4, !tbaa !5
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds i32, ptr %429, i64 %431
  %433 = load i32, ptr %432, align 4, !tbaa !5
  %434 = load i32, ptr %15, align 4, !tbaa !5
  %435 = ashr i32 %433, %434
  %436 = sitofp i32 %435 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %36, double noundef %428, double noundef %436)
  br label %438

437:                                              ; preds = %414
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %36, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %438

438:                                              ; preds = %437, %420
  %439 = load i32, ptr %35, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %440
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %441, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #9
  br label %442

442:                                              ; preds = %438
  %443 = load i32, ptr %35, align 4, !tbaa !5
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %35, align 4, !tbaa !5
  br label %409, !llvm.loop !28

445:                                              ; preds = %413
  %446 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %446, ptr noundef @B, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %447

447:                                              ; preds = %579, %445
  %448 = load i32, ptr %37, align 4, !tbaa !5
  %449 = load i32, ptr %24, align 4, !tbaa !5
  %450 = icmp slt i32 %448, %449
  br i1 %450, label %452, label %451

451:                                              ; preds = %447
  store i32 46, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %582

452:                                              ; preds = %447
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %453 = load i32, ptr %24, align 4, !tbaa !5
  %454 = load i32, ptr %37, align 4, !tbaa !5
  %455 = sub nsw i32 %453, %454
  %456 = load i32, ptr %24, align 4, !tbaa !5
  %457 = sub nsw i32 %456, 1
  %458 = and i32 %455, %457
  store i32 %458, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #9
  %459 = load i32, ptr %37, align 4, !tbaa !5
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %460
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #9
  %462 = load i32, ptr %38, align 4, !tbaa !5
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %463
  %465 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %464)
  %466 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %467 = extractvalue { double, double } %465, 0
  store double %467, ptr %466, align 8
  %468 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %469 = extractvalue { double, double } %465, 1
  store double %469, ptr %468, align 8
  %470 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %461, ptr noundef nonnull align 8 dereferenceable(16) %41)
  %471 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %472 = extractvalue { double, double } %470, 0
  store double %472, ptr %471, align 8
  %473 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %474 = extractvalue { double, double } %470, 1
  store double %474, ptr %473, align 8
  %475 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %476 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %477 = extractvalue { double, double } %475, 0
  store double %477, ptr %476, align 8
  %478 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %479 = extractvalue { double, double } %475, 1
  store double %479, ptr %478, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #9
  %480 = load i32, ptr %37, align 4, !tbaa !5
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %481
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #9
  %483 = load i32, ptr %38, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %484
  %486 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %485)
  %487 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %488 = extractvalue { double, double } %486, 0
  store double %488, ptr %487, align 8
  %489 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %490 = extractvalue { double, double } %486, 1
  store double %490, ptr %489, align 8
  %491 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %482, ptr noundef nonnull align 8 dereferenceable(16) %44)
  %492 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %493 = extractvalue { double, double } %491, 0
  store double %493, ptr %492, align 8
  %494 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %495 = extractvalue { double, double } %491, 1
  store double %495, ptr %494, align 8
  %496 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %497 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %498 = extractvalue { double, double } %496, 0
  store double %498, ptr %497, align 8
  %499 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %500 = extractvalue { double, double } %496, 1
  store double %500, ptr %499, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #9
  %501 = load i32, ptr %37, align 4, !tbaa !5
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %502
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #9
  %504 = load i32, ptr %38, align 4, !tbaa !5
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %505
  %507 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %506)
  %508 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %509 = extractvalue { double, double } %507, 0
  store double %509, ptr %508, align 8
  %510 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %511 = extractvalue { double, double } %507, 1
  store double %511, ptr %510, align 8
  %512 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %503, ptr noundef nonnull align 8 dereferenceable(16) %47)
  %513 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %514 = extractvalue { double, double } %512, 0
  store double %514, ptr %513, align 8
  %515 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %516 = extractvalue { double, double } %512, 1
  store double %516, ptr %515, align 8
  %517 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %518 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %519 = extractvalue { double, double } %517, 0
  store double %519, ptr %518, align 8
  %520 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %521 = extractvalue { double, double } %517, 1
  store double %521, ptr %520, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #9
  %522 = load i32, ptr %37, align 4, !tbaa !5
  %523 = sext i32 %522 to i64
  %524 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %523
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #9
  %525 = load i32, ptr %38, align 4, !tbaa !5
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %526
  %528 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %527)
  %529 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %530 = extractvalue { double, double } %528, 0
  store double %530, ptr %529, align 8
  %531 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %532 = extractvalue { double, double } %528, 1
  store double %532, ptr %531, align 8
  %533 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %524, ptr noundef nonnull align 8 dereferenceable(16) %50)
  %534 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %535 = extractvalue { double, double } %533, 0
  store double %535, ptr %534, align 8
  %536 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %537 = extractvalue { double, double } %533, 1
  store double %537, ptr %536, align 8
  %538 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %539 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %540 = extractvalue { double, double } %538, 0
  store double %540, ptr %539, align 8
  %541 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %542 = extractvalue { double, double } %538, 1
  store double %542, ptr %541, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #9
  %543 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %544 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %545 = extractvalue { double, double } %543, 0
  store double %545, ptr %544, align 8
  %546 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %547 = extractvalue { double, double } %543, 1
  store double %547, ptr %546, align 8
  %548 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %53)
  %549 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %550 = extractvalue { double, double } %548, 0
  store double %550, ptr %549, align 8
  %551 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %552 = extractvalue { double, double } %548, 1
  store double %552, ptr %551, align 8
  %553 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %52)
  %554 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %555 = extractvalue { double, double } %553, 0
  store double %555, ptr %554, align 8
  %556 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %557 = extractvalue { double, double } %553, 1
  store double %557, ptr %556, align 8
  %558 = load i32, ptr %37, align 4, !tbaa !5
  %559 = sext i32 %558 to i64
  %560 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %559
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %560, ptr align 8 %51, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #9
  %561 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %562 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %563 = extractvalue { double, double } %561, 0
  store double %563, ptr %562, align 8
  %564 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %565 = extractvalue { double, double } %561, 1
  store double %565, ptr %564, align 8
  %566 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %56)
  %567 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %568 = extractvalue { double, double } %566, 0
  store double %568, ptr %567, align 8
  %569 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %570 = extractvalue { double, double } %566, 1
  store double %570, ptr %569, align 8
  %571 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %55)
  %572 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %573 = extractvalue { double, double } %571, 0
  store double %573, ptr %572, align 8
  %574 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %575 = extractvalue { double, double } %571, 1
  store double %575, ptr %574, align 8
  %576 = load i32, ptr %37, align 4, !tbaa !5
  %577 = sext i32 %576 to i64
  %578 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %577
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %578, ptr align 8 %54, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %579

579:                                              ; preds = %452
  %580 = load i32, ptr %37, align 4, !tbaa !5
  %581 = add nsw i32 %580, 1
  store i32 %581, ptr %37, align 4, !tbaa !5
  br label %447, !llvm.loop !29

582:                                              ; preds = %451
  %583 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %583, ptr noundef @C, i32 noundef -1)
  %584 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %584, ptr noundef @D, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #9
  %585 = load i32, ptr %32, align 4, !tbaa !5
  %586 = load i32, ptr %31, align 4, !tbaa !5
  %587 = sub nsw i32 %585, %586
  store i32 %587, ptr %58, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  %588 = load i32, ptr @elen, align 4, !tbaa !5
  %589 = load i32, ptr %33, align 4, !tbaa !5
  %590 = add nsw i32 %588, %589
  %591 = load i32, ptr %32, align 4, !tbaa !5
  %592 = sub nsw i32 %590, %591
  %593 = sub nsw i32 %592, 1
  store i32 %593, ptr %59, align 4, !tbaa !5
  %594 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %59)
  %595 = load i32, ptr %594, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  store i32 %595, ptr %57, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #9
  %596 = load i32, ptr %31, align 4, !tbaa !5
  %597 = sext i32 %596 to i64
  %598 = getelementptr inbounds i32, ptr @tmp, i64 %597
  store ptr %598, ptr %60, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #9
  %599 = load i32, ptr %29, align 4, !tbaa !5
  %600 = sext i32 %599 to i64
  %601 = getelementptr inbounds i32, ptr @seq, i64 %600
  store ptr %601, ptr %61, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  store i64 0, ptr %62, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #9
  store i32 0, ptr %63, align 4, !tbaa !5
  br label %602

602:                                              ; preds = %684, %582
  %603 = load i32, ptr %63, align 4, !tbaa !5
  %604 = load i32, ptr %57, align 4, !tbaa !5
  %605 = icmp slt i32 %603, %604
  br i1 %605, label %607, label %606

606:                                              ; preds = %602
  store i32 49, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #9
  br label %687

607:                                              ; preds = %602
  %608 = load i32, ptr %31, align 4, !tbaa !5
  %609 = load i32, ptr %63, align 4, !tbaa !5
  %610 = add nsw i32 %608, %609
  %611 = load i32, ptr %32, align 4, !tbaa !5
  %612 = icmp slt i32 %610, %611
  br i1 %612, label %613, label %622

613:                                              ; preds = %607
  %614 = load ptr, ptr %60, align 8, !tbaa !26
  %615 = load i32, ptr %63, align 4, !tbaa !5
  %616 = sext i32 %615 to i64
  %617 = getelementptr inbounds i32, ptr %614, i64 %616
  %618 = load i32, ptr %617, align 4, !tbaa !5
  %619 = sext i32 %618 to i64
  %620 = load i64, ptr %62, align 8, !tbaa !30
  %621 = add nsw i64 %620, %619
  store i64 %621, ptr %62, align 8, !tbaa !30
  br label %622

622:                                              ; preds = %613, %607
  %623 = load i32, ptr %63, align 4, !tbaa !5
  %624 = load i32, ptr %24, align 4, !tbaa !5
  %625 = icmp slt i32 %623, %624
  br i1 %625, label %626, label %670

626:                                              ; preds = %622
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #9
  %627 = load i32, ptr %63, align 4, !tbaa !5
  %628 = sext i32 %627 to i64
  %629 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %628
  %630 = getelementptr inbounds %struct.complex, ptr %629, i32 0, i32 0
  %631 = load double, ptr %630, align 16, !tbaa !32
  %632 = fadd double %631, 5.000000e-01
  %633 = fptosi double %632 to i64
  store i64 %633, ptr %64, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #9
  %634 = load i32, ptr %63, align 4, !tbaa !5
  %635 = sext i32 %634 to i64
  %636 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %635
  %637 = getelementptr inbounds %struct.complex, ptr %636, i32 0, i32 1
  %638 = load double, ptr %637, align 8, !tbaa !34
  %639 = fadd double %638, 5.000000e-01
  %640 = fptosi double %639 to i64
  store i64 %640, ptr %65, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #9
  %641 = load i32, ptr %63, align 4, !tbaa !5
  %642 = sext i32 %641 to i64
  %643 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %642
  %644 = getelementptr inbounds %struct.complex, ptr %643, i32 0, i32 0
  %645 = load double, ptr %644, align 16, !tbaa !32
  %646 = fadd double %645, 5.000000e-01
  %647 = fptosi double %646 to i64
  store i64 %647, ptr %66, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #9
  %648 = load i32, ptr %63, align 4, !tbaa !5
  %649 = sext i32 %648 to i64
  %650 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %649
  %651 = getelementptr inbounds %struct.complex, ptr %650, i32 0, i32 1
  %652 = load double, ptr %651, align 8, !tbaa !34
  %653 = fadd double %652, 5.000000e-01
  %654 = fptosi double %653 to i64
  store i64 %654, ptr %67, align 8, !tbaa !30
  %655 = load i64, ptr %67, align 8, !tbaa !30
  %656 = load i32, ptr %15, align 4, !tbaa !5
  %657 = zext i32 %656 to i64
  %658 = shl i64 %655, %657
  %659 = load i64, ptr %65, align 8, !tbaa !30
  %660 = add nsw i64 %658, %659
  %661 = load i64, ptr %66, align 8, !tbaa !30
  %662 = add nsw i64 %660, %661
  %663 = load i32, ptr %15, align 4, !tbaa !5
  %664 = zext i32 %663 to i64
  %665 = shl i64 %662, %664
  %666 = load i64, ptr %64, align 8, !tbaa !30
  %667 = add nsw i64 %665, %666
  %668 = load i64, ptr %62, align 8, !tbaa !30
  %669 = add nsw i64 %668, %667
  store i64 %669, ptr %62, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #9
  br label %670

670:                                              ; preds = %626, %622
  %671 = load i64, ptr %62, align 8, !tbaa !30
  %672 = load i32, ptr @mod, align 4, !tbaa !5
  %673 = sext i32 %672 to i64
  %674 = srem i64 %671, %673
  %675 = trunc i64 %674 to i32
  %676 = load ptr, ptr %61, align 8, !tbaa !26
  %677 = load i32, ptr %63, align 4, !tbaa !5
  %678 = sext i32 %677 to i64
  %679 = getelementptr inbounds i32, ptr %676, i64 %678
  store i32 %675, ptr %679, align 4, !tbaa !5
  %680 = load i32, ptr @mod, align 4, !tbaa !5
  %681 = sext i32 %680 to i64
  %682 = load i64, ptr %62, align 8, !tbaa !30
  %683 = sdiv i64 %682, %681
  store i64 %683, ptr %62, align 8, !tbaa !30
  br label %684

684:                                              ; preds = %670
  %685 = load i32, ptr %63, align 4, !tbaa !5
  %686 = add nsw i32 %685, 1
  store i32 %686, ptr %63, align 4, !tbaa !5
  br label %602, !llvm.loop !35

687:                                              ; preds = %606
  br label %688

688:                                              ; preds = %702, %687
  %689 = load i64, ptr %62, align 8, !tbaa !30
  %690 = icmp sgt i64 %689, 0
  br i1 %690, label %691, label %707

691:                                              ; preds = %688
  %692 = load i64, ptr %62, align 8, !tbaa !30
  %693 = load i32, ptr @mod, align 4, !tbaa !5
  %694 = sext i32 %693 to i64
  %695 = srem i64 %692, %694
  %696 = trunc i64 %695 to i32
  %697 = load ptr, ptr %61, align 8, !tbaa !26
  %698 = load i32, ptr %57, align 4, !tbaa !5
  %699 = add nsw i32 %698, 1
  store i32 %699, ptr %57, align 4, !tbaa !5
  %700 = sext i32 %698 to i64
  %701 = getelementptr inbounds i32, ptr %697, i64 %700
  store i32 %696, ptr %701, align 4, !tbaa !5
  br label %702

702:                                              ; preds = %691
  %703 = load i32, ptr @mod, align 4, !tbaa !5
  %704 = sext i32 %703 to i64
  %705 = load i64, ptr %62, align 8, !tbaa !30
  %706 = sdiv i64 %705, %704
  store i64 %706, ptr %62, align 8, !tbaa !30
  br label %688, !llvm.loop !36

707:                                              ; preds = %688
  br label %708

708:                                              ; preds = %723, %707
  %709 = load i32, ptr %57, align 4, !tbaa !5
  %710 = icmp sgt i32 %709, 1
  br i1 %710, label %711, label %720

711:                                              ; preds = %708
  %712 = load ptr, ptr %61, align 8, !tbaa !26
  %713 = load i32, ptr %57, align 4, !tbaa !5
  %714 = sub nsw i32 %713, 1
  %715 = sext i32 %714 to i64
  %716 = getelementptr inbounds i32, ptr %712, i64 %715
  %717 = load i32, ptr %716, align 4, !tbaa !5
  %718 = icmp ne i32 %717, 0
  %719 = xor i1 %718, true
  br label %720

720:                                              ; preds = %711, %708
  %721 = phi i1 [ false, %708 ], [ %719, %711 ]
  br i1 %721, label %722, label %726

722:                                              ; preds = %720
  br label %723

723:                                              ; preds = %722
  %724 = load i32, ptr %57, align 4, !tbaa !5
  %725 = add nsw i32 %724, -1
  store i32 %725, ptr %57, align 4, !tbaa !5
  br label %708, !llvm.loop !37

726:                                              ; preds = %720
  %727 = load i32, ptr %57, align 4, !tbaa !5
  %728 = load i32, ptr %29, align 4, !tbaa !5
  %729 = add nsw i32 %728, %727
  store i32 %729, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %747

730:                                              ; preds = %381
  %731 = load i32, ptr %29, align 4, !tbaa !5
  %732 = sext i32 %731 to i64
  %733 = getelementptr inbounds i32, ptr @seq, i64 %732
  %734 = load i32, ptr %31, align 4, !tbaa !5
  %735 = sext i32 %734 to i64
  %736 = getelementptr inbounds i32, ptr @tmp, i64 %735
  %737 = load i32, ptr %32, align 4, !tbaa !5
  %738 = load i32, ptr %31, align 4, !tbaa !5
  %739 = sub nsw i32 %737, %738
  %740 = sext i32 %739 to i64
  %741 = mul i64 %740, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %733, ptr align 4 %736, i64 %741, i1 false)
  %742 = load i32, ptr %32, align 4, !tbaa !5
  %743 = load i32, ptr %31, align 4, !tbaa !5
  %744 = sub nsw i32 %742, %743
  %745 = load i32, ptr %29, align 4, !tbaa !5
  %746 = add nsw i32 %745, %744
  store i32 %746, ptr %29, align 4, !tbaa !5
  br label %747

747:                                              ; preds = %730, %726
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %748

748:                                              ; preds = %747
  %749 = load i32, ptr %30, align 4, !tbaa !5
  %750 = add nsw i32 %749, 2
  store i32 %750, ptr %30, align 4, !tbaa !5
  br label %376, !llvm.loop !38

751:                                              ; preds = %380
  %752 = load i32, ptr @cnt, align 4, !tbaa !5
  %753 = add nsw i32 %752, 1
  %754 = ashr i32 %753, 1
  store i32 %754, ptr @cnt, align 4, !tbaa !5
  %755 = load i32, ptr %29, align 4, !tbaa !5
  %756 = load i32, ptr @cnt, align 4, !tbaa !5
  %757 = sext i32 %756 to i64
  %758 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %757
  store i32 %755, ptr %758, align 4, !tbaa !5
  store i32 %755, ptr @len, align 4, !tbaa !5
  %759 = load i32, ptr @cnt, align 4, !tbaa !5
  %760 = icmp sgt i32 %759, 1
  br i1 %760, label %761, label %961

761:                                              ; preds = %751
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #9
  store i32 0, ptr %68, align 4, !tbaa !5
  br label %762

762:                                              ; preds = %852, %761
  %763 = load i32, ptr %68, align 4, !tbaa !5
  %764 = load i32, ptr %24, align 4, !tbaa !5
  %765 = icmp slt i32 %763, %764
  br i1 %765, label %767, label %766

766:                                              ; preds = %762
  store i32 58, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #9
  br label %855

767:                                              ; preds = %762
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #9
  %768 = load i32, ptr %24, align 4, !tbaa !5
  %769 = load i32, ptr %68, align 4, !tbaa !5
  %770 = sub nsw i32 %768, %769
  %771 = load i32, ptr %24, align 4, !tbaa !5
  %772 = sub nsw i32 %771, 1
  %773 = and i32 %770, %772
  store i32 %773, ptr %69, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #9
  %774 = load i32, ptr %68, align 4, !tbaa !5
  %775 = sext i32 %774 to i64
  %776 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %775
  call void @llvm.lifetime.start.p0(i64 16, ptr %72) #9
  %777 = load i32, ptr %69, align 4, !tbaa !5
  %778 = sext i32 %777 to i64
  %779 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %778
  %780 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %779)
  %781 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %782 = extractvalue { double, double } %780, 0
  store double %782, ptr %781, align 8
  %783 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %784 = extractvalue { double, double } %780, 1
  store double %784, ptr %783, align 8
  %785 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %776, ptr noundef nonnull align 8 dereferenceable(16) %72)
  %786 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %787 = extractvalue { double, double } %785, 0
  store double %787, ptr %786, align 8
  %788 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %789 = extractvalue { double, double } %785, 1
  store double %789, ptr %788, align 8
  %790 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %791 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %792 = extractvalue { double, double } %790, 0
  store double %792, ptr %791, align 8
  %793 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %794 = extractvalue { double, double } %790, 1
  store double %794, ptr %793, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %73) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #9
  %795 = load i32, ptr %68, align 4, !tbaa !5
  %796 = sext i32 %795 to i64
  %797 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %796
  call void @llvm.lifetime.start.p0(i64 16, ptr %75) #9
  %798 = load i32, ptr %69, align 4, !tbaa !5
  %799 = sext i32 %798 to i64
  %800 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %799
  %801 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %800)
  %802 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %803 = extractvalue { double, double } %801, 0
  store double %803, ptr %802, align 8
  %804 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %805 = extractvalue { double, double } %801, 1
  store double %805, ptr %804, align 8
  %806 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %797, ptr noundef nonnull align 8 dereferenceable(16) %75)
  %807 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %808 = extractvalue { double, double } %806, 0
  store double %808, ptr %807, align 8
  %809 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %810 = extractvalue { double, double } %806, 1
  store double %810, ptr %809, align 8
  %811 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %812 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %813 = extractvalue { double, double } %811, 0
  store double %813, ptr %812, align 8
  %814 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %815 = extractvalue { double, double } %811, 1
  store double %815, ptr %814, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %76) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %78) #9
  %816 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %817 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %818 = extractvalue { double, double } %816, 0
  store double %818, ptr %817, align 8
  %819 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %820 = extractvalue { double, double } %816, 1
  store double %820, ptr %819, align 8
  %821 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 8 dereferenceable(16) %78)
  %822 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %823 = extractvalue { double, double } %821, 0
  store double %823, ptr %822, align 8
  %824 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %825 = extractvalue { double, double } %821, 1
  store double %825, ptr %824, align 8
  %826 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 8 dereferenceable(16) %77)
  %827 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %828 = extractvalue { double, double } %826, 0
  store double %828, ptr %827, align 8
  %829 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %830 = extractvalue { double, double } %826, 1
  store double %830, ptr %829, align 8
  %831 = load i32, ptr %68, align 4, !tbaa !5
  %832 = sext i32 %831 to i64
  %833 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %832
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %833, ptr align 8 %76, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %79) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %80) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %81) #9
  %834 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %835 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 0
  %836 = extractvalue { double, double } %834, 0
  store double %836, ptr %835, align 8
  %837 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 1
  %838 = extractvalue { double, double } %834, 1
  store double %838, ptr %837, align 8
  %839 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 8 dereferenceable(16) %81)
  %840 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 0
  %841 = extractvalue { double, double } %839, 0
  store double %841, ptr %840, align 8
  %842 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 1
  %843 = extractvalue { double, double } %839, 1
  store double %843, ptr %842, align 8
  %844 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 8 dereferenceable(16) %80)
  %845 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %846 = extractvalue { double, double } %844, 0
  store double %846, ptr %845, align 8
  %847 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %848 = extractvalue { double, double } %844, 1
  store double %848, ptr %847, align 8
  %849 = load i32, ptr %68, align 4, !tbaa !5
  %850 = sext i32 %849 to i64
  %851 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %850
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %851, ptr align 8 %79, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %80) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %79) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #9
  br label %852

852:                                              ; preds = %767
  %853 = load i32, ptr %68, align 4, !tbaa !5
  %854 = add nsw i32 %853, 1
  store i32 %854, ptr %68, align 4, !tbaa !5
  br label %762, !llvm.loop !39

855:                                              ; preds = %766
  %856 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %856, ptr noundef @C, i32 noundef -1)
  %857 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %857, ptr noundef @D, i32 noundef -1)
  %858 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %858, ptr @elen, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #9
  store i64 0, ptr %82, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #9
  store i32 0, ptr %83, align 4, !tbaa !5
  br label %859

859:                                              ; preds = %920, %855
  %860 = load i32, ptr %83, align 4, !tbaa !5
  %861 = load i32, ptr @elen, align 4, !tbaa !5
  %862 = icmp slt i32 %860, %861
  br i1 %862, label %864, label %863

863:                                              ; preds = %859
  store i32 61, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #9
  br label %923

864:                                              ; preds = %859
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #9
  %865 = load i32, ptr %83, align 4, !tbaa !5
  %866 = sext i32 %865 to i64
  %867 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %866
  %868 = getelementptr inbounds %struct.complex, ptr %867, i32 0, i32 0
  %869 = load double, ptr %868, align 16, !tbaa !32
  %870 = fadd double %869, 5.000000e-01
  %871 = fptosi double %870 to i64
  store i64 %871, ptr %84, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %85) #9
  %872 = load i32, ptr %83, align 4, !tbaa !5
  %873 = sext i32 %872 to i64
  %874 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %873
  %875 = getelementptr inbounds %struct.complex, ptr %874, i32 0, i32 1
  %876 = load double, ptr %875, align 8, !tbaa !34
  %877 = fadd double %876, 5.000000e-01
  %878 = fptosi double %877 to i64
  store i64 %878, ptr %85, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %86) #9
  %879 = load i32, ptr %83, align 4, !tbaa !5
  %880 = sext i32 %879 to i64
  %881 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %880
  %882 = getelementptr inbounds %struct.complex, ptr %881, i32 0, i32 0
  %883 = load double, ptr %882, align 16, !tbaa !32
  %884 = fadd double %883, 5.000000e-01
  %885 = fptosi double %884 to i64
  store i64 %885, ptr %86, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %87) #9
  %886 = load i32, ptr %83, align 4, !tbaa !5
  %887 = sext i32 %886 to i64
  %888 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %887
  %889 = getelementptr inbounds %struct.complex, ptr %888, i32 0, i32 1
  %890 = load double, ptr %889, align 8, !tbaa !34
  %891 = fadd double %890, 5.000000e-01
  %892 = fptosi double %891 to i64
  store i64 %892, ptr %87, align 8, !tbaa !30
  %893 = load i64, ptr %87, align 8, !tbaa !30
  %894 = load i32, ptr %15, align 4, !tbaa !5
  %895 = zext i32 %894 to i64
  %896 = shl i64 %893, %895
  %897 = load i64, ptr %85, align 8, !tbaa !30
  %898 = add nsw i64 %896, %897
  %899 = load i64, ptr %86, align 8, !tbaa !30
  %900 = add nsw i64 %898, %899
  %901 = load i32, ptr %15, align 4, !tbaa !5
  %902 = zext i32 %901 to i64
  %903 = shl i64 %900, %902
  %904 = load i64, ptr %84, align 8, !tbaa !30
  %905 = add nsw i64 %903, %904
  %906 = load i64, ptr %82, align 8, !tbaa !30
  %907 = add nsw i64 %906, %905
  store i64 %907, ptr %82, align 8, !tbaa !30
  %908 = load i64, ptr %82, align 8, !tbaa !30
  %909 = load i32, ptr @mod, align 4, !tbaa !5
  %910 = sext i32 %909 to i64
  %911 = srem i64 %908, %910
  %912 = trunc i64 %911 to i32
  %913 = load i32, ptr %83, align 4, !tbaa !5
  %914 = sext i32 %913 to i64
  %915 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %914
  store i32 %912, ptr %915, align 4, !tbaa !5
  %916 = load i32, ptr @mod, align 4, !tbaa !5
  %917 = sext i32 %916 to i64
  %918 = load i64, ptr %82, align 8, !tbaa !30
  %919 = sdiv i64 %918, %917
  store i64 %919, ptr %82, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %86) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #9
  br label %920

920:                                              ; preds = %864
  %921 = load i32, ptr %83, align 4, !tbaa !5
  %922 = add nsw i32 %921, 1
  store i32 %922, ptr %83, align 4, !tbaa !5
  br label %859, !llvm.loop !40

923:                                              ; preds = %863
  br label %924

924:                                              ; preds = %937, %923
  %925 = load i64, ptr %82, align 8, !tbaa !30
  %926 = icmp sgt i64 %925, 0
  br i1 %926, label %927, label %942

927:                                              ; preds = %924
  %928 = load i64, ptr %82, align 8, !tbaa !30
  %929 = load i32, ptr @mod, align 4, !tbaa !5
  %930 = sext i32 %929 to i64
  %931 = srem i64 %928, %930
  %932 = trunc i64 %931 to i32
  %933 = load i32, ptr @elen, align 4, !tbaa !5
  %934 = add nsw i32 %933, 1
  store i32 %934, ptr @elen, align 4, !tbaa !5
  %935 = sext i32 %933 to i64
  %936 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %935
  store i32 %932, ptr %936, align 4, !tbaa !5
  br label %937

937:                                              ; preds = %927
  %938 = load i32, ptr @mod, align 4, !tbaa !5
  %939 = sext i32 %938 to i64
  %940 = load i64, ptr %82, align 8, !tbaa !30
  %941 = sdiv i64 %940, %939
  store i64 %941, ptr %82, align 8, !tbaa !30
  br label %924, !llvm.loop !41

942:                                              ; preds = %924
  br label %943

943:                                              ; preds = %957, %942
  %944 = load i32, ptr @elen, align 4, !tbaa !5
  %945 = icmp sgt i32 %944, 1
  br i1 %945, label %946, label %954

946:                                              ; preds = %943
  %947 = load i32, ptr @elen, align 4, !tbaa !5
  %948 = sub nsw i32 %947, 1
  %949 = sext i32 %948 to i64
  %950 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %949
  %951 = load i32, ptr %950, align 4, !tbaa !5
  %952 = icmp ne i32 %951, 0
  %953 = xor i1 %952, true
  br label %954

954:                                              ; preds = %946, %943
  %955 = phi i1 [ false, %943 ], [ %953, %946 ]
  br i1 %955, label %956, label %960

956:                                              ; preds = %954
  br label %957

957:                                              ; preds = %956
  %958 = load i32, ptr @elen, align 4, !tbaa !5
  %959 = add nsw i32 %958, -1
  store i32 %959, ptr @elen, align 4, !tbaa !5
  br label %943, !llvm.loop !42

960:                                              ; preds = %954
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #9
  br label %961

961:                                              ; preds = %960, %751
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %291, !llvm.loop !43

962:                                              ; preds = %291
  store i32 1, ptr getelementptr inbounds ([1000001 x i32], ptr @iact, i64 0, i64 1), align 4, !tbaa !5
  store i32 1, ptr @iact, align 16, !tbaa !5
  store i32 1, ptr getelementptr inbounds ([1000001 x i32], ptr @fact, i64 0, i64 1), align 4, !tbaa !5
  store i32 1, ptr @fact, align 16, !tbaa !5
  store i32 1, ptr getelementptr inbounds ([1000001 x i32], ptr @inv, i64 0, i64 1), align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds ([1000001 x i32], ptr @pw, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %88) #9
  store i32 2, ptr %88, align 4, !tbaa !5
  br label %963

963:                                              ; preds = %1101, %962
  %964 = load i32, ptr %88, align 4, !tbaa !5
  %965 = load i32, ptr @mod, align 4, !tbaa !5
  %966 = icmp slt i32 %964, %965
  br i1 %966, label %968, label %967

967:                                              ; preds = %963
  store i32 70, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #9
  br label %1104

968:                                              ; preds = %963
  %969 = load i32, ptr %88, align 4, !tbaa !5
  %970 = sext i32 %969 to i64
  %971 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %970
  %972 = load i32, ptr %971, align 4, !tbaa !5
  %973 = icmp ne i32 %972, 0
  br i1 %973, label %989, label %974

974:                                              ; preds = %968
  %975 = load i32, ptr %88, align 4, !tbaa !5
  %976 = load i32, ptr %88, align 4, !tbaa !5
  %977 = sext i32 %976 to i64
  %978 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %977
  store i32 %975, ptr %978, align 4, !tbaa !5
  %979 = load i32, ptr @tot, align 4, !tbaa !5
  %980 = add nsw i32 %979, 1
  store i32 %980, ptr @tot, align 4, !tbaa !5
  %981 = sext i32 %979 to i64
  %982 = getelementptr inbounds [1000001 x i32], ptr @pr, i64 0, i64 %981
  store i32 %975, ptr %982, align 4, !tbaa !5
  %983 = load i32, ptr %88, align 4, !tbaa !5
  %984 = load i32, ptr @kk, align 4, !tbaa !5
  %985 = call noundef i32 @_Z7mod_powii(i32 noundef %983, i32 noundef %984)
  %986 = load i32, ptr %88, align 4, !tbaa !5
  %987 = sext i32 %986 to i64
  %988 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %987
  store i32 %985, ptr %988, align 4, !tbaa !5
  br label %989

989:                                              ; preds = %974, %968
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #9
  store i32 0, ptr %89, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #9
  br label %990

990:                                              ; preds = %1040, %989
  %991 = load i32, ptr %88, align 4, !tbaa !5
  %992 = load i32, ptr %89, align 4, !tbaa !5
  %993 = sext i32 %992 to i64
  %994 = getelementptr inbounds [1000001 x i32], ptr @pr, i64 0, i64 %993
  %995 = load i32, ptr %994, align 4, !tbaa !5
  %996 = mul nsw i32 %991, %995
  store i32 %996, ptr %90, align 4, !tbaa !5
  %997 = load i32, ptr @mod, align 4, !tbaa !5
  %998 = icmp slt i32 %996, %997
  br i1 %998, label %1000, label %999

999:                                              ; preds = %990
  store i32 73, ptr %8, align 4
  br label %1043

1000:                                             ; preds = %990
  %1001 = load i32, ptr %89, align 4, !tbaa !5
  %1002 = sext i32 %1001 to i64
  %1003 = getelementptr inbounds [1000001 x i32], ptr @pr, i64 0, i64 %1002
  %1004 = load i32, ptr %1003, align 4, !tbaa !5
  %1005 = load i32, ptr %90, align 4, !tbaa !5
  %1006 = sext i32 %1005 to i64
  %1007 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %1006
  store i32 %1004, ptr %1007, align 4, !tbaa !5
  %1008 = load i32, ptr %88, align 4, !tbaa !5
  %1009 = sext i32 %1008 to i64
  %1010 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %1009
  %1011 = load i32, ptr %1010, align 4, !tbaa !5
  %1012 = sext i32 %1011 to i64
  %1013 = load i32, ptr %89, align 4, !tbaa !5
  %1014 = sext i32 %1013 to i64
  %1015 = getelementptr inbounds [1000001 x i32], ptr @pr, i64 0, i64 %1014
  %1016 = load i32, ptr %1015, align 4, !tbaa !5
  %1017 = sext i32 %1016 to i64
  %1018 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %1017
  %1019 = load i32, ptr %1018, align 4, !tbaa !5
  %1020 = sext i32 %1019 to i64
  %1021 = mul nsw i64 %1012, %1020
  %1022 = load i32, ptr @mod, align 4, !tbaa !5
  %1023 = sext i32 %1022 to i64
  %1024 = srem i64 %1021, %1023
  %1025 = trunc i64 %1024 to i32
  %1026 = load i32, ptr %90, align 4, !tbaa !5
  %1027 = sext i32 %1026 to i64
  %1028 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %1027
  store i32 %1025, ptr %1028, align 4, !tbaa !5
  %1029 = load i32, ptr %88, align 4, !tbaa !5
  %1030 = sext i32 %1029 to i64
  %1031 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %1030
  %1032 = load i32, ptr %1031, align 4, !tbaa !5
  %1033 = load i32, ptr %89, align 4, !tbaa !5
  %1034 = sext i32 %1033 to i64
  %1035 = getelementptr inbounds [1000001 x i32], ptr @pr, i64 0, i64 %1034
  %1036 = load i32, ptr %1035, align 4, !tbaa !5
  %1037 = icmp eq i32 %1032, %1036
  br i1 %1037, label %1038, label %1039

1038:                                             ; preds = %1000
  store i32 73, ptr %8, align 4
  br label %1043

1039:                                             ; preds = %1000
  br label %1040

1040:                                             ; preds = %1039
  %1041 = load i32, ptr %89, align 4, !tbaa !5
  %1042 = add nsw i32 %1041, 1
  store i32 %1042, ptr %89, align 4, !tbaa !5
  br label %990, !llvm.loop !44

1043:                                             ; preds = %1038, %999
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #9
  br label %1044

1044:                                             ; preds = %1043
  %1045 = load i32, ptr @mod, align 4, !tbaa !5
  %1046 = load i32, ptr @mod, align 4, !tbaa !5
  %1047 = load i32, ptr %88, align 4, !tbaa !5
  %1048 = sdiv i32 %1046, %1047
  %1049 = sext i32 %1048 to i64
  %1050 = load i32, ptr @mod, align 4, !tbaa !5
  %1051 = load i32, ptr %88, align 4, !tbaa !5
  %1052 = srem i32 %1050, %1051
  %1053 = sext i32 %1052 to i64
  %1054 = getelementptr inbounds [1000001 x i32], ptr @inv, i64 0, i64 %1053
  %1055 = load i32, ptr %1054, align 4, !tbaa !5
  %1056 = sext i32 %1055 to i64
  %1057 = mul nsw i64 %1049, %1056
  %1058 = load i32, ptr @mod, align 4, !tbaa !5
  %1059 = sext i32 %1058 to i64
  %1060 = srem i64 %1057, %1059
  %1061 = trunc i64 %1060 to i32
  %1062 = sub nsw i32 %1045, %1061
  %1063 = load i32, ptr %88, align 4, !tbaa !5
  %1064 = sext i32 %1063 to i64
  %1065 = getelementptr inbounds [1000001 x i32], ptr @inv, i64 0, i64 %1064
  store i32 %1062, ptr %1065, align 4, !tbaa !5
  %1066 = load i32, ptr %88, align 4, !tbaa !5
  %1067 = sub nsw i32 %1066, 1
  %1068 = sext i32 %1067 to i64
  %1069 = getelementptr inbounds [1000001 x i32], ptr @fact, i64 0, i64 %1068
  %1070 = load i32, ptr %1069, align 4, !tbaa !5
  %1071 = sext i32 %1070 to i64
  %1072 = load i32, ptr %88, align 4, !tbaa !5
  %1073 = sext i32 %1072 to i64
  %1074 = mul nsw i64 %1071, %1073
  %1075 = load i32, ptr @mod, align 4, !tbaa !5
  %1076 = sext i32 %1075 to i64
  %1077 = srem i64 %1074, %1076
  %1078 = trunc i64 %1077 to i32
  %1079 = load i32, ptr %88, align 4, !tbaa !5
  %1080 = sext i32 %1079 to i64
  %1081 = getelementptr inbounds [1000001 x i32], ptr @fact, i64 0, i64 %1080
  store i32 %1078, ptr %1081, align 4, !tbaa !5
  %1082 = load i32, ptr %88, align 4, !tbaa !5
  %1083 = sub nsw i32 %1082, 1
  %1084 = sext i32 %1083 to i64
  %1085 = getelementptr inbounds [1000001 x i32], ptr @iact, i64 0, i64 %1084
  %1086 = load i32, ptr %1085, align 4, !tbaa !5
  %1087 = sext i32 %1086 to i64
  %1088 = load i32, ptr %88, align 4, !tbaa !5
  %1089 = sext i32 %1088 to i64
  %1090 = getelementptr inbounds [1000001 x i32], ptr @inv, i64 0, i64 %1089
  %1091 = load i32, ptr %1090, align 4, !tbaa !5
  %1092 = sext i32 %1091 to i64
  %1093 = mul nsw i64 %1087, %1092
  %1094 = load i32, ptr @mod, align 4, !tbaa !5
  %1095 = sext i32 %1094 to i64
  %1096 = srem i64 %1093, %1095
  %1097 = trunc i64 %1096 to i32
  %1098 = load i32, ptr %88, align 4, !tbaa !5
  %1099 = sext i32 %1098 to i64
  %1100 = getelementptr inbounds [1000001 x i32], ptr @iact, i64 0, i64 %1099
  store i32 %1097, ptr %1100, align 4, !tbaa !5
  br label %1101

1101:                                             ; preds = %1044
  %1102 = load i32, ptr %88, align 4, !tbaa !5
  %1103 = add nsw i32 %1102, 1
  store i32 %1103, ptr %88, align 4, !tbaa !5
  br label %963, !llvm.loop !45

1104:                                             ; preds = %967
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #9
  store i32 1, ptr %91, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #9
  store i32 1, ptr %92, align 4, !tbaa !5
  br label %1105

1105:                                             ; preds = %1157, %1104
  %1106 = load i32, ptr %92, align 4, !tbaa !5
  %1107 = load i32, ptr @len, align 4, !tbaa !5
  %1108 = icmp slt i32 %1106, %1107
  br i1 %1108, label %1110, label %1109

1109:                                             ; preds = %1105
  store i32 76, ptr %8, align 4
  br label %1160

1110:                                             ; preds = %1105
  %1111 = load i32, ptr %92, align 4, !tbaa !5
  %1112 = sext i32 %1111 to i64
  %1113 = getelementptr inbounds [262145 x i32], ptr @seq, i64 0, i64 %1112
  %1114 = load i32, ptr %1113, align 4, !tbaa !5
  %1115 = and i32 %1114, 1
  %1116 = icmp ne i32 %1115, 0
  br i1 %1116, label %1117, label %1118

1117:                                             ; preds = %1110
  store i32 0, ptr %91, align 4, !tbaa !5
  store i32 76, ptr %8, align 4
  br label %1160

1118:                                             ; preds = %1110
  %1119 = load i32, ptr %91, align 4, !tbaa !5
  %1120 = sext i32 %1119 to i64
  %1121 = load i32, ptr %92, align 4, !tbaa !5
  %1122 = sext i32 %1121 to i64
  %1123 = getelementptr inbounds [262145 x i32], ptr @seq, i64 0, i64 %1122
  %1124 = load i32, ptr %1123, align 4, !tbaa !5
  %1125 = sext i32 %1124 to i64
  %1126 = getelementptr inbounds [1000001 x i32], ptr @fact, i64 0, i64 %1125
  %1127 = load i32, ptr %1126, align 4, !tbaa !5
  %1128 = sext i32 %1127 to i64
  %1129 = mul nsw i64 %1120, %1128
  %1130 = load i32, ptr %92, align 4, !tbaa !5
  %1131 = sext i32 %1130 to i64
  %1132 = getelementptr inbounds [262145 x i32], ptr @seq, i64 0, i64 %1131
  %1133 = load i32, ptr %1132, align 4, !tbaa !5
  %1134 = ashr i32 %1133, 1
  %1135 = sext i32 %1134 to i64
  %1136 = getelementptr inbounds [1000001 x i32], ptr @iact, i64 0, i64 %1135
  %1137 = load i32, ptr %1136, align 4, !tbaa !5
  %1138 = sext i32 %1137 to i64
  %1139 = mul nsw i64 %1129, %1138
  %1140 = load i32, ptr @mod, align 4, !tbaa !5
  %1141 = sext i32 %1140 to i64
  %1142 = srem i64 %1139, %1141
  %1143 = load i32, ptr %92, align 4, !tbaa !5
  %1144 = sext i32 %1143 to i64
  %1145 = getelementptr inbounds [262145 x i32], ptr @seq, i64 0, i64 %1144
  %1146 = load i32, ptr %1145, align 4, !tbaa !5
  %1147 = ashr i32 %1146, 1
  %1148 = sext i32 %1147 to i64
  %1149 = getelementptr inbounds [1000001 x i32], ptr @iact, i64 0, i64 %1148
  %1150 = load i32, ptr %1149, align 4, !tbaa !5
  %1151 = sext i32 %1150 to i64
  %1152 = mul nsw i64 %1142, %1151
  %1153 = load i32, ptr @mod, align 4, !tbaa !5
  %1154 = sext i32 %1153 to i64
  %1155 = srem i64 %1152, %1154
  %1156 = trunc i64 %1155 to i32
  store i32 %1156, ptr %91, align 4, !tbaa !5
  br label %1157

1157:                                             ; preds = %1118
  %1158 = load i32, ptr %92, align 4, !tbaa !5
  %1159 = add nsw i32 %1158, 1
  store i32 %1159, ptr %92, align 4, !tbaa !5
  br label %1105, !llvm.loop !46

1160:                                             ; preds = %1117, %1109
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #9
  br label %1161

1161:                                             ; preds = %1160
  %1162 = load i32, ptr %91, align 4, !tbaa !5
  %1163 = icmp ne i32 %1162, 0
  br i1 %1163, label %1166, label %1164

1164:                                             ; preds = %1161
  %1165 = call i32 @puts(ptr noundef @.str.8)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %1243

1166:                                             ; preds = %1161
  call void @llvm.lifetime.start.p0(i64 4, ptr %93) #9
  %1167 = load i32, ptr @seq, align 16, !tbaa !5
  store i32 %1167, ptr %93, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %94) #9
  store i32 1, ptr %94, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %95) #9
  %1168 = load i32, ptr %93, align 4, !tbaa !5
  %1169 = sext i32 %1168 to i64
  %1170 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %1169
  %1171 = load i32, ptr %1170, align 4, !tbaa !5
  store i32 %1171, ptr %95, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %96) #9
  store i32 1, ptr %96, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #9
  %1172 = load i32, ptr %93, align 4, !tbaa !5
  %1173 = sub nsw i32 %1172, 1
  store i32 %1173, ptr %97, align 4, !tbaa !5
  br label %1174

1174:                                             ; preds = %1216, %1166
  %1175 = load i32, ptr %96, align 4, !tbaa !5
  %1176 = load i32, ptr %97, align 4, !tbaa !5
  %1177 = icmp slt i32 %1175, %1176
  br i1 %1177, label %1179, label %1178

1178:                                             ; preds = %1174
  store i32 79, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #9
  br label %1221

1179:                                             ; preds = %1174
  %1180 = load i32, ptr %94, align 4, !tbaa !5
  %1181 = sext i32 %1180 to i64
  %1182 = load i32, ptr %97, align 4, !tbaa !5
  %1183 = sext i32 %1182 to i64
  %1184 = add nsw i64 %1183, 1
  %1185 = mul nsw i64 %1181, %1184
  %1186 = load i32, ptr %96, align 4, !tbaa !5
  %1187 = sext i32 %1186 to i64
  %1188 = getelementptr inbounds [1000001 x i32], ptr @inv, i64 0, i64 %1187
  %1189 = load i32, ptr %1188, align 4, !tbaa !5
  %1190 = sext i32 %1189 to i64
  %1191 = mul nsw i64 %1185, %1190
  %1192 = load i32, ptr @mod, align 4, !tbaa !5
  %1193 = sext i32 %1192 to i64
  %1194 = srem i64 %1191, %1193
  %1195 = trunc i64 %1194 to i32
  store i32 %1195, ptr %94, align 4, !tbaa !5
  %1196 = load i32, ptr %95, align 4, !tbaa !5
  %1197 = sext i32 %1196 to i64
  %1198 = load i32, ptr %97, align 4, !tbaa !5
  %1199 = sext i32 %1198 to i64
  %1200 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %1199
  %1201 = load i32, ptr %1200, align 4, !tbaa !5
  %1202 = load i32, ptr %96, align 4, !tbaa !5
  %1203 = sext i32 %1202 to i64
  %1204 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %1203
  %1205 = load i32, ptr %1204, align 4, !tbaa !5
  %1206 = sub nsw i32 %1201, %1205
  %1207 = sext i32 %1206 to i64
  %1208 = load i32, ptr %94, align 4, !tbaa !5
  %1209 = sext i32 %1208 to i64
  %1210 = mul nsw i64 %1207, %1209
  %1211 = add nsw i64 %1197, %1210
  %1212 = load i32, ptr @mod, align 4, !tbaa !5
  %1213 = sext i32 %1212 to i64
  %1214 = srem i64 %1211, %1213
  %1215 = trunc i64 %1214 to i32
  store i32 %1215, ptr %95, align 4, !tbaa !5
  br label %1216

1216:                                             ; preds = %1179
  %1217 = load i32, ptr %96, align 4, !tbaa !5
  %1218 = add nsw i32 %1217, 1
  store i32 %1218, ptr %96, align 4, !tbaa !5
  %1219 = load i32, ptr %97, align 4, !tbaa !5
  %1220 = add nsw i32 %1219, -1
  store i32 %1220, ptr %97, align 4, !tbaa !5
  br label %1174, !llvm.loop !47

1221:                                             ; preds = %1178
  %1222 = load i32, ptr %91, align 4, !tbaa !5
  %1223 = sext i32 %1222 to i64
  %1224 = load i32, ptr %95, align 4, !tbaa !5
  %1225 = shl i32 %1224, 1
  %1226 = sext i32 %1225 to i64
  %1227 = mul nsw i64 %1223, %1226
  %1228 = load i32, ptr @mod, align 4, !tbaa !5
  %1229 = sext i32 %1228 to i64
  %1230 = srem i64 %1227, %1229
  %1231 = trunc i64 %1230 to i32
  store i32 %1231, ptr %91, align 4, !tbaa !5
  %1232 = load i32, ptr %91, align 4, !tbaa !5
  %1233 = icmp slt i32 %1232, 0
  br i1 %1233, label %1234, label %1238

1234:                                             ; preds = %1221
  %1235 = load i32, ptr %91, align 4, !tbaa !5
  %1236 = load i32, ptr @mod, align 4, !tbaa !5
  %1237 = add nsw i32 %1235, %1236
  br label %1240

1238:                                             ; preds = %1221
  %1239 = load i32, ptr %91, align 4, !tbaa !5
  br label %1240

1240:                                             ; preds = %1238, %1234
  %1241 = phi i32 [ %1237, %1234 ], [ %1239, %1238 ]
  %1242 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %1241)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %94) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #9
  br label %1243

1243:                                             ; preds = %1240, %1164
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %1244

1244:                                             ; preds = %1243, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %1245 = load i32, ptr %1, align 4
  ret i32 %1245
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #5

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

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

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #8

declare i32 @puts(ptr noundef) #5

; Function Attrs: nounwind
declare double @cos(double noundef) #8

; Function Attrs: nounwind
declare double @sin(double noundef) #8

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

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

declare i32 @printf(ptr noundef, ...) #5

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

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{i64 0, i64 8, !14, i64 8, i64 8, !14}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!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 = !{!27, !27, i64 0}
!27 = !{!"any pointer", !7, i64 0}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}
!30 = !{!31, !31, i64 0}
!31 = !{!"long long", !7, i64 0}
!32 = !{!33, !15, i64 0}
!33 = !{!"_ZTS7complex", !15, i64 0, !15, i64 8}
!34 = !{!33, !15, i64 8}
!35 = distinct !{!35, !11}
!36 = distinct !{!36, !11}
!37 = distinct !{!37, !11}
!38 = distinct !{!38, !11}
!39 = distinct !{!39, !11}
!40 = distinct !{!40, !11}
!41 = distinct !{!41, !11}
!42 = distinct !{!42, !11}
!43 = distinct !{!43, !11}
!44 = distinct !{!44, !11}
!45 = distinct !{!45, !11}
!46 = distinct !{!46, !11}
!47 = distinct !{!47, !11}


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

@_ZL2pi = external hidden local_unnamed_addr global double, align 8
@buf = external dso_local global [600001 x i8], align 16
@kk = external dso_local local_unnamed_addr global i32, align 4
@mod = external dso_local global i32, align 4
@len = external dso_local local_unnamed_addr global i32, align 4
@seq = external dso_local global [262145 x i32], align 16
@cnt = external dso_local local_unnamed_addr global i32, align 4
@pos = external dso_local local_unnamed_addr global [262145 x i32], align 16
@tmp = external dso_local local_unnamed_addr global [262145 x i32], align 16
@elen = external dso_local local_unnamed_addr global i32, align 4
@ex = external dso_local local_unnamed_addr global [262145 x i32], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@pr = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@d = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@pw = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@inv = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@fact = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@iact = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@w = external dso_local local_unnamed_addr global [262145 x %struct.complex], align 16
@A = external dso_local global [262145 x %struct.complex], align 16
@B = external dso_local global [262145 x %struct.complex], align 16
@C = external dso_local global [262145 x %struct.complex], align 16
@D = external dso_local global [262145 x %struct.complex], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

; 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 #0 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 #0 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) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7mod_powii(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.complex, align 8
  %4 = alloca %struct.complex, align 8
  %5 = alloca %struct.complex, align 8
  %6 = alloca %struct.complex, align 8
  %7 = alloca %struct.complex, align 8
  %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 i32, align 4
  %26 = alloca i32, align 4
  %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
  %33 = alloca %struct.complex, align 8
  %34 = alloca %struct.complex, align 8
  %35 = alloca %struct.complex, align 8
  %36 = alloca %struct.complex, align 8
  %37 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @buf)
  %38 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @buf) #9
  %39 = trunc i64 %38 to i32
  %40 = add nsw i32 %39, -1
  %41 = sdiv i32 %40, 6
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr @len, align 4, !tbaa !5
  %43 = icmp sgt i32 %39, -5
  br i1 %43, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.7, ptr noundef nonnull @buf, ptr noundef nonnull @mod)
  %45 = load i32, ptr @mod, align 4, !tbaa !5
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %63, label %.preheader312

.preheader312:                                    ; preds = %._crit_edge
  %47 = load i8, ptr @buf, align 16, !tbaa !9
  %.not319 = icmp eq i8 %47, 0
  br i1 %.not319, label %.preheader310.preheader, label %.lr.ph321

.preheader310.preheader:                          ; preds = %..preheader311_crit_edge, %.preheader312
  br label %.preheader310

.lr.ph321:                                        ; preds = %.preheader312
  %kk.promoted = load i32, ptr @kk, align 4, !tbaa !5
  %48 = add nsw i32 %45, -1
  br label %65

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %49 = trunc nuw nsw i64 %indvars.iv to i32
  %.neg = mul i32 %49, -6
  %50 = add i32 %.neg, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #10
  %51 = add nsw i32 %50, -6
  store i32 %51, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #10
  store i32 0, ptr %2, align 4, !tbaa !5
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %53 = load i32, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  %54 = sext i32 %50 to i64
  %55 = getelementptr inbounds [600001 x i8], ptr @buf, i64 0, i64 %54
  store i8 0, ptr %55, align 1, !tbaa !9
  %56 = sext i32 %53 to i64
  %57 = getelementptr inbounds i8, ptr @buf, i64 %56
  %58 = getelementptr inbounds i32, ptr @seq, i64 %indvars.iv
  %59 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %57, ptr noundef nonnull @.str.6, ptr noundef nonnull %58) #10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %60 = load i32, ptr @len, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next, %61
  br i1 %62, label %.lr.ph, label %._crit_edge, !llvm.loop !10

63:                                               ; preds = %._crit_edge
  %64 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %625

..preheader311_crit_edge:                         ; preds = %65
  store i32 %72, ptr @kk, align 4, !tbaa !5
  br label %.preheader310.preheader

65:                                               ; preds = %.lr.ph321, %65
  %indvars.iv434 = phi i64 [ 0, %.lr.ph321 ], [ %indvars.iv.next435, %65 ]
  %66 = phi i8 [ %47, %.lr.ph321 ], [ %74, %65 ]
  %67 = phi i32 [ %kk.promoted, %.lr.ph321 ], [ %72, %65 ]
  %68 = mul i32 %67, 10
  %69 = sext i8 %66 to i32
  %70 = add nsw i32 %69, -48
  %71 = add nsw i32 %70, %68
  %72 = srem i32 %71, %48
  %indvars.iv.next435 = add nuw nsw i64 %indvars.iv434, 1
  %73 = getelementptr inbounds [600001 x i8], ptr @buf, i64 0, i64 %indvars.iv.next435
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %.not = icmp eq i8 %74, 0
  br i1 %.not, label %..preheader311_crit_edge, label %65, !llvm.loop !12

.preheader310:                                    ; preds = %.preheader310.preheader, %._crit_edge327
  %indvars.iv436 = phi i64 [ %indvars.iv.next437, %._crit_edge327 ], [ 0, %.preheader310.preheader ]
  %75 = trunc nuw nsw i64 %indvars.iv436 to i32
  %76 = and i32 %75, 1
  %.not298323 = icmp eq i32 %76, 0
  br i1 %.not298323, label %.lr.ph326, label %._crit_edge327

.preheader309:                                    ; preds = %._crit_edge327
  %77 = load i32, ptr @mod, align 4, !tbaa !5
  br label %94

.lr.ph326:                                        ; preds = %.preheader310, %.lr.ph326
  %.0260325 = phi i32 [ %78, %.lr.ph326 ], [ %75, %.preheader310 ]
  %.0264324 = phi i32 [ %79, %.lr.ph326 ], [ 131072, %.preheader310 ]
  %78 = lshr exact i32 %.0260325, 1
  %79 = lshr exact i32 %.0264324, 1
  %80 = and i32 %.0260325, 2
  %.not298 = icmp eq i32 %80, 0
  %81 = and i32 %.0264324, 2
  %.not299 = icmp eq i32 %81, 0
  %82 = select i1 %.not298, i1 %.not299, i1 false
  br i1 %82, label %.lr.ph326, label %._crit_edge327, !llvm.loop !13

._crit_edge327:                                   ; preds = %.lr.ph326, %.preheader310
  %.0264.lcssa = phi i32 [ 131072, %.preheader310 ], [ %79, %.lr.ph326 ]
  %.0260.lcssa = phi i32 [ %75, %.preheader310 ], [ %78, %.lr.ph326 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  %83 = load double, ptr @_ZL2pi, align 8, !tbaa !14
  %84 = uitofp nneg i32 %.0264.lcssa to double
  %85 = fdiv double %83, %84
  %86 = uitofp nneg i32 %.0260.lcssa to double
  %87 = fmul double %85, %86
  %88 = call double @cos(double noundef %87) #10
  %89 = load double, ptr @_ZL2pi, align 8, !tbaa !14
  %90 = fdiv double %89, %84
  %91 = fmul double %90, %86
  %92 = call double @sin(double noundef %91) #10
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %88, double noundef %92)
  %93 = getelementptr inbounds [262145 x %struct.complex], ptr @w, i64 0, i64 %indvars.iv436
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %93, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  %indvars.iv.next437 = add nuw nsw i64 %indvars.iv436, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next437, 262144
  br i1 %exitcond.not, label %.preheader309, label %.preheader310, !llvm.loop !17

94:                                               ; preds = %94, %.preheader309
  %.0265 = phi i32 [ %98, %94 ], [ 1, %.preheader309 ]
  %95 = shl nuw i32 %.0265, 1
  %96 = shl nuw i32 1, %95
  %97 = icmp slt i32 %96, %77
  %98 = add nuw nsw i32 %.0265, 1
  br i1 %97, label %94, label %99, !llvm.loop !18

99:                                               ; preds = %94
  %notmask = shl nsw i32 -1, %.0265
  %100 = xor i32 %notmask, -1
  %101 = load i32, ptr @len, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = shl nsw i64 %102, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 @ex, ptr nonnull align 16 @seq, i64 %103, i1 false)
  store i32 %101, ptr @cnt, align 4, !tbaa !5
  %104 = icmp sgt i32 %101, 0
  br i1 %104, label %.lr.ph339.preheader, label %._crit_edge340

.lr.ph339.preheader:                              ; preds = %99
  %wide.trip.count = zext nneg i32 %101 to i64
  br label %.lr.ph339

._crit_edge340:                                   ; preds = %._crit_edge334, %99
  %.0266.lcssa = phi i32 [ 0, %99 ], [ %.1267.lcssa, %._crit_edge334 ]
  %105 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %102
  store i32 %.0266.lcssa, ptr %105, align 4, !tbaa !5
  store i32 %.0266.lcssa, ptr @len, align 4, !tbaa !5
  br label %147

.lr.ph339:                                        ; preds = %.lr.ph339.preheader, %._crit_edge334
  %indvars.iv442 = phi i64 [ 0, %.lr.ph339.preheader ], [ %indvars.iv.next443, %._crit_edge334 ]
  %.0266337 = phi i32 [ 0, %.lr.ph339.preheader ], [ %.1267.lcssa, %._crit_edge334 ]
  %106 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %indvars.iv442
  store i32 %.0266337, ptr %106, align 4, !tbaa !5
  %107 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %indvars.iv442
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.lr.ph333.preheader, label %._crit_edge334

.lr.ph333.preheader:                              ; preds = %.lr.ph339
  %110 = sext i32 %.0266337 to i64
  br label %.lr.ph333

._crit_edge334.loopexit:                          ; preds = %.lr.ph333
  %111 = trunc nsw i64 %indvars.iv.next440 to i32
  br label %._crit_edge334

._crit_edge334:                                   ; preds = %._crit_edge334.loopexit, %.lr.ph339
  %.1267.lcssa = phi i32 [ %.0266337, %.lr.ph339 ], [ %111, %._crit_edge334.loopexit ]
  %indvars.iv.next443 = add nuw nsw i64 %indvars.iv442, 1
  %exitcond445.not = icmp eq i64 %indvars.iv.next443, %wide.trip.count
  br i1 %exitcond445.not, label %._crit_edge340, label %.lr.ph339, !llvm.loop !19

.lr.ph333:                                        ; preds = %.lr.ph333.preheader, %.lr.ph333
  %indvars.iv439 = phi i64 [ %110, %.lr.ph333.preheader ], [ %indvars.iv.next440, %.lr.ph333 ]
  %.0269330 = phi i32 [ %108, %.lr.ph333.preheader ], [ %114, %.lr.ph333 ]
  %112 = srem i32 %.0269330, %77
  %indvars.iv.next440 = add nsw i64 %indvars.iv439, 1
  %113 = getelementptr inbounds [262145 x i32], ptr @seq, i64 0, i64 %indvars.iv439
  store i32 %112, ptr %113, align 4, !tbaa !5
  %114 = sdiv i32 %.0269330, %77
  %115 = icmp sgt i32 %114, 0
  br i1 %115, label %.lr.ph333, label %._crit_edge334.loopexit, !llvm.loop !20

116:                                              ; preds = %147
  %117 = trunc nuw i64 %indvars.iv.next447 to i32
  store i32 %117, ptr @elen, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %118 = load i32, ptr @cnt, align 4, !tbaa !5
  %119 = icmp sgt i32 %118, 1
  br i1 %119, label %.preheader308.lr.ph, label %._crit_edge394

.preheader308.lr.ph:                              ; preds = %116
  %120 = getelementptr inbounds i8, ptr %11, i64 8
  %121 = getelementptr inbounds i8, ptr %10, i64 8
  %122 = getelementptr inbounds i8, ptr %9, i64 8
  %123 = getelementptr inbounds i8, ptr %14, i64 8
  %124 = getelementptr inbounds i8, ptr %13, i64 8
  %125 = getelementptr inbounds i8, ptr %12, i64 8
  %126 = getelementptr inbounds i8, ptr %17, i64 8
  %127 = getelementptr inbounds i8, ptr %16, i64 8
  %128 = getelementptr inbounds i8, ptr %15, i64 8
  %129 = getelementptr inbounds i8, ptr %20, i64 8
  %130 = getelementptr inbounds i8, ptr %19, i64 8
  %131 = getelementptr inbounds i8, ptr %18, i64 8
  %132 = getelementptr inbounds i8, ptr %22, i64 8
  %133 = getelementptr inbounds i8, ptr %21, i64 8
  %134 = getelementptr inbounds i8, ptr %24, i64 8
  %135 = getelementptr inbounds i8, ptr %23, i64 8
  %136 = zext nneg i32 %.0265 to i64
  %137 = getelementptr inbounds i8, ptr %29, i64 8
  %138 = getelementptr inbounds i8, ptr %28, i64 8
  %139 = getelementptr inbounds i8, ptr %27, i64 8
  %140 = getelementptr inbounds i8, ptr %32, i64 8
  %141 = getelementptr inbounds i8, ptr %31, i64 8
  %142 = getelementptr inbounds i8, ptr %30, i64 8
  %143 = getelementptr inbounds i8, ptr %34, i64 8
  %144 = getelementptr inbounds i8, ptr %33, i64 8
  %145 = getelementptr inbounds i8, ptr %36, i64 8
  %146 = getelementptr inbounds i8, ptr %35, i64 8
  br label %.preheader308

147:                                              ; preds = %._crit_edge340, %147
  %indvars.iv446 = phi i64 [ 0, %._crit_edge340 ], [ %indvars.iv.next447, %147 ]
  %.0271343 = phi i32 [ 1000000, %._crit_edge340 ], [ %150, %147 ]
  %148 = srem i32 %.0271343, %77
  %indvars.iv.next447 = add nuw nsw i64 %indvars.iv446, 1
  %149 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %indvars.iv446
  store i32 %148, ptr %149, align 4, !tbaa !5
  %150 = sdiv i32 %.0271343, %77
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %147, label %116, !llvm.loop !21

.preheader308:                                    ; preds = %.preheader308.lr.ph, %.critedge2
  %152 = phi i32 [ %118, %.preheader308.lr.ph ], [ %491, %.critedge2 ]
  %153 = load i32, ptr @elen, align 4, !tbaa !5
  %154 = shl i32 %153, 1
  %155 = add nsw i32 %154, -1
  br label %156

156:                                              ; preds = %156, %.preheader308
  %.0272 = phi i32 [ %158, %156 ], [ 1, %.preheader308 ]
  %157 = icmp slt i32 %.0272, %155
  %158 = shl i32 %.0272, 1
  br i1 %157, label %156, label %.preheader307, !llvm.loop !22

.preheader307:                                    ; preds = %156
  %159 = icmp sgt i32 %152, 1
  br i1 %159, label %.lr.ph346.preheader, label %.preheader306

.lr.ph346.preheader:                              ; preds = %.preheader307
  %160 = zext nneg i32 %152 to i64
  %161 = add nsw i64 %160, -2
  %162 = icmp ult i64 %161, 2
  br i1 %162, label %.preheader306.loopexit.unr-lcssa, label %.lr.ph346.preheader.new

.lr.ph346.preheader.new:                          ; preds = %.lr.ph346.preheader
  %163 = lshr i64 %161, 1
  %164 = add nuw i64 %163, 1
  %unroll_iter = and i64 %164, -2
  br label %.lr.ph346

.preheader306.loopexit.unr-lcssa:                 ; preds = %200, %.lr.ph346.preheader
  %.2.lcssa.lcssa.ph = phi i32 [ poison, %.lr.ph346.preheader ], [ %.2.1, %200 ]
  %indvars.iv449.unr = phi i64 [ 1, %.lr.ph346.preheader ], [ %indvars.iv.next450.1, %200 ]
  %.1273345.unr = phi i32 [ %.0272, %.lr.ph346.preheader ], [ %.2.1, %200 ]
  %165 = and i64 %161, 2
  %lcmp.mod.not.not = icmp eq i64 %165, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph346.epil, label %.preheader306

.lr.ph346.epil:                                   ; preds = %.preheader306.loopexit.unr-lcssa
  %166 = add nuw nsw i64 %indvars.iv449.unr, 1
  %167 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = add nsw i32 %168, %153
  %170 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %indvars.iv449.unr
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = xor i32 %171, -1
  %173 = add i32 %169, %172
  br label %174

174:                                              ; preds = %174, %.lr.ph346.epil
  %.2.epil = phi i32 [ %.1273345.unr, %.lr.ph346.epil ], [ %176, %174 ]
  %175 = icmp slt i32 %.2.epil, %173
  %176 = shl i32 %.2.epil, 1
  br i1 %175, label %174, label %.preheader306, !llvm.loop !23

.preheader306:                                    ; preds = %.preheader306.loopexit.unr-lcssa, %174, %.preheader307
  %elen.promoted388 = phi i32 [ %.0272, %.preheader307 ], [ %.2.lcssa.lcssa.ph, %.preheader306.loopexit.unr-lcssa ], [ %.2.epil, %174 ]
  %177 = icmp sgt i32 %elen.promoted388, 0
  br i1 %177, label %.lr.ph349.preheader, label %._crit_edge350

.lr.ph349.preheader:                              ; preds = %.preheader306
  %wide.trip.count455 = zext nneg i32 %elen.promoted388 to i64
  br label %.lr.ph349

.lr.ph346:                                        ; preds = %200, %.lr.ph346.preheader.new
  %indvars.iv449 = phi i64 [ 1, %.lr.ph346.preheader.new ], [ %indvars.iv.next450.1, %200 ]
  %.1273345 = phi i32 [ %.0272, %.lr.ph346.preheader.new ], [ %.2.1, %200 ]
  %niter = phi i64 [ 0, %.lr.ph346.preheader.new ], [ %niter.next.1, %200 ]
  %178 = add nuw nsw i64 %indvars.iv449, 1
  %179 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = add nsw i32 %180, %153
  %182 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %indvars.iv449
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = xor i32 %183, -1
  %185 = add i32 %181, %184
  br label %186

186:                                              ; preds = %186, %.lr.ph346
  %.2 = phi i32 [ %.1273345, %.lr.ph346 ], [ %188, %186 ]
  %187 = icmp slt i32 %.2, %185
  %188 = shl i32 %.2, 1
  br i1 %187, label %186, label %.lr.ph346.1, !llvm.loop !23

.lr.ph346.1:                                      ; preds = %186
  %indvars.iv.next450 = add nuw nsw i64 %indvars.iv449, 2
  %189 = add nuw nsw i64 %indvars.iv449, 3
  %190 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = add nsw i32 %191, %153
  %193 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %indvars.iv.next450
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = xor i32 %194, -1
  %196 = add i32 %192, %195
  br label %197

197:                                              ; preds = %197, %.lr.ph346.1
  %.2.1 = phi i32 [ %.2, %.lr.ph346.1 ], [ %199, %197 ]
  %198 = icmp slt i32 %.2.1, %196
  %199 = shl i32 %.2.1, 1
  br i1 %198, label %197, label %200, !llvm.loop !23

200:                                              ; preds = %197
  %indvars.iv.next450.1 = add nuw nsw i64 %indvars.iv449, 4
  %niter.next.1 = add nuw nsw i64 %niter, 2
  %niter.ncmp.1.not = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1.not, label %.preheader306.loopexit.unr-lcssa, label %.lr.ph346, !llvm.loop !24

._crit_edge350:                                   ; preds = %219, %.preheader306
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @A, i32 noundef 1)
  %201 = load i32, ptr @len, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = shl nsw i64 %202, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 @tmp, ptr nonnull align 16 @seq, i64 %203, i1 false)
  %204 = load i32, ptr @cnt, align 4, !tbaa !5
  %205 = icmp sgt i32 %204, 0
  br i1 %205, label %.lr.ph376, label %._crit_edge377

.lr.ph376:                                        ; preds = %._crit_edge350
  %206 = add nsw i32 %elen.promoted388, -1
  %207 = sext i32 %elen.promoted388 to i64
  %wide.trip.count460 = zext nneg i32 %elen.promoted388 to i64
  %wide.trip.count465 = zext nneg i32 %elen.promoted388 to i64
  br label %227

.lr.ph349:                                        ; preds = %.lr.ph349.preheader, %219
  %indvars.iv452 = phi i64 [ 0, %.lr.ph349.preheader ], [ %indvars.iv.next453, %219 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  %208 = load i32, ptr @elen, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = icmp slt i64 %indvars.iv452, %209
  br i1 %210, label %211, label %218

211:                                              ; preds = %.lr.ph349
  %212 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %indvars.iv452
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = and i32 %213, %100
  %215 = uitofp nneg i32 %214 to double
  %216 = ashr i32 %213, %.0265
  %217 = sitofp i32 %216 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %215, double noundef %217)
  br label %219

218:                                              ; preds = %.lr.ph349
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %219

219:                                              ; preds = %218, %211
  %220 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %indvars.iv452
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %220, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  %indvars.iv.next453 = add nuw nsw i64 %indvars.iv452, 1
  %exitcond456.not = icmp eq i64 %indvars.iv.next453, %wide.trip.count455
  br i1 %exitcond456.not, label %._crit_edge350, label %.lr.ph349, !llvm.loop !25

._crit_edge377:                                   ; preds = %.critedge, %._crit_edge350
  %.0280.lcssa = phi i32 [ 0, %._crit_edge350 ], [ %.1281, %.critedge ]
  %.lcssa316 = phi i32 [ %204, %._crit_edge350 ], [ %396, %.critedge ]
  %221 = add nsw i32 %.lcssa316, 1
  %222 = ashr i32 %221, 1
  store i32 %222, ptr @cnt, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %223
  store i32 %.0280.lcssa, ptr %224, align 4, !tbaa !5
  store i32 %.0280.lcssa, ptr @len, align 4, !tbaa !5
  %225 = icmp sgt i32 %222, 1
  br i1 %225, label %.preheader305, label %.critedge2

.preheader305:                                    ; preds = %._crit_edge377
  br i1 %177, label %.lr.ph381, label %.critedge2.critedge

.lr.ph381:                                        ; preds = %.preheader305
  %226 = add nsw i32 %elen.promoted388, -1
  %wide.trip.count481 = zext nneg i32 %elen.promoted388 to i64
  br label %401

227:                                              ; preds = %.lr.ph376, %.critedge
  %indvars.iv475 = phi i64 [ 0, %.lr.ph376 ], [ %indvars.iv.next476.pre-phi, %.critedge ]
  %228 = phi i32 [ %204, %.lr.ph376 ], [ %396, %.critedge ]
  %.0280374 = phi i32 [ 0, %.lr.ph376 ], [ %.1281, %.critedge ]
  %229 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %indvars.iv475
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = or disjoint i64 %indvars.iv475, 1
  %232 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = lshr exact i64 %indvars.iv475, 1
  %235 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %234
  store i32 %.0280374, ptr %235, align 4, !tbaa !5
  %236 = sext i32 %228 to i64
  %237 = icmp slt i64 %231, %236
  br i1 %237, label %238, label %388

238:                                              ; preds = %227
  %239 = add nuw nsw i64 %indvars.iv475, 2
  %240 = getelementptr inbounds [262145 x i32], ptr @pos, i64 0, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !5
  %242 = sext i32 %233 to i64
  %243 = getelementptr inbounds i32, ptr @tmp, i64 %242
  br i1 %177, label %.lr.ph353.preheader, label %._crit_edge354.thread

._crit_edge354.thread:                            ; preds = %238
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @B, i32 noundef 1)
  br label %._crit_edge358

.lr.ph353.preheader:                              ; preds = %238
  %244 = sext i32 %241 to i64
  %invariant.op = sub nsw i64 %244, %242
  br label %.lr.ph353

._crit_edge354:                                   ; preds = %254
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @B, i32 noundef 1)
  br i1 %177, label %.lr.ph357, label %._crit_edge358

.lr.ph353:                                        ; preds = %.lr.ph353.preheader, %254
  %indvars.iv457 = phi i64 [ 0, %.lr.ph353.preheader ], [ %indvars.iv.next458, %254 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #10
  %245 = icmp slt i64 %indvars.iv457, %invariant.op
  br i1 %245, label %246, label %253

246:                                              ; preds = %.lr.ph353
  %247 = getelementptr inbounds i32, ptr %243, i64 %indvars.iv457
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = and i32 %248, %100
  %250 = uitofp nneg i32 %249 to double
  %251 = ashr i32 %248, %.0265
  %252 = sitofp i32 %251 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %250, double noundef %252)
  br label %254

253:                                              ; preds = %.lr.ph353
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %254

254:                                              ; preds = %253, %246
  %255 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %indvars.iv457
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %255, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  %indvars.iv.next458 = add nuw nsw i64 %indvars.iv457, 1
  %exitcond461.not = icmp eq i64 %indvars.iv.next458, %wide.trip.count460
  br i1 %exitcond461.not, label %._crit_edge354, label %.lr.ph353, !llvm.loop !26

._crit_edge358:                                   ; preds = %.lr.ph357, %._crit_edge354.thread, %._crit_edge354
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @C, i32 noundef -1)
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @D, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #10
  %256 = sub nsw i32 %233, %230
  store i32 %256, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #10
  %257 = load i32, ptr @elen, align 4, !tbaa !5
  %258 = xor i32 %233, -1
  %259 = add i32 %241, %258
  %260 = add i32 %259, %257
  store i32 %260, ptr %26, align 4, !tbaa !5
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %262 = load i32, ptr %261, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #10
  %263 = sext i32 %230 to i64
  %264 = getelementptr inbounds i32, ptr @tmp, i64 %263
  %265 = sext i32 %.0280374 to i64
  %266 = getelementptr inbounds i32, ptr @seq, i64 %265
  %267 = icmp sgt i32 %262, 0
  br i1 %267, label %.lr.ph362, label %.critedge

.lr.ph362:                                        ; preds = %._crit_edge358
  %268 = load i32, ptr @mod, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %wide.trip.count470 = zext nneg i32 %262 to i64
  %invariant.op535 = sub nsw i64 %242, %263
  br label %338

.lr.ph357:                                        ; preds = %._crit_edge354, %.lr.ph357
  %indvars.iv462 = phi i64 [ %indvars.iv.next463, %.lr.ph357 ], [ 0, %._crit_edge354 ]
  %270 = trunc i64 %indvars.iv462 to i32
  %271 = sub i32 %elen.promoted388, %270
  %272 = and i32 %271, %206
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #10
  %273 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %indvars.iv462
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  %274 = sext i32 %272 to i64
  %275 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %274
  %276 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %275)
  %277 = extractvalue { double, double } %276, 0
  store double %277, ptr %11, align 8
  %278 = extractvalue { double, double } %276, 1
  store double %278, ptr %120, align 8
  %279 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %273, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %280 = extractvalue { double, double } %279, 0
  store double %280, ptr %10, align 8
  %281 = extractvalue { double, double } %279, 1
  store double %281, ptr %121, align 8
  %282 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %283 = extractvalue { double, double } %282, 0
  store double %283, ptr %9, align 8
  %284 = extractvalue { double, double } %282, 1
  store double %284, ptr %122, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #10
  %285 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %275)
  %286 = extractvalue { double, double } %285, 0
  store double %286, ptr %14, align 8
  %287 = extractvalue { double, double } %285, 1
  store double %287, ptr %123, align 8
  %288 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %273, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %289 = extractvalue { double, double } %288, 0
  store double %289, ptr %13, align 8
  %290 = extractvalue { double, double } %288, 1
  store double %290, ptr %124, align 8
  %291 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %292 = extractvalue { double, double } %291, 0
  store double %292, ptr %12, align 8
  %293 = extractvalue { double, double } %291, 1
  store double %293, ptr %125, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #10
  %294 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %indvars.iv462
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %295 = getelementptr inbounds [262145 x %struct.complex], ptr @B, i64 0, i64 %274
  %296 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %295)
  %297 = extractvalue { double, double } %296, 0
  store double %297, ptr %17, align 8
  %298 = extractvalue { double, double } %296, 1
  store double %298, ptr %126, align 8
  %299 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %294, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %300 = extractvalue { double, double } %299, 0
  store double %300, ptr %16, align 8
  %301 = extractvalue { double, double } %299, 1
  store double %301, ptr %127, align 8
  %302 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %303 = extractvalue { double, double } %302, 0
  store double %303, ptr %15, align 8
  %304 = extractvalue { double, double } %302, 1
  store double %304, ptr %128, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #10
  %305 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %295)
  %306 = extractvalue { double, double } %305, 0
  store double %306, ptr %20, align 8
  %307 = extractvalue { double, double } %305, 1
  store double %307, ptr %129, align 8
  %308 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %294, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %309 = extractvalue { double, double } %308, 0
  store double %309, ptr %19, align 8
  %310 = extractvalue { double, double } %308, 1
  store double %310, ptr %130, align 8
  %311 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %312 = extractvalue { double, double } %311, 0
  store double %312, ptr %18, align 8
  %313 = extractvalue { double, double } %311, 1
  store double %313, ptr %131, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #10
  %314 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %315 = extractvalue { double, double } %314, 0
  store double %315, ptr %22, align 8
  %316 = extractvalue { double, double } %314, 1
  store double %316, ptr %132, align 8
  %317 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %318 = extractvalue { double, double } %317, 0
  store double %318, ptr %21, align 8
  %319 = extractvalue { double, double } %317, 1
  store double %319, ptr %133, align 8
  %320 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %321 = extractvalue { double, double } %320, 0
  %322 = extractvalue { double, double } %320, 1
  %323 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %indvars.iv462
  store double %321, ptr %323, align 16, !tbaa !14
  %.sroa.4115.0..sroa_idx = getelementptr inbounds i8, ptr %323, i64 8
  store double %322, ptr %.sroa.4115.0..sroa_idx, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #10
  %324 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %325 = extractvalue { double, double } %324, 0
  store double %325, ptr %24, align 8
  %326 = extractvalue { double, double } %324, 1
  store double %326, ptr %134, align 8
  %327 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %328 = extractvalue { double, double } %327, 0
  store double %328, ptr %23, align 8
  %329 = extractvalue { double, double } %327, 1
  store double %329, ptr %135, align 8
  %330 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %331 = extractvalue { double, double } %330, 0
  %332 = extractvalue { double, double } %330, 1
  %333 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %indvars.iv462
  store double %331, ptr %333, align 16, !tbaa !14
  %.sroa.4113.0..sroa_idx = getelementptr inbounds i8, ptr %333, i64 8
  store double %332, ptr %.sroa.4113.0..sroa_idx, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  %indvars.iv.next463 = add nuw nsw i64 %indvars.iv462, 1
  %exitcond466.not = icmp eq i64 %indvars.iv.next463, %wide.trip.count465
  br i1 %exitcond466.not, label %._crit_edge358, label %.lr.ph357, !llvm.loop !27

.preheader303:                                    ; preds = %370
  %334 = icmp sgt i64 %374, 0
  br i1 %334, label %.lr.ph366, label %.preheader302

.lr.ph366:                                        ; preds = %.preheader303
  %335 = load i32, ptr @mod, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = zext nneg i32 %262 to i64
  br label %377

338:                                              ; preds = %.lr.ph362, %370
  %indvars.iv467 = phi i64 [ 0, %.lr.ph362 ], [ %indvars.iv.next468, %370 ]
  %.0277359 = phi i64 [ 0, %.lr.ph362 ], [ %374, %370 ]
  %339 = icmp slt i64 %indvars.iv467, %invariant.op535
  br i1 %339, label %340, label %345

340:                                              ; preds = %338
  %341 = getelementptr inbounds i32, ptr %264, i64 %indvars.iv467
  %342 = load i32, ptr %341, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = add nsw i64 %.0277359, %343
  br label %345

345:                                              ; preds = %340, %338
  %.1278 = phi i64 [ %344, %340 ], [ %.0277359, %338 ]
  %346 = icmp slt i64 %indvars.iv467, %207
  br i1 %346, label %347, label %370

347:                                              ; preds = %345
  %348 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %indvars.iv467
  %349 = load double, ptr %348, align 16, !tbaa !28
  %350 = fadd double %349, 5.000000e-01
  %351 = fptosi double %350 to i64
  %352 = getelementptr inbounds i8, ptr %348, i64 8
  %353 = load double, ptr %352, align 8, !tbaa !30
  %354 = fadd double %353, 5.000000e-01
  %355 = fptosi double %354 to i64
  %356 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %indvars.iv467
  %357 = load double, ptr %356, align 16, !tbaa !28
  %358 = fadd double %357, 5.000000e-01
  %359 = fptosi double %358 to i64
  %360 = getelementptr inbounds i8, ptr %356, i64 8
  %361 = load double, ptr %360, align 8, !tbaa !30
  %362 = fadd double %361, 5.000000e-01
  %363 = fptosi double %362 to i64
  %364 = shl i64 %363, %136
  %365 = add i64 %359, %355
  %366 = add i64 %365, %364
  %367 = shl i64 %366, %136
  %368 = add i64 %.1278, %351
  %369 = add i64 %368, %367
  br label %370

370:                                              ; preds = %347, %345
  %.2279 = phi i64 [ %369, %347 ], [ %.1278, %345 ]
  %371 = srem i64 %.2279, %269
  %372 = trunc nsw i64 %371 to i32
  %373 = getelementptr inbounds i32, ptr %266, i64 %indvars.iv467
  store i32 %372, ptr %373, align 4, !tbaa !5
  %374 = sdiv i64 %.2279, %269
  %indvars.iv.next468 = add nuw nsw i64 %indvars.iv467, 1
  %exitcond471.not = icmp eq i64 %indvars.iv.next468, %wide.trip.count470
  br i1 %exitcond471.not, label %.preheader303, label %338, !llvm.loop !31

.preheader302.loopexit:                           ; preds = %377
  %375 = trunc nsw i64 %indvars.iv.next473 to i32
  br label %.preheader302

.preheader302:                                    ; preds = %.preheader302.loopexit, %.preheader303
  %.0283.lcssa = phi i32 [ %262, %.preheader303 ], [ %375, %.preheader302.loopexit ]
  %invariant.gep = getelementptr i8, ptr %266, i64 -4
  %376 = icmp sgt i32 %.0283.lcssa, 1
  br i1 %376, label %.lr.ph369, label %.critedge

377:                                              ; preds = %.lr.ph366, %377
  %indvars.iv472 = phi i64 [ %337, %.lr.ph366 ], [ %indvars.iv.next473, %377 ]
  %.3365 = phi i64 [ %374, %.lr.ph366 ], [ %381, %377 ]
  %378 = srem i64 %.3365, %336
  %379 = trunc nuw nsw i64 %378 to i32
  %indvars.iv.next473 = add nuw nsw i64 %indvars.iv472, 1
  %380 = getelementptr inbounds i32, ptr %266, i64 %indvars.iv472
  store i32 %379, ptr %380, align 4, !tbaa !5
  %381 = sdiv i64 %.3365, %336
  %382 = icmp sgt i64 %381, 0
  br i1 %382, label %377, label %.preheader302.loopexit, !llvm.loop !32

.lr.ph369:                                        ; preds = %.preheader302, %385
  %.1284368 = phi i32 [ %386, %385 ], [ %.0283.lcssa, %.preheader302 ]
  %383 = zext nneg i32 %.1284368 to i64
  %gep = getelementptr i32, ptr %invariant.gep, i64 %383
  %384 = load i32, ptr %gep, align 4, !tbaa !5
  %.not297 = icmp eq i32 %384, 0
  br i1 %.not297, label %385, label %.critedge

385:                                              ; preds = %.lr.ph369
  %386 = add nsw i32 %.1284368, -1
  %387 = icmp sgt i32 %.1284368, 2
  br i1 %387, label %.lr.ph369, label %.critedge, !llvm.loop !33

388:                                              ; preds = %227
  %389 = sext i32 %.0280374 to i64
  %390 = getelementptr inbounds i32, ptr @seq, i64 %389
  %391 = sext i32 %230 to i64
  %392 = getelementptr inbounds i32, ptr @tmp, i64 %391
  %393 = sub nsw i32 %233, %230
  %394 = sext i32 %393 to i64
  %395 = shl nsw i64 %394, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %390, ptr nonnull align 4 %392, i64 %395, i1 false)
  %.pre513 = add nuw nsw i64 %indvars.iv475, 2
  br label %.critedge

.critedge:                                        ; preds = %385, %.lr.ph369, %._crit_edge358, %.preheader302, %388
  %indvars.iv.next476.pre-phi = phi i64 [ %239, %.preheader302 ], [ %.pre513, %388 ], [ %239, %._crit_edge358 ], [ %239, %.lr.ph369 ], [ %239, %385 ]
  %.1284.pn = phi i32 [ %.0283.lcssa, %.preheader302 ], [ %393, %388 ], [ %262, %._crit_edge358 ], [ 1, %385 ], [ %.1284368, %.lr.ph369 ]
  %.1281 = add nsw i32 %.1284.pn, %.0280374
  %396 = load i32, ptr @cnt, align 4, !tbaa !5
  %397 = trunc nuw i64 %indvars.iv.next476.pre-phi to i32
  %398 = icmp sgt i32 %396, %397
  br i1 %398, label %227, label %._crit_edge377, !llvm.loop !34

._crit_edge382:                                   ; preds = %401
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @C, i32 noundef -1)
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @D, i32 noundef -1)
  store i32 %elen.promoted388, ptr @elen, align 4, !tbaa !5
  br i1 %177, label %.lr.ph386, label %.critedge2

.lr.ph386:                                        ; preds = %._crit_edge382
  %399 = load i32, ptr @mod, align 4, !tbaa !5
  %400 = sext i32 %399 to i64
  %wide.trip.count486 = zext nneg i32 %elen.promoted388 to i64
  br label %450

401:                                              ; preds = %.lr.ph381, %401
  %indvars.iv478 = phi i64 [ 0, %.lr.ph381 ], [ %indvars.iv.next479, %401 ]
  %402 = trunc i64 %indvars.iv478 to i32
  %403 = sub i32 %elen.promoted388, %402
  %404 = and i32 %403, %226
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #10
  %405 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %indvars.iv478
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #10
  %406 = sext i32 %404 to i64
  %407 = getelementptr inbounds [262145 x %struct.complex], ptr @A, i64 0, i64 %406
  %408 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %407)
  %409 = extractvalue { double, double } %408, 0
  store double %409, ptr %29, align 8
  %410 = extractvalue { double, double } %408, 1
  store double %410, ptr %137, align 8
  %411 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %405, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %412 = extractvalue { double, double } %411, 0
  store double %412, ptr %28, align 8
  %413 = extractvalue { double, double } %411, 1
  store double %413, ptr %138, align 8
  %414 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %415 = extractvalue { double, double } %414, 0
  store double %415, ptr %27, align 8
  %416 = extractvalue { double, double } %414, 1
  store double %416, ptr %139, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  %417 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %407)
  %418 = extractvalue { double, double } %417, 0
  store double %418, ptr %32, align 8
  %419 = extractvalue { double, double } %417, 1
  store double %419, ptr %140, align 8
  %420 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %405, ptr noundef nonnull align 8 dereferenceable(16) %32)
  %421 = extractvalue { double, double } %420, 0
  store double %421, ptr %31, align 8
  %422 = extractvalue { double, double } %420, 1
  store double %422, ptr %141, align 8
  %423 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %424 = extractvalue { double, double } %423, 0
  store double %424, ptr %30, align 8
  %425 = extractvalue { double, double } %423, 1
  store double %425, ptr %142, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #10
  %426 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %427 = extractvalue { double, double } %426, 0
  store double %427, ptr %34, align 8
  %428 = extractvalue { double, double } %426, 1
  store double %428, ptr %143, align 8
  %429 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %34)
  %430 = extractvalue { double, double } %429, 0
  store double %430, ptr %33, align 8
  %431 = extractvalue { double, double } %429, 1
  store double %431, ptr %144, align 8
  %432 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %33)
  %433 = extractvalue { double, double } %432, 0
  %434 = extractvalue { double, double } %432, 1
  %435 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %indvars.iv478
  store double %433, ptr %435, align 16, !tbaa !14
  %.sroa.472.0..sroa_idx = getelementptr inbounds i8, ptr %435, i64 8
  store double %434, ptr %.sroa.472.0..sroa_idx, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #10
  %436 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %437 = extractvalue { double, double } %436, 0
  store double %437, ptr %36, align 8
  %438 = extractvalue { double, double } %436, 1
  store double %438, ptr %145, align 8
  %439 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %36)
  %440 = extractvalue { double, double } %439, 0
  store double %440, ptr %35, align 8
  %441 = extractvalue { double, double } %439, 1
  store double %441, ptr %146, align 8
  %442 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %35)
  %443 = extractvalue { double, double } %442, 0
  %444 = extractvalue { double, double } %442, 1
  %445 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %indvars.iv478
  store double %443, ptr %445, align 16, !tbaa !14
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %445, i64 8
  store double %444, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #10
  %indvars.iv.next479 = add nuw nsw i64 %indvars.iv478, 1
  %exitcond482.not = icmp eq i64 %indvars.iv.next479, %wide.trip.count481
  br i1 %exitcond482.not, label %._crit_edge382, label %401, !llvm.loop !35

.preheader304:                                    ; preds = %450
  %446 = icmp sgt i64 %476, 0
  br i1 %446, label %.lr.ph390, label %thread-pre-split

.lr.ph390:                                        ; preds = %.preheader304
  %447 = load i32, ptr @mod, align 4, !tbaa !5
  %448 = sext i32 %447 to i64
  %449 = zext nneg i32 %elen.promoted388 to i64
  br label %477

450:                                              ; preds = %.lr.ph386, %450
  %indvars.iv483 = phi i64 [ 0, %.lr.ph386 ], [ %indvars.iv.next484, %450 ]
  %.0262383 = phi i64 [ 0, %.lr.ph386 ], [ %476, %450 ]
  %451 = getelementptr inbounds [262145 x %struct.complex], ptr @C, i64 0, i64 %indvars.iv483
  %452 = load double, ptr %451, align 16, !tbaa !28
  %453 = fadd double %452, 5.000000e-01
  %454 = fptosi double %453 to i64
  %455 = getelementptr inbounds i8, ptr %451, i64 8
  %456 = load double, ptr %455, align 8, !tbaa !30
  %457 = fadd double %456, 5.000000e-01
  %458 = fptosi double %457 to i64
  %459 = getelementptr inbounds [262145 x %struct.complex], ptr @D, i64 0, i64 %indvars.iv483
  %460 = load double, ptr %459, align 16, !tbaa !28
  %461 = fadd double %460, 5.000000e-01
  %462 = fptosi double %461 to i64
  %463 = getelementptr inbounds i8, ptr %459, i64 8
  %464 = load double, ptr %463, align 8, !tbaa !30
  %465 = fadd double %464, 5.000000e-01
  %466 = fptosi double %465 to i64
  %467 = shl i64 %466, %136
  %468 = add i64 %462, %458
  %469 = add i64 %468, %467
  %470 = shl i64 %469, %136
  %471 = add i64 %.0262383, %454
  %472 = add i64 %471, %470
  %473 = srem i64 %472, %400
  %474 = trunc nsw i64 %473 to i32
  %475 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %indvars.iv483
  store i32 %474, ptr %475, align 4, !tbaa !5
  %476 = sdiv i64 %472, %400
  %indvars.iv.next484 = add nuw nsw i64 %indvars.iv483, 1
  %exitcond487.not = icmp eq i64 %indvars.iv.next484, %wide.trip.count486
  br i1 %exitcond487.not, label %.preheader304, label %450, !llvm.loop !36

477:                                              ; preds = %.lr.ph390, %477
  %indvars.iv488 = phi i64 [ %449, %.lr.ph390 ], [ %indvars.iv.next489, %477 ]
  %.1263389 = phi i64 [ %476, %.lr.ph390 ], [ %481, %477 ]
  %478 = srem i64 %.1263389, %448
  %479 = trunc nuw nsw i64 %478 to i32
  %indvars.iv.next489 = add nuw nsw i64 %indvars.iv488, 1
  %480 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %indvars.iv488
  store i32 %479, ptr %480, align 4, !tbaa !5
  %481 = sdiv i64 %.1263389, %448
  %482 = icmp sgt i64 %481, 0
  br i1 %482, label %477, label %.thread-pre-split_crit_edge, !llvm.loop !37

.thread-pre-split_crit_edge:                      ; preds = %477
  %483 = trunc nsw i64 %indvars.iv.next489 to i32
  store i32 %483, ptr @elen, align 4, !tbaa !5
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %.thread-pre-split_crit_edge, %.preheader304
  %.pr = phi i32 [ %483, %.thread-pre-split_crit_edge ], [ %elen.promoted388, %.preheader304 ]
  %484 = icmp sgt i32 %.pr, 1
  br i1 %484, label %.lr.ph392.preheader, label %.critedge2

.lr.ph392.preheader:                              ; preds = %thread-pre-split
  %485 = zext nneg i32 %.pr to i64
  br label %.lr.ph392

.lr.ph392:                                        ; preds = %.lr.ph392.preheader, %488
  %indvars.iv491 = phi i64 [ %485, %.lr.ph392.preheader ], [ %indvars.iv.next492, %488 ]
  %indvars.iv.next492 = add nsw i64 %indvars.iv491, -1
  %486 = getelementptr inbounds [262145 x i32], ptr @ex, i64 0, i64 %indvars.iv.next492
  %487 = load i32, ptr %486, align 4, !tbaa !5
  %.not296 = icmp eq i32 %487, 0
  br i1 %.not296, label %488, label %.critedge2

488:                                              ; preds = %.lr.ph392
  %489 = trunc nuw nsw i64 %indvars.iv.next492 to i32
  store i32 %489, ptr @elen, align 4, !tbaa !5
  %490 = icmp ugt i64 %indvars.iv491, 2
  br i1 %490, label %.lr.ph392, label %.critedge2, !llvm.loop !38

.critedge2.critedge:                              ; preds = %.preheader305
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @C, i32 noundef -1)
  call void @_Z3FFTiP7complexi(i32 noundef %elen.promoted388, ptr noundef nonnull @D, i32 noundef -1)
  store i32 %elen.promoted388, ptr @elen, align 4, !tbaa !5
  br label %.critedge2

.critedge2:                                       ; preds = %488, %.lr.ph392, %.critedge2.critedge, %._crit_edge382, %thread-pre-split, %._crit_edge377
  %491 = load i32, ptr @cnt, align 4, !tbaa !5
  %492 = icmp sgt i32 %491, 1
  br i1 %492, label %.preheader308, label %._crit_edge394, !llvm.loop !39

._crit_edge394:                                   ; preds = %.critedge2, %116
  store i32 1, ptr getelementptr inbounds (i8, ptr @iact, i64 4), align 4, !tbaa !5
  store i32 1, ptr @iact, align 16, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @fact, i64 4), align 4, !tbaa !5
  store i32 1, ptr @fact, align 16, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @inv, i64 4), align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @pw, i64 4), align 4, !tbaa !5
  %493 = load i32, ptr @mod, align 4
  %494 = icmp sgt i32 %493, 2
  br i1 %494, label %.lr.ph404, label %.preheader

.preheader:                                       ; preds = %._crit_edge398, %._crit_edge394
  %.lcssa314 = phi i32 [ %493, %._crit_edge394 ], [ %510, %._crit_edge398 ]
  %495 = load i32, ptr @len, align 4, !tbaa !5
  %496 = icmp sgt i32 %495, 1
  br i1 %496, label %.lr.ph408, label %._crit_edge409.thread

.lr.ph408:                                        ; preds = %.preheader
  %497 = sext i32 %.lcssa314 to i64
  %wide.trip.count503 = zext nneg i32 %495 to i64
  br label %567

.lr.ph404:                                        ; preds = %._crit_edge394, %._crit_edge398
  %498 = phi i32 [ %510, %._crit_edge398 ], [ %493, %._crit_edge394 ]
  %indvars.iv497 = phi i64 [ %indvars.iv.next498, %._crit_edge398 ], [ 2, %._crit_edge394 ]
  %499 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %indvars.iv497
  %500 = load i32, ptr %499, align 4, !tbaa !5
  %.not295 = icmp eq i32 %500, 0
  %501 = trunc nuw nsw i64 %indvars.iv497 to i32
  br i1 %.not295, label %502, label %.lr.ph404._crit_edge

502:                                              ; preds = %.lr.ph404
  store i32 %501, ptr %499, align 4, !tbaa !5
  %503 = load i32, ptr @tot, align 4, !tbaa !5
  %504 = add nsw i32 %503, 1
  store i32 %504, ptr @tot, align 4, !tbaa !5
  %505 = sext i32 %503 to i64
  %506 = getelementptr inbounds [1000001 x i32], ptr @pr, i64 0, i64 %505
  store i32 %501, ptr %506, align 4, !tbaa !5
  %507 = load i32, ptr @kk, align 4, !tbaa !5
  %508 = call noundef i32 @_Z7mod_powii(i32 noundef %501, i32 noundef %507)
  %509 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %indvars.iv497
  store i32 %508, ptr %509, align 4, !tbaa !5
  %.pre = load i32, ptr @mod, align 4
  br label %.lr.ph404._crit_edge

.lr.ph404._crit_edge:                             ; preds = %.lr.ph404, %502
  %510 = phi i32 [ %.pre, %502 ], [ %498, %.lr.ph404 ]
  %511 = load i32, ptr @pr, align 16, !tbaa !5
  %512 = mul nsw i32 %511, %501
  %513 = icmp slt i32 %512, %510
  br i1 %513, label %.lr.ph397, label %.._crit_edge398_crit_edge

.._crit_edge398_crit_edge:                        ; preds = %.lr.ph404._crit_edge
  %.pre515 = sext i32 %510 to i64
  br label %._crit_edge398

.lr.ph397:                                        ; preds = %.lr.ph404._crit_edge
  %514 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %indvars.iv497
  %515 = sext i32 %510 to i64
  br label %521

516:                                              ; preds = %521
  %indvars.iv.next495 = add nuw nsw i64 %indvars.iv494, 1
  %517 = getelementptr inbounds [1000001 x i32], ptr @pr, i64 0, i64 %indvars.iv.next495
  %518 = load i32, ptr %517, align 4, !tbaa !5
  %519 = mul nsw i32 %518, %501
  %520 = icmp slt i32 %519, %510
  br i1 %520, label %521, label %._crit_edge398, !llvm.loop !40

521:                                              ; preds = %.lr.ph397, %516
  %indvars.iv494 = phi i64 [ 0, %.lr.ph397 ], [ %indvars.iv.next495, %516 ]
  %522 = phi i32 [ %512, %.lr.ph397 ], [ %519, %516 ]
  %523 = phi i32 [ %511, %.lr.ph397 ], [ %518, %516 ]
  %524 = sext i32 %522 to i64
  %525 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %524
  store i32 %523, ptr %525, align 4, !tbaa !5
  %526 = load i32, ptr %514, align 4, !tbaa !5
  %527 = sext i32 %526 to i64
  %528 = sext i32 %523 to i64
  %529 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %528
  %530 = load i32, ptr %529, align 4, !tbaa !5
  %531 = sext i32 %530 to i64
  %532 = mul nsw i64 %531, %527
  %533 = srem i64 %532, %515
  %534 = trunc nsw i64 %533 to i32
  %535 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %524
  store i32 %534, ptr %535, align 4, !tbaa !5
  %536 = load i32, ptr %499, align 4, !tbaa !5
  %537 = icmp eq i32 %536, %523
  br i1 %537, label %._crit_edge398, label %516

._crit_edge398:                                   ; preds = %516, %521, %.._crit_edge398_crit_edge
  %.pre-phi516 = phi i64 [ %.pre515, %.._crit_edge398_crit_edge ], [ %515, %521 ], [ %515, %516 ]
  %538 = sdiv i32 %510, %501
  %539 = sext i32 %538 to i64
  %540 = srem i32 %510, %501
  %541 = sext i32 %540 to i64
  %542 = getelementptr inbounds [1000001 x i32], ptr @inv, i64 0, i64 %541
  %543 = load i32, ptr %542, align 4, !tbaa !5
  %544 = sext i32 %543 to i64
  %545 = mul nsw i64 %544, %539
  %546 = srem i64 %545, %.pre-phi516
  %547 = trunc nsw i64 %546 to i32
  %548 = sub nsw i32 %510, %547
  %549 = getelementptr inbounds [1000001 x i32], ptr @inv, i64 0, i64 %indvars.iv497
  store i32 %548, ptr %549, align 4, !tbaa !5
  %550 = add nsw i64 %indvars.iv497, -1
  %551 = getelementptr inbounds [1000001 x i32], ptr @fact, i64 0, i64 %550
  %552 = load i32, ptr %551, align 4, !tbaa !5
  %553 = sext i32 %552 to i64
  %554 = mul nsw i64 %indvars.iv497, %553
  %555 = srem i64 %554, %.pre-phi516
  %556 = trunc nsw i64 %555 to i32
  %557 = getelementptr inbounds [1000001 x i32], ptr @fact, i64 0, i64 %indvars.iv497
  store i32 %556, ptr %557, align 4, !tbaa !5
  %558 = getelementptr inbounds [1000001 x i32], ptr @iact, i64 0, i64 %550
  %559 = load i32, ptr %558, align 4, !tbaa !5
  %560 = sext i32 %559 to i64
  %561 = sext i32 %548 to i64
  %562 = mul nsw i64 %560, %561
  %563 = srem i64 %562, %.pre-phi516
  %564 = trunc nsw i64 %563 to i32
  %565 = getelementptr inbounds [1000001 x i32], ptr @iact, i64 0, i64 %indvars.iv497
  store i32 %564, ptr %565, align 4, !tbaa !5
  %indvars.iv.next498 = add nuw nsw i64 %indvars.iv497, 1
  %566 = icmp slt i64 %indvars.iv.next498, %.pre-phi516
  br i1 %566, label %.lr.ph404, label %.preheader, !llvm.loop !41

567:                                              ; preds = %.lr.ph408, %571
  %indvars.iv500 = phi i64 [ 1, %.lr.ph408 ], [ %indvars.iv.next501, %571 ]
  %.0253406 = phi i64 [ 1, %.lr.ph408 ], [ %585, %571 ]
  %568 = getelementptr inbounds [262145 x i32], ptr @seq, i64 0, i64 %indvars.iv500
  %569 = load i32, ptr %568, align 4, !tbaa !5
  %570 = and i32 %569, 1
  %.not292 = icmp eq i32 %570, 0
  br i1 %.not292, label %571, label %.thread

571:                                              ; preds = %567
  %572 = sext i32 %569 to i64
  %573 = getelementptr inbounds [1000001 x i32], ptr @fact, i64 0, i64 %572
  %574 = load i32, ptr %573, align 4, !tbaa !5
  %575 = sext i32 %574 to i64
  %576 = mul nsw i64 %.0253406, %575
  %577 = ashr exact i32 %569, 1
  %578 = sext i32 %577 to i64
  %579 = getelementptr inbounds [1000001 x i32], ptr @iact, i64 0, i64 %578
  %580 = load i32, ptr %579, align 4, !tbaa !5
  %581 = sext i32 %580 to i64
  %582 = mul nsw i64 %576, %581
  %583 = srem i64 %582, %497
  %584 = mul nsw i64 %583, %581
  %585 = srem i64 %584, %497
  %indvars.iv.next501 = add nuw nsw i64 %indvars.iv500, 1
  %exitcond504.not = icmp eq i64 %indvars.iv.next501, %wide.trip.count503
  br i1 %exitcond504.not, label %._crit_edge409, label %567, !llvm.loop !42

._crit_edge409:                                   ; preds = %571
  %.not293 = icmp eq i64 %585, 0
  br i1 %.not293, label %.thread, label %._crit_edge409.thread

.thread:                                          ; preds = %567, %._crit_edge409
  %586 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %624

._crit_edge409.thread:                            ; preds = %.preheader, %._crit_edge409
  %.0253.lcssa526 = phi i64 [ %585, %._crit_edge409 ], [ 1, %.preheader ]
  %587 = load i32, ptr @seq, align 16, !tbaa !5
  %588 = sext i32 %587 to i64
  %589 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %588
  %590 = load i32, ptr %589, align 4, !tbaa !5
  %591 = icmp sgt i32 %587, 2
  %592 = sext i32 %.lcssa314 to i64
  br i1 %591, label %.lr.ph417, label %._crit_edge418

.lr.ph417:                                        ; preds = %._crit_edge409.thread
  %593 = add nsw i64 %588, -1
  br label %604

._crit_edge418:                                   ; preds = %604, %._crit_edge409.thread
  %.0249.lcssa = phi i32 [ %590, %._crit_edge409.thread ], [ %622, %604 ]
  %sext = shl i64 %.0253.lcssa526, 32
  %594 = ashr exact i64 %sext, 32
  %595 = shl i32 %.0249.lcssa, 1
  %596 = sext i32 %595 to i64
  %597 = mul nsw i64 %594, %596
  %598 = srem i64 %597, %592
  %599 = trunc nsw i64 %598 to i32
  %600 = icmp slt i64 %598, 0
  %601 = select i1 %600, i32 %.lcssa314, i32 0
  %602 = add nsw i32 %601, %599
  %603 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %602)
  br label %624

604:                                              ; preds = %.lr.ph417, %604
  %indvars.iv507 = phi i64 [ 1, %.lr.ph417 ], [ %indvars.iv.next508, %604 ]
  %indvars.iv505 = phi i64 [ %593, %.lr.ph417 ], [ %indvars.iv.next506, %604 ]
  %.0249413 = phi i32 [ %590, %.lr.ph417 ], [ %622, %604 ]
  %.0250412 = phi i64 [ 1, %.lr.ph417 ], [ %611, %604 ]
  %605 = add nuw nsw i64 %indvars.iv505, 1
  %606 = mul nsw i64 %605, %.0250412
  %607 = getelementptr inbounds [1000001 x i32], ptr @inv, i64 0, i64 %indvars.iv507
  %608 = load i32, ptr %607, align 4, !tbaa !5
  %609 = sext i32 %608 to i64
  %610 = mul nsw i64 %606, %609
  %611 = srem i64 %610, %592
  %612 = sext i32 %.0249413 to i64
  %613 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %indvars.iv505
  %614 = load i32, ptr %613, align 4, !tbaa !5
  %615 = getelementptr inbounds [1000001 x i32], ptr @pw, i64 0, i64 %indvars.iv507
  %616 = load i32, ptr %615, align 4, !tbaa !5
  %617 = sub nsw i32 %614, %616
  %618 = sext i32 %617 to i64
  %619 = mul nsw i64 %611, %618
  %620 = add nsw i64 %619, %612
  %621 = srem i64 %620, %592
  %622 = trunc nsw i64 %621 to i32
  %indvars.iv.next508 = add nuw nsw i64 %indvars.iv507, 1
  %indvars.iv.next506 = add nsw i64 %indvars.iv505, -1
  %623 = icmp slt i64 %indvars.iv.next508, %indvars.iv.next506
  br i1 %623, label %604, label %._crit_edge418, !llvm.loop !43

624:                                              ; preds = %._crit_edge418, %.thread
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  br label %625

625:                                              ; preds = %624, %63
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #6

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress norecurse 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 #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #7 = { 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 #8 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{i64 0, i64 8, !14, i64 8, i64 8, !14}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!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 = !{!29, !15, i64 0}
!29 = !{!"_ZTS7complex", !15, i64 0, !15, i64 8}
!30 = !{!29, !15, i64 8}
!31 = distinct !{!31, !11}
!32 = distinct !{!32, !11}
!33 = distinct !{!33, !11}
!34 = distinct !{!34, !11}
!35 = distinct !{!35, !11}
!36 = distinct !{!36, !11}
!37 = distinct !{!37, !11}
!38 = distinct !{!38, !11}
!39 = distinct !{!39, !11}
!40 = distinct !{!40, !11}
!41 = distinct !{!41, !11}
!42 = distinct !{!42, !11}
!43 = distinct !{!43, !11}


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