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

; 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 { x86_fp80, x86_fp80 }

@X = external dso_local global [1048576 x %struct.complex], align 16
@Y = external dso_local global [1048576 x %struct.complex], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@len = external dso_local global i32, align 4
@cnt = external dso_local global i32, align 4
@out = external dso_local global [300001 x i32], align 16
@s = external dso_local global [300001 x i8], align 16
@t = external dso_local global [300001 x i8], align 16
@f = external dso_local global [1048576 x i64], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlRK7complexS1_(ptr dead_on_unwind noalias writable sret(%struct.complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmiRK7complexS1_(ptr dead_on_unwind noalias writable sret(%struct.complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.complex, align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.complex, align 16
  %7 = alloca %struct.complex, align 16
  %8 = alloca %struct.complex, align 16
  %9 = alloca %struct.complex, align 16
  %10 = alloca %struct.complex, align 16
  %11 = alloca %struct.complex, align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.complex, align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.complex, align 16
  %18 = alloca %struct.complex, align 16
  %19 = alloca %struct.complex, align 16
  %20 = alloca %struct.complex, align 16
  %21 = alloca %struct.complex, align 16
  %22 = alloca %struct.complex, align 16
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.complex, align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.complex, align 16
  %29 = alloca %struct.complex, align 16
  %30 = alloca %struct.complex, align 16
  %31 = alloca %struct.complex, align 16
  %32 = alloca %struct.complex, align 16
  %33 = alloca %struct.complex, align 16
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @s, ptr noundef @t)
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr @s, i64 %38
  call void @_ZSt7reverseIPcEvT_S1_(ptr noundef @s, ptr noundef %39)
  store i32 1, ptr @len, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %47, %0
  %41 = load i32, ptr @len, align 4, !tbaa !5
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = add nsw i32 %42, %43
  %45 = icmp slt i32 %41, %44
  br i1 %45, label %46, label %50

46:                                               ; preds = %40
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr @len, align 4, !tbaa !5
  %49 = shl i32 %48, 1
  store i32 %49, ptr @len, align 4, !tbaa !5
  br label %40, !llvm.loop !9

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

51:                                               ; preds = %87, %50
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = load i32, ptr @len, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %90

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #8
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = load i32, ptr @n, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %67

60:                                               ; preds = %56
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [300001 x i8], ptr @s, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !11
  %65 = call noundef i32 @_Z5transc(i8 noundef signext %64)
  %66 = call noundef i32 @_Z3Cubi(i32 noundef %65)
  br label %68

67:                                               ; preds = %56
  br label %68

68:                                               ; preds = %67, %60
  %69 = phi i32 [ %66, %60 ], [ 0, %67 ]
  %70 = sitofp i32 %69 to x86_fp80
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = load i32, ptr @m, align 4, !tbaa !5
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %80

74:                                               ; preds = %68
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [300001 x i8], ptr @t, i64 0, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !11
  %79 = call noundef i32 @_Z5transc(i8 noundef signext %78)
  br label %81

80:                                               ; preds = %68
  br label %81

81:                                               ; preds = %80, %74
  %82 = phi i32 [ %79, %74 ], [ 0, %80 ]
  %83 = sitofp i32 %82 to x86_fp80
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %3, x86_fp80 noundef %70, x86_fp80 noundef %83)
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %86, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #8
  br label %87

87:                                               ; preds = %81
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %2, align 4, !tbaa !5
  br label %51, !llvm.loop !15

90:                                               ; preds = %55
  %91 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @X, i32 noundef %91, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %119, %90
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = load i32, ptr @len, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

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

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %98 = load i32, ptr @len, align 4, !tbaa !5
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = sub nsw i32 %98, %99
  %101 = load i32, ptr @len, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = and i32 %100, %102
  store i32 %103, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %105
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %108
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %8, ptr noundef nonnull align 16 dereferenceable(32) %106, ptr noundef nonnull align 16 dereferenceable(32) %109)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #8
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %111
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %114
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %112, ptr noundef nonnull align 16 dereferenceable(32) %115)
  call void @_ZN7complex4conjEv(ptr dead_on_unwind writable sret(%struct.complex) align 16 %9, ptr noundef nonnull align 16 dereferenceable(32) %10)
  call void @_ZmiRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %7, ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %9)
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %11, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xKBFFD8000000000000000)
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %6, ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 16 dereferenceable(32) %11)
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %118, ptr align 16 %6, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %119

119:                                              ; preds = %97
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %4, align 4, !tbaa !5
  br label %92, !llvm.loop !16

122:                                              ; preds = %96
  %123 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @Y, i32 noundef %123, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %147, %122
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = load i32, ptr @m, align 4, !tbaa !5
  %127 = load i32, ptr @n, align 4, !tbaa !5
  %128 = sub nsw i32 %126, %127
  %129 = icmp sle i32 %125, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %150

131:                                              ; preds = %124
  %132 = load i32, ptr @n, align 4, !tbaa !5
  %133 = sub nsw i32 %132, 1
  %134 = load i32, ptr %12, align 4, !tbaa !5
  %135 = add nsw i32 %133, %134
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %136
  %138 = getelementptr inbounds %struct.complex, ptr %137, i32 0, i32 0
  %139 = load x86_fp80, ptr %138, align 16, !tbaa !17
  %140 = fadd x86_fp80 %139, 0xK3FFE8000000000000000
  %141 = fptosi x86_fp80 %140 to i64
  %142 = load i32, ptr %12, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %143
  %145 = load i64, ptr %144, align 8, !tbaa !19
  %146 = add nsw i64 %145, %141
  store i64 %146, ptr %144, align 8, !tbaa !19
  br label %147

147:                                              ; preds = %131
  %148 = load i32, ptr %12, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %12, align 4, !tbaa !5
  br label %124, !llvm.loop !21

150:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %187, %150
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = load i32, ptr @len, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %190

156:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %157 = load i32, ptr %13, align 4, !tbaa !5
  %158 = load i32, ptr @n, align 4, !tbaa !5
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %160, label %166

160:                                              ; preds = %156
  %161 = load i32, ptr %13, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [300001 x i8], ptr @s, i64 0, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !11
  %165 = call noundef i32 @_Z5transc(i8 noundef signext %164)
  br label %167

166:                                              ; preds = %156
  br label %167

167:                                              ; preds = %166, %160
  %168 = phi i32 [ %165, %160 ], [ 0, %166 ]
  %169 = sitofp i32 %168 to x86_fp80
  %170 = load i32, ptr %13, align 4, !tbaa !5
  %171 = load i32, ptr @m, align 4, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %173, label %180

173:                                              ; preds = %167
  %174 = load i32, ptr %13, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [300001 x i8], ptr @t, i64 0, i64 %175
  %177 = load i8, ptr %176, align 1, !tbaa !11
  %178 = call noundef i32 @_Z5transc(i8 noundef signext %177)
  %179 = call noundef i32 @_Z3Cubi(i32 noundef %178)
  br label %181

180:                                              ; preds = %167
  br label %181

181:                                              ; preds = %180, %173
  %182 = phi i32 [ %179, %173 ], [ 0, %180 ]
  %183 = sitofp i32 %182 to x86_fp80
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %14, x86_fp80 noundef %169, x86_fp80 noundef %183)
  %184 = load i32, ptr %13, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %185
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %186, ptr align 16 %14, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %187

187:                                              ; preds = %181
  %188 = load i32, ptr %13, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %13, align 4, !tbaa !5
  br label %151, !llvm.loop !22

190:                                              ; preds = %155
  %191 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @X, i32 noundef %191, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %219, %190
  %193 = load i32, ptr %15, align 4, !tbaa !5
  %194 = load i32, ptr @len, align 4, !tbaa !5
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %222

197:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %198 = load i32, ptr @len, align 4, !tbaa !5
  %199 = load i32, ptr %15, align 4, !tbaa !5
  %200 = sub nsw i32 %198, %199
  %201 = load i32, ptr @len, align 4, !tbaa !5
  %202 = sub nsw i32 %201, 1
  %203 = and i32 %200, %202
  store i32 %203, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %204 = load i32, ptr %15, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %205
  %207 = load i32, ptr %15, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %208
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %19, ptr noundef nonnull align 16 dereferenceable(32) %206, ptr noundef nonnull align 16 dereferenceable(32) %209)
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %210 = load i32, ptr %16, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %211
  %213 = load i32, ptr %16, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %214
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %21, ptr noundef nonnull align 16 dereferenceable(32) %212, ptr noundef nonnull align 16 dereferenceable(32) %215)
  call void @_ZN7complex4conjEv(ptr dead_on_unwind writable sret(%struct.complex) align 16 %20, ptr noundef nonnull align 16 dereferenceable(32) %21)
  call void @_ZmiRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %18, ptr noundef nonnull align 16 dereferenceable(32) %19, ptr noundef nonnull align 16 dereferenceable(32) %20)
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #8
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %22, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xKBFFD8000000000000000)
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 16 dereferenceable(32) %22)
  %216 = load i32, ptr %15, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %217
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %218, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %219

219:                                              ; preds = %197
  %220 = load i32, ptr %15, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %15, align 4, !tbaa !5
  br label %192, !llvm.loop !23

222:                                              ; preds = %196
  %223 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @Y, i32 noundef %223, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %224

224:                                              ; preds = %247, %222
  %225 = load i32, ptr %23, align 4, !tbaa !5
  %226 = load i32, ptr @m, align 4, !tbaa !5
  %227 = load i32, ptr @n, align 4, !tbaa !5
  %228 = sub nsw i32 %226, %227
  %229 = icmp sle i32 %225, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %250

231:                                              ; preds = %224
  %232 = load i32, ptr @n, align 4, !tbaa !5
  %233 = sub nsw i32 %232, 1
  %234 = load i32, ptr %23, align 4, !tbaa !5
  %235 = add nsw i32 %233, %234
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %236
  %238 = getelementptr inbounds %struct.complex, ptr %237, i32 0, i32 0
  %239 = load x86_fp80, ptr %238, align 16, !tbaa !17
  %240 = fadd x86_fp80 %239, 0xK3FFE8000000000000000
  %241 = fptosi x86_fp80 %240 to i64
  %242 = load i32, ptr %23, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %243
  %245 = load i64, ptr %244, align 8, !tbaa !19
  %246 = add nsw i64 %245, %241
  store i64 %246, ptr %244, align 8, !tbaa !19
  br label %247

247:                                              ; preds = %231
  %248 = load i32, ptr %23, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %23, align 4, !tbaa !5
  br label %224, !llvm.loop !24

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

251:                                              ; preds = %288, %250
  %252 = load i32, ptr %24, align 4, !tbaa !5
  %253 = load i32, ptr @len, align 4, !tbaa !5
  %254 = icmp slt i32 %252, %253
  br i1 %254, label %256, label %255

255:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %291

256:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  %257 = load i32, ptr %24, align 4, !tbaa !5
  %258 = load i32, ptr @n, align 4, !tbaa !5
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %260, label %267

260:                                              ; preds = %256
  %261 = load i32, ptr %24, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [300001 x i8], ptr @s, i64 0, i64 %262
  %264 = load i8, ptr %263, align 1, !tbaa !11
  %265 = call noundef i32 @_Z5transc(i8 noundef signext %264)
  %266 = call noundef i32 @_Z3Squi(i32 noundef %265)
  br label %268

267:                                              ; preds = %256
  br label %268

