; LLVM IR from tangjz/acm-icpc :: lydsy (4451)

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

@X = external dso_local global [524289 x %struct.complex], align 16
@Y = external dso_local global [524289 x %struct.complex], align 16
@A = external dso_local global [524289 x %struct.complex], align 16
@B = external dso_local global [524289 x %struct.complex], align 16
@n = external dso_local global i32, align 4
@len = external dso_local global i32, align 4
@a = external dso_local global [200001 x i32], align 16
@b = external dso_local global [200001 x i32], align 16
@c = external dso_local global i32, align 4
@fact = external dso_local global [400002 x i32], align 16
@iact = external dso_local global [200001 x i32], align 16
@f = external dso_local global [400002 x i32], align 16
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3FFTP7complexii(ptr noundef, i32 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 nounwind uwtable
declare dso_local void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

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

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

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

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

; 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 %struct.complex, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.complex, align 8
  %14 = alloca %struct.complex, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.complex, align 8
  %18 = alloca %struct.complex, align 8
  %19 = alloca %struct.complex, align 8
  %20 = alloca %struct.complex, align 8
  %21 = alloca %struct.complex, align 8
  %22 = alloca %struct.complex, align 8
  %23 = alloca %struct.complex, align 8
  %24 = alloca %struct.complex, align 8
  %25 = alloca %struct.complex, align 8
  %26 = alloca %struct.complex, align 8
  %27 = alloca %struct.complex, align 8
  %28 = alloca %struct.complex, align 8
  %29 = alloca %struct.complex, align 8
  %30 = alloca %struct.complex, align 8
  %31 = alloca %struct.complex, align 8
  %32 = alloca %struct.complex, align 8
  %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 = alloca %struct.complex, align 8
  %38 = alloca %struct.complex, align 8
  %39 = alloca %struct.complex, align 8
  %40 = alloca %struct.complex, align 8
  %41 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %42 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef getelementptr inbounds (i32, ptr @a, i64 1), ptr noundef getelementptr inbounds (i32, ptr @b, i64 1), ptr noundef @c)
  store i32 1, ptr getelementptr inbounds ([200001 x i32], ptr @iact, i64 0, i64 1), align 4, !tbaa !5
  store i32 1, ptr @b, align 16, !tbaa !5
  store i32 1, ptr @a, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %93, %0
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %96

48:                                               ; preds = %43
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = load i32, ptr getelementptr inbounds ([200001 x i32], ptr @a, i64 0, i64 1), align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = mul nsw i64 %54, %56
  %58 = srem i64 %57, 1000003
  %59 = trunc i64 %58 to i32
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %61
  store i32 %59, ptr %62, align 4, !tbaa !5
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = load i32, ptr getelementptr inbounds ([200001 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = mul nsw i64 %68, %70
  %72 = srem i64 %71, 1000003
  %73 = trunc i64 %72 to i32
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %75
  store i32 %73, ptr %76, align 4, !tbaa !5
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = sdiv i32 1000003, %77
  %79 = sext i32 %78 to i64
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = srem i32 1000003, %80
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = mul nsw i64 %79, %85
  %87 = srem i64 %86, 1000003
  %88 = sub nsw i64 1000003, %87
  %89 = trunc i64 %88 to i32
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %91
  store i32 %89, ptr %92, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %48
  %94 = load i32, ptr %2, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %2, align 4, !tbaa !5
  br label %43, !llvm.loop !9

96:                                               ; preds = %47
  store i32 1, ptr @iact, align 16, !tbaa !5
  store i32 1, ptr @fact, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 2, ptr %3, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %120, %96
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = icmp sle i32 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %123

102:                                              ; preds = %97
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = load i32, ptr %3, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = mul nsw i64 %108, %113
  %115 = srem i64 %114, 1000003
  %116 = trunc i64 %115 to i32
  %117 = load i32, ptr %3, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %118
  store i32 %116, ptr %119, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %102
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %3, align 4, !tbaa !5
  br label %97, !llvm.loop !11

123:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %145, %123
  %125 = load i32, ptr %4, align 4, !tbaa !5
  %126 = load i32, ptr @n, align 4, !tbaa !5
  %127 = shl i32 %126, 1
  %128 = icmp sle i32 %125, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %148

130:                                              ; preds = %124
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = sub nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = mul nsw i64 %136, %138
  %140 = srem i64 %139, 1000003
  %141 = trunc i64 %140 to i32
  %142 = load i32, ptr %4, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %143
  store i32 %141, ptr %144, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %130
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %4, align 4, !tbaa !5
  br label %124, !llvm.loop !12

148:                                              ; preds = %129
  %149 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 2, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  br label %150

150:                                              ; preds = %206, %148
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = load i32, ptr @n, align 4, !tbaa !5
  %153 = icmp sle i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %209

155:                                              ; preds = %150
  %156 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.6, ptr noundef %6)
  %157 = load i32, ptr @ans, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = load i32, ptr @n, align 4, !tbaa !5
  %160 = sub nsw i32 %159, 1
  %161 = shl i32 %160, 1
  %162 = load i32, ptr %5, align 4, !tbaa !5
  %163 = sub nsw i32 %161, %162
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = load i32, ptr @n, align 4, !tbaa !5
  %169 = load i32, ptr %5, align 4, !tbaa !5
  %170 = sub nsw i32 %168, %169
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = mul nsw i64 %167, %174
  %176 = load i32, ptr @n, align 4, !tbaa !5
  %177 = sub nsw i32 %176, 2
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = mul nsw i64 %175, %181
  %183 = srem i64 %182, 1000003
  %184 = load i32, ptr @n, align 4, !tbaa !5
  %185 = sub nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = mul nsw i64 %183, %189
  %191 = load i32, ptr @n, align 4, !tbaa !5
  %192 = load i32, ptr %5, align 4, !tbaa !5
  %193 = sub nsw i32 %191, %192
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = mul nsw i64 %190, %197
  %199 = srem i64 %198, 1000003
  %200 = load i32, ptr %6, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = mul nsw i64 %199, %201
  %203 = add nsw i64 %158, %202
  %204 = srem i64 %203, 1000003
  %205 = trunc i64 %204 to i32
  store i32 %205, ptr @ans, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %155
  %207 = load i32, ptr %5, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %5, align 4, !tbaa !5
  br label %150, !llvm.loop !13

209:                                              ; preds = %154
  %210 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 2, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  br label %211

211:                                              ; preds = %267, %209
  %212 = load i32, ptr %7, align 4, !tbaa !5
  %213 = load i32, ptr @n, align 4, !tbaa !5
  %214 = icmp sle i32 %212, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %270

216:                                              ; preds = %211
  %217 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.6, ptr noundef %8)
  %218 = load i32, ptr @ans, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = load i32, ptr @n, align 4, !tbaa !5
  %221 = sub nsw i32 %220, 1
  %222 = shl i32 %221, 1
  %223 = load i32, ptr %7, align 4, !tbaa !5
  %224 = sub nsw i32 %222, %223
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = load i32, ptr @n, align 4, !tbaa !5
  %230 = load i32, ptr %7, align 4, !tbaa !5
  %231 = sub nsw i32 %229, %230
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = mul nsw i64 %228, %235
  %237 = load i32, ptr @n, align 4, !tbaa !5
  %238 = sub nsw i32 %237, 2
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = mul nsw i64 %236, %242
  %244 = srem i64 %243, 1000003
  %245 = load i32, ptr @n, align 4, !tbaa !5
  %246 = load i32, ptr %7, align 4, !tbaa !5
  %247 = sub nsw i32 %245, %246
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = mul nsw i64 %244, %251
  %253 = load i32, ptr @n, align 4, !tbaa !5
  %254 = sub nsw i32 %253, 1
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = mul nsw i64 %252, %258
  %260 = srem i64 %259, 1000003
  %261 = load i32, ptr %8, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = mul nsw i64 %260, %262
  %264 = add nsw i64 %219, %263
  %265 = srem i64 %264, 1000003
  %266 = trunc i64 %265 to i32
  store i32 %266, ptr @ans, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %216
  %268 = load i32, ptr %7, align 4, !tbaa !5
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %7, align 4, !tbaa !5
  br label %211, !llvm.loop !14

