; LLVM IR from tangjz/acm-icpc :: TDL_training/2015-11-15/upsolved (G - Cipher Message 3 - lzy)

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

%"class.std::complex" = type { { double, double } }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@sum = external dso_local global i32, align 4
@a = external dso_local global [250009 x i32], align 16
@_a = external dso_local global [250009 x i32], align 16
@b = external dso_local global [250009 x i32], align 16
@_b = external dso_local global [250009 x i32], align 16
@A = external dso_local global [1000009 x %"class.std::complex"], align 16
@B = external dso_local global [1000009 x %"class.std::complex"], align 16
@f = external dso_local global [500009 x i32], align 16
@g = external dso_local global [500009 x i32], align 16
@s = external dso_local global [250009 x i32], align 16
@t = external dso_local global [250009 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) #2 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %68, %0
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %71

31:                                               ; preds = %26
  %32 = call i32 @getchar()
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 7, ptr %4, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %49, %31
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %52

37:                                               ; preds = %33
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [250009 x i32], ptr @s, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = mul nsw i32 %41, 2
  %43 = call i32 @getchar()
  %44 = add nsw i32 %42, %43
  %45 = sub nsw i32 %44, 48
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [250009 x i32], ptr @s, i64 0, i64 %47
  store i32 %45, ptr %48, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %37
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = add nsw i32 %50, -1
  store i32 %51, ptr %4, align 4, !tbaa !5
  br label %33, !llvm.loop !9

52:                                               ; preds = %36
  %53 = call i32 @getchar()
  %54 = sub nsw i32 %53, 48
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [250009 x i32], ptr @a, i64 0, i64 %56
  store i32 %54, ptr %57, align 4, !tbaa !5
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [250009 x i32], ptr @a, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = icmp ne i32 %61, 0
  %63 = xor i1 %62, true
  %64 = zext i1 %63 to i32
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [250009 x i32], ptr @_a, i64 0, i64 %66
  store i32 %64, ptr %67, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %52
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %2, align 4, !tbaa !5
  br label %26, !llvm.loop !11

71:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %114, %71
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = load i32, ptr @m, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %117

77:                                               ; preds = %72
  %78 = call i32 @getchar()
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 7, ptr %6, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %95, %77
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %98

83:                                               ; preds = %79
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = mul nsw i32 %87, 2
  %89 = call i32 @getchar()
  %90 = add nsw i32 %88, %89
  %91 = sub nsw i32 %90, 48
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %93
  store i32 %91, ptr %94, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %83
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = add nsw i32 %96, -1
  store i32 %97, ptr %6, align 4, !tbaa !5
  br label %79, !llvm.loop !12

98:                                               ; preds = %82
  %99 = call i32 @getchar()
  %100 = sub nsw i32 %99, 48
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [250009 x i32], ptr @b, i64 0, i64 %102
  store i32 %100, ptr %103, align 4, !tbaa !5
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [250009 x i32], ptr @b, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = icmp ne i32 %107, 0
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i32
  %111 = load i32, ptr %5, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [250009 x i32], ptr @_b, i64 0, i64 %112
  store i32 %110, ptr %113, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %98
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %5, align 4, !tbaa !5
  br label %72, !llvm.loop !13

117:                                              ; preds = %76
  %118 = load i32, ptr @m, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr @b, i64 %119
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @b, ptr noundef %120)
  %121 = load i32, ptr @m, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr @_b, i64 %122
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @_b, ptr noundef %123)
  %124 = load i32, ptr @m, align 4, !tbaa !5
  %125 = load i32, ptr @n, align 4, !tbaa !5
  %126 = add nsw i32 %124, %125
  %127 = sub nsw i32 %126, 1
  store i32 %127, ptr @sum, align 4, !tbaa !5
  store i32 1, ptr @l, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %133, %117
  %129 = load i32, ptr @l, align 4, !tbaa !5
  %130 = load i32, ptr @sum, align 4, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %132, label %136

132:                                              ; preds = %128
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr @l, align 4, !tbaa !5
  %135 = shl i32 %134, 1
  store i32 %135, ptr @l, align 4, !tbaa !5
  br label %128, !llvm.loop !14

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

137:                                              ; preds = %152, %136
  %138 = load i32, ptr %7, align 4, !tbaa !5
  %139 = load i32, ptr @n, align 4, !tbaa !5
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %155

142:                                              ; preds = %137
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [250009 x i32], ptr @a, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = sitofp i32 %146 to double
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %149
  %151 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %150, double noundef %147)
  br label %152

152:                                              ; preds = %142
  %153 = load i32, ptr %7, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %7, align 4, !tbaa !5
  br label %137, !llvm.loop !15

155:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %156 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %156, ptr %8, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %167, %155
  %158 = load i32, ptr %8, align 4, !tbaa !5
  %159 = load i32, ptr @l, align 4, !tbaa !5
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %157
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %170

162:                                              ; preds = %157
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %164
  %166 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %165, double noundef 0.000000e+00)
  br label %167

167:                                              ; preds = %162
  %168 = load i32, ptr %8, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %8, align 4, !tbaa !5
  br label %157, !llvm.loop !16

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

171:                                              ; preds = %186, %170
  %172 = load i32, ptr %9, align 4, !tbaa !5
  %173 = load i32, ptr @m, align 4, !tbaa !5
  %174 = icmp slt i32 %172, %173
  br i1 %174, label %176, label %175

175:                                              ; preds = %171
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %189

176:                                              ; preds = %171
  %177 = load i32, ptr %9, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [250009 x i32], ptr @_b, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sitofp i32 %180 to double
  %182 = load i32, ptr %9, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %183
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %184, double noundef %181)
  br label %186

186:                                              ; preds = %176
  %187 = load i32, ptr %9, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %9, align 4, !tbaa !5
  br label %171, !llvm.loop !17

189:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %190 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %190, ptr %10, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %201, %189
  %192 = load i32, ptr %10, align 4, !tbaa !5
  %193 = load i32, ptr @l, align 4, !tbaa !5
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %204

196:                                              ; preds = %191
  %197 = load i32, ptr %10, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %198
  %200 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %199, double noundef 0.000000e+00)
  br label %201

