; LLVM IR from tangjz/acm-icpc :: hdu (6137)

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

%struct.complex = type { double, double }

@_ZL2pi = external hidden global double, align 8
@w = external dso_local global [65537 x %struct.complex], align 16
@B = external dso_local global [65537 x %struct.complex], align 16
@C = external dso_local global [65537 x %struct.complex], align 16
@D = external dso_local global [65537 x %struct.complex], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@mod = external dso_local global i32, align 4
@p = external dso_local global [7 x i32], align 16
@mx = external dso_local global i32, align 4
@e = external dso_local global [7 x i32], align 16
@pp = external dso_local global i32, align 4
@sz = external dso_local global i32, align 4
@f = external dso_local global [50001 x i32], align 16
@sp = external dso_local global i32, align 4
@msk = external dso_local global i32, align 4
@m = external dso_local global i64, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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 %struct.complex, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %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 i32, align 4
  %21 = alloca i32, align 4
  %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 i64, align 8
  %35 = alloca i32, align 4
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 65536, ptr %3, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %89, %0
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %49 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %49, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = ashr i32 %50, 1
  store i32 %51, ptr %5, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %64, %48
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = and i32 %53, 1
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %61, label %56

56:                                               ; preds = %52
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = and i32 %57, 1
  %59 = icmp ne i32 %58, 0
  %60 = xor i1 %59, true
  br label %61

61:                                               ; preds = %56, %52
  %62 = phi i1 [ false, %52 ], [ %60, %56 ]
  br i1 %62, label %63, label %69

63:                                               ; preds = %61
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = ashr i32 %65, 1
  store i32 %66, ptr %4, align 4, !tbaa !5
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = ashr i32 %67, 1
  store i32 %68, ptr %5, align 4, !tbaa !5
  br label %52, !llvm.loop !9

69:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  %70 = load double, ptr @_ZL2pi, align 8, !tbaa !11
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = sitofp i32 %71 to double
  %73 = fdiv double %70, %72
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = sitofp i32 %74 to double
  %76 = fmul double %73, %75
  %77 = call double @cos(double noundef %76) #8
  %78 = load double, ptr @_ZL2pi, align 8, !tbaa !11
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = sitofp i32 %79 to double
  %81 = fdiv double %78, %80
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sitofp i32 %82 to double
  %84 = fmul double %81, %83
  %85 = call double @sin(double noundef %84) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %77, double noundef %85)
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [65537 x %struct.complex], ptr @w, i64 0, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %88, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %89

89:                                               ; preds = %69
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %2, align 4, !tbaa !5
  br label %43, !llvm.loop !14

92:                                               ; preds = %47
  %93 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %94

94:                                               ; preds = %484, %92
  %95 = load i32, ptr @t, align 4, !tbaa !5
  %96 = add nsw i32 %95, -1
  store i32 %96, ptr @t, align 4, !tbaa !5
  %97 = icmp ne i32 %95, 0
  br i1 %97, label %98, label %490

98:                                               ; preds = %94
  %99 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef @n, ptr noundef @m)
  store i32 0, ptr @mx, align 4, !tbaa !5
  store i32 1, ptr @f, align 16, !tbaa !5
  store i32 1, ptr @sz, align 4, !tbaa !5
  store i32 1, ptr @pp, align 4, !tbaa !5
  store i32 1, ptr @mod, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %116, %98
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = load i32, ptr @n, align 4, !tbaa !5
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

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

105:                                              ; preds = %100
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr @p, i64 %107
  %109 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %108)
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [7 x i32], ptr @p, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = load i32, ptr @mod, align 4, !tbaa !5
  %115 = mul nsw i32 %114, %113
  store i32 %115, ptr @mod, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %105
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !5
  br label %100, !llvm.loop !15

119:                                              ; preds = %104
  store i32 1, ptr @sp, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %127, %119
  %121 = load i32, ptr @sp, align 4, !tbaa !5
  %122 = shl i32 %121, 1
  %123 = shl i32 1, %122
  %124 = load i32, ptr @mod, align 4, !tbaa !5
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %126, label %130

126:                                              ; preds = %120
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr @sp, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr @sp, align 4, !tbaa !5
  br label %120, !llvm.loop !16

130:                                              ; preds = %120
  %131 = load i32, ptr @sp, align 4, !tbaa !5
  %132 = shl i32 1, %131
  %133 = sub nsw i32 %132, 1
  store i32 %133, ptr @msk, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %149, %130
  %135 = load i32, ptr %8, align 4, !tbaa !5
  %136 = load i32, ptr @n, align 4, !tbaa !5
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %152

139:                                              ; preds = %134
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i32, ptr @e, i64 %141
  %143 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %142)
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [7 x i32], ptr @e, i64 0, i64 %145
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @mx, ptr noundef nonnull align 4 dereferenceable(4) %146)
  %148 = load i32, ptr %147, align 4, !tbaa !5
  store i32 %148, ptr @mx, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %139
  %150 = load i32, ptr %8, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %8, align 4, !tbaa !5
  br label %134, !llvm.loop !17

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

153:                                              ; preds = %173, %152
  %154 = load i32, ptr %9, align 4, !tbaa !5
  %155 = load i32, ptr @n, align 4, !tbaa !5
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %176

158:                                              ; preds = %153
  %159 = load i32, ptr %9, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [7 x i32], ptr @e, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr @mx, align 4, !tbaa !5
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %172

165:                                              ; preds = %158
  %166 = load i32, ptr %9, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [7 x i32], ptr @p, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = load i32, ptr @pp, align 4, !tbaa !5
  %171 = mul nsw i32 %170, %169
  store i32 %171, ptr @pp, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %165, %158
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %9, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %9, align 4, !tbaa !5
  br label %153, !llvm.loop !18

176:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %177 = load i64, ptr @m, align 8, !tbaa !19
  %178 = sub nsw i64 %177, 1
  %179 = load i32, ptr @mx, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = sdiv i64 %178, %180
  %182 = add nsw i64 %181, 1
  %183 = trunc i64 %182 to i32
  store i32 %183, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = load i32, ptr @mx, align 4, !tbaa !5
  %186 = mul nsw i32 %184, %185
  %187 = sext i32 %186 to i64
  %188 = load i64, ptr @m, align 8, !tbaa !19
  %189 = sub nsw i64 %187, %188
  %190 = trunc i64 %189 to i32
  store i32 %190, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 15, ptr %12, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %481, %176
  %192 = load i32, ptr %12, align 4, !tbaa !5
  %193 = icmp sge i32 %192, 0
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  store i32 22, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %484

195:                                              ; preds = %191
  %196 = load i32, ptr @sz, align 4, !tbaa !5
  %197 = icmp sgt i32 %196, 1
  br i1 %197, label %201, label %198

198:                                              ; preds = %195
  %199 = load i32, ptr @f, align 16, !tbaa !5
  %200 = icmp sgt i32 %199, 1
  br i1 %200, label %201, label %430

201:                                              ; preds = %198, %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %209, %201
  %203 = load i32, ptr %14, align 4, !tbaa !5
  %204 = load i32, ptr @sz, align 4, !tbaa !5
  %205 = shl i32 %204, 1
  %206 = sub nsw i32 %205, 1
  %207 = icmp slt i32 %203, %206
  br i1 %207, label %208, label %212

208:                                              ; preds = %202
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = shl i32 %210, 1
  store i32 %211, ptr %14, align 4, !tbaa !5
  br label %202, !llvm.loop !21

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

213:                                              ; preds = %242, %212
  %214 = load i32, ptr %15, align 4, !tbaa !5
  %215 = load i32, ptr %14, align 4, !tbaa !5
  %216 = icmp slt i32 %214, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %213
  store i32 28, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %245

218:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %219 = load i32, ptr %15, align 4, !tbaa !5
  %220 = load i32, ptr @sz, align 4, !tbaa !5
  %221 = icmp slt i32 %219, %220
  br i1 %221, label %222, label %237

222:                                              ; preds = %218
  %223 = load i32, ptr %15, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = load i32, ptr @msk, align 4, !tbaa !5
  %228 = and i32 %226, %227
  %229 = sitofp i32 %228 to double
  %230 = load i32, ptr %15, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = load i32, ptr @sp, align 4, !tbaa !5
  %235 = ashr i32 %233, %234
  %236 = sitofp i32 %235 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %229, double noundef %236)
  br label %238

237:                                              ; preds = %218
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %238

238:                                              ; preds = %237, %222
  %239 = load i32, ptr %15, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %240
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %241, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %242

242:                                              ; preds = %238
  %243 = load i32, ptr %15, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %15, align 4, !tbaa !5
  br label %213, !llvm.loop !22

245:                                              ; preds = %217
  %246 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %246, ptr noundef @B, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef 0.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  br label %247

247:                                              ; preds = %337, %245
  %248 = load i32, ptr %20, align 4, !tbaa !5
  %249 = load i32, ptr %14, align 4, !tbaa !5
  %250 = icmp slt i32 %248, %249
  br i1 %250, label %252, label %251

251:                                              ; preds = %247
  store i32 31, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %340

252:                                              ; preds = %247
  %253 = load i32, ptr %14, align 4, !tbaa !5
  %254 = load i32, ptr %20, align 4, !tbaa !5
  %255 = sub nsw i32 %253, %254
  %256 = load i32, ptr %14, align 4, !tbaa !5
  %257 = sub nsw i32 %256, 1
  %258 = and i32 %255, %257
  store i32 %258, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %259 = load i32, ptr %20, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %260
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %262 = load i32, ptr %21, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %263
  %265 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %264)
  %266 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %267 = extractvalue { double, double } %265, 0
  store double %267, ptr %266, align 8
  %268 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %269 = extractvalue { double, double } %265, 1
  store double %269, ptr %268, align 8
  %270 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %261, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %271 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %272 = extractvalue { double, double } %270, 0
  store double %272, ptr %271, align 8
  %273 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %274 = extractvalue { double, double } %270, 1
  store double %274, ptr %273, align 8
  %275 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %276 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %277 = extractvalue { double, double } %275, 0
  store double %277, ptr %276, align 8
  %278 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %279 = extractvalue { double, double } %275, 1
  store double %279, ptr %278, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %280 = load i32, ptr %20, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %281
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %283 = load i32, ptr %21, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %284
  %286 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %285)
  %287 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %288 = extractvalue { double, double } %286, 0
  store double %288, ptr %287, align 8
  %289 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %290 = extractvalue { double, double } %286, 1
  store double %290, ptr %289, align 8
  %291 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %282, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %292 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %293 = extractvalue { double, double } %291, 0
  store double %293, ptr %292, align 8
  %294 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %295 = extractvalue { double, double } %291, 1
  store double %295, ptr %294, align 8
  %296 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %297 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %298 = extractvalue { double, double } %296, 0
  store double %298, ptr %297, align 8
  %299 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %300 = extractvalue { double, double } %296, 1
  store double %300, ptr %299, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %301 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %302 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %303 = extractvalue { double, double } %301, 0
  store double %303, ptr %302, align 8
  %304 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %305 = extractvalue { double, double } %301, 1
  store double %305, ptr %304, align 8
  %306 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %30)
  %307 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %308 = extractvalue { double, double } %306, 0
  store double %308, ptr %307, align 8
  %309 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %310 = extractvalue { double, double } %306, 1
  store double %310, ptr %309, align 8
  %311 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %312 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %313 = extractvalue { double, double } %311, 0
  store double %313, ptr %312, align 8
  %314 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %315 = extractvalue { double, double } %311, 1
  store double %315, ptr %314, align 8
  %316 = load i32, ptr %20, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [65537 x %struct.complex], ptr @C, i64 0, i64 %317
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %318, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %319 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %320 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %321 = extractvalue { double, double } %319, 0
  store double %321, ptr %320, align 8
  %322 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %323 = extractvalue { double, double } %319, 1
  store double %323, ptr %322, align 8
  %324 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %33)
  %325 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %326 = extractvalue { double, double } %324, 0
  store double %326, ptr %325, align 8
  %327 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %328 = extractvalue { double, double } %324, 1
  store double %328, ptr %327, align 8
  %329 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %32)
  %330 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %331 = extractvalue { double, double } %329, 0
  store double %331, ptr %330, align 8
  %332 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %333 = extractvalue { double, double } %329, 1
  store double %333, ptr %332, align 8
  %334 = load i32, ptr %20, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [65537 x %struct.complex], ptr @D, i64 0, i64 %335
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %336, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %337