270:                                              ; preds = %215
  store i32 1, ptr @len, align 4, !tbaa !5
  br label %271

271:                                              ; preds = %278, %270
  %272 = load i32, ptr @len, align 4, !tbaa !5
  %273 = load i32, ptr @n, align 4, !tbaa !5
  %274 = shl i32 %273, 1
  %275 = or i32 %274, 1
  %276 = icmp slt i32 %272, %275
  br i1 %276, label %277, label %281

277:                                              ; preds = %271
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr @len, align 4, !tbaa !5
  %280 = shl i32 %279, 1
  store i32 %280, ptr @len, align 4, !tbaa !5
  br label %271, !llvm.loop !15

281:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %304, %281
  %283 = load i32, ptr %9, align 4, !tbaa !5
  %284 = load i32, ptr @n, align 4, !tbaa !5
  %285 = icmp sle i32 %283, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %282
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %307

287:                                              ; preds = %282
  %288 = load i32, ptr %9, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %289
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = load i32, ptr %9, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %294
  %296 = load i32, ptr %295, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = mul nsw i64 %292, %297
  %299 = srem i64 %298, 1000003
  %300 = trunc i64 %299 to i32
  %301 = load i32, ptr %9, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %302
  store i32 %300, ptr %303, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %287
  %305 = load i32, ptr %9, align 4, !tbaa !5
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %9, align 4, !tbaa !5
  br label %282, !llvm.loop !16

307:                                              ; preds = %286
  %308 = load i32, ptr @n, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds i32, ptr @a, i64 %309
  %311 = getelementptr inbounds i32, ptr %310, i64 1
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @a, ptr noundef %311)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %312

312:                                              ; preds = %334, %307
  %313 = load i32, ptr %10, align 4, !tbaa !5
  %314 = load i32, ptr @n, align 4, !tbaa !5
  %315 = icmp sle i32 %313, %314
  br i1 %315, label %317, label %316

316:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %337

317:                                              ; preds = %312
  %318 = load i32, ptr %10, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = load i32, ptr %10, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %324
  %326 = load i32, ptr %325, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = mul nsw i64 %322, %327
  %329 = srem i64 %328, 1000003
  %330 = trunc i64 %329 to i32
  %331 = load i32, ptr %10, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %332
  store i32 %330, ptr %333, align 4, !tbaa !5
  br label %334

334:                                              ; preds = %317
  %335 = load i32, ptr %10, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %10, align 4, !tbaa !5
  br label %312, !llvm.loop !17

337:                                              ; preds = %316
  %338 = load i32, ptr @n, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds i32, ptr @b, i64 %339
  %341 = getelementptr inbounds i32, ptr %340, i64 1
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @b, ptr noundef %341)
  store i32 1, ptr @len, align 4, !tbaa !5
  br label %342

342:                                              ; preds = %349, %337
  %343 = load i32, ptr @len, align 4, !tbaa !5
  %344 = load i32, ptr @n, align 4, !tbaa !5
  %345 = shl i32 %344, 1
  %346 = or i32 %345, 1
  %347 = icmp slt i32 %343, %346
  br i1 %347, label %348, label %352

348:                                              ; preds = %342
  br label %349

349:                                              ; preds = %348
  %350 = load i32, ptr @len, align 4, !tbaa !5
  %351 = shl i32 %350, 1
  store i32 %351, ptr @len, align 4, !tbaa !5
  br label %342, !llvm.loop !18

352:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([524289 x %struct.complex], ptr @Y, i64 0, i64 1), ptr align 8 %11, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @Y, ptr align 8 getelementptr inbounds ([524289 x %struct.complex], ptr @Y, i64 0, i64 1), i64 16, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([524289 x %struct.complex], ptr @X, i64 0, i64 1), ptr align 8 @Y, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @X, ptr align 8 getelementptr inbounds ([524289 x %struct.complex], ptr @X, i64 0, i64 1), i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 2, ptr %12, align 4, !tbaa !5
  br label %353

353:                                              ; preds = %401, %352
  %354 = load i32, ptr %12, align 4, !tbaa !5
  %355 = load i32, ptr @len, align 4, !tbaa !5
  %356 = icmp slt i32 %354, %355
  br i1 %356, label %358, label %357

357:                                              ; preds = %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %404

358:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %359 = load i32, ptr %12, align 4, !tbaa !5
  %360 = load i32, ptr @n, align 4, !tbaa !5
  %361 = icmp sle i32 %359, %360
  br i1 %361, label %362, label %375

362:                                              ; preds = %358
  %363 = load i32, ptr %12, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %364
  %366 = load i32, ptr %365, align 4, !tbaa !5
  %367 = and i32 %366, 1023
  %368 = sitofp i32 %367 to double
  %369 = load i32, ptr %12, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %370
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = ashr i32 %372, 10
  %374 = sitofp i32 %373 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %368, double noundef %374)
  br label %376

375:                                              ; preds = %358
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %376

376:                                              ; preds = %375, %362
  %377 = load i32, ptr %12, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %378
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %379, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %380 = load i32, ptr %12, align 4, !tbaa !5
  %381 = load i32, ptr @n, align 4, !tbaa !5
  %382 = icmp sle i32 %380, %381
  br i1 %382, label %383, label %396

383:                                              ; preds = %376
  %384 = load i32, ptr %12, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %385
  %387 = load i32, ptr %386, align 4, !tbaa !5
  %388 = and i32 %387, 1023
  %389 = sitofp i32 %388 to double
  %390 = load i32, ptr %12, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %391
  %393 = load i32, ptr %392, align 4, !tbaa !5
  %394 = ashr i32 %393, 10
  %395 = sitofp i32 %394 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %389, double noundef %395)
  br label %397

396:                                              ; preds = %376
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %397

397:                                              ; preds = %396, %383
  %398 = load i32, ptr %12, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %399
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %400, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %401

401:                                              ; preds = %397
  %402 = load i32, ptr %12, align 4, !tbaa !5
  %403 = add nsw i32 %402, 1
  store i32 %403, ptr %12, align 4, !tbaa !5
  br label %353, !llvm.loop !22

404:                                              ; preds = %357
  %405 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @X, i32 noundef %405, i32 noundef 1)
  %406 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @Y, i32 noundef %406, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %407