201:                                              ; preds = %196
  %202 = load i32, ptr %10, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %10, align 4, !tbaa !5
  br label %191, !llvm.loop !18

204:                                              ; preds = %195
  %205 = load i32, ptr @l, align 4, !tbaa !5
  call void @_Z3fftPSt7complexIdEii(ptr noundef @A, i32 noundef %205, i32 noundef 1)
  %206 = load i32, ptr @l, align 4, !tbaa !5
  call void @_Z3fftPSt7complexIdEii(ptr noundef @B, i32 noundef %206, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %220, %204
  %208 = load i32, ptr %11, align 4, !tbaa !5
  %209 = load i32, ptr @l, align 4, !tbaa !5
  %210 = icmp slt i32 %208, %209
  br i1 %210, label %212, label %211

211:                                              ; preds = %207
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %223

212:                                              ; preds = %207
  %213 = load i32, ptr %11, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %214
  %216 = load i32, ptr %11, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %217
  %219 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %218, ptr noundef nonnull align 8 dereferenceable(16) %215)
  br label %220

220:                                              ; preds = %212
  %221 = load i32, ptr %11, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %11, align 4, !tbaa !5
  br label %207, !llvm.loop !19

223:                                              ; preds = %211
  %224 = load i32, ptr @l, align 4, !tbaa !5
  call void @_Z3fftPSt7complexIdEii(ptr noundef @A, i32 noundef %224, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %225

225:                                              ; preds = %243, %223
  %226 = load i32, ptr %12, align 4, !tbaa !5
  %227 = load i32, ptr @sum, align 4, !tbaa !5
  %228 = icmp slt i32 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  store i32 32, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %246

230:                                              ; preds = %225
  %231 = load i32, ptr %12, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %232
  %234 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %233)
  %235 = fadd double %234, 5.000000e-01
  %236 = load i32, ptr %12, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [500009 x i32], ptr @g, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = sitofp i32 %239 to double
  %241 = fadd double %240, %235
  %242 = fptosi double %241 to i32
  store i32 %242, ptr %238, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %230
  %244 = load i32, ptr %12, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %12, align 4, !tbaa !5
  br label %225, !llvm.loop !20

246:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %247

247:                                              ; preds = %262, %246
  %248 = load i32, ptr %13, align 4, !tbaa !5
  %249 = load i32, ptr @n, align 4, !tbaa !5
  %250 = icmp slt i32 %248, %249
  br i1 %250, label %252, label %251

251:                                              ; preds = %247
  store i32 35, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %265

252:                                              ; preds = %247
  %253 = load i32, ptr %13, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [250009 x i32], ptr @_a, i64 0, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = sitofp i32 %256 to double
  %258 = load i32, ptr %13, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %259
  %261 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %260, double noundef %257)
  br label %262

262:                                              ; preds = %252
  %263 = load i32, ptr %13, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %13, align 4, !tbaa !5
  br label %247, !llvm.loop !21

265:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %266 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %266, ptr %14, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %277, %265
  %268 = load i32, ptr %14, align 4, !tbaa !5
  %269 = load i32, ptr @l, align 4, !tbaa !5
  %270 = icmp slt i32 %268, %269
  br i1 %270, label %272, label %271

271:                                              ; preds = %267
  store i32 38, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %280

272:                                              ; preds = %267
  %273 = load i32, ptr %14, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %274
  %276 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %275, double noundef 0.000000e+00)
  br label %277

277:                                              ; preds = %272
  %278 = load i32, ptr %14, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %14, align 4, !tbaa !5
  br label %267, !llvm.loop !22

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

281:                                              ; preds = %296, %280
  %282 = load i32, ptr %15, align 4, !tbaa !5
  %283 = load i32, ptr @m, align 4, !tbaa !5
  %284 = icmp slt i32 %282, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %281
  store i32 41, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %299

286:                                              ; preds = %281
  %287 = load i32, ptr %15, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [250009 x i32], ptr @b, i64 0, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = sitofp i32 %290 to double
  %292 = load i32, ptr %15, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %293
  %295 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %294, double noundef %291)
  br label %296

296:                                              ; preds = %286
  %297 = load i32, ptr %15, align 4, !tbaa !5
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %15, align 4, !tbaa !5
  br label %281, !llvm.loop !23

299:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %300 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %300, ptr %16, align 4, !tbaa !5
  br label %301

301:                                              ; preds = %311, %299
  %302 = load i32, ptr %16, align 4, !tbaa !5
  %303 = load i32, ptr @l, align 4, !tbaa !5
  %304 = icmp slt i32 %302, %303
  br i1 %304, label %306, label %305

305:                                              ; preds = %301
  store i32 44, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %314

306:                                              ; preds = %301
  %307 = load i32, ptr %16, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %308
  %310 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %309, double noundef 0.000000e+00)
  br label %311

311:                                              ; preds = %306
  %312 = load i32, ptr %16, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %16, align 4, !tbaa !5
  br label %301, !llvm.loop !24

314:                                              ; preds = %305
  %315 = load i32, ptr @l, align 4, !tbaa !5
  call void @_Z3fftPSt7complexIdEii(ptr noundef @A, i32 noundef %315, i32 noundef 1)
  %316 = load i32, ptr @l, align 4, !tbaa !5
  call void @_Z3fftPSt7complexIdEii(ptr noundef @B, i32 noundef %316, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %317

317:                                              ; preds = %330, %314
  %318 = load i32, ptr %17, align 4, !tbaa !5
  %319 = load i32, ptr @l, align 4, !tbaa !5
  %320 = icmp slt i32 %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %317
  store i32 47, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %333

322:                                              ; preds = %317
  %323 = load i32, ptr %17, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %324
  %326 = load i32, ptr %17, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %327
  %329 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %328, ptr noundef nonnull align 8 dereferenceable(16) %325)
  br label %330

330:                                              ; preds = %322
  %331 = load i32, ptr %17, align 4, !tbaa !5
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %17, align 4, !tbaa !5
  br label %317, !llvm.loop !25