268:                                              ; preds = %267, %260
  %269 = phi i32 [ %266, %260 ], [ 0, %267 ]
  %270 = sitofp i32 %269 to x86_fp80
  %271 = load i32, ptr %24, align 4, !tbaa !5
  %272 = load i32, ptr @m, align 4, !tbaa !5
  %273 = icmp slt i32 %271, %272
  br i1 %273, label %274, label %281

274:                                              ; preds = %268
  %275 = load i32, ptr %24, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [300001 x i8], ptr @t, i64 0, i64 %276
  %278 = load i8, ptr %277, align 1, !tbaa !11
  %279 = call noundef i32 @_Z5transc(i8 noundef signext %278)
  %280 = call noundef i32 @_Z3Squi(i32 noundef %279)
  br label %282

281:                                              ; preds = %268
  br label %282

282:                                              ; preds = %281, %274
  %283 = phi i32 [ %280, %274 ], [ 0, %281 ]
  %284 = sitofp i32 %283 to x86_fp80
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %25, x86_fp80 noundef %270, x86_fp80 noundef %284)
  %285 = load i32, ptr %24, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %286
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %287, ptr align 16 %25, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  br label %288

288:                                              ; preds = %282
  %289 = load i32, ptr %24, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %24, align 4, !tbaa !5
  br label %251, !llvm.loop !25

291:                                              ; preds = %255
  %292 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @X, i32 noundef %292, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %320, %291
  %294 = load i32, ptr %26, align 4, !tbaa !5
  %295 = load i32, ptr @len, align 4, !tbaa !5
  %296 = icmp slt i32 %294, %295
  br i1 %296, label %298, label %297

297:                                              ; preds = %293
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %323

298:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %299 = load i32, ptr @len, align 4, !tbaa !5
  %300 = load i32, ptr %26, align 4, !tbaa !5
  %301 = sub nsw i32 %299, %300
  %302 = load i32, ptr @len, align 4, !tbaa !5
  %303 = sub nsw i32 %302, 1
  %304 = and i32 %301, %303
  store i32 %304, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #8
  %305 = load i32, ptr %26, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %306
  %308 = load i32, ptr %26, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %309
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %30, ptr noundef nonnull align 16 dereferenceable(32) %307, ptr noundef nonnull align 16 dereferenceable(32) %310)
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #8
  %311 = load i32, ptr %27, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %312
  %314 = load i32, ptr %27, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %315
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %32, ptr noundef nonnull align 16 dereferenceable(32) %313, ptr noundef nonnull align 16 dereferenceable(32) %316)
  call void @_ZN7complex4conjEv(ptr dead_on_unwind writable sret(%struct.complex) align 16 %31, ptr noundef nonnull align 16 dereferenceable(32) %32)
  call void @_ZmiRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %29, ptr noundef nonnull align 16 dereferenceable(32) %30, ptr noundef nonnull align 16 dereferenceable(32) %31)
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #8
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %33, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xKBFFD8000000000000000)
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind writable sret(%struct.complex) align 16 %28, ptr noundef nonnull align 16 dereferenceable(32) %29, ptr noundef nonnull align 16 dereferenceable(32) %33)
  %317 = load i32, ptr %26, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %318
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %319, ptr align 16 %28, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %320

320:                                              ; preds = %298
  %321 = load i32, ptr %26, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %26, align 4, !tbaa !5
  br label %293, !llvm.loop !26

323:                                              ; preds = %297
  %324 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FFTP7complexii(ptr noundef @Y, i32 noundef %324, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %325

325:                                              ; preds = %362, %323
  %326 = load i32, ptr %34, align 4, !tbaa !5
  %327 = load i32, ptr @m, align 4, !tbaa !5
  %328 = load i32, ptr @n, align 4, !tbaa !5
  %329 = sub nsw i32 %327, %328
  %330 = icmp sle i32 %326, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %325
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %365

332:                                              ; preds = %325
  %333 = load i32, ptr @n, align 4, !tbaa !5
  %334 = sub nsw i32 %333, 1
  %335 = load i32, ptr %34, align 4, !tbaa !5
  %336 = add nsw i32 %334, %335
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %337
  %339 = getelementptr inbounds %struct.complex, ptr %338, i32 0, i32 0
  %340 = load x86_fp80, ptr %339, align 16, !tbaa !17
  %341 = fadd x86_fp80 %340, 0xK3FFE8000000000000000
  %342 = fptosi x86_fp80 %341 to i64
  %343 = shl i64 %342, 1
  %344 = load i32, ptr %34, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %345
  %347 = load i64, ptr %346, align 8, !tbaa !19
  %348 = sub nsw i64 %347, %343
  store i64 %348, ptr %346, align 8, !tbaa !19
  %349 = load i32, ptr %34, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %350
  %352 = load i64, ptr %351, align 8, !tbaa !19
  %353 = icmp ne i64 %352, 0
  br i1 %353, label %361, label %354

354:                                              ; preds = %332
  %355 = load i32, ptr %34, align 4, !tbaa !5
  %356 = add nsw i32 %355, 1
  %357 = load i32, ptr @cnt, align 4, !tbaa !5
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr @cnt, align 4, !tbaa !5
  %359 = sext i32 %357 to i64
  %360 = getelementptr inbounds [300001 x i32], ptr @out, i64 0, i64 %359
  store i32 %356, ptr %360, align 4, !tbaa !5
  br label %361

361:                                              ; preds = %354, %332
  br label %362

362:                                              ; preds = %361
  %363 = load i32, ptr %34, align 4, !tbaa !5
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %34, align 4, !tbaa !5
  br label %325, !llvm.loop !27

365:                                              ; preds = %331
  %366 = load i32, ptr @cnt, align 4, !tbaa !5
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %366)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %368