407:                                              ; preds = %539, %404
  %408 = load i32, ptr %15, align 4, !tbaa !5
  %409 = load i32, ptr @len, align 4, !tbaa !5
  %410 = icmp slt i32 %408, %409
  br i1 %410, label %412, label %411

411:                                              ; preds = %407
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %542

412:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %413 = load i32, ptr @len, align 4, !tbaa !5
  %414 = load i32, ptr %15, align 4, !tbaa !5
  %415 = sub nsw i32 %413, %414
  %416 = load i32, ptr @len, align 4, !tbaa !5
  %417 = sub nsw i32 %416, 1
  %418 = and i32 %415, %417
  store i32 %418, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %419 = load i32, ptr %15, align 4, !tbaa !5
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %420
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %422 = load i32, ptr %16, align 4, !tbaa !5
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %423
  %425 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %424)
  %426 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %427 = extractvalue { double, double } %425, 0
  store double %427, ptr %426, align 8
  %428 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %429 = extractvalue { double, double } %425, 1
  store double %429, ptr %428, align 8
  %430 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %421, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %431 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %432 = extractvalue { double, double } %430, 0
  store double %432, ptr %431, align 8
  %433 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %434 = extractvalue { double, double } %430, 1
  store double %434, ptr %433, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef 5.000000e-01, double noundef 0.000000e+00)
  %435 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %436 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %437 = extractvalue { double, double } %435, 0
  store double %437, ptr %436, align 8
  %438 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %439 = extractvalue { double, double } %435, 1
  store double %439, ptr %438, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %440 = load i32, ptr %15, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %441
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %443 = load i32, ptr %16, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %444
  %446 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %445)
  %447 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %448 = extractvalue { double, double } %446, 0
  store double %448, ptr %447, align 8
  %449 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %450 = extractvalue { double, double } %446, 1
  store double %450, ptr %449, align 8
  %451 = call { double, double } @_ZmiRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %442, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %452 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %453 = extractvalue { double, double } %451, 0
  store double %453, ptr %452, align 8
  %454 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %455 = extractvalue { double, double } %451, 1
  store double %455, ptr %454, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef 0.000000e+00, double noundef -5.000000e-01)
  %456 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %457 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %458 = extractvalue { double, double } %456, 0
  store double %458, ptr %457, align 8
  %459 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %460 = extractvalue { double, double } %456, 1
  store double %460, ptr %459, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %461 = load i32, ptr %15, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %462
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %464 = load i32, ptr %16, align 4, !tbaa !5
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %465
  %467 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %466)
  %468 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %469 = extractvalue { double, double } %467, 0
  store double %469, ptr %468, align 8
  %470 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %471 = extractvalue { double, double } %467, 1
  store double %471, ptr %470, align 8
  %472 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %463, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %473 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %474 = extractvalue { double, double } %472, 0
  store double %474, ptr %473, align 8
  %475 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %476 = extractvalue { double, double } %472, 1
  store double %476, ptr %475, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef 5.000000e-01, double noundef 0.000000e+00)
  %477 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %478 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %479 = extractvalue { double, double } %477, 0
  store double %479, ptr %478, align 8
  %480 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %481 = extractvalue { double, double } %477, 1
  store double %481, ptr %480, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %482 = load i32, ptr %15, align 4, !tbaa !5
  %483 = sext i32 %482 to i64
  %484 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %483
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %485 = load i32, ptr %16, align 4, !tbaa !5
  %486 = sext i32 %485 to i64
  %487 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %486
  %488 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %487)
  %489 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %490 = extractvalue { double, double } %488, 0
  store double %490, ptr %489, align 8
  %491 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %492 = extractvalue { double, double } %488, 1
  store double %492, ptr %491, align 8
  %493 = call { double, double } @_ZmiRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %484, ptr noundef nonnull align 8 dereferenceable(16) %31)
  %494 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %495 = extractvalue { double, double } %493, 0
  store double %495, ptr %494, align 8
  %496 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %497 = extractvalue { double, double } %493, 1
  store double %497, ptr %496, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %32, double noundef 0.000000e+00, double noundef -5.000000e-01)
  %498 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %32)
  %499 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %500 = extractvalue { double, double } %498, 0
  store double %500, ptr %499, align 8
  %501 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %502 = extractvalue { double, double } %498, 1
  store double %502, ptr %501, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %36, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %503 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %36)
  %504 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %505 = extractvalue { double, double } %503, 0
  store double %505, ptr %504, align 8
  %506 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %507 = extractvalue { double, double } %503, 1
  store double %507, ptr %506, align 8
  %508 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %35)
  %509 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %510 = extractvalue { double, double } %508, 0
  store double %510, ptr %509, align 8
  %511 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %512 = extractvalue { double, double } %508, 1
  store double %512, ptr %511, align 8
  %513 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %34)
  %514 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %515 = extractvalue { double, double } %513, 0
  store double %515, ptr %514, align 8
  %516 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %517 = extractvalue { double, double } %513, 1
  store double %517, ptr %516, align 8
  %518 = load i32, ptr %15, align 4, !tbaa !5
  %519 = sext i32 %518 to i64
  %520 = getelementptr inbounds [524289 x %struct.complex], ptr @A, i64 0, i64 %519
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %520, ptr align 8 %33, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %40, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %521 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %40)
  %522 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %523 = extractvalue { double, double } %521, 0
  store double %523, ptr %522, align 8
  %524 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %525 = extractvalue { double, double } %521, 1
  store double %525, ptr %524, align 8
  %526 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %39)
  %527 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %528 = extractvalue { double, double } %526, 0
  store double %528, ptr %527, align 8
  %529 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %530 = extractvalue { double, double } %526, 1
  store double %530, ptr %529, align 8
  %531 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %38)
  %532 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %533 = extractvalue { double, double } %531, 0
  store double %533, ptr %532, align 8
  %534 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %535 = extractvalue { double, double } %531, 1
  store double %535, ptr %534, align 8
  %536 = load i32, ptr %15, align 4, !tbaa !5
  %537 = sext i32 %536 to i64
  %538 = getelementptr inbounds [524289 x %struct.complex], ptr @B, i64 0, i64 %537
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %538, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %539

539:                                              ; preds = %412
  %540 = load i32, ptr %15, align 4, !tbaa !5
  %541 = add nsw i32 %540, 1
  store i32 %541, ptr %15, align 4, !tbaa !5
  br label %407, !llvm.loop !23

542:                                              ; preds = %411
  %543 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @A, i32 noundef %543, i32 noundef -1)
  %544 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @B, i32 noundef %544, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 4, ptr %41, align 4, !tbaa !5
  br label %545

545:                                              ; preds = %612, %542
  %546 = load i32, ptr %41, align 4, !tbaa !5
  %547 = load i32, ptr @n, align 4, !tbaa !5
  %548 = shl i32 %547, 1
  %549 = icmp sle i32 %546, %548
  br i1 %549, label %551, label %550

550:                                              ; preds = %545
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %615