333:                                              ; preds = %321
  %334 = load i32, ptr @l, align 4, !tbaa !5
  call void @_Z3fftPSt7complexIdEii(ptr noundef @A, i32 noundef %334, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %335

335:                                              ; preds = %353, %333
  %336 = load i32, ptr %18, align 4, !tbaa !5
  %337 = load i32, ptr @sum, align 4, !tbaa !5
  %338 = icmp slt i32 %336, %337
  br i1 %338, label %340, label %339

339:                                              ; preds = %335
  store i32 50, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %356

340:                                              ; preds = %335
  %341 = load i32, ptr %18, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %342
  %344 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %343)
  %345 = fadd double %344, 5.000000e-01
  %346 = load i32, ptr %18, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [500009 x i32], ptr @g, i64 0, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !5
  %350 = sitofp i32 %349 to double
  %351 = fadd double %350, %345
  %352 = fptosi double %351 to i32
  store i32 %352, ptr %348, align 4, !tbaa !5
  br label %353

353:                                              ; preds = %340
  %354 = load i32, ptr %18, align 4, !tbaa !5
  %355 = add nsw i32 %354, 1
  store i32 %355, ptr %18, align 4, !tbaa !5
  br label %335, !llvm.loop !26

356:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %357

357:                                              ; preds = %403, %356
  %358 = load i32, ptr %19, align 4, !tbaa !5
  %359 = load i32, ptr @m, align 4, !tbaa !5
  %360 = icmp slt i32 %358, %359
  br i1 %360, label %362, label %361

361:                                              ; preds = %357
  store i32 53, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %406

362:                                              ; preds = %357
  br label %363

363:                                              ; preds = %378, %362
  %364 = load i32, ptr %20, align 4, !tbaa !5
  %365 = icmp ne i32 %364, 0
  br i1 %365, label %366, label %376

366:                                              ; preds = %363
  %367 = load i32, ptr %19, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %368
  %370 = load i32, ptr %369, align 4, !tbaa !5
  %371 = load i32, ptr %20, align 4, !tbaa !5
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %372
  %374 = load i32, ptr %373, align 4, !tbaa !5
  %375 = icmp ne i32 %370, %374
  br label %376

376:                                              ; preds = %366, %363
  %377 = phi i1 [ false, %363 ], [ %375, %366 ]
  br i1 %377, label %378, label %383

378:                                              ; preds = %376
  %379 = load i32, ptr %20, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [500009 x i32], ptr @f, i64 0, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !5
  store i32 %382, ptr %20, align 4, !tbaa !5
  br label %363, !llvm.loop !27

383:                                              ; preds = %376
  %384 = load i32, ptr %19, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %385
  %387 = load i32, ptr %386, align 4, !tbaa !5
  %388 = load i32, ptr %20, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %389
  %391 = load i32, ptr %390, align 4, !tbaa !5
  %392 = icmp eq i32 %387, %391
  br i1 %392, label %393, label %396

393:                                              ; preds = %383
  %394 = load i32, ptr %20, align 4, !tbaa !5
  %395 = add nsw i32 %394, 1
  br label %397

396:                                              ; preds = %383
  br label %397

397:                                              ; preds = %396, %393
  %398 = phi i32 [ %395, %393 ], [ 0, %396 ]
  store i32 %398, ptr %20, align 4, !tbaa !5
  %399 = load i32, ptr %19, align 4, !tbaa !5
  %400 = add nsw i32 %399, 1
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [500009 x i32], ptr @f, i64 0, i64 %401
  store i32 %398, ptr %402, align 4, !tbaa !5
  br label %403

403:                                              ; preds = %397
  %404 = load i32, ptr %19, align 4, !tbaa !5
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %19, align 4, !tbaa !5
  br label %357, !llvm.loop !28

406:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 2147483647, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %407

407:                                              ; preds = %465, %406
  %408 = load i32, ptr %23, align 4, !tbaa !5
  %409 = load i32, ptr @n, align 4, !tbaa !5
  %410 = icmp slt i32 %408, %409
  br i1 %410, label %412, label %411

411:                                              ; preds = %407
  store i32 58, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %468

412:                                              ; preds = %407
  br label %413

413:                                              ; preds = %428, %412
  %414 = load i32, ptr %24, align 4, !tbaa !5
  %415 = icmp ne i32 %414, 0
  br i1 %415, label %416, label %426

416:                                              ; preds = %413
  %417 = load i32, ptr %23, align 4, !tbaa !5
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [250009 x i32], ptr @s, i64 0, i64 %418
  %420 = load i32, ptr %419, align 4, !tbaa !5
  %421 = load i32, ptr %24, align 4, !tbaa !5
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %422
  %424 = load i32, ptr %423, align 4, !tbaa !5
  %425 = icmp ne i32 %420, %424
  br label %426

426:                                              ; preds = %416, %413
  %427 = phi i1 [ false, %413 ], [ %425, %416 ]
  br i1 %427, label %428, label %433

428:                                              ; preds = %426
  %429 = load i32, ptr %24, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [500009 x i32], ptr @f, i64 0, i64 %430
  %432 = load i32, ptr %431, align 4, !tbaa !5
  store i32 %432, ptr %24, align 4, !tbaa !5
  br label %413, !llvm.loop !29

433:                                              ; preds = %426
  %434 = load i32, ptr %23, align 4, !tbaa !5
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [250009 x i32], ptr @s, i64 0, i64 %435
  %437 = load i32, ptr %436, align 4, !tbaa !5
  %438 = load i32, ptr %24, align 4, !tbaa !5
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %439
  %441 = load i32, ptr %440, align 4, !tbaa !5
  %442 = icmp ne i32 %437, %441
  br i1 %442, label %443, label %444

443:                                              ; preds = %433
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %464

444:                                              ; preds = %433
  %445 = load i32, ptr %24, align 4, !tbaa !5
  %446 = add nsw i32 %445, 1
  store i32 %446, ptr %24, align 4, !tbaa !5
  %447 = load i32, ptr @m, align 4, !tbaa !5
  %448 = icmp eq i32 %446, %447
  br i1 %448, label %449, label %463

449:                                              ; preds = %444
  %450 = load i32, ptr %22, align 4, !tbaa !5
  %451 = load i32, ptr %23, align 4, !tbaa !5
  %452 = sext i32 %451 to i64
  %453 = getelementptr inbounds [500009 x i32], ptr @g, i64 0, i64 %452
  %454 = load i32, ptr %453, align 4, !tbaa !5
  %455 = icmp sgt i32 %450, %454
  br i1 %455, label %456, label %462