368:                                              ; preds = %387, %365
  %369 = load i32, ptr %35, align 4, !tbaa !5
  %370 = load i32, ptr @cnt, align 4, !tbaa !5
  %371 = icmp slt i32 %369, %370
  br i1 %371, label %373, label %372

372:                                              ; preds = %368
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %390

373:                                              ; preds = %368
  %374 = load i32, ptr %35, align 4, !tbaa !5
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [300001 x i32], ptr @out, i64 0, i64 %375
  %377 = load i32, ptr %376, align 4, !tbaa !5
  %378 = load i32, ptr %35, align 4, !tbaa !5
  %379 = load i32, ptr @cnt, align 4, !tbaa !5
  %380 = sub nsw i32 %379, 1
  %381 = icmp eq i32 %378, %380
  %382 = zext i1 %381 to i64
  %383 = getelementptr inbounds [3 x i8], ptr @.str.5, i64 0, i64 %382
  %384 = load i8, ptr %383, align 1, !tbaa !11
  %385 = sext i8 %384 to i32
  %386 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %377, i32 noundef %385)
  br label %387

387:                                              ; preds = %373
  %388 = load i32, ptr %35, align 4, !tbaa !5
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %35, align 4, !tbaa !5
  br label %368, !llvm.loop !28

390:                                              ; preds = %372
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3Cubi(i32 noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5transc(i8 noundef signext) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7complex4conjEv(ptr dead_on_unwind noalias writable sret(%struct.complex) align 16, ptr noundef nonnull align 16 dereferenceable(32)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3Squi(i32 noundef) #7

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 16, !13, i64 16, i64 16, !13}
!13 = !{!14, !14, i64 0}
!14 = !{!"long double", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !14, i64 0}
!18 = !{!"_ZTS7complex", !14, i64 0, !14, i64 16}
!19 = !{!20, !20, i64 0}
!20 = !{!"long long", !7, i64 0}
!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}


; 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 { x86_fp80, x86_fp80 }

@X = external dso_local global [1048576 x %struct.complex], align 16
@Y = external dso_local global [1048576 x %struct.complex], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@len = external dso_local local_unnamed_addr global i32, align 4
@cnt = external dso_local local_unnamed_addr global i32, align 4
@out = external dso_local local_unnamed_addr global [300001 x i32], align 16
@s = external dso_local global [300001 x i8], align 16
@t = external dso_local global [300001 x i8], align 16
@f = external dso_local local_unnamed_addr global [1048576 x i64], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlRK7complexS1_(ptr dead_on_unwind noalias writable sret(%struct.complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmiRK7complexS1_(ptr dead_on_unwind noalias writable sret(%struct.complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca %struct.complex, align 16
  %2 = alloca %struct.complex, align 16
  %3 = alloca %struct.complex, align 16
  %4 = alloca %struct.complex, align 16
  %5 = alloca %struct.complex, align 16
  %6 = alloca %struct.complex, align 16
  %7 = alloca %struct.complex, align 16
  %8 = alloca %struct.complex, align 16
  %9 = alloca %struct.complex, align 16
  %10 = alloca %struct.complex, align 16
  %11 = alloca %struct.complex, align 16
  %12 = alloca %struct.complex, align 16
  %13 = alloca %struct.complex, align 16
  %14 = alloca %struct.complex, align 16
  %15 = alloca %struct.complex, align 16
  %16 = alloca %struct.complex, align 16
  %17 = alloca %struct.complex, align 16
  %18 = alloca %struct.complex, align 16
  %19 = alloca %struct.complex, align 16
  %20 = alloca %struct.complex, align 16
  %21 = alloca %struct.complex, align 16
  %22 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr @s, i64 %24
  tail call void @_ZSt7reverseIPcEvT_S1_(ptr noundef nonnull @s, ptr noundef nonnull %25)
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = load i32, ptr @m, align 4, !tbaa !5
  %28 = add nsw i32 %27, %26
  br label %29

29:                                               ; preds = %29, %0
  %storemerge = phi i32 [ 1, %0 ], [ %31, %29 ]
  %30 = icmp slt i32 %storemerge, %28
  %31 = shl i32 %storemerge, 1
  br i1 %30, label %29, label %.preheader86, !llvm.loop !9

.preheader86:                                     ; preds = %29
  store i32 %storemerge, ptr @len, align 4, !tbaa !5
  %32 = icmp sgt i32 %storemerge, 0
  br i1 %32, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %53, %.preheader86
  %.lcssa91 = phi i32 [ %storemerge, %.preheader86 ], [ %57, %53 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @X, i32 noundef %.lcssa91, i32 noundef 1)
  %33 = load i32, ptr @len, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph95, label %._crit_edge96

.lr.ph:                                           ; preds = %.preheader86, %53
  %indvars.iv = phi i64 [ %indvars.iv.next, %53 ], [ 0, %.preheader86 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  %35 = load i32, ptr @n, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv, %36
  br i1 %37, label %38, label %43

38:                                               ; preds = %.lr.ph
  %39 = getelementptr inbounds [300001 x i8], ptr @s, i64 0, i64 %indvars.iv
  %40 = load i8, ptr %39, align 1, !tbaa !11
  %41 = call noundef i32 @_Z5transc(i8 noundef signext %40)
  %42 = call noundef i32 @_Z3Cubi(i32 noundef %41)
  br label %43

43:                                               ; preds = %.lr.ph, %38
  %44 = phi i32 [ %42, %38 ], [ 0, %.lr.ph ]
  %45 = sitofp i32 %44 to x86_fp80
  %46 = load i32, ptr @m, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv, %47
  br i1 %48, label %49, label %53

49:                                               ; preds = %43
  %50 = getelementptr inbounds [300001 x i8], ptr @t, i64 0, i64 %indvars.iv
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = call noundef i32 @_Z5transc(i8 noundef signext %51)
  br label %53

53:                                               ; preds = %43, %49
  %54 = phi i32 [ %52, %49 ], [ 0, %43 ]
  %55 = sitofp i32 %54 to x86_fp80
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %1, x86_fp80 noundef %45, x86_fp80 noundef %55)
  %56 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %56, ptr noundef nonnull align 16 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i32, ptr @len, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next, %58
  br i1 %59, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge96:                                    ; preds = %.lr.ph95, %._crit_edge
  %.lcssa90 = phi i32 [ %33, %._crit_edge ], [ %74, %.lr.ph95 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @Y, i32 noundef %.lcssa90, i32 noundef -1)
  %60 = load i32, ptr @m, align 4, !tbaa !5
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %.not98 = icmp slt i32 %60, %61
  br i1 %.not98, label %.preheader85, label %.lr.ph101.preheader

.lr.ph101.preheader:                              ; preds = %._crit_edge96
  %62 = add i32 %60, 1
  %63 = sub i32 %62, %61
  %wide.trip.count = zext i32 %63 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %.preheader85.loopexit.unr-lcssa, label %.lr.ph101.preheader.new

.lr.ph101.preheader.new:                          ; preds = %.lr.ph101.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %.lr.ph101

.lr.ph95:                                         ; preds = %._crit_edge, %.lr.ph95
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %.lr.ph95 ], [ 0, %._crit_edge ]
  %65 = phi i32 [ %74, %.lr.ph95 ], [ %33, %._crit_edge ]
  %66 = trunc nuw nsw i64 %indvars.iv140 to i32
  %67 = sub nsw i32 %65, %66
  %68 = add nsw i32 %65, -1
  %69 = and i32 %67, %68
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  %70 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv140
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %4, ptr noundef nonnull align 16 dereferenceable(32) %70, ptr noundef nonnull align 16 dereferenceable(32) %70)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %71 = sext i32 %69 to i64
  %72 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %71
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %6, ptr noundef nonnull align 16 dereferenceable(32) %72, ptr noundef nonnull align 16 dereferenceable(32) %72)
  call void @_ZN7complex4conjEv(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %5, ptr noundef nonnull align 16 dereferenceable(32) %6)
  call void @_ZmiRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %3, ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull align 16 dereferenceable(32) %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %7, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xKBFFD8000000000000000)
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %2, ptr noundef nonnull align 16 dereferenceable(32) %3, ptr noundef nonnull align 16 dereferenceable(32) %7)
  %73 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %indvars.iv140
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %73, ptr noundef nonnull align 16 dereferenceable(32) %2, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %74 = load i32, ptr @len, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next141, %75
  br i1 %76, label %.lr.ph95, label %._crit_edge96, !llvm.loop !16