551:                                              ; preds = %545
  %552 = load i32, ptr %41, align 4, !tbaa !5
  %553 = sext i32 %552 to i64
  %554 = getelementptr inbounds [524289 x %struct.complex], ptr @A, i64 0, i64 %553
  %555 = getelementptr inbounds %struct.complex, ptr %554, i32 0, i32 0
  %556 = load double, ptr %555, align 16, !tbaa !24
  %557 = fadd double %556, 5.000000e-01
  %558 = fptosi double %557 to i64
  %559 = load i32, ptr %41, align 4, !tbaa !5
  %560 = sext i32 %559 to i64
  %561 = getelementptr inbounds [524289 x %struct.complex], ptr @A, i64 0, i64 %560
  %562 = getelementptr inbounds %struct.complex, ptr %561, i32 0, i32 1
  %563 = load double, ptr %562, align 8, !tbaa !26
  %564 = fadd double %563, 5.000000e-01
  %565 = fptosi double %564 to i64
  %566 = load i32, ptr %41, align 4, !tbaa !5
  %567 = sext i32 %566 to i64
  %568 = getelementptr inbounds [524289 x %struct.complex], ptr @B, i64 0, i64 %567
  %569 = getelementptr inbounds %struct.complex, ptr %568, i32 0, i32 0
  %570 = load double, ptr %569, align 16, !tbaa !24
  %571 = fadd double %570, 5.000000e-01
  %572 = fptosi double %571 to i64
  %573 = add nsw i64 %565, %572
  %574 = shl i64 %573, 10
  %575 = add nsw i64 %558, %574
  %576 = load i32, ptr %41, align 4, !tbaa !5
  %577 = sext i32 %576 to i64
  %578 = getelementptr inbounds [524289 x %struct.complex], ptr @B, i64 0, i64 %577
  %579 = getelementptr inbounds %struct.complex, ptr %578, i32 0, i32 1
  %580 = load double, ptr %579, align 8, !tbaa !26
  %581 = fadd double %580, 5.000000e-01
  %582 = fptosi double %581 to i64
  %583 = shl i64 %582, 20
  %584 = add nsw i64 %575, %583
  %585 = srem i64 %584, 1000003
  %586 = trunc i64 %585 to i32
  %587 = load i32, ptr %41, align 4, !tbaa !5
  %588 = sext i32 %587 to i64
  %589 = getelementptr inbounds [400002 x i32], ptr @f, i64 0, i64 %588
  store i32 %586, ptr %589, align 4, !tbaa !5
  %590 = load i32, ptr @ans, align 4, !tbaa !5
  %591 = sext i32 %590 to i64
  %592 = load i32, ptr %41, align 4, !tbaa !5
  %593 = sext i32 %592 to i64
  %594 = getelementptr inbounds [400002 x i32], ptr @f, i64 0, i64 %593
  %595 = load i32, ptr %594, align 4, !tbaa !5
  %596 = sext i32 %595 to i64
  %597 = load i32, ptr @n, align 4, !tbaa !5
  %598 = shl i32 %597, 1
  %599 = load i32, ptr %41, align 4, !tbaa !5
  %600 = sub nsw i32 %598, %599
  %601 = sext i32 %600 to i64
  %602 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %601
  %603 = load i32, ptr %602, align 4, !tbaa !5
  %604 = sext i32 %603 to i64
  %605 = mul nsw i64 %596, %604
  %606 = load i32, ptr @c, align 4, !tbaa !5
  %607 = sext i32 %606 to i64
  %608 = mul nsw i64 %605, %607
  %609 = add nsw i64 %591, %608
  %610 = srem i64 %609, 1000003
  %611 = trunc i64 %610 to i32
  store i32 %611, ptr @ans, align 4, !tbaa !5
  br label %612

612:                                              ; preds = %551
  %613 = load i32, ptr %41, align 4, !tbaa !5
  %614 = add nsw i32 %613, 1
  store i32 %614, ptr %41, align 4, !tbaa !5
  br label %545, !llvm.loop !27

615:                                              ; preds = %550
  %616 = load i32, ptr @ans, align 4, !tbaa !5
  %617 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %616)
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN7complex4conjEv(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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !20}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = !{!25, !21, i64 0}
!25 = !{!"_ZTS7complex", !21, i64 0, !21, i64 8}
!26 = !{!25, !21, i64 8}
!27 = distinct !{!27, !10}


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

@X = external dso_local global [524289 x %struct.complex], align 16
@Y = external dso_local global [524289 x %struct.complex], align 16
@A = external dso_local global [524289 x %struct.complex], align 16
@B = external dso_local global [524289 x %struct.complex], align 16
@n = external dso_local global i32, align 4
@len = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local global [200001 x i32], align 16
@b = external dso_local global [200001 x i32], align 16
@c = external dso_local global i32, align 4
@fact = external dso_local local_unnamed_addr global [400002 x i32], align 16
@iact = external dso_local local_unnamed_addr global [200001 x i32], align 16
@f = external dso_local local_unnamed_addr global [400002 x i32], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3FFTP7complexii(ptr noundef, i32 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 nounwind uwtable
declare dso_local void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

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

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

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

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

; 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 %struct.complex, align 8
  %26 = alloca %struct.complex, align 8
  %27 = alloca %struct.complex, align 8
  %28 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 4), ptr noundef nonnull getelementptr inbounds (i8, ptr @b, i64 4), ptr noundef nonnull @c)
  store i32 1, ptr getelementptr inbounds (i8, ptr @iact, i64 4), align 4, !tbaa !5
  store i32 1, ptr @b, align 16, !tbaa !5
  store i32 1, ptr @a, align 16, !tbaa !5
  %29 = load i32, ptr @n, align 4, !tbaa !5
  %.not105 = icmp slt i32 %29, 2
  br i1 %.not105, label %._crit_edge.thread, label %.lr.ph.preheader

._crit_edge.thread:                               ; preds = %0
  store i32 1, ptr @iact, align 16, !tbaa !5
  store i32 1, ptr @fact, align 16, !tbaa !5
  br label %.preheader100

.lr.ph.preheader:                                 ; preds = %0
  %30 = add nuw i32 %29, 1
  %wide.trip.count = zext i32 %30 to i64
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  %.pre188 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  store i32 1, ptr @iact, align 16, !tbaa !5
  store i32 1, ptr @fact, align 16, !tbaa !5
  br i1 %.not105, label %.preheader100, label %.lr.ph110.preheader

.lr.ph110.preheader:                              ; preds = %._crit_edge
  %.pre189 = load i32, ptr getelementptr inbounds (i8, ptr @iact, i64 4), align 4, !tbaa !5
  %xtraiter = and i64 %wide.trip.count, 1
  %31 = icmp eq i32 %30, 3
  br i1 %31, label %.preheader100.loopexit.unr-lcssa, label %.lr.ph110.preheader.new