456:                                              ; preds = %449
  %457 = load i32, ptr %23, align 4, !tbaa !5
  %458 = sext i32 %457 to i64
  %459 = getelementptr inbounds [500009 x i32], ptr @g, i64 0, i64 %458
  %460 = load i32, ptr %459, align 4, !tbaa !5
  store i32 %460, ptr %22, align 4, !tbaa !5
  %461 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %461, ptr %21, align 4, !tbaa !5
  br label %462

462:                                              ; preds = %456, %449
  br label %463

463:                                              ; preds = %462, %444
  br label %464

464:                                              ; preds = %463, %443
  br label %465

465:                                              ; preds = %464
  %466 = load i32, ptr %23, align 4, !tbaa !5
  %467 = add nsw i32 %466, 1
  store i32 %467, ptr %23, align 4, !tbaa !5
  br label %407, !llvm.loop !30

468:                                              ; preds = %411
  %469 = load i32, ptr %22, align 4, !tbaa !5
  %470 = icmp slt i32 %469, 2147483647
  br i1 %470, label %471, label %479

471:                                              ; preds = %468
  %472 = call i32 @puts(ptr noundef @.str.1)
  %473 = load i32, ptr %22, align 4, !tbaa !5
  %474 = load i32, ptr %21, align 4, !tbaa !5
  %475 = load i32, ptr @m, align 4, !tbaa !5
  %476 = sub nsw i32 %474, %475
  %477 = add nsw i32 %476, 2
  %478 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %473, i32 noundef %477)
  br label %481

479:                                              ; preds = %468
  %480 = call i32 @puts(ptr noundef @.str.3)
  br label %481

481:                                              ; preds = %479, %471
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %482 = load i32, ptr %1, align 4
  ret i32 %482
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @getchar() #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

declare i32 @puts(ptr noundef) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = 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 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !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"

%"class.std::complex" = type { { double, double } }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@l = external dso_local local_unnamed_addr global i32, align 4
@sum = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local local_unnamed_addr global [250009 x i32], align 16
@_a = external dso_local local_unnamed_addr global [250009 x i32], align 16
@b = external dso_local global [250009 x i32], align 16
@_b = external dso_local global [250009 x i32], align 16
@A = external dso_local global [1000009 x %"class.std::complex"], align 16
@B = external dso_local global [1000009 x %"class.std::complex"], align 16
@f = external dso_local local_unnamed_addr global [500009 x i32], align 16
@g = external dso_local local_unnamed_addr global [500009 x i32], align 16
@s = external dso_local local_unnamed_addr global [250009 x i32], align 16
@t = external dso_local local_unnamed_addr global [250009 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.lr.ph, label %.preheader149

.preheader149:                                    ; preds = %.lr.ph, %0
  %4 = load i32, ptr @m, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph163, label %.preheader149.._crit_edge_crit_edge

.preheader149.._crit_edge_crit_edge:              ; preds = %.preheader149
  %.pre287 = sext i32 %4 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %6 = tail call i32 @getchar()
  %7 = getelementptr inbounds [250009 x i32], ptr @s, i64 0, i64 %indvars.iv
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = shl nsw i32 %8, 1
  %10 = tail call i32 @getchar()
  %11 = add i32 %10, -48
  %12 = add i32 %11, %9
  store i32 %12, ptr %7, align 4, !tbaa !5
  %13 = shl nsw i32 %12, 1
  %14 = tail call i32 @getchar()
  %15 = add i32 %14, -48
  %16 = add i32 %15, %13
  store i32 %16, ptr %7, align 4, !tbaa !5
  %17 = shl nsw i32 %16, 1
  %18 = tail call i32 @getchar()
  %19 = add i32 %18, -48
  %20 = add i32 %19, %17
  store i32 %20, ptr %7, align 4, !tbaa !5
  %21 = shl nsw i32 %20, 1
  %22 = tail call i32 @getchar()
  %23 = add i32 %22, -48
  %24 = add i32 %23, %21
  store i32 %24, ptr %7, align 4, !tbaa !5
  %25 = shl nsw i32 %24, 1
  %26 = tail call i32 @getchar()
  %27 = add i32 %26, -48
  %28 = add i32 %27, %25
  store i32 %28, ptr %7, align 4, !tbaa !5
  %29 = shl nsw i32 %28, 1
  %30 = tail call i32 @getchar()
  %31 = add i32 %30, -48
  %32 = add i32 %31, %29
  store i32 %32, ptr %7, align 4, !tbaa !5
  %33 = shl nsw i32 %32, 1
  %34 = tail call i32 @getchar()
  %35 = add i32 %34, -48
  %36 = add i32 %35, %33
  store i32 %36, ptr %7, align 4, !tbaa !5
  %37 = tail call i32 @getchar()
  %38 = add nsw i32 %37, -48
  %39 = getelementptr inbounds [250009 x i32], ptr @a, i64 0, i64 %indvars.iv
  store i32 %38, ptr %39, align 4, !tbaa !5
  %.not136 = icmp eq i32 %38, 0
  %40 = zext i1 %.not136 to i32
  %41 = getelementptr inbounds [250009 x i32], ptr @_a, i64 0, i64 %indvars.iv
  store i32 %40, ptr %41, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next, %43
  br i1 %44, label %.lr.ph, label %.preheader149, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph163, %.preheader149.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre287, %.preheader149.._crit_edge_crit_edge ], [ %90, %.lr.ph163 ]
  %45 = getelementptr inbounds i32, ptr @b, i64 %.pre-phi
  tail call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @b, ptr noundef nonnull %45)
  %46 = load i32, ptr @m, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr @_b, i64 %47
  tail call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @_b, ptr noundef nonnull %48)
  %49 = load i32, ptr @m, align 4, !tbaa !5
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = add i32 %49, -1
  %52 = add i32 %51, %50
  store i32 %52, ptr @sum, align 4, !tbaa !5
  br label %92