.preheader85.loopexit.unr-lcssa:                  ; preds = %.lr.ph101, %.lr.ph101.preheader
  %indvars.iv143.unr = phi i64 [ 0, %.lr.ph101.preheader ], [ %indvars.iv.next144.1, %.lr.ph101 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader85, label %.lr.ph101.epil

.lr.ph101.epil:                                   ; preds = %.preheader85.loopexit.unr-lcssa
  %77 = trunc i64 %indvars.iv143.unr to i32
  %78 = add i32 %77, -1
  %79 = add i32 %78, %61
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %80
  %82 = load x86_fp80, ptr %81, align 16, !tbaa !17
  %83 = fadd x86_fp80 %82, 0xK3FFE8000000000000000
  %84 = fptosi x86_fp80 %83 to i64
  %85 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %indvars.iv143.unr
  %86 = load i64, ptr %85, align 8, !tbaa !19
  %87 = add nsw i64 %86, %84
  store i64 %87, ptr %85, align 8, !tbaa !19
  br label %.preheader85

.preheader85:                                     ; preds = %.lr.ph101.epil, %.preheader85.loopexit.unr-lcssa, %._crit_edge96
  %88 = load i32, ptr @len, align 4, !tbaa !5
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph103, label %._crit_edge104

.lr.ph101:                                        ; preds = %.lr.ph101, %.lr.ph101.preheader.new
  %indvars.iv143 = phi i64 [ 0, %.lr.ph101.preheader.new ], [ %indvars.iv.next144.1, %.lr.ph101 ]
  %niter = phi i64 [ 0, %.lr.ph101.preheader.new ], [ %niter.next.1, %.lr.ph101 ]
  %90 = trunc i64 %indvars.iv143 to i32
  %91 = add i32 %90, -1
  %92 = add i32 %91, %61
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %93
  %95 = load x86_fp80, ptr %94, align 16, !tbaa !17
  %96 = fadd x86_fp80 %95, 0xK3FFE8000000000000000
  %97 = fptosi x86_fp80 %96 to i64
  %98 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %indvars.iv143
  %99 = load i64, ptr %98, align 16, !tbaa !19
  %100 = add nsw i64 %99, %97
  store i64 %100, ptr %98, align 16, !tbaa !19
  %indvars.iv.next144 = or disjoint i64 %indvars.iv143, 1
  %101 = trunc i64 %indvars.iv.next144 to i32
  %102 = add nsw i32 %101, -1
  %103 = add i32 %102, %61
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %104
  %106 = load x86_fp80, ptr %105, align 16, !tbaa !17
  %107 = fadd x86_fp80 %106, 0xK3FFE8000000000000000
  %108 = fptosi x86_fp80 %107 to i64
  %109 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %indvars.iv.next144
  %110 = load i64, ptr %109, align 8, !tbaa !19
  %111 = add nsw i64 %110, %108
  store i64 %111, ptr %109, align 8, !tbaa !19
  %indvars.iv.next144.1 = add nuw nsw i64 %indvars.iv143, 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 %.preheader85.loopexit.unr-lcssa, label %.lr.ph101, !llvm.loop !21

._crit_edge104:                                   ; preds = %132, %.preheader85
  %.lcssa89 = phi i32 [ %88, %.preheader85 ], [ %136, %132 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @X, i32 noundef %.lcssa89, i32 noundef 1)
  %112 = load i32, ptr @len, align 4, !tbaa !5
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.lr.ph108, label %._crit_edge109

.lr.ph103:                                        ; preds = %.preheader85, %132
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %132 ], [ 0, %.preheader85 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %114 = load i32, ptr @n, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv146, %115
  br i1 %116, label %117, label %121

117:                                              ; preds = %.lr.ph103
  %118 = getelementptr inbounds [300001 x i8], ptr @s, i64 0, i64 %indvars.iv146
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = call noundef i32 @_Z5transc(i8 noundef signext %119)
  br label %121

121:                                              ; preds = %.lr.ph103, %117
  %122 = phi i32 [ %120, %117 ], [ 0, %.lr.ph103 ]
  %123 = sitofp i32 %122 to x86_fp80
  %124 = load i32, ptr @m, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv146, %125
  br i1 %126, label %127, label %132

127:                                              ; preds = %121
  %128 = getelementptr inbounds [300001 x i8], ptr @t, i64 0, i64 %indvars.iv146
  %129 = load i8, ptr %128, align 1, !tbaa !11
  %130 = call noundef i32 @_Z5transc(i8 noundef signext %129)
  %131 = call noundef i32 @_Z3Cubi(i32 noundef %130)
  br label %132

132:                                              ; preds = %121, %127
  %133 = phi i32 [ %131, %127 ], [ 0, %121 ]
  %134 = sitofp i32 %133 to x86_fp80
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %8, x86_fp80 noundef %123, x86_fp80 noundef %134)
  %135 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv146
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %135, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %136 = load i32, ptr @len, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %indvars.iv.next147, %137
  br i1 %138, label %.lr.ph103, label %._crit_edge104, !llvm.loop !22