.lr.ph110.preheader.new:                          ; preds = %.lr.ph110.preheader
  %32 = and i64 %wide.trip.count, 4294967294
  %33 = add nsw i64 %32, -4
  br label %.lr.ph110

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %34 = phi i32 [ %.pre188, %.lr.ph.preheader ], [ %48, %.lr.ph ]
  %35 = phi i32 [ %.pre, %.lr.ph.preheader ], [ %41, %.lr.ph ]
  %indvars.iv = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %36 = sext i32 %35 to i64
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = mul nsw i64 %38, %36
  %40 = srem i64 %39, 1000003
  %41 = trunc nsw i64 %40 to i32
  %42 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %indvars.iv
  store i32 %41, ptr %42, align 4, !tbaa !5
  %43 = sext i32 %34 to i64
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = mul nsw i64 %45, %43
  %47 = srem i64 %46, 1000003
  %48 = trunc nsw i64 %47 to i32
  %49 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %indvars.iv
  store i32 %48, ptr %49, align 4, !tbaa !5
  %50 = trunc nuw nsw i64 %indvars.iv to i32
  %51 = udiv i32 1000003, %50
  %52 = zext nneg i32 %51 to i64
  %53 = urem i32 1000003, %50
  %54 = zext nneg i32 %53 to i64
  %55 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = mul nsw i64 %57, %52
  %59 = srem i64 %58, 1000003
  %60 = trunc nsw i64 %59 to i32
  %61 = sub nsw i32 1000003, %60
  %62 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv
  store i32 %61, ptr %62, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

.preheader100.loopexit.unr-lcssa:                 ; preds = %.lr.ph110, %.lr.ph110.preheader
  %.unr = phi i32 [ %.pre189, %.lr.ph110.preheader ], [ %85, %.lr.ph110 ]
  %indvars.iv157.unr = phi i64 [ 2, %.lr.ph110.preheader ], [ %indvars.iv.next158.1, %.lr.ph110 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader100, label %.lr.ph110.epil

.lr.ph110.epil:                                   ; preds = %.preheader100.loopexit.unr-lcssa
  %63 = sext i32 %.unr to i64
  %64 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv157.unr
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = mul nsw i64 %66, %63
  %68 = srem i64 %67, 1000003
  %69 = trunc nsw i64 %68 to i32
  store i32 %69, ptr %64, align 4, !tbaa !5
  br label %.preheader100

.preheader100:                                    ; preds = %.lr.ph110.epil, %.preheader100.loopexit.unr-lcssa, %._crit_edge.thread, %._crit_edge
  %70 = shl i32 %29, 1
  %.not89111 = icmp slt i32 %70, 1
  br i1 %.not89111, label %._crit_edge114, label %.lr.ph113.preheader

.lr.ph113.preheader:                              ; preds = %.preheader100
  %71 = or disjoint i32 %70, 1
  %wide.trip.count165 = zext nneg i32 %71 to i64
  br label %.lr.ph113

.lr.ph110:                                        ; preds = %.lr.ph110, %.lr.ph110.preheader.new
  %72 = phi i32 [ %.pre189, %.lr.ph110.preheader.new ], [ %85, %.lr.ph110 ]
  %indvars.iv157 = phi i64 [ 2, %.lr.ph110.preheader.new ], [ %indvars.iv.next158.1, %.lr.ph110 ]
  %niter = phi i64 [ 0, %.lr.ph110.preheader.new ], [ %niter.next.1, %.lr.ph110 ]
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv157
  %75 = load i32, ptr %74, align 8, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = mul nsw i64 %76, %73
  %78 = srem i64 %77, 1000003
  %79 = trunc nsw i64 %78 to i32
  store i32 %79, ptr %74, align 8, !tbaa !5
  %indvars.iv.next158 = or disjoint i64 %indvars.iv157, 1
  %80 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv.next158
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = mul nsw i64 %78, %82
  %84 = srem i64 %83, 1000003
  %85 = trunc nsw i64 %84 to i32
  store i32 %85, ptr %80, align 4, !tbaa !5
  %indvars.iv.next158.1 = add nuw nsw i64 %indvars.iv157, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter, %33
  br i1 %niter.ncmp.1, label %.preheader100.loopexit.unr-lcssa, label %.lr.ph110, !llvm.loop !11

._crit_edge114:                                   ; preds = %.lr.ph113, %.preheader100
  %86 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %.not90115 = icmp slt i32 %87, 2
  br i1 %.not90115, label %._crit_edge119, label %.lr.ph118

.lr.ph113:                                        ; preds = %.lr.ph113, %.lr.ph113.preheader
  %88 = phi i64 [ 1, %.lr.ph113.preheader ], [ %94, %.lr.ph113 ]
  %indvars.iv162 = phi i64 [ 1, %.lr.ph113.preheader ], [ %indvars.iv.next163.1, %.lr.ph113 ]
  %89 = mul nsw i64 %88, %indvars.iv162
  %90 = srem i64 %89, 1000003
  %91 = trunc nsw i64 %90 to i32
  %92 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %indvars.iv162
  store i32 %91, ptr %92, align 4, !tbaa !5
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %93 = mul nsw i64 %90, %indvars.iv.next163
  %94 = srem i64 %93, 1000003
  %95 = trunc nsw i64 %94 to i32
  %96 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %indvars.iv.next163
  store i32 %95, ptr %96, align 4, !tbaa !5
  %indvars.iv.next163.1 = add nuw nsw i64 %indvars.iv162, 2
  %exitcond166.not.1 = icmp eq i64 %indvars.iv.next163.1, %wide.trip.count165
  br i1 %exitcond166.not.1, label %._crit_edge114, label %.lr.ph113, !llvm.loop !12

._crit_edge119:                                   ; preds = %.lr.ph118, %._crit_edge114
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %97 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %98 = load i32, ptr @n, align 4, !tbaa !5
  %.not91120 = icmp slt i32 %98, 2
  br i1 %.not91120, label %._crit_edge124, label %.lr.ph123

.lr.ph118:                                        ; preds = %._crit_edge114, %.lr.ph118
  %.076116 = phi i32 [ %139, %.lr.ph118 ], [ 2, %._crit_edge114 ]
  %99 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.6, ptr noundef nonnull %1)
  %100 = load i32, ptr @ans, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = load i32, ptr @n, align 4, !tbaa !5
  %103 = add nsw i32 %102, -1
  %104 = shl i32 %103, 1
  %105 = sub nsw i32 %104, %.076116
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = sub nsw i32 %102, %.076116
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = mul nsw i64 %114, %109
  %116 = add nsw i32 %102, -2
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = mul nsw i64 %115, %120
  %122 = srem i64 %121, 1000003
  %123 = sext i32 %103 to i64
  %124 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = mul nsw i64 %122, %126
  %128 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %111
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = mul nsw i64 %127, %130
  %132 = srem i64 %131, 1000003
  %133 = load i32, ptr %1, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = mul nsw i64 %132, %134
  %136 = add nsw i64 %135, %101
  %137 = srem i64 %136, 1000003
  %138 = trunc nsw i64 %137 to i32
  store i32 %138, ptr @ans, align 4, !tbaa !5
  %139 = add nuw nsw i32 %.076116, 1
  %.not90.not = icmp slt i32 %.076116, %102
  br i1 %.not90.not, label %.lr.ph118, label %._crit_edge119, !llvm.loop !13