.lr.ph163:                                        ; preds = %.preheader149, %.lr.ph163
  %indvars.iv235 = phi i64 [ %indvars.iv.next236, %.lr.ph163 ], [ 0, %.preheader149 ]
  %53 = tail call i32 @getchar()
  %54 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %indvars.iv235
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = shl nsw i32 %55, 1
  %57 = tail call i32 @getchar()
  %58 = add i32 %57, -48
  %59 = add i32 %58, %56
  store i32 %59, ptr %54, align 4, !tbaa !5
  %60 = shl nsw i32 %59, 1
  %61 = tail call i32 @getchar()
  %62 = add i32 %61, -48
  %63 = add i32 %62, %60
  store i32 %63, ptr %54, align 4, !tbaa !5
  %64 = shl nsw i32 %63, 1
  %65 = tail call i32 @getchar()
  %66 = add i32 %65, -48
  %67 = add i32 %66, %64
  store i32 %67, ptr %54, align 4, !tbaa !5
  %68 = shl nsw i32 %67, 1
  %69 = tail call i32 @getchar()
  %70 = add i32 %69, -48
  %71 = add i32 %70, %68
  store i32 %71, ptr %54, align 4, !tbaa !5
  %72 = shl nsw i32 %71, 1
  %73 = tail call i32 @getchar()
  %74 = add i32 %73, -48
  %75 = add i32 %74, %72
  store i32 %75, ptr %54, align 4, !tbaa !5
  %76 = shl nsw i32 %75, 1
  %77 = tail call i32 @getchar()
  %78 = add i32 %77, -48
  %79 = add i32 %78, %76
  store i32 %79, ptr %54, align 4, !tbaa !5
  %80 = shl nsw i32 %79, 1
  %81 = tail call i32 @getchar()
  %82 = add i32 %81, -48
  %83 = add i32 %82, %80
  store i32 %83, ptr %54, align 4, !tbaa !5
  %84 = tail call i32 @getchar()
  %85 = add nsw i32 %84, -48
  %86 = getelementptr inbounds [250009 x i32], ptr @b, i64 0, i64 %indvars.iv235
  store i32 %85, ptr %86, align 4, !tbaa !5
  %.not134 = icmp eq i32 %85, 0
  %87 = zext i1 %.not134 to i32
  %88 = getelementptr inbounds [250009 x i32], ptr @_b, i64 0, i64 %indvars.iv235
  store i32 %87, ptr %88, align 4, !tbaa !5
  %indvars.iv.next236 = add nuw nsw i64 %indvars.iv235, 1
  %89 = load i32, ptr @m, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = icmp slt i64 %indvars.iv.next236, %90
  br i1 %91, label %.lr.ph163, label %._crit_edge, !llvm.loop !11

92:                                               ; preds = %92, %._crit_edge
  %storemerge = phi i32 [ 1, %._crit_edge ], [ %94, %92 ]
  %93 = icmp slt i32 %storemerge, %52
  %94 = shl i32 %storemerge, 1
  br i1 %93, label %92, label %.preheader148, !llvm.loop !12

.preheader148:                                    ; preds = %92
  store i32 %storemerge, ptr @l, align 4, !tbaa !5
  %95 = icmp sgt i32 %50, 0
  br i1 %95, label %.lr.ph165, label %.preheader147

.preheader147.loopexit:                           ; preds = %.lr.ph165
  %.pre = load i32, ptr @l, align 4, !tbaa !5
  br label %.preheader147

.preheader147:                                    ; preds = %.preheader147.loopexit, %.preheader148
  %96 = phi i32 [ %storemerge, %.preheader148 ], [ %.pre, %.preheader147.loopexit ]
  %.lcssa157 = phi i32 [ %50, %.preheader148 ], [ %104, %.preheader147.loopexit ]
  %97 = icmp slt i32 %.lcssa157, %96
  br i1 %97, label %.lr.ph168.preheader, label %.preheader146

.lr.ph168.preheader:                              ; preds = %.preheader147
  %98 = sext i32 %.lcssa157 to i64
  br label %.lr.ph168

.lr.ph165:                                        ; preds = %.preheader148, %.lr.ph165
  %indvars.iv238 = phi i64 [ %indvars.iv.next239, %.lr.ph165 ], [ 0, %.preheader148 ]
  %99 = getelementptr inbounds [250009 x i32], ptr @a, i64 0, i64 %indvars.iv238
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sitofp i32 %100 to double
  %102 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv238
  %103 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %102, double noundef %101)
  %indvars.iv.next239 = add nuw nsw i64 %indvars.iv238, 1
  %104 = load i32, ptr @n, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next239, %105
  br i1 %106, label %.lr.ph165, label %.preheader147.loopexit, !llvm.loop !13

.preheader146:                                    ; preds = %.lr.ph168, %.preheader147
  %107 = phi i32 [ %96, %.preheader147 ], [ %112, %.lr.ph168 ]
  %108 = load i32, ptr @m, align 4, !tbaa !5
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.lr.ph170, label %.preheader145

.lr.ph168:                                        ; preds = %.lr.ph168.preheader, %.lr.ph168
  %indvars.iv241 = phi i64 [ %98, %.lr.ph168.preheader ], [ %indvars.iv.next242, %.lr.ph168 ]
  %110 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv241
  %111 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %110, double noundef 0.000000e+00)
  %indvars.iv.next242 = add nsw i64 %indvars.iv241, 1
  %112 = load i32, ptr @l, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = icmp slt i64 %indvars.iv.next242, %113
  br i1 %114, label %.lr.ph168, label %.preheader146, !llvm.loop !14

.preheader145.loopexit:                           ; preds = %.lr.ph170
  %.pre282 = load i32, ptr @l, align 4, !tbaa !5
  br label %.preheader145

.preheader145:                                    ; preds = %.preheader145.loopexit, %.preheader146
  %115 = phi i32 [ %107, %.preheader146 ], [ %.pre282, %.preheader145.loopexit ]
  %.lcssa156 = phi i32 [ %108, %.preheader146 ], [ %123, %.preheader145.loopexit ]
  %116 = icmp slt i32 %.lcssa156, %115
  br i1 %116, label %.lr.ph173.preheader, label %._crit_edge174