._crit_edge109:                                   ; preds = %.lr.ph108, %._crit_edge104
  %.lcssa88 = phi i32 [ %112, %._crit_edge104 ], [ %153, %.lr.ph108 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @Y, i32 noundef %.lcssa88, i32 noundef -1)
  %139 = load i32, ptr @m, align 4, !tbaa !5
  %140 = load i32, ptr @n, align 4, !tbaa !5
  %.not82111 = icmp slt i32 %139, %140
  br i1 %.not82111, label %.preheader, label %.lr.ph114.preheader

.lr.ph114.preheader:                              ; preds = %._crit_edge109
  %141 = add i32 %139, 1
  %142 = sub i32 %141, %140
  %wide.trip.count155 = zext i32 %142 to i64
  %xtraiter192 = and i64 %wide.trip.count155, 1
  %143 = icmp eq i32 %142, 1
  br i1 %143, label %.preheader.loopexit.unr-lcssa, label %.lr.ph114.preheader.new

.lr.ph114.preheader.new:                          ; preds = %.lr.ph114.preheader
  %unroll_iter194 = and i64 %wide.trip.count155, 4294967294
  br label %.lr.ph114

.lr.ph108:                                        ; preds = %._crit_edge104, %.lr.ph108
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph108 ], [ 0, %._crit_edge104 ]
  %144 = phi i32 [ %153, %.lr.ph108 ], [ %112, %._crit_edge104 ]
  %145 = trunc nuw nsw i64 %indvars.iv149 to i32
  %146 = sub nsw i32 %144, %145
  %147 = add nsw i32 %144, -1
  %148 = and i32 %146, %147
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  %149 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv149
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %11, ptr noundef nonnull align 16 dereferenceable(32) %149, ptr noundef nonnull align 16 dereferenceable(32) %149)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  %150 = sext i32 %148 to i64
  %151 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %150
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %13, ptr noundef nonnull align 16 dereferenceable(32) %151, ptr noundef nonnull align 16 dereferenceable(32) %151)
  call void @_ZN7complex4conjEv(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %12, ptr noundef nonnull align 16 dereferenceable(32) %13)
  call void @_ZmiRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %12)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %14, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xKBFFD8000000000000000)
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %9, ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %14)
  %152 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %indvars.iv149
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %152, ptr noundef nonnull align 16 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %153 = load i32, ptr @len, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = icmp slt i64 %indvars.iv.next150, %154
  br i1 %155, label %.lr.ph108, label %._crit_edge109, !llvm.loop !23

.preheader.loopexit.unr-lcssa:                    ; preds = %.lr.ph114, %.lr.ph114.preheader
  %indvars.iv152.unr = phi i64 [ 0, %.lr.ph114.preheader ], [ %indvars.iv.next153.1, %.lr.ph114 ]
  %lcmp.mod193.not = icmp eq i64 %xtraiter192, 0
  br i1 %lcmp.mod193.not, label %.preheader, label %.lr.ph114.epil

.lr.ph114.epil:                                   ; preds = %.preheader.loopexit.unr-lcssa
  %156 = trunc i64 %indvars.iv152.unr to i32
  %157 = add i32 %156, -1
  %158 = add i32 %157, %140
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %159
  %161 = load x86_fp80, ptr %160, align 16, !tbaa !17
  %162 = fadd x86_fp80 %161, 0xK3FFE8000000000000000
  %163 = fptosi x86_fp80 %162 to i64
  %164 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %indvars.iv152.unr
  %165 = load i64, ptr %164, align 8, !tbaa !19
  %166 = add nsw i64 %165, %163
  store i64 %166, ptr %164, align 8, !tbaa !19
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph114.epil, %.preheader.loopexit.unr-lcssa, %._crit_edge109
  %167 = load i32, ptr @len, align 4, !tbaa !5
  %168 = icmp sgt i32 %167, 0
  br i1 %168, label %.lr.ph116, label %._crit_edge117