._crit_edge124:                                   ; preds = %.lr.ph123, %._crit_edge119
  %.lcssa103 = phi i32 [ %98, %._crit_edge119 ], [ %144, %.lr.ph123 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %140 = shl i32 %.lcssa103, 1
  br label %182

.lr.ph123:                                        ; preds = %._crit_edge119, %.lr.ph123
  %.077121 = phi i32 [ %181, %.lr.ph123 ], [ 2, %._crit_edge119 ]
  %141 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.6, ptr noundef nonnull %2)
  %142 = load i32, ptr @ans, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = load i32, ptr @n, align 4, !tbaa !5
  %145 = add nsw i32 %144, -1
  %146 = shl i32 %145, 1
  %147 = sub nsw i32 %146, %.077121
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = sub nsw i32 %144, %.077121
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = mul nsw i64 %156, %151
  %158 = add nsw i32 %144, -2
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = mul nsw i64 %157, %162
  %164 = srem i64 %163, 1000003
  %165 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %153
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = mul nsw i64 %164, %167
  %169 = sext i32 %145 to i64
  %170 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = mul nsw i64 %168, %172
  %174 = srem i64 %173, 1000003
  %175 = load i32, ptr %2, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = mul nsw i64 %174, %176
  %178 = add nsw i64 %177, %143
  %179 = srem i64 %178, 1000003
  %180 = trunc nsw i64 %179 to i32
  store i32 %180, ptr @ans, align 4, !tbaa !5
  %181 = add nuw nsw i32 %.077121, 1
  %.not91.not = icmp slt i32 %.077121, %144
  br i1 %.not91.not, label %.lr.ph123, label %._crit_edge124, !llvm.loop !14

182:                                              ; preds = %182, %._crit_edge124
  %storemerge = phi i32 [ 1, %._crit_edge124 ], [ %183, %182 ]
  %.not92 = icmp sgt i32 %storemerge, %140
  %183 = shl i32 %storemerge, 1
  br i1 %.not92, label %.preheader, label %182, !llvm.loop !15

.preheader:                                       ; preds = %182
  store i32 %storemerge, ptr @len, align 4, !tbaa !5
  %.not93126 = icmp slt i32 %.lcssa103, 1
  br i1 %.not93126, label %._crit_edge129, label %.lr.ph128.preheader

.lr.ph128.preheader:                              ; preds = %.preheader
  %184 = zext nneg i32 %.lcssa103 to i64
  %xtraiter203 = and i64 %184, 1
  %185 = icmp eq i32 %.lcssa103, 1
  br i1 %185, label %._crit_edge129.loopexit.unr-lcssa, label %.lr.ph128.preheader.new

.lr.ph128.preheader.new:                          ; preds = %.lr.ph128.preheader
  %unroll_iter205 = and i64 %184, 2147483646
  br label %.lr.ph128

._crit_edge129.loopexit.unr-lcssa:                ; preds = %.lr.ph128, %.lr.ph128.preheader
  %indvars.iv167.unr = phi i64 [ 1, %.lr.ph128.preheader ], [ %indvars.iv.next168.1, %.lr.ph128 ]
  %lcmp.mod204.not = icmp eq i64 %xtraiter203, 0
  br i1 %lcmp.mod204.not, label %._crit_edge129, label %.lr.ph128.epil

.lr.ph128.epil:                                   ; preds = %._crit_edge129.loopexit.unr-lcssa
  %186 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %indvars.iv167.unr
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv167.unr
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = mul nsw i64 %191, %188
  %193 = srem i64 %192, 1000003
  %194 = trunc nsw i64 %193 to i32
  store i32 %194, ptr %186, align 4, !tbaa !5
  br label %._crit_edge129

._crit_edge129:                                   ; preds = %.lr.ph128.epil, %._crit_edge129.loopexit.unr-lcssa, %.preheader
  %195 = sext i32 %.lcssa103 to i64
  %196 = getelementptr inbounds i32, ptr @a, i64 %195
  %197 = getelementptr inbounds i8, ptr %196, i64 4
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @a, ptr noundef nonnull %197)
  %198 = load i32, ptr @n, align 4, !tbaa !5
  %.not94130 = icmp slt i32 %198, 1
  br i1 %.not94130, label %._crit_edge134, label %.lr.ph133.preheader

.lr.ph133.preheader:                              ; preds = %._crit_edge129
  %199 = zext nneg i32 %198 to i64
  %xtraiter207 = and i64 %199, 1
  %200 = icmp eq i32 %198, 1
  br i1 %200, label %._crit_edge134.loopexit.unr-lcssa, label %.lr.ph133.preheader.new

.lr.ph133.preheader.new:                          ; preds = %.lr.ph133.preheader
  %unroll_iter209 = and i64 %199, 2147483646
  br label %.lr.ph133

.lr.ph128:                                        ; preds = %.lr.ph128, %.lr.ph128.preheader.new
  %indvars.iv167 = phi i64 [ 1, %.lr.ph128.preheader.new ], [ %indvars.iv.next168.1, %.lr.ph128 ]
  %niter206 = phi i64 [ 0, %.lr.ph128.preheader.new ], [ %niter206.next.1, %.lr.ph128 ]
  %201 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %indvars.iv167
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv167
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = mul nsw i64 %206, %203
  %208 = srem i64 %207, 1000003
  %209 = trunc nsw i64 %208 to i32
  store i32 %209, ptr %201, align 4, !tbaa !5
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %210 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %indvars.iv.next168
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv.next168
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = mul nsw i64 %215, %212
  %217 = srem i64 %216, 1000003
  %218 = trunc nsw i64 %217 to i32
  store i32 %218, ptr %210, align 4, !tbaa !5
  %indvars.iv.next168.1 = add nuw nsw i64 %indvars.iv167, 2
  %niter206.next.1 = add i64 %niter206, 2
  %niter206.ncmp.1 = icmp eq i64 %niter206.next.1, %unroll_iter205
  br i1 %niter206.ncmp.1, label %._crit_edge129.loopexit.unr-lcssa, label %.lr.ph128, !llvm.loop !16

._crit_edge134.loopexit.unr-lcssa:                ; preds = %.lr.ph133, %.lr.ph133.preheader
  %indvars.iv172.unr = phi i64 [ 1, %.lr.ph133.preheader ], [ %indvars.iv.next173.1, %.lr.ph133 ]
  %lcmp.mod208.not = icmp eq i64 %xtraiter207, 0
  br i1 %lcmp.mod208.not, label %._crit_edge134, label %.lr.ph133.epil

.lr.ph133.epil:                                   ; preds = %._crit_edge134.loopexit.unr-lcssa
  %219 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %indvars.iv172.unr
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv172.unr
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = mul nsw i64 %224, %221
  %226 = srem i64 %225, 1000003
  %227 = trunc nsw i64 %226 to i32
  store i32 %227, ptr %219, align 4, !tbaa !5
  br label %._crit_edge134

._crit_edge134:                                   ; preds = %.lr.ph133.epil, %._crit_edge134.loopexit.unr-lcssa, %._crit_edge129
  %228 = sext i32 %198 to i64
  %229 = getelementptr inbounds i32, ptr @b, i64 %228
  %230 = getelementptr inbounds i8, ptr %229, i64 4
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @b, ptr noundef nonnull %230)
  %231 = load i32, ptr @n, align 4, !tbaa !5
  %232 = shl i32 %231, 1
  br label %251