.lr.ph173.preheader:                              ; preds = %.preheader145
  %117 = sext i32 %.lcssa156 to i64
  br label %.lr.ph173

.lr.ph170:                                        ; preds = %.preheader146, %.lr.ph170
  %indvars.iv244 = phi i64 [ %indvars.iv.next245, %.lr.ph170 ], [ 0, %.preheader146 ]
  %118 = getelementptr inbounds [250009 x i32], ptr @_b, i64 0, i64 %indvars.iv244
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sitofp i32 %119 to double
  %121 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %indvars.iv244
  %122 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %121, double noundef %120)
  %indvars.iv.next245 = add nuw nsw i64 %indvars.iv244, 1
  %123 = load i32, ptr @m, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = icmp slt i64 %indvars.iv.next245, %124
  br i1 %125, label %.lr.ph170, label %.preheader145.loopexit, !llvm.loop !15

._crit_edge174:                                   ; preds = %.lr.ph173, %.preheader145
  %.lcssa155 = phi i32 [ %115, %.preheader145 ], [ %131, %.lr.ph173 ]
  tail call void @_Z3fftPSt7complexIdEii(ptr noundef nonnull @A, i32 noundef %.lcssa155, i32 noundef 1)
  %126 = load i32, ptr @l, align 4, !tbaa !5
  tail call void @_Z3fftPSt7complexIdEii(ptr noundef nonnull @B, i32 noundef %126, i32 noundef 1)
  %127 = load i32, ptr @l, align 4, !tbaa !5
  %128 = icmp sgt i32 %127, 0
  br i1 %128, label %.lr.ph178, label %._crit_edge179

.lr.ph173:                                        ; preds = %.lr.ph173.preheader, %.lr.ph173
  %indvars.iv247 = phi i64 [ %117, %.lr.ph173.preheader ], [ %indvars.iv.next248, %.lr.ph173 ]
  %129 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %indvars.iv247
  %130 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %129, double noundef 0.000000e+00)
  %indvars.iv.next248 = add nsw i64 %indvars.iv247, 1
  %131 = load i32, ptr @l, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next248, %132
  br i1 %133, label %.lr.ph173, label %._crit_edge174, !llvm.loop !16

._crit_edge179:                                   ; preds = %.lr.ph178, %._crit_edge174
  %.lcssa154 = phi i32 [ %127, %._crit_edge174 ], [ %139, %.lr.ph178 ]
  tail call void @_Z3fftPSt7complexIdEii(ptr noundef nonnull @A, i32 noundef %.lcssa154, i32 noundef -1)
  %134 = load i32, ptr @sum, align 4, !tbaa !5
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %.lr.ph183, label %.preheader144

.lr.ph178:                                        ; preds = %._crit_edge174, %.lr.ph178
  %indvars.iv250 = phi i64 [ %indvars.iv.next251, %.lr.ph178 ], [ 0, %._crit_edge174 ]
  %136 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %indvars.iv250
  %137 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv250
  %138 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %137, ptr noundef nonnull align 8 dereferenceable(16) %136)
  %indvars.iv.next251 = add nuw nsw i64 %indvars.iv250, 1
  %139 = load i32, ptr @l, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = icmp slt i64 %indvars.iv.next251, %140
  br i1 %141, label %.lr.ph178, label %._crit_edge179, !llvm.loop !17

.preheader144:                                    ; preds = %.lr.ph183, %._crit_edge179
  %142 = load i32, ptr @n, align 4, !tbaa !5
  %143 = icmp sgt i32 %142, 0
  br i1 %143, label %.lr.ph185, label %.preheader143

.lr.ph183:                                        ; preds = %._crit_edge179, %.lr.ph183
  %indvars.iv253 = phi i64 [ %indvars.iv.next254, %.lr.ph183 ], [ 0, %._crit_edge179 ]
  %144 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv253
  %145 = tail call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %144)
  %146 = fadd double %145, 5.000000e-01
  %147 = getelementptr inbounds [500009 x i32], ptr @g, i64 0, i64 %indvars.iv253
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = sitofp i32 %148 to double
  %150 = fadd double %146, %149
  %151 = fptosi double %150 to i32
  store i32 %151, ptr %147, align 4, !tbaa !5
  %indvars.iv.next254 = add nuw nsw i64 %indvars.iv253, 1
  %152 = load i32, ptr @sum, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = icmp slt i64 %indvars.iv.next254, %153
  br i1 %154, label %.lr.ph183, label %.preheader144, !llvm.loop !18

.preheader143:                                    ; preds = %.lr.ph185, %.preheader144
  %.lcssa153 = phi i32 [ %142, %.preheader144 ], [ %163, %.lr.ph185 ]
  %155 = load i32, ptr @l, align 4, !tbaa !5
  %156 = icmp slt i32 %.lcssa153, %155
  br i1 %156, label %.lr.ph188.preheader, label %.preheader142

.lr.ph188.preheader:                              ; preds = %.preheader143
  %157 = sext i32 %.lcssa153 to i64
  br label %.lr.ph188

.lr.ph185:                                        ; preds = %.preheader144, %.lr.ph185
  %indvars.iv256 = phi i64 [ %indvars.iv.next257, %.lr.ph185 ], [ 0, %.preheader144 ]
  %158 = getelementptr inbounds [250009 x i32], ptr @_a, i64 0, i64 %indvars.iv256
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = sitofp i32 %159 to double
  %161 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv256
  %162 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %161, double noundef %160)
  %indvars.iv.next257 = add nuw nsw i64 %indvars.iv256, 1
  %163 = load i32, ptr @n, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = icmp slt i64 %indvars.iv.next257, %164
  br i1 %165, label %.lr.ph185, label %.preheader143, !llvm.loop !19

.preheader142:                                    ; preds = %.lr.ph188, %.preheader143
  %166 = phi i32 [ %155, %.preheader143 ], [ %171, %.lr.ph188 ]
  %167 = load i32, ptr @m, align 4, !tbaa !5
  %168 = icmp sgt i32 %167, 0
  br i1 %168, label %.lr.ph190, label %.preheader141