337:                                              ; preds = %252
  %338 = load i32, ptr %20, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %20, align 4, !tbaa !5
  br label %247, !llvm.loop !23

340:                                              ; preds = %251
  %341 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %341, ptr noundef @C, i32 noundef -1)
  %342 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %342, ptr noundef @D, i32 noundef -1)
  %343 = load i32, ptr @sz, align 4, !tbaa !5
  %344 = shl i32 %343, 1
  %345 = sub nsw i32 %344, 1
  store i32 %345, ptr @sz, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  store i64 0, ptr %34, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %346

346:                                              ; preds = %407, %340
  %347 = load i32, ptr %35, align 4, !tbaa !5
  %348 = load i32, ptr @sz, align 4, !tbaa !5
  %349 = icmp slt i32 %347, %348
  br i1 %349, label %351, label %350

350:                                              ; preds = %346
  store i32 34, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %410

351:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %352 = load i32, ptr %35, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [65537 x %struct.complex], ptr @C, i64 0, i64 %353
  %355 = getelementptr inbounds %struct.complex, ptr %354, i32 0, i32 0
  %356 = load double, ptr %355, align 16, !tbaa !24
  %357 = fadd double %356, 5.000000e-01
  %358 = fptosi double %357 to i64
  store i64 %358, ptr %36, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %359 = load i32, ptr %35, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [65537 x %struct.complex], ptr @C, i64 0, i64 %360
  %362 = getelementptr inbounds %struct.complex, ptr %361, i32 0, i32 1
  %363 = load double, ptr %362, align 8, !tbaa !26
  %364 = fadd double %363, 5.000000e-01
  %365 = fptosi double %364 to i64
  store i64 %365, ptr %37, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %366 = load i32, ptr %35, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [65537 x %struct.complex], ptr @D, i64 0, i64 %367
  %369 = getelementptr inbounds %struct.complex, ptr %368, i32 0, i32 0
  %370 = load double, ptr %369, align 16, !tbaa !24
  %371 = fadd double %370, 5.000000e-01
  %372 = fptosi double %371 to i64
  store i64 %372, ptr %38, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %373 = load i32, ptr %35, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [65537 x %struct.complex], ptr @D, i64 0, i64 %374
  %376 = getelementptr inbounds %struct.complex, ptr %375, i32 0, i32 1
  %377 = load double, ptr %376, align 8, !tbaa !26
  %378 = fadd double %377, 5.000000e-01
  %379 = fptosi double %378 to i64
  store i64 %379, ptr %39, align 8, !tbaa !19
  %380 = load i64, ptr %39, align 8, !tbaa !19
  %381 = load i32, ptr @sp, align 4, !tbaa !5
  %382 = zext i32 %381 to i64
  %383 = shl i64 %380, %382
  %384 = load i64, ptr %37, align 8, !tbaa !19
  %385 = add nsw i64 %383, %384
  %386 = load i64, ptr %38, align 8, !tbaa !19
  %387 = add nsw i64 %385, %386
  %388 = load i32, ptr @sp, align 4, !tbaa !5
  %389 = zext i32 %388 to i64
  %390 = shl i64 %387, %389
  %391 = load i64, ptr %36, align 8, !tbaa !19
  %392 = add nsw i64 %390, %391
  %393 = load i64, ptr %34, align 8, !tbaa !19
  %394 = add nsw i64 %393, %392
  store i64 %394, ptr %34, align 8, !tbaa !19
  %395 = load i64, ptr %34, align 8, !tbaa !19
  %396 = load i32, ptr @mod, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = srem i64 %395, %397
  %399 = trunc i64 %398 to i32
  %400 = load i32, ptr %35, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %401
  store i32 %399, ptr %402, align 4, !tbaa !5
  %403 = load i32, ptr @mod, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = load i64, ptr %34, align 8, !tbaa !19
  %406 = sdiv i64 %405, %404
  store i64 %406, ptr %34, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %407

407:                                              ; preds = %351
  %408 = load i32, ptr %35, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr %35, align 4, !tbaa !5
  br label %346, !llvm.loop !27

410:                                              ; preds = %350
  br label %411

411:                                              ; preds = %424, %410
  %412 = load i64, ptr %34, align 8, !tbaa !19
  %413 = icmp sgt i64 %412, 0
  br i1 %413, label %414, label %429

414:                                              ; preds = %411
  %415 = load i64, ptr %34, align 8, !tbaa !19
  %416 = load i32, ptr @mod, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = srem i64 %415, %417
  %419 = trunc i64 %418 to i32
  %420 = load i32, ptr @sz, align 4, !tbaa !5
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr @sz, align 4, !tbaa !5
  %422 = sext i32 %420 to i64
  %423 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %422
  store i32 %419, ptr %423, align 4, !tbaa !5
  br label %424

424:                                              ; preds = %414
  %425 = load i32, ptr @mod, align 4, !tbaa !5
  %426 = sext i32 %425 to i64
  %427 = load i64, ptr %34, align 8, !tbaa !19
  %428 = sdiv i64 %427, %426
  store i64 %428, ptr %34, align 8, !tbaa !19
  br label %411, !llvm.loop !28