.lr.ph114:                                        ; preds = %.lr.ph114, %.lr.ph114.preheader.new
  %indvars.iv152 = phi i64 [ 0, %.lr.ph114.preheader.new ], [ %indvars.iv.next153.1, %.lr.ph114 ]
  %niter195 = phi i64 [ 0, %.lr.ph114.preheader.new ], [ %niter195.next.1, %.lr.ph114 ]
  %169 = trunc i64 %indvars.iv152 to i32
  %170 = add i32 %169, -1
  %171 = add i32 %170, %140
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %172
  %174 = load x86_fp80, ptr %173, align 16, !tbaa !17
  %175 = fadd x86_fp80 %174, 0xK3FFE8000000000000000
  %176 = fptosi x86_fp80 %175 to i64
  %177 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %indvars.iv152
  %178 = load i64, ptr %177, align 16, !tbaa !19
  %179 = add nsw i64 %178, %176
  store i64 %179, ptr %177, align 16, !tbaa !19
  %indvars.iv.next153 = or disjoint i64 %indvars.iv152, 1
  %180 = trunc i64 %indvars.iv.next153 to i32
  %181 = add nsw i32 %180, -1
  %182 = add i32 %181, %140
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %183
  %185 = load x86_fp80, ptr %184, align 16, !tbaa !17
  %186 = fadd x86_fp80 %185, 0xK3FFE8000000000000000
  %187 = fptosi x86_fp80 %186 to i64
  %188 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %indvars.iv.next153
  %189 = load i64, ptr %188, align 8, !tbaa !19
  %190 = add nsw i64 %189, %187
  store i64 %190, ptr %188, align 8, !tbaa !19
  %indvars.iv.next153.1 = add nuw nsw i64 %indvars.iv152, 2
  %niter195.next.1 = add i64 %niter195, 2
  %niter195.ncmp.1 = icmp eq i64 %niter195.next.1, %unroll_iter194
  br i1 %niter195.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %.lr.ph114, !llvm.loop !24

._crit_edge117:                                   ; preds = %212, %.preheader
  %.lcssa87 = phi i32 [ %167, %.preheader ], [ %216, %212 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @X, i32 noundef %.lcssa87, i32 noundef 1)
  %191 = load i32, ptr @len, align 4, !tbaa !5
  %192 = icmp sgt i32 %191, 0
  br i1 %192, label %.lr.ph121, label %._crit_edge122

.lr.ph116:                                        ; preds = %.preheader, %212
  %indvars.iv157 = phi i64 [ %indvars.iv.next158, %212 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  %193 = load i32, ptr @n, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = icmp slt i64 %indvars.iv157, %194
  br i1 %195, label %196, label %201

196:                                              ; preds = %.lr.ph116
  %197 = getelementptr inbounds [300001 x i8], ptr @s, i64 0, i64 %indvars.iv157
  %198 = load i8, ptr %197, align 1, !tbaa !11
  %199 = call noundef i32 @_Z5transc(i8 noundef signext %198)
  %200 = call noundef i32 @_Z3Squi(i32 noundef %199)
  br label %201

201:                                              ; preds = %.lr.ph116, %196
  %202 = phi i32 [ %200, %196 ], [ 0, %.lr.ph116 ]
  %203 = sitofp i32 %202 to x86_fp80
  %204 = load i32, ptr @m, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = icmp slt i64 %indvars.iv157, %205
  br i1 %206, label %207, label %212

207:                                              ; preds = %201
  %208 = getelementptr inbounds [300001 x i8], ptr @t, i64 0, i64 %indvars.iv157
  %209 = load i8, ptr %208, align 1, !tbaa !11
  %210 = call noundef i32 @_Z5transc(i8 noundef signext %209)
  %211 = call noundef i32 @_Z3Squi(i32 noundef %210)
  br label %212

212:                                              ; preds = %201, %207
  %213 = phi i32 [ %211, %207 ], [ 0, %201 ]
  %214 = sitofp i32 %213 to x86_fp80
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %15, x86_fp80 noundef %203, x86_fp80 noundef %214)
  %215 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv157
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %215, ptr noundef nonnull align 16 dereferenceable(32) %15, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %216 = load i32, ptr @len, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = icmp slt i64 %indvars.iv.next158, %217
  br i1 %218, label %.lr.ph116, label %._crit_edge117, !llvm.loop !25

._crit_edge122:                                   ; preds = %.lr.ph121, %._crit_edge117
  %.lcssa = phi i32 [ %191, %._crit_edge117 ], [ %232, %.lr.ph121 ]
  call void @_Z3FFTP7complexii(ptr noundef nonnull @Y, i32 noundef %.lcssa, i32 noundef -1)
  %219 = load i32, ptr @m, align 4, !tbaa !5
  %220 = load i32, ptr @n, align 4, !tbaa !5
  %cnt.promoted = load i32, ptr @cnt, align 4, !tbaa !5
  %.not83124 = icmp slt i32 %219, %220
  br i1 %.not83124, label %._crit_edge128, label %.lr.ph127.preheader

.lr.ph127.preheader:                              ; preds = %._crit_edge122
  %221 = add i32 %219, 1
  %222 = sub i32 %221, %220
  %wide.trip.count166 = zext i32 %222 to i64
  br label %.lr.ph127