.lr.ph188:                                        ; preds = %.lr.ph188.preheader, %.lr.ph188
  %indvars.iv259 = phi i64 [ %157, %.lr.ph188.preheader ], [ %indvars.iv.next260, %.lr.ph188 ]
  %169 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv259
  %170 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %169, double noundef 0.000000e+00)
  %indvars.iv.next260 = add nsw i64 %indvars.iv259, 1
  %171 = load i32, ptr @l, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = icmp slt i64 %indvars.iv.next260, %172
  br i1 %173, label %.lr.ph188, label %.preheader142, !llvm.loop !20

.preheader141.loopexit:                           ; preds = %.lr.ph190
  %.pre283 = load i32, ptr @l, align 4, !tbaa !5
  br label %.preheader141

.preheader141:                                    ; preds = %.preheader141.loopexit, %.preheader142
  %174 = phi i32 [ %166, %.preheader142 ], [ %.pre283, %.preheader141.loopexit ]
  %.lcssa152 = phi i32 [ %167, %.preheader142 ], [ %182, %.preheader141.loopexit ]
  %175 = icmp slt i32 %.lcssa152, %174
  br i1 %175, label %.lr.ph193.preheader, label %._crit_edge194

.lr.ph193.preheader:                              ; preds = %.preheader141
  %176 = sext i32 %.lcssa152 to i64
  br label %.lr.ph193

.lr.ph190:                                        ; preds = %.preheader142, %.lr.ph190
  %indvars.iv262 = phi i64 [ %indvars.iv.next263, %.lr.ph190 ], [ 0, %.preheader142 ]
  %177 = getelementptr inbounds [250009 x i32], ptr @b, i64 0, i64 %indvars.iv262
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = sitofp i32 %178 to double
  %180 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %indvars.iv262
  %181 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %180, double noundef %179)
  %indvars.iv.next263 = add nuw nsw i64 %indvars.iv262, 1
  %182 = load i32, ptr @m, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = icmp slt i64 %indvars.iv.next263, %183
  br i1 %184, label %.lr.ph190, label %.preheader141.loopexit, !llvm.loop !21

._crit_edge194:                                   ; preds = %.lr.ph193, %.preheader141
  %.lcssa151 = phi i32 [ %174, %.preheader141 ], [ %190, %.lr.ph193 ]
  tail call void @_Z3fftPSt7complexIdEii(ptr noundef nonnull @A, i32 noundef %.lcssa151, i32 noundef 1)
  %185 = load i32, ptr @l, align 4, !tbaa !5
  tail call void @_Z3fftPSt7complexIdEii(ptr noundef nonnull @B, i32 noundef %185, i32 noundef 1)
  %186 = load i32, ptr @l, align 4, !tbaa !5
  %187 = icmp sgt i32 %186, 0
  br i1 %187, label %.lr.ph198, label %._crit_edge199

.lr.ph193:                                        ; preds = %.lr.ph193.preheader, %.lr.ph193
  %indvars.iv265 = phi i64 [ %176, %.lr.ph193.preheader ], [ %indvars.iv.next266, %.lr.ph193 ]
  %188 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %indvars.iv265
  %189 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %188, double noundef 0.000000e+00)
  %indvars.iv.next266 = add nsw i64 %indvars.iv265, 1
  %190 = load i32, ptr @l, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = icmp slt i64 %indvars.iv.next266, %191
  br i1 %192, label %.lr.ph193, label %._crit_edge194, !llvm.loop !22

._crit_edge199:                                   ; preds = %.lr.ph198, %._crit_edge194
  %.lcssa150 = phi i32 [ %186, %._crit_edge194 ], [ %198, %.lr.ph198 ]
  tail call void @_Z3fftPSt7complexIdEii(ptr noundef nonnull @A, i32 noundef %.lcssa150, i32 noundef -1)
  %193 = load i32, ptr @sum, align 4, !tbaa !5
  %194 = icmp sgt i32 %193, 0
  br i1 %194, label %.lr.ph203, label %.preheader140

.lr.ph198:                                        ; preds = %._crit_edge194, %.lr.ph198
  %indvars.iv268 = phi i64 [ %indvars.iv.next269, %.lr.ph198 ], [ 0, %._crit_edge194 ]
  %195 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @B, i64 0, i64 %indvars.iv268
  %196 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv268
  %197 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %196, ptr noundef nonnull align 8 dereferenceable(16) %195)
  %indvars.iv.next269 = add nuw nsw i64 %indvars.iv268, 1
  %198 = load i32, ptr @l, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = icmp slt i64 %indvars.iv.next269, %199
  br i1 %200, label %.lr.ph198, label %._crit_edge199, !llvm.loop !23

.preheader140:                                    ; preds = %.lr.ph203, %._crit_edge199
  %201 = load i32, ptr @m, align 4, !tbaa !5
  %202 = icmp sgt i32 %201, 1
  br i1 %202, label %.preheader139.preheader, label %.preheader138

.preheader139.preheader:                          ; preds = %.preheader140
  %wide.trip.count = zext nneg i32 %201 to i64
  br label %.preheader139

.lr.ph203:                                        ; preds = %._crit_edge199, %.lr.ph203
  %indvars.iv271 = phi i64 [ %indvars.iv.next272, %.lr.ph203 ], [ 0, %._crit_edge199 ]
  %203 = getelementptr inbounds [1000009 x %"class.std::complex"], ptr @A, i64 0, i64 %indvars.iv271
  %204 = tail call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %203)
  %205 = fadd double %204, 5.000000e-01
  %206 = getelementptr inbounds [500009 x i32], ptr @g, i64 0, i64 %indvars.iv271
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = sitofp i32 %207 to double
  %209 = fadd double %205, %208
  %210 = fptosi double %209 to i32
  store i32 %210, ptr %206, align 4, !tbaa !5
  %indvars.iv.next272 = add nuw nsw i64 %indvars.iv271, 1
  %211 = load i32, ptr @sum, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = icmp slt i64 %indvars.iv.next272, %212
  br i1 %213, label %.lr.ph203, label %.preheader140, !llvm.loop !24