.lr.ph133:                                        ; preds = %.lr.ph133, %.lr.ph133.preheader.new
  %indvars.iv172 = phi i64 [ 1, %.lr.ph133.preheader.new ], [ %indvars.iv.next173.1, %.lr.ph133 ]
  %niter210 = phi i64 [ 0, %.lr.ph133.preheader.new ], [ %niter210.next.1, %.lr.ph133 ]
  %233 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %indvars.iv172
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv172
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = mul nsw i64 %238, %235
  %240 = srem i64 %239, 1000003
  %241 = trunc nsw i64 %240 to i32
  store i32 %241, ptr %233, align 4, !tbaa !5
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %242 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %indvars.iv.next173
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [200001 x i32], ptr @iact, i64 0, i64 %indvars.iv.next173
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = mul nsw i64 %247, %244
  %249 = srem i64 %248, 1000003
  %250 = trunc nsw i64 %249 to i32
  store i32 %250, ptr %242, align 4, !tbaa !5
  %indvars.iv.next173.1 = add nuw nsw i64 %indvars.iv172, 2
  %niter210.next.1 = add i64 %niter210, 2
  %niter210.ncmp.1 = icmp eq i64 %niter210.next.1, %unroll_iter209
  br i1 %niter210.ncmp.1, label %._crit_edge134.loopexit.unr-lcssa, label %.lr.ph133, !llvm.loop !17

251:                                              ; preds = %251, %._crit_edge134
  %storemerge95 = phi i32 [ 1, %._crit_edge134 ], [ %252, %251 ]
  %.not96 = icmp sgt i32 %storemerge95, %232
  %252 = shl i32 %storemerge95, 1
  br i1 %.not96, label %253, label %251, !llvm.loop !18

253:                                              ; preds = %251
  store i32 %storemerge95, ptr @len, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @Y, i64 16), ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) @Y, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @X, i64 16), ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) @X, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  %254 = load i32, ptr @len, align 4, !tbaa !5
  %255 = icmp sgt i32 %254, 2
  br i1 %255, label %.lr.ph138, label %._crit_edge139

._crit_edge139:                                   ; preds = %297, %253
  %.lcssa101 = phi i32 [ %254, %253 ], [ %299, %297 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @X, i32 noundef %.lcssa101, i32 noundef 1)
  %256 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef nonnull @Y, i32 noundef %256, i32 noundef 1)
  %257 = load i32, ptr @len, align 4, !tbaa !5
  %258 = icmp sgt i32 %257, 0
  br i1 %258, label %.lr.ph143, label %._crit_edge144

.lr.ph143:                                        ; preds = %._crit_edge139
  %259 = getelementptr inbounds i8, ptr %8, i64 8
  %260 = getelementptr inbounds i8, ptr %7, i64 8
  %261 = getelementptr inbounds i8, ptr %6, i64 8
  %262 = getelementptr inbounds i8, ptr %12, i64 8
  %263 = getelementptr inbounds i8, ptr %11, i64 8
  %264 = getelementptr inbounds i8, ptr %10, i64 8
  %265 = getelementptr inbounds i8, ptr %16, i64 8
  %266 = getelementptr inbounds i8, ptr %15, i64 8
  %267 = getelementptr inbounds i8, ptr %14, i64 8
  %268 = getelementptr inbounds i8, ptr %20, i64 8
  %269 = getelementptr inbounds i8, ptr %19, i64 8
  %270 = getelementptr inbounds i8, ptr %18, i64 8
  %271 = getelementptr inbounds i8, ptr %23, i64 8
  %272 = getelementptr inbounds i8, ptr %22, i64 8
  %273 = getelementptr inbounds i8, ptr %26, i64 8
  %274 = getelementptr inbounds i8, ptr %25, i64 8
  br label %309

.lr.ph138:                                        ; preds = %253, %297
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %297 ], [ 2, %253 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %275 = load i32, ptr @n, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %.not98 = icmp sgt i64 %indvars.iv177, %276
  br i1 %.not98, label %284, label %277

277:                                              ; preds = %.lr.ph138
  %278 = getelementptr inbounds [200001 x i32], ptr @a, i64 0, i64 %indvars.iv177
  %279 = load i32, ptr %278, align 4, !tbaa !5
  %280 = and i32 %279, 1023
  %281 = uitofp nneg i32 %280 to double
  %282 = ashr i32 %279, 10
  %283 = sitofp i32 %282 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %281, double noundef %283)
  br label %285

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

285:                                              ; preds = %284, %277
  %286 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv177
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %286, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %287 = load i32, ptr @n, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %.not99 = icmp sgt i64 %indvars.iv177, %288
  br i1 %.not99, label %296, label %289

289:                                              ; preds = %285
  %290 = getelementptr inbounds [200001 x i32], ptr @b, i64 0, i64 %indvars.iv177
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %292 = and i32 %291, 1023
  %293 = uitofp nneg i32 %292 to double
  %294 = ashr i32 %291, 10
  %295 = sitofp i32 %294 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %293, double noundef %295)
  br label %297

296:                                              ; preds = %285
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %297

297:                                              ; preds = %296, %289
  %298 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %indvars.iv177
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %298, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %299 = load i32, ptr @len, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = icmp slt i64 %indvars.iv.next178, %300
  br i1 %301, label %.lr.ph138, label %._crit_edge139, !llvm.loop !22

._crit_edge144:                                   ; preds = %309, %._crit_edge139
  %.lcssa = phi i32 [ %257, %._crit_edge139 ], [ %376, %309 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @A, i32 noundef %.lcssa, i32 noundef -1)
  %302 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef nonnull @B, i32 noundef %302, i32 noundef -1)
  %303 = load i32, ptr @n, align 4, !tbaa !5
  %304 = shl i32 %303, 1
  %.not97146 = icmp slt i32 %304, 4
  %.pre190 = load i32, ptr @ans, align 4, !tbaa !5
  br i1 %.not97146, label %._crit_edge144._crit_edge, label %.lr.ph149

.lr.ph149:                                        ; preds = %._crit_edge144
  %305 = load i32, ptr @c, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = zext nneg i32 %304 to i64
  %308 = or disjoint i32 %304, 1
  %wide.trip.count186 = zext nneg i32 %308 to i64
  br label %381

309:                                              ; preds = %.lr.ph143, %309
  %indvars.iv180 = phi i64 [ 0, %.lr.ph143 ], [ %indvars.iv.next181, %309 ]
  %310 = phi i32 [ %257, %.lr.ph143 ], [ %376, %309 ]
  %311 = trunc nuw nsw i64 %indvars.iv180 to i32
  %312 = sub nsw i32 %310, %311
  %313 = add nsw i32 %310, -1
  %314 = and i32 %312, %313
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %315 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv180
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %316 = sext i32 %314 to i64
  %317 = getelementptr inbounds [524289 x %struct.complex], ptr @X, i64 0, i64 %316
  %318 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %317)
  %319 = extractvalue { double, double } %318, 0
  store double %319, ptr %8, align 8
  %320 = extractvalue { double, double } %318, 1
  store double %320, ptr %259, align 8
  %321 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %315, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %322 = extractvalue { double, double } %321, 0
  store double %322, ptr %7, align 8
  %323 = extractvalue { double, double } %321, 1
  store double %323, ptr %260, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 5.000000e-01, double noundef 0.000000e+00)
  %324 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %325 = extractvalue { double, double } %324, 0
  store double %325, ptr %6, align 8
  %326 = extractvalue { double, double } %324, 1
  store double %326, ptr %261, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %327 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %317)
  %328 = extractvalue { double, double } %327, 0
  store double %328, ptr %12, align 8
  %329 = extractvalue { double, double } %327, 1
  store double %329, ptr %262, align 8
  %330 = call { double, double } @_ZmiRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %315, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %331 = extractvalue { double, double } %330, 0
  store double %331, ptr %11, align 8
  %332 = extractvalue { double, double } %330, 1
  store double %332, ptr %263, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef 0.000000e+00, double noundef -5.000000e-01)
  %333 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %334 = extractvalue { double, double } %333, 0
  store double %334, ptr %10, align 8
  %335 = extractvalue { double, double } %333, 1
  store double %335, ptr %264, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %336 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %indvars.iv180
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %337 = getelementptr inbounds [524289 x %struct.complex], ptr @Y, i64 0, i64 %316
  %338 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %337)
  %339 = extractvalue { double, double } %338, 0
  store double %339, ptr %16, align 8
  %340 = extractvalue { double, double } %338, 1
  store double %340, ptr %265, align 8
  %341 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %336, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %342 = extractvalue { double, double } %341, 0
  store double %342, ptr %15, align 8
  %343 = extractvalue { double, double } %341, 1
  store double %343, ptr %266, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 5.000000e-01, double noundef 0.000000e+00)
  %344 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %345 = extractvalue { double, double } %344, 0
  store double %345, ptr %14, align 8
  %346 = extractvalue { double, double } %344, 1
  store double %346, ptr %267, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  %347 = call { double, double } @_ZN7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %337)
  %348 = extractvalue { double, double } %347, 0
  store double %348, ptr %20, align 8
  %349 = extractvalue { double, double } %347, 1
  store double %349, ptr %268, align 8
  %350 = call { double, double } @_ZmiRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %336, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %351 = extractvalue { double, double } %350, 0
  store double %351, ptr %19, align 8
  %352 = extractvalue { double, double } %350, 1
  store double %352, ptr %269, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef 0.000000e+00, double noundef -5.000000e-01)
  %353 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %354 = extractvalue { double, double } %353, 0
  store double %354, ptr %18, align 8
  %355 = extractvalue { double, double } %353, 1
  store double %355, ptr %270, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %356 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %357 = extractvalue { double, double } %356, 0
  store double %357, ptr %23, align 8
  %358 = extractvalue { double, double } %356, 1
  store double %358, ptr %271, align 8
  %359 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %360 = extractvalue { double, double } %359, 0
  store double %360, ptr %22, align 8
  %361 = extractvalue { double, double } %359, 1
  store double %361, ptr %272, align 8
  %362 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %363 = extractvalue { double, double } %362, 0
  %364 = extractvalue { double, double } %362, 1
  %365 = getelementptr inbounds [524289 x %struct.complex], ptr @A, i64 0, i64 %indvars.iv180
  store double %363, ptr %365, align 16, !tbaa !20
  %.sroa.410.0..sroa_idx = getelementptr inbounds i8, ptr %365, i64 8
  store double %364, ptr %.sroa.410.0..sroa_idx, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %366 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %367 = extractvalue { double, double } %366, 0
  store double %367, ptr %26, align 8
  %368 = extractvalue { double, double } %366, 1
  store double %368, ptr %273, align 8
  %369 = call { double, double } @_ZplRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %370 = extractvalue { double, double } %369, 0
  store double %370, ptr %25, align 8
  %371 = extractvalue { double, double } %369, 1
  store double %371, ptr %274, align 8
  %372 = call { double, double } @_ZmlRK7complexS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %373 = extractvalue { double, double } %372, 0
  %374 = extractvalue { double, double } %372, 1
  %375 = getelementptr inbounds [524289 x %struct.complex], ptr @B, i64 0, i64 %indvars.iv180
  store double %373, ptr %375, align 16, !tbaa !20
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %375, i64 8
  store double %374, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %376 = load i32, ptr @len, align 4, !tbaa !5
  %377 = sext i32 %376 to i64
  %378 = icmp slt i64 %indvars.iv.next181, %377
  br i1 %378, label %309, label %._crit_edge144, !llvm.loop !23

._crit_edge150:                                   ; preds = %381
  store i32 %416, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge144._crit_edge

._crit_edge144._crit_edge:                        ; preds = %._crit_edge144, %._crit_edge150
  %379 = phi i32 [ %416, %._crit_edge150 ], [ %.pre190, %._crit_edge144 ]
  %380 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %379)
  ret i32 0

381:                                              ; preds = %.lr.ph149, %381
  %indvars.iv183 = phi i64 [ 4, %.lr.ph149 ], [ %indvars.iv.next184, %381 ]
  %382 = phi i32 [ %.pre190, %.lr.ph149 ], [ %416, %381 ]
  %383 = getelementptr inbounds [524289 x %struct.complex], ptr @A, i64 0, i64 %indvars.iv183
  %384 = load double, ptr %383, align 16, !tbaa !24
  %385 = fadd double %384, 5.000000e-01
  %386 = fptosi double %385 to i64
  %387 = getelementptr inbounds i8, ptr %383, i64 8
  %388 = load double, ptr %387, align 8, !tbaa !26
  %389 = fadd double %388, 5.000000e-01
  %390 = fptosi double %389 to i64
  %391 = getelementptr inbounds [524289 x %struct.complex], ptr @B, i64 0, i64 %indvars.iv183
  %392 = load double, ptr %391, align 16, !tbaa !24
  %393 = fadd double %392, 5.000000e-01
  %394 = fptosi double %393 to i64
  %395 = add nsw i64 %394, %390
  %396 = shl i64 %395, 10
  %397 = add nsw i64 %396, %386
  %398 = getelementptr inbounds i8, ptr %391, i64 8
  %399 = load double, ptr %398, align 8, !tbaa !26
  %400 = fadd double %399, 5.000000e-01
  %401 = fptosi double %400 to i64
  %402 = shl i64 %401, 20
  %403 = add nsw i64 %397, %402
  %404 = srem i64 %403, 1000003
  %405 = trunc nsw i64 %404 to i32
  %406 = getelementptr inbounds [400002 x i32], ptr @f, i64 0, i64 %indvars.iv183
  store i32 %405, ptr %406, align 4, !tbaa !5
  %407 = sext i32 %382 to i64
  %408 = sub nsw i64 %307, %indvars.iv183
  %409 = getelementptr inbounds [400002 x i32], ptr @fact, i64 0, i64 %408
  %410 = load i32, ptr %409, align 4, !tbaa !5
  %411 = sext i32 %410 to i64
  %412 = mul nsw i64 %306, %411
  %413 = mul i64 %412, %404
  %414 = add nsw i64 %413, %407
  %415 = srem i64 %414, 1000003
  %416 = trunc nsw i64 %415 to i32
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %wide.trip.count186
  br i1 %exitcond187.not, label %._crit_edge150, label %381, !llvm.loop !27
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN7complex4conjEv(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 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !20}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = !{!25, !21, i64 0}
!25 = !{!"_ZTS7complex", !21, i64 0, !21, i64 8}
!26 = !{!25, !21, i64 8}
!27 = distinct !{!27, !10}


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