429:                                              ; preds = %411
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %430

430:                                              ; preds = %429, %198
  %431 = load i32, ptr %10, align 4, !tbaa !5
  %432 = load i32, ptr %12, align 4, !tbaa !5
  %433 = ashr i32 %431, %432
  %434 = and i32 %433, 1
  %435 = icmp ne i32 %434, 0
  br i1 %435, label %436, label %480

436:                                              ; preds = %430
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 0, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %437

437:                                              ; preds = %467, %436
  %438 = load i32, ptr %41, align 4, !tbaa !5
  %439 = load i32, ptr @sz, align 4, !tbaa !5
  %440 = icmp slt i32 %438, %439
  br i1 %440, label %442, label %441

441:                                              ; preds = %437
  store i32 40, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %470

442:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %443 = load i32, ptr %41, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %444
  %446 = load i32, ptr %445, align 4, !tbaa !5
  %447 = sext i32 %446 to i64
  %448 = load i32, ptr @pp, align 4, !tbaa !5
  %449 = sext i32 %448 to i64
  %450 = mul nsw i64 %447, %449
  %451 = load i32, ptr %40, align 4, !tbaa !5
  %452 = sext i32 %451 to i64
  %453 = add nsw i64 %450, %452
  store i64 %453, ptr %42, align 8, !tbaa !19
  %454 = load i64, ptr %42, align 8, !tbaa !19
  %455 = load i32, ptr @mod, align 4, !tbaa !5
  %456 = sext i32 %455 to i64
  %457 = srem i64 %454, %456
  %458 = trunc i64 %457 to i32
  %459 = load i32, ptr %41, align 4, !tbaa !5
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %460
  store i32 %458, ptr %461, align 4, !tbaa !5
  %462 = load i64, ptr %42, align 8, !tbaa !19
  %463 = load i32, ptr @mod, align 4, !tbaa !5
  %464 = sext i32 %463 to i64
  %465 = sdiv i64 %462, %464
  %466 = trunc i64 %465 to i32
  store i32 %466, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %467

467:                                              ; preds = %442
  %468 = load i32, ptr %41, align 4, !tbaa !5
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %41, align 4, !tbaa !5
  br label %437, !llvm.loop !29

470:                                              ; preds = %441
  %471 = load i32, ptr %40, align 4, !tbaa !5
  %472 = icmp ne i32 %471, 0
  br i1 %472, label %473, label %479

473:                                              ; preds = %470
  %474 = load i32, ptr %40, align 4, !tbaa !5
  %475 = load i32, ptr @sz, align 4, !tbaa !5
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr @sz, align 4, !tbaa !5
  %477 = sext i32 %475 to i64
  %478 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %477
  store i32 %474, ptr %478, align 4, !tbaa !5
  br label %479

479:                                              ; preds = %473, %470
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %480

480:                                              ; preds = %479, %430
  br label %481

481:                                              ; preds = %480
  %482 = load i32, ptr %12, align 4, !tbaa !5
  %483 = add nsw i32 %482, -1
  store i32 %483, ptr %12, align 4, !tbaa !5
  br label %191, !llvm.loop !30

484:                                              ; preds = %194
  %485 = load i32, ptr %11, align 4, !tbaa !5
  %486 = sext i32 %485 to i64
  %487 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %486
  %488 = load i32, ptr %487, align 4, !tbaa !5
  %489 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %488)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %94, !llvm.loop !31

490:                                              ; preds = %94
  ret i32 0
}

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

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

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

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

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

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

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

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

!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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{!20, !20, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = !{!25, !12, i64 0}
!25 = !{!"_ZTS7complex", !12, i64 0, !12, i64 8}
!26 = !{!25, !12, i64 8}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !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 }

@_ZL2pi = external hidden local_unnamed_addr global double, align 8
@w = external dso_local local_unnamed_addr global [65537 x %struct.complex], align 16
@B = external dso_local global [65537 x %struct.complex], align 16
@C = external dso_local global [65537 x %struct.complex], align 16
@D = external dso_local global [65537 x %struct.complex], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@mod = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local global [7 x i32], align 16
@mx = external dso_local global i32, align 4
@e = external dso_local global [7 x i32], align 16
@pp = external dso_local local_unnamed_addr global i32, align 4
@sz = external dso_local local_unnamed_addr global i32, align 4
@f = external dso_local local_unnamed_addr global [50001 x i32], align 16
@sp = external dso_local local_unnamed_addr global i32, align 4
@msk = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local global i64, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca %struct.complex, align 8
  %2 = alloca %struct.complex, align 8
  %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
  br label %.preheader108

.preheader108:                                    ; preds = %0, %._crit_edge
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %._crit_edge ]
  %16 = trunc nuw nsw i64 %indvars.iv to i32
  %17 = and i32 %16, 1
  %.not101110 = icmp eq i32 %17, 0
  br i1 %.not101110, label %.lr.ph, label %._crit_edge

18:                                               ; preds = %._crit_edge
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %20 = load i32, ptr @t, align 4, !tbaa !5
  %21 = add nsw i32 %20, -1
  store i32 %21, ptr @t, align 4, !tbaa !5
  %.not149 = icmp eq i32 %20, 0
  br i1 %.not149, label %._crit_edge152, label %.lr.ph151

.lr.ph151:                                        ; preds = %18
  %22 = getelementptr inbounds i8, ptr %8, i64 8
  %23 = getelementptr inbounds i8, ptr %7, i64 8
  %24 = getelementptr inbounds i8, ptr %6, i64 8
  %25 = getelementptr inbounds i8, ptr %11, i64 8
  %26 = getelementptr inbounds i8, ptr %10, i64 8
  %27 = getelementptr inbounds i8, ptr %9, i64 8
  %28 = getelementptr inbounds i8, ptr %13, i64 8
  %29 = getelementptr inbounds i8, ptr %12, i64 8
  %30 = getelementptr inbounds i8, ptr %15, i64 8
  %31 = getelementptr inbounds i8, ptr %14, i64 8
  br label %48

.lr.ph:                                           ; preds = %.preheader108, %.lr.ph
  %.087112 = phi i32 [ %32, %.lr.ph ], [ %16, %.preheader108 ]
  %.088111 = phi i32 [ %33, %.lr.ph ], [ 32768, %.preheader108 ]
  %32 = lshr exact i32 %.087112, 1
  %33 = lshr exact i32 %.088111, 1
  %34 = and i32 %.087112, 2
  %.not101 = icmp eq i32 %34, 0
  %35 = and i32 %.088111, 2
  %.not102 = icmp eq i32 %35, 0
  %36 = select i1 %.not101, i1 %.not102, i1 false
  br i1 %36, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.preheader108
  %.088.lcssa = phi i32 [ 32768, %.preheader108 ], [ %33, %.lr.ph ]
  %.087.lcssa = phi i32 [ %16, %.preheader108 ], [ %32, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  %37 = load double, ptr @_ZL2pi, align 8, !tbaa !11
  %38 = uitofp nneg i32 %.088.lcssa to double
  %39 = fdiv double %37, %38
  %40 = uitofp nneg i32 %.087.lcssa to double
  %41 = fmul double %39, %40
  %42 = call double @cos(double noundef %41) #8
  %43 = load double, ptr @_ZL2pi, align 8, !tbaa !11
  %44 = fdiv double %43, %38
  %45 = fmul double %44, %40
  %46 = call double @sin(double noundef %45) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %42, double noundef %46)
  %47 = getelementptr inbounds [65537 x %struct.complex], ptr @w, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 65536
  br i1 %exitcond.not, label %18, label %.preheader108, !llvm.loop !14

48:                                               ; preds = %.lr.ph151, %113
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull @n, ptr noundef nonnull @m)
  store i32 0, ptr @mx, align 4, !tbaa !5
  store i32 1, ptr @f, align 16, !tbaa !5
  store i32 1, ptr @sz, align 4, !tbaa !5
  store i32 1, ptr @pp, align 4, !tbaa !5
  store i32 1, ptr @mod, align 4, !tbaa !5
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph117, label %.preheader107

.preheader107:                                    ; preds = %.lr.ph117, %48
  %52 = phi i32 [ %50, %48 ], [ %59, %.lr.ph117 ]
  %53 = phi i32 [ 1, %48 ], [ %58, %.lr.ph117 ]
  br label %62

.lr.ph117:                                        ; preds = %48, %.lr.ph117
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %.lr.ph117 ], [ 0, %48 ]
  %54 = getelementptr inbounds i32, ptr @p, i64 %indvars.iv160
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %54)
  %56 = load i32, ptr %54, align 4, !tbaa !5
  %57 = load i32, ptr @mod, align 4, !tbaa !5
  %58 = mul nsw i32 %57, %56
  store i32 %58, ptr @mod, align 4, !tbaa !5
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next161, %60
  br i1 %61, label %.lr.ph117, label %.preheader107, !llvm.loop !15

62:                                               ; preds = %62, %.preheader107
  %storemerge = phi i32 [ %66, %62 ], [ 1, %.preheader107 ]
  %63 = shl nuw i32 %storemerge, 1
  %64 = shl nuw i32 1, %63
  %65 = icmp slt i32 %64, %53
  %66 = add nuw nsw i32 %storemerge, 1
  br i1 %65, label %62, label %67, !llvm.loop !16

67:                                               ; preds = %62
  store i32 %storemerge, ptr @sp, align 4, !tbaa !5
  %notmask = shl nsw i32 -1, %storemerge
  %68 = xor i32 %notmask, -1
  store i32 %68, ptr @msk, align 4, !tbaa !5
  %69 = icmp sgt i32 %52, 0
  br i1 %69, label %.lr.ph121, label %.preheader106.thread

.preheader106.thread:                             ; preds = %67
  %.pre.pre = load i32, ptr @mx, align 4, !tbaa !5
  br label %._crit_edge125

.preheader106:                                    ; preds = %.lr.ph121
  %70 = icmp sgt i32 %76, 0
  br i1 %70, label %.lr.ph124, label %._crit_edge125

.lr.ph124:                                        ; preds = %.preheader106
  %pp.promoted = load i32, ptr @pp, align 4, !tbaa !5
  %wide.trip.count = zext nneg i32 %76 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %71 = icmp eq i32 %76, 1
  br i1 %71, label %._crit_edge125.loopexit.unr-lcssa, label %.lr.ph124.new

.lr.ph124.new:                                    ; preds = %.lr.ph124
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %93

.lr.ph121:                                        ; preds = %67, %.lr.ph121
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %.lr.ph121 ], [ 0, %67 ]
  %72 = getelementptr inbounds i32, ptr @e, i64 %indvars.iv163
  %73 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %72)
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @mx, ptr noundef nonnull align 4 dereferenceable(4) %72)
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr @mx, align 4, !tbaa !5
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %76 = load i32, ptr @n, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %indvars.iv.next164, %77
  br i1 %78, label %.lr.ph121, label %.preheader106, !llvm.loop !17

._crit_edge125.loopexit.unr-lcssa:                ; preds = %111, %.lr.ph124
  %indvars.iv166.unr = phi i64 [ 0, %.lr.ph124 ], [ %indvars.iv.next167.1, %111 ]
  %.unr = phi i32 [ %pp.promoted, %.lr.ph124 ], [ %112, %111 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge125, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge125.loopexit.unr-lcssa
  %79 = getelementptr inbounds [7 x i32], ptr @e, i64 0, i64 %indvars.iv166.unr
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = icmp slt i32 %80, %75
  br i1 %81, label %82, label %._crit_edge125

82:                                               ; preds = %.epil.preheader
  %83 = getelementptr inbounds [7 x i32], ptr @p, i64 0, i64 %indvars.iv166.unr
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = mul nsw i32 %.unr, %84
  store i32 %85, ptr @pp, align 4, !tbaa !5
  br label %._crit_edge125

._crit_edge125:                                   ; preds = %._crit_edge125.loopexit.unr-lcssa, %82, %.epil.preheader, %.preheader106.thread, %.preheader106
  %.pre198 = phi i32 [ %.pre.pre, %.preheader106.thread ], [ %75, %.preheader106 ], [ %75, %.epil.preheader ], [ %75, %82 ], [ %75, %._crit_edge125.loopexit.unr-lcssa ]
  %86 = load i64, ptr @m, align 8, !tbaa !18
  %87 = add nsw i64 %86, -1
  %88 = sext i32 %.pre198 to i64
  %89 = sdiv i64 %87, %88
  %90 = trunc i64 %89 to i32
  %91 = add i32 %90, 1
  %92 = trunc i64 %86 to i32
  %.pre193 = load i32, ptr @sz, align 4, !tbaa !5
  br label %122

93:                                               ; preds = %111, %.lr.ph124.new
  %indvars.iv166 = phi i64 [ 0, %.lr.ph124.new ], [ %indvars.iv.next167.1, %111 ]
  %94 = phi i32 [ %pp.promoted, %.lr.ph124.new ], [ %112, %111 ]
  %niter = phi i64 [ 0, %.lr.ph124.new ], [ %niter.next.1, %111 ]
  %95 = getelementptr inbounds [7 x i32], ptr @e, i64 0, i64 %indvars.iv166
  %96 = load i32, ptr %95, align 8, !tbaa !5
  %97 = icmp slt i32 %96, %75
  br i1 %97, label %98, label %102

98:                                               ; preds = %93
  %99 = getelementptr inbounds [7 x i32], ptr @p, i64 0, i64 %indvars.iv166
  %100 = load i32, ptr %99, align 8, !tbaa !5
  %101 = mul nsw i32 %94, %100
  store i32 %101, ptr @pp, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %93, %98
  %103 = phi i32 [ %94, %93 ], [ %101, %98 ]
  %indvars.iv.next167 = or disjoint i64 %indvars.iv166, 1
  %104 = getelementptr inbounds [7 x i32], ptr @e, i64 0, i64 %indvars.iv.next167
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = icmp slt i32 %105, %75
  br i1 %106, label %107, label %111

107:                                              ; preds = %102
  %108 = getelementptr inbounds [7 x i32], ptr @p, i64 0, i64 %indvars.iv.next167
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = mul nsw i32 %103, %109
  store i32 %110, ptr @pp, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %107, %102
  %112 = phi i32 [ %103, %102 ], [ %110, %107 ]
  %indvars.iv.next167.1 = add nuw nsw i64 %indvars.iv166, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge125.loopexit.unr-lcssa, label %93, !llvm.loop !20

113:                                              ; preds = %._crit_edge145.thread
  %114 = mul nsw i32 %91, %.pre198
  %115 = sub i32 %114, %92
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %118)
  %120 = load i32, ptr @t, align 4, !tbaa !5
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %120, 0
  br i1 %.not, label %._crit_edge152, label %48, !llvm.loop !21

122:                                              ; preds = %._crit_edge125, %._crit_edge145.thread
  %123 = phi i32 [ %.pre193, %._crit_edge125 ], [ %267, %._crit_edge145.thread ]
  %124 = phi i32 [ %.pre193, %._crit_edge125 ], [ %268, %._crit_edge145.thread ]
  %.094148 = phi i32 [ 15, %._crit_edge125 ], [ %269, %._crit_edge145.thread ]
  %125 = icmp sgt i32 %124, 1
  %126 = load i32, ptr @f, align 16
  %127 = icmp sgt i32 %126, 1
  %or.cond = select i1 %125, i1 true, i1 %127
  br i1 %or.cond, label %.preheader105, label %242

.preheader105:                                    ; preds = %122
  %128 = shl i32 %124, 1
  %129 = add nsw i32 %128, -1
  br label %130

130:                                              ; preds = %130, %.preheader105
  %.095 = phi i32 [ %132, %130 ], [ 1, %.preheader105 ]
  %131 = icmp slt i32 %.095, %129
  %132 = shl i32 %.095, 1
  br i1 %131, label %130, label %.preheader104, !llvm.loop !22

.preheader104:                                    ; preds = %130
  %133 = icmp sgt i32 %.095, 0
  br i1 %133, label %.lr.ph127.preheader, label %._crit_edge132.critedge

.lr.ph127.preheader:                              ; preds = %.preheader104
  %wide.trip.count173 = zext nneg i32 %.095 to i64
  br label %.lr.ph127

._crit_edge128:                                   ; preds = %148
  call void @_Z3FFTiP7complexi(i32 noundef %.095, ptr noundef nonnull @B, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 0.000000e+00, double noundef 1.000000e+00)
  br i1 %133, label %.lr.ph131, label %._crit_edge132

.lr.ph131:                                        ; preds = %._crit_edge128
  %134 = add nsw i32 %.095, -1
  %wide.trip.count178 = zext nneg i32 %.095 to i64
  br label %158

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %148
  %indvars.iv170 = phi i64 [ 0, %.lr.ph127.preheader ], [ %indvars.iv.next171, %148 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  %135 = load i32, ptr @sz, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = icmp slt i64 %indvars.iv170, %136
  br i1 %137, label %138, label %147

138:                                              ; preds = %.lr.ph127
  %139 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %indvars.iv170
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = load i32, ptr @msk, align 4, !tbaa !5
  %142 = and i32 %141, %140
  %143 = sitofp i32 %142 to double
  %144 = load i32, ptr @sp, align 4, !tbaa !5
  %145 = ashr i32 %140, %144
  %146 = sitofp i32 %145 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %2, double noundef %143, double noundef %146)
  br label %148

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

148:                                              ; preds = %147, %138
  %149 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %indvars.iv170
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %149, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond174.not = icmp eq i64 %indvars.iv.next171, %wide.trip.count173
  br i1 %exitcond174.not, label %._crit_edge128, label %.lr.ph127, !llvm.loop !23

._crit_edge132.critedge:                          ; preds = %.preheader104
  call void @_Z3FFTiP7complexi(i32 noundef %.095, ptr noundef nonnull @B, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 0.000000e+00, double noundef 1.000000e+00)
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %158, %._crit_edge132.critedge, %._crit_edge128
  call void @_Z3FFTiP7complexi(i32 noundef %.095, ptr noundef nonnull @C, i32 noundef -1)
  call void @_Z3FFTiP7complexi(i32 noundef %.095, ptr noundef nonnull @D, i32 noundef -1)
  %150 = load i32, ptr @sz, align 4, !tbaa !5
  %151 = shl i32 %150, 1
  %152 = add i32 %151, -1
  store i32 %152, ptr @sz, align 4, !tbaa !5
  %153 = icmp sgt i32 %151, 1
  br i1 %153, label %.lr.ph136, label %.preheader103.thread

.lr.ph136:                                        ; preds = %._crit_edge132
  %154 = load i32, ptr @sp, align 4, !tbaa !5
  %155 = zext i32 %154 to i64
  %156 = load i32, ptr @mod, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %wide.trip.count183 = zext nneg i32 %152 to i64
  br label %207

158:                                              ; preds = %.lr.ph131, %158
  %indvars.iv175 = phi i64 [ 0, %.lr.ph131 ], [ %indvars.iv.next176, %158 ]
  %159 = trunc i64 %indvars.iv175 to i32
  %160 = sub i32 %.095, %159
  %161 = and i32 %160, %134
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %162 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %indvars.iv175
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %163 = sext i32 %161 to i64
  %164 = getelementptr inbounds [65537 x %struct.complex], ptr @B, i64 0, i64 %163
  %165 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %164)
  %166 = extractvalue { double, double } %165, 0
  store double %166, ptr %8, align 8
  %167 = extractvalue { double, double } %165, 1
  store double %167, ptr %22, align 8
  %168 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %162, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %169 = extractvalue { double, double } %168, 0
  store double %169, ptr %7, align 8
  %170 = extractvalue { double, double } %168, 1
  store double %170, ptr %23, align 8
  %171 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %172 = extractvalue { double, double } %171, 0
  store double %172, ptr %6, align 8
  %173 = extractvalue { double, double } %171, 1
  store double %173, ptr %24, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %174 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %164)
  %175 = extractvalue { double, double } %174, 0
  store double %175, ptr %11, align 8
  %176 = extractvalue { double, double } %174, 1
  store double %176, ptr %25, align 8
  %177 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %162, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %178 = extractvalue { double, double } %177, 0
  store double %178, ptr %10, align 8
  %179 = extractvalue { double, double } %177, 1
  store double %179, ptr %26, align 8
  %180 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %181 = extractvalue { double, double } %180, 0
  store double %181, ptr %9, align 8
  %182 = extractvalue { double, double } %180, 1
  store double %182, ptr %27, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %183 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %184 = extractvalue { double, double } %183, 0
  store double %184, ptr %13, align 8
  %185 = extractvalue { double, double } %183, 1
  store double %185, ptr %28, align 8
  %186 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %187 = extractvalue { double, double } %186, 0
  store double %187, ptr %12, align 8
  %188 = extractvalue { double, double } %186, 1
  store double %188, ptr %29, align 8
  %189 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %190 = extractvalue { double, double } %189, 0
  %191 = extractvalue { double, double } %189, 1
  %192 = getelementptr inbounds [65537 x %struct.complex], ptr @C, i64 0, i64 %indvars.iv175
  store double %190, ptr %192, align 16, !tbaa !11
  %.sroa.428.0..sroa_idx = getelementptr inbounds i8, ptr %192, i64 8
  store double %191, ptr %.sroa.428.0..sroa_idx, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  %193 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %194 = extractvalue { double, double } %193, 0
  store double %194, ptr %15, align 8
  %195 = extractvalue { double, double } %193, 1
  store double %195, ptr %30, align 8
  %196 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %197 = extractvalue { double, double } %196, 0
  store double %197, ptr %14, align 8
  %198 = extractvalue { double, double } %196, 1
  store double %198, ptr %31, align 8
  %199 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %200 = extractvalue { double, double } %199, 0
  %201 = extractvalue { double, double } %199, 1
  %202 = getelementptr inbounds [65537 x %struct.complex], ptr @D, i64 0, i64 %indvars.iv175
  store double %200, ptr %202, align 16, !tbaa !11
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %202, i64 8
  store double %201, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %wide.trip.count178
  br i1 %exitcond179.not, label %._crit_edge132, label %158, !llvm.loop !24

.preheader103:                                    ; preds = %207
  %203 = icmp sgt i64 %233, 0
  br i1 %203, label %.lr.ph139, label %.preheader103.thread

.lr.ph139:                                        ; preds = %.preheader103
  %204 = load i32, ptr @mod, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = sext i32 %152 to i64
  br label %234

207:                                              ; preds = %.lr.ph136, %207
  %indvars.iv180 = phi i64 [ 0, %.lr.ph136 ], [ %indvars.iv.next181, %207 ]
  %.092133 = phi i64 [ 0, %.lr.ph136 ], [ %233, %207 ]
  %208 = getelementptr inbounds [65537 x %struct.complex], ptr @C, i64 0, i64 %indvars.iv180
  %209 = load double, ptr %208, align 16, !tbaa !25
  %210 = fadd double %209, 5.000000e-01
  %211 = fptosi double %210 to i64
  %212 = getelementptr inbounds i8, ptr %208, i64 8
  %213 = load double, ptr %212, align 8, !tbaa !27
  %214 = fadd double %213, 5.000000e-01
  %215 = fptosi double %214 to i64
  %216 = getelementptr inbounds [65537 x %struct.complex], ptr @D, i64 0, i64 %indvars.iv180
  %217 = load double, ptr %216, align 16, !tbaa !25
  %218 = fadd double %217, 5.000000e-01
  %219 = fptosi double %218 to i64
  %220 = getelementptr inbounds i8, ptr %216, i64 8
  %221 = load double, ptr %220, align 8, !tbaa !27
  %222 = fadd double %221, 5.000000e-01
  %223 = fptosi double %222 to i64
  %224 = shl i64 %223, %155
  %225 = add i64 %219, %215
  %226 = add i64 %225, %224
  %227 = shl i64 %226, %155
  %228 = add i64 %.092133, %211
  %229 = add i64 %228, %227
  %230 = srem i64 %229, %157
  %231 = trunc nsw i64 %230 to i32
  %232 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %indvars.iv180
  store i32 %231, ptr %232, align 4, !tbaa !5
  %233 = sdiv i64 %229, %157
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %exitcond184.not = icmp eq i64 %indvars.iv.next181, %wide.trip.count183
  br i1 %exitcond184.not, label %.preheader103, label %207, !llvm.loop !28

234:                                              ; preds = %.lr.ph139, %234
  %indvars.iv185 = phi i64 [ %206, %.lr.ph139 ], [ %indvars.iv.next186, %234 ]
  %.1138 = phi i64 [ %233, %.lr.ph139 ], [ %238, %234 ]
  %235 = srem i64 %.1138, %205
  %236 = trunc nuw nsw i64 %235 to i32
  %indvars.iv.next186 = add nsw i64 %indvars.iv185, 1
  %237 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %indvars.iv185
  store i32 %236, ptr %237, align 4, !tbaa !5
  %238 = sdiv i64 %.1138, %205
  %239 = icmp sgt i64 %238, 0
  br i1 %239, label %234, label %._crit_edge140, !llvm.loop !29

._crit_edge140:                                   ; preds = %234
  %240 = trunc nsw i64 %indvars.iv.next186 to i32
  store i32 %240, ptr @sz, align 4, !tbaa !5
  br label %.preheader103.thread

.preheader103.thread:                             ; preds = %._crit_edge132, %._crit_edge140, %.preheader103
  %241 = phi i32 [ %240, %._crit_edge140 ], [ %152, %.preheader103 ], [ %152, %._crit_edge132 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %242

242:                                              ; preds = %122, %.preheader103.thread
  %243 = phi i32 [ %123, %122 ], [ %241, %.preheader103.thread ]
  %244 = phi i32 [ %124, %122 ], [ %241, %.preheader103.thread ]
  %245 = shl nuw i32 1, %.094148
  %246 = and i32 %245, %91
  %.not99 = icmp eq i32 %246, 0
  br i1 %.not99, label %._crit_edge145.thread, label %.preheader

.preheader:                                       ; preds = %242
  %247 = icmp sgt i32 %243, 0
  br i1 %247, label %.lr.ph144, label %._crit_edge145.thread

.lr.ph144:                                        ; preds = %.preheader
  %248 = load i32, ptr @pp, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = load i32, ptr @mod, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %wide.trip.count191 = zext nneg i32 %243 to i64
  br label %253

._crit_edge145:                                   ; preds = %253
  %252 = trunc i64 %262 to i32
  %.not100 = icmp eq i32 %252, 0
  br i1 %.not100, label %._crit_edge145.thread, label %263

253:                                              ; preds = %.lr.ph144, %253
  %indvars.iv188 = phi i64 [ 0, %.lr.ph144 ], [ %indvars.iv.next189, %253 ]
  %.086142 = phi i64 [ 0, %.lr.ph144 ], [ %262, %253 ]
  %254 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %indvars.iv188
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = mul nsw i64 %249, %256
  %sext = shl i64 %.086142, 32
  %258 = ashr exact i64 %sext, 32
  %259 = add nsw i64 %257, %258
  %260 = srem i64 %259, %251
  %261 = trunc nsw i64 %260 to i32
  store i32 %261, ptr %254, align 4, !tbaa !5
  %262 = sdiv i64 %259, %251
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next189, %wide.trip.count191
  br i1 %exitcond192.not, label %._crit_edge145, label %253, !llvm.loop !30

263:                                              ; preds = %._crit_edge145
  %264 = add nuw nsw i32 %243, 1
  store i32 %264, ptr @sz, align 4, !tbaa !5
  %265 = zext nneg i32 %243 to i64
  %266 = getelementptr inbounds [50001 x i32], ptr @f, i64 0, i64 %265
  store i32 %252, ptr %266, align 4, !tbaa !5
  br label %._crit_edge145.thread

._crit_edge145.thread:                            ; preds = %.preheader, %._crit_edge145, %263, %242
  %267 = phi i32 [ %243, %._crit_edge145 ], [ %264, %263 ], [ %243, %242 ], [ %243, %.preheader ]
  %268 = phi i32 [ %243, %._crit_edge145 ], [ %264, %263 ], [ %244, %242 ], [ %243, %.preheader ]
  %269 = add nsw i32 %.094148, -1
  %.not195 = icmp eq i32 %.094148, 0
  br i1 %.not195, label %113, label %122, !llvm.loop !31

._crit_edge152:                                   ; preds = %113, %18
  ret i32 0
}

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

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

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

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

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

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

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

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

!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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = !{!26, !12, i64 0}
!26 = !{!"_ZTS7complex", !12, i64 0, !12, i64 8}
!27 = !{!26, !12, i64 8}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}


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