.preheader139:                                    ; preds = %.preheader139.preheader, %.critedge
  %indvars.iv274 = phi i64 [ 1, %.preheader139.preheader ], [ %indvars.iv.next275, %.critedge ]
  %.096211 = phi i32 [ 0, %.preheader139.preheader ], [ %227, %.critedge ]
  %.not131204 = icmp eq i32 %.096211, 0
  %.phi.trans.insert = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %indvars.iv274
  %.pre284 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br i1 %.not131204, label %.critedge, label %.lr.ph206

.preheader138:                                    ; preds = %.critedge, %.preheader140
  %214 = load i32, ptr @n, align 4, !tbaa !5
  %215 = icmp sgt i32 %214, 0
  br i1 %215, label %.preheader.preheader, label %._crit_edge223.thread

.preheader.preheader:                             ; preds = %.preheader138
  %wide.trip.count280 = zext nneg i32 %214 to i64
  br label %.preheader

.lr.ph206:                                        ; preds = %.preheader139, %219
  %.197205 = phi i32 [ %221, %219 ], [ %.096211, %.preheader139 ]
  %216 = sext i32 %.197205 to i64
  %217 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %.not132 = icmp eq i32 %.pre284, %218
  br i1 %.not132, label %.critedge, label %219

219:                                              ; preds = %.lr.ph206
  %220 = getelementptr inbounds [500009 x i32], ptr @f, i64 0, i64 %216
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %.not131 = icmp eq i32 %221, 0
  br i1 %.not131, label %.critedge, label %.lr.ph206, !llvm.loop !25

.critedge:                                        ; preds = %.lr.ph206, %219, %.preheader139
  %.197.lcssa = phi i32 [ 0, %.preheader139 ], [ 0, %219 ], [ %.197205, %.lr.ph206 ]
  %222 = sext i32 %.197.lcssa to i64
  %223 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = icmp eq i32 %.pre284, %224
  %226 = add nsw i32 %.197.lcssa, 1
  %227 = select i1 %225, i32 %226, i32 0
  %indvars.iv.next275 = add nuw nsw i64 %indvars.iv274, 1
  %228 = getelementptr inbounds [500009 x i32], ptr @f, i64 0, i64 %indvars.iv.next275
  store i32 %227, ptr %228, align 4, !tbaa !5
  %exitcond.not = icmp eq i64 %indvars.iv.next275, %wide.trip.count
  br i1 %exitcond.not, label %.preheader138, label %.preheader139, !llvm.loop !26

.preheader:                                       ; preds = %.preheader.preheader, %246
  %indvars.iv277 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next278, %246 ]
  %.0222 = phi i32 [ 0, %.preheader.preheader ], [ %.2, %246 ]
  %.092220 = phi i32 [ 2147483647, %.preheader.preheader ], [ %.193, %246 ]
  %.094219 = phi i32 [ 0, %.preheader.preheader ], [ %.195, %246 ]
  %.not128213 = icmp eq i32 %.0222, 0
  %.phi.trans.insert285 = getelementptr inbounds [250009 x i32], ptr @s, i64 0, i64 %indvars.iv277
  %.pre286 = load i32, ptr %.phi.trans.insert285, align 4, !tbaa !5
  br i1 %.not128213, label %.critedge2, label %.lr.ph215

._crit_edge223:                                   ; preds = %246
  %.not = icmp eq i32 %.193, 2147483647
  br i1 %.not, label %._crit_edge223.thread, label %247

.lr.ph215:                                        ; preds = %.preheader, %232
  %.1214 = phi i32 [ %234, %232 ], [ %.0222, %.preheader ]
  %229 = sext i32 %.1214 to i64
  %230 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %.not129 = icmp eq i32 %.pre286, %231
  br i1 %.not129, label %.critedge2, label %232

232:                                              ; preds = %.lr.ph215
  %233 = getelementptr inbounds [500009 x i32], ptr @f, i64 0, i64 %229
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %.not128 = icmp eq i32 %234, 0
  br i1 %.not128, label %.critedge2, label %.lr.ph215, !llvm.loop !27

.critedge2:                                       ; preds = %.lr.ph215, %232, %.preheader
  %.1.lcssa = phi i32 [ 0, %.preheader ], [ 0, %232 ], [ %.1214, %.lr.ph215 ]
  %235 = sext i32 %.1.lcssa to i64
  %236 = getelementptr inbounds [250009 x i32], ptr @t, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %.not130 = icmp eq i32 %.pre286, %237
  br i1 %.not130, label %238, label %246

238:                                              ; preds = %.critedge2
  %239 = add nsw i32 %.1.lcssa, 1
  %240 = icmp eq i32 %239, %201
  br i1 %240, label %241, label %246

241:                                              ; preds = %238
  %242 = getelementptr inbounds [500009 x i32], ptr @g, i64 0, i64 %indvars.iv277
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = icmp sgt i32 %.092220, %243
  %245 = trunc nuw nsw i64 %indvars.iv277 to i32
  %spec.select = select i1 %244, i32 %245, i32 %.094219
  %spec.select137 = tail call i32 @llvm.smin.i32(i32 %.092220, i32 %243)
  br label %246

246:                                              ; preds = %241, %.critedge2, %238
  %.195 = phi i32 [ %.094219, %238 ], [ %.094219, %.critedge2 ], [ %spec.select, %241 ]
  %.193 = phi i32 [ %.092220, %238 ], [ %.092220, %.critedge2 ], [ %spec.select137, %241 ]
  %.2 = phi i32 [ %239, %238 ], [ 0, %.critedge2 ], [ %201, %241 ]
  %indvars.iv.next278 = add nuw nsw i64 %indvars.iv277, 1
  %exitcond281.not = icmp eq i64 %indvars.iv.next278, %wide.trip.count280
  br i1 %exitcond281.not, label %._crit_edge223, label %.preheader, !llvm.loop !28

247:                                              ; preds = %._crit_edge223
  %248 = add i32 %.195, 2
  %249 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  %250 = load i32, ptr @m, align 4, !tbaa !5
  %251 = sub i32 %248, %250
  %252 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.193, i32 noundef %251)
  br label %254

._crit_edge223.thread:                            ; preds = %.preheader138, %._crit_edge223
  %253 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %254

254:                                              ; preds = %._crit_edge223.thread, %247
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @getchar() local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 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 #2 = { 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 #3 = { 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 #4 = { inlinehint mustprogress nofree 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}


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