.lr.ph121:                                        ; preds = %._crit_edge117, %.lr.ph121
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %.lr.ph121 ], [ 0, %._crit_edge117 ]
  %223 = phi i32 [ %232, %.lr.ph121 ], [ %191, %._crit_edge117 ]
  %224 = trunc nuw nsw i64 %indvars.iv160 to i32
  %225 = sub nsw i32 %223, %224
  %226 = add nsw i32 %223, -1
  %227 = and i32 %225, %226
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #8
  %228 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %indvars.iv160
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %18, ptr noundef nonnull align 16 dereferenceable(32) %228, ptr noundef nonnull align 16 dereferenceable(32) %228)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #8
  %229 = sext i32 %227 to i64
  %230 = getelementptr inbounds [1048576 x %struct.complex], ptr @X, i64 0, i64 %229
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %20, ptr noundef nonnull align 16 dereferenceable(32) %230, ptr noundef nonnull align 16 dereferenceable(32) %230)
  call void @_ZN7complex4conjEv(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %19, ptr noundef nonnull align 16 dereferenceable(32) %20)
  call void @_ZmiRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 16 dereferenceable(32) %19)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #8
  call void @_ZN7complexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %21, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xKBFFD8000000000000000)
  call void @_ZmlRK7complexS1_(ptr dead_on_unwind nonnull writable sret(%struct.complex) align 16 %16, ptr noundef nonnull align 16 dereferenceable(32) %17, ptr noundef nonnull align 16 dereferenceable(32) %21)
  %231 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %indvars.iv160
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %231, ptr noundef nonnull align 16 dereferenceable(32) %16, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %232 = load i32, ptr @len, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = icmp slt i64 %indvars.iv.next161, %233
  br i1 %234, label %.lr.ph121, label %._crit_edge122, !llvm.loop !26

._crit_edge128:                                   ; preds = %.lr.ph127._crit_edge, %._crit_edge122
  %235 = phi i32 [ %cnt.promoted, %._crit_edge122 ], [ %258, %.lr.ph127._crit_edge ]
  %236 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %235)
  %237 = load i32, ptr @cnt, align 4, !tbaa !5
  %238 = icmp sgt i32 %237, 0
  br i1 %238, label %.lr.ph131, label %._crit_edge132

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %.lr.ph127._crit_edge
  %indvars.iv163 = phi i64 [ 0, %.lr.ph127.preheader ], [ %252, %.lr.ph127._crit_edge ]
  %239 = phi i32 [ %cnt.promoted, %.lr.ph127.preheader ], [ %258, %.lr.ph127._crit_edge ]
  %240 = trunc i64 %indvars.iv163 to i32
  %241 = add i32 %240, -1
  %242 = add i32 %241, %220
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [1048576 x %struct.complex], ptr @Y, i64 0, i64 %243
  %245 = load x86_fp80, ptr %244, align 16, !tbaa !17
  %246 = fadd x86_fp80 %245, 0xK3FFE8000000000000000
  %247 = fptosi x86_fp80 %246 to i64
  %248 = shl i64 %247, 1
  %249 = getelementptr inbounds [1048576 x i64], ptr @f, i64 0, i64 %indvars.iv163
  %250 = load i64, ptr %249, align 8, !tbaa !19
  %251 = sub nsw i64 %250, %248
  store i64 %251, ptr %249, align 8, !tbaa !19
  %.not84 = icmp eq i64 %250, %248
  %252 = add nuw nsw i64 %indvars.iv163, 1
  br i1 %.not84, label %253, label %.lr.ph127._crit_edge

253:                                              ; preds = %.lr.ph127
  %254 = add nsw i32 %239, 1
  store i32 %254, ptr @cnt, align 4, !tbaa !5
  %255 = sext i32 %239 to i64
  %256 = getelementptr inbounds [300001 x i32], ptr @out, i64 0, i64 %255
  %257 = trunc nsw i64 %252 to i32
  store i32 %257, ptr %256, align 4, !tbaa !5
  br label %.lr.ph127._crit_edge

.lr.ph127._crit_edge:                             ; preds = %.lr.ph127, %253
  %258 = phi i32 [ %254, %253 ], [ %239, %.lr.ph127 ]
  %exitcond167.not = icmp eq i64 %252, %wide.trip.count166
  br i1 %exitcond167.not, label %._crit_edge128, label %.lr.ph127, !llvm.loop !27

._crit_edge132:                                   ; preds = %.lr.ph131, %._crit_edge128
  ret i32 0

.lr.ph131:                                        ; preds = %._crit_edge128, %.lr.ph131
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %.lr.ph131 ], [ 0, %._crit_edge128 ]
  %259 = phi i32 [ %270, %.lr.ph131 ], [ %237, %._crit_edge128 ]
  %260 = getelementptr inbounds [300001 x i32], ptr @out, i64 0, i64 %indvars.iv168
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = add nsw i32 %259, -1
  %263 = zext i32 %262 to i64
  %264 = icmp eq i64 %indvars.iv168, %263
  %265 = zext i1 %264 to i64
  %266 = getelementptr inbounds [3 x i8], ptr @.str.5, i64 0, i64 %265
  %267 = load i8, ptr %266, align 1, !tbaa !11
  %268 = sext i8 %267 to i32
  %269 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %261, i32 noundef %268)
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %270 = load i32, ptr @cnt, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = icmp slt i64 %indvars.iv.next169, %271
  br i1 %272, label %.lr.ph131, label %._crit_edge132, !llvm.loop !28
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3Cubi(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5transc(i8 noundef signext) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7complex4conjEv(ptr dead_on_unwind noalias writable sret(%struct.complex) align 16, ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3Squi(i32 noundef) local_unnamed_addr #7

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 16, !13, i64 16, i64 16, !13}
!13 = !{!14, !14, i64 0}
!14 = !{!"long double", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !14, i64 0}
!18 = !{!"_ZTS7complex", !14, i64 0, !14, i64 16}
!19 = !{!20, !20, i64 0}
!20 = !{!"long long", !7, i64 0}
!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: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass