; LLVM IR from tangjz/acm-icpc :: buaa/oj3rd (1133)

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

@a = external dso_local global [32769 x i64], align 16
@b = external dso_local global [32769 x i64], align 16
@eps = external dso_local global [32769 x i64], align 16
@inv_eps = external dso_local global [32769 x i64], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global [32769 x i8], align 16
@t = external dso_local global [32769 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7mod_powxx(i64 noundef, i64 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 @_Z8init_epsi(i32 noundef) #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_Z8init_epsi(i32 noundef 32768)
  br label %10

10:                                               ; preds = %246, %0
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @s, ptr noundef @t)
  %12 = icmp eq i32 %11, 2
  br i1 %12, label %13, label %248

13:                                               ; preds = %10
  call void @llvm.memset.p0.i64(ptr align 16 @a, i8 0, i64 262152, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @b, i8 0, i64 262152, i1 false)
  %14 = call i64 @strlen(ptr noundef @s) #7
  %15 = trunc i64 %14 to i32
  store i32 %15, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %35, %13
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %21, label %20

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

21:                                               ; preds = %16
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = sub nsw i32 %22, 1
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sub nsw i32 %23, %24
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [32769 x i8], ptr @s, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = sext i8 %28 to i32
  %30 = sub nsw i32 %29, 48
  %31 = sext i32 %30 to i64
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %33
  store i64 %31, ptr %34, align 8, !tbaa !10
  br label %35

35:                                               ; preds = %21
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %2, align 4, !tbaa !5
  br label %16, !llvm.loop !12

38:                                               ; preds = %20
  %39 = call i64 @strlen(ptr noundef @t) #7
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %60, %38
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %63

46:                                               ; preds = %41
  %47 = load i32, ptr @m, align 4, !tbaa !5
  %48 = sub nsw i32 %47, 1
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = sub nsw i32 %48, %49
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [32769 x i8], ptr @t, i64 0, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !9
  %54 = sext i8 %53 to i32
  %55 = sub nsw i32 %54, 48
  %56 = sext i32 %55 to i64
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [32769 x i64], ptr @b, i64 0, i64 %58
  store i64 %56, ptr %59, align 8, !tbaa !10
  br label %60

60:                                               ; preds = %46
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !5
  br label %41, !llvm.loop !14

63:                                               ; preds = %45
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = load i32, ptr @m, align 4, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %67, label %69

67:                                               ; preds = %63
  %68 = load i32, ptr @m, align 4, !tbaa !5
  br label %71

69:                                               ; preds = %63
  %70 = load i32, ptr @n, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %69, %67
  %72 = phi i32 [ %68, %67 ], [ %70, %69 ]
  %73 = shl i32 %72, 1
  store i32 %73, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %74 = load i32, ptr @n, align 4, !tbaa !5
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %76 = sub nsw i32 0, %75
  %77 = and i32 %74, %76
  store i32 %77, ptr %4, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %84, %71
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = load i32, ptr @n, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

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

83:                                               ; preds = %78
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = sub nsw i32 %86, %85
  store i32 %87, ptr @n, align 4, !tbaa !5
  %88 = load i32, ptr @n, align 4, !tbaa !5
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = sub nsw i32 0, %89
  %91 = and i32 %88, %90
  store i32 %91, ptr %4, align 4, !tbaa !5
  br label %78, !llvm.loop !15

92:                                               ; preds = %82
  %93 = load i32, ptr @n, align 4, !tbaa !5
  %94 = shl i32 %93, 1
  store i32 %94, ptr @n, align 4, !tbaa !5
  %95 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3NTTiPxS_(i32 noundef %95, ptr noundef @a, ptr noundef @eps)
  %96 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3NTTiPxS_(i32 noundef %96, ptr noundef @b, ptr noundef @eps)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %116, %92
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %102, label %101

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

102:                                              ; preds = %97
  %103 = load i32, ptr %5, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !10
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [32769 x i64], ptr @b, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !10
  %111 = mul nsw i64 %106, %110
  %112 = srem i64 %111, 998244353
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %114
  store i64 %112, ptr %115, align 8, !tbaa !10
  br label %116

116:                                              ; preds = %102
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %5, align 4, !tbaa !5
  br label %97, !llvm.loop !16

119:                                              ; preds = %101
  %120 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3NTTiPxS_(i32 noundef %120, ptr noundef @a, ptr noundef @inv_eps)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %121 = load i32, ptr @n, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = call noundef i64 @_Z7mod_powxx(i64 noundef %122, i64 noundef 998244351)
  store i64 %123, ptr %6, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %140, %119
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = load i32, ptr @n, align 4, !tbaa !5
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

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

129:                                              ; preds = %124
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !10
  %134 = load i64, ptr %6, align 8, !tbaa !10
  %135 = mul nsw i64 %133, %134
  %136 = srem i64 %135, 998244353
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %138
  store i64 %136, ptr %139, align 8, !tbaa !10
  br label %140

140:                                              ; preds = %129
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %7, align 4, !tbaa !5
  br label %124, !llvm.loop !17

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

144:                                              ; preds = %173, %143
  %145 = load i32, ptr %8, align 4, !tbaa !5
  %146 = load i32, ptr @n, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

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

149:                                              ; preds = %144
  %150 = load i32, ptr %8, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !10
  %154 = icmp sge i64 %153, 8
  br i1 %154, label %155, label %172

155:                                              ; preds = %149
  %156 = load i32, ptr %8, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !10
  %160 = ashr i64 %159, 3
  %161 = load i32, ptr %8, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %163
  %165 = load i64, ptr %164, align 8, !tbaa !10
  %166 = add nsw i64 %165, %160
  store i64 %166, ptr %164, align 8, !tbaa !10
  %167 = load i32, ptr %8, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !10
  %171 = and i64 %170, 7
  store i64 %171, ptr %169, align 8, !tbaa !10
  br label %172

172:                                              ; preds = %155, %149
  br label %173

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

176:                                              ; preds = %148
  br label %177

177:                                              ; preds = %207, %176
  %178 = load i32, ptr @n, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !10
  %182 = icmp ne i64 %181, 0
  br i1 %182, label %183, label %210

183:                                              ; preds = %177
  %184 = load i32, ptr @n, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !10
  %188 = icmp sge i64 %187, 8
  br i1 %188, label %189, label %206

189:                                              ; preds = %183
  %190 = load i32, ptr @n, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !10
  %194 = ashr i64 %193, 3
  %195 = load i32, ptr @n, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !10
  %200 = add nsw i64 %199, %194
  store i64 %200, ptr %198, align 8, !tbaa !10
  %201 = load i32, ptr @n, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %202
  %204 = load i64, ptr %203, align 8, !tbaa !10
  %205 = and i64 %204, 7
  store i64 %205, ptr %203, align 8, !tbaa !10
  br label %206

206:                                              ; preds = %189, %183
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr @n, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr @n, align 4, !tbaa !5
  br label %177, !llvm.loop !19

210:                                              ; preds = %177
  br label %211

211:                                              ; preds = %225, %210
  %212 = load i32, ptr @n, align 4, !tbaa !5
  %213 = icmp sgt i32 %212, 1
  br i1 %213, label %214, label %222

214:                                              ; preds = %211
  %215 = load i32, ptr @n, align 4, !tbaa !5
  %216 = sub nsw i32 %215, 1
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %217
  %219 = load i64, ptr %218, align 8, !tbaa !10
  %220 = icmp ne i64 %219, 0
  %221 = xor i1 %220, true
  br label %222

222:                                              ; preds = %214, %211
  %223 = phi i1 [ false, %211 ], [ %221, %214 ]
  br i1 %223, label %224, label %228

224:                                              ; preds = %222
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr @n, align 4, !tbaa !5
  %227 = add nsw i32 %226, -1
  store i32 %227, ptr @n, align 4, !tbaa !5
  br label %211, !llvm.loop !20

228:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %229 = load i32, ptr @n, align 4, !tbaa !5
  %230 = sub nsw i32 %229, 1
  store i32 %230, ptr %9, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %243, %228
  %232 = load i32, ptr %9, align 4, !tbaa !5
  %233 = icmp sge i32 %232, 0
  br i1 %233, label %235, label %234

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

235:                                              ; preds = %231
  %236 = load i32, ptr %9, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !10
  %240 = add nsw i64 48, %239
  %241 = trunc i64 %240 to i32
  %242 = call i32 @putchar(i32 noundef %241)
  br label %243

243:                                              ; preds = %235
  %244 = load i32, ptr %9, align 4, !tbaa !5
  %245 = add nsw i32 %244, -1
  store i32 %245, ptr %9, align 4, !tbaa !5
  br label %231, !llvm.loop !21

246:                                              ; preds = %234
  %247 = call i32 @putchar(i32 noundef 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %10, !llvm.loop !22

248:                                              ; preds = %10
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar(i32 noundef) #6

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


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

@a = external dso_local global [32769 x i64], align 16
@b = external dso_local global [32769 x i64], align 16
@eps = external dso_local global [32769 x i64], align 16
@inv_eps = external dso_local global [32769 x i64], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local global [32769 x i8], align 16
@t = external dso_local global [32769 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7mod_powxx(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8init_epsi(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  tail call void @_Z8init_epsi(i32 noundef 32768)
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %2 = icmp eq i32 %1, 2
  br i1 %2, label %.lr.ph84, label %._crit_edge85

.lr.ph84:                                         ; preds = %0, %._crit_edge82
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(262152) @a, i8 0, i64 262152, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(262152) @b, i8 0, i64 262152, i1 false)
  %3 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @s) #7
  %4 = trunc i64 %3 to i32
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph84
  %6 = and i64 %3, 2147483647
  %wide.trip.count = and i64 %3, 2147483647
  %min.iters.check130 = icmp ult i64 %wide.trip.count, 4
  br i1 %min.iters.check130, label %.lr.ph.preheader144, label %vector.ph131

.lr.ph.preheader144:                              ; preds = %middle.block128, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec133, %middle.block128 ]
  br label %.lr.ph

vector.ph131:                                     ; preds = %.lr.ph.preheader
  %n.mod.vf132 = and i64 %3, 3
  %n.vec133 = sub nsw i64 %wide.trip.count, %n.mod.vf132
  br label %vector.body135

vector.body135:                                   ; preds = %vector.body135, %vector.ph131
  %index136 = phi i64 [ 0, %vector.ph131 ], [ %index.next141, %vector.body135 ]
  %7 = xor i64 %index136, -1
  %8 = add nsw i64 %6, %7
  %9 = getelementptr inbounds [32769 x i8], ptr @s, i64 0, i64 %8
  %10 = getelementptr inbounds i8, ptr %9, i64 -1
  %11 = getelementptr inbounds i8, ptr %9, i64 -3
  %wide.load137 = load <2 x i8>, ptr %10, align 1, !tbaa !5
  %reverse138 = shufflevector <2 x i8> %wide.load137, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
  %wide.load139 = load <2 x i8>, ptr %11, align 1, !tbaa !5
  %reverse140 = shufflevector <2 x i8> %wide.load139, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
  %12 = sext <2 x i8> %reverse138 to <2 x i64>
  %13 = sext <2 x i8> %reverse140 to <2 x i64>
  %14 = add nsw <2 x i64> %12, <i64 -48, i64 -48>
  %15 = add nsw <2 x i64> %13, <i64 -48, i64 -48>
  %16 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %index136
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <2 x i64> %14, ptr %16, align 16, !tbaa !8
  store <2 x i64> %15, ptr %17, align 16, !tbaa !8
  %index.next141 = add nuw i64 %index136, 4
  %18 = icmp eq i64 %index.next141, %n.vec133
  br i1 %18, label %middle.block128, label %vector.body135, !llvm.loop !10

middle.block128:                                  ; preds = %vector.body135
  %cmp.n142 = icmp eq i64 %n.mod.vf132, 0
  br i1 %cmp.n142, label %._crit_edge, label %.lr.ph.preheader144

._crit_edge:                                      ; preds = %.lr.ph, %middle.block128, %.lr.ph84
  %19 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @t) #7
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr @m, align 4, !tbaa !14
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph53.preheader, label %._crit_edge54

.lr.ph53.preheader:                               ; preds = %._crit_edge
  %22 = and i64 %19, 2147483647
  %wide.trip.count92 = and i64 %19, 2147483647
  %min.iters.check = icmp ult i64 %wide.trip.count92, 4
  br i1 %min.iters.check, label %.lr.ph53.preheader143, label %vector.ph

.lr.ph53.preheader143:                            ; preds = %middle.block, %.lr.ph53.preheader
  %indvars.iv89.ph = phi i64 [ 0, %.lr.ph53.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph53

vector.ph:                                        ; preds = %.lr.ph53.preheader
  %n.mod.vf = and i64 %19, 3
  %n.vec = sub nsw i64 %wide.trip.count92, %n.mod.vf
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %23 = xor i64 %index, -1
  %24 = add nsw i64 %22, %23
  %25 = getelementptr inbounds [32769 x i8], ptr @t, i64 0, i64 %24
  %26 = getelementptr inbounds i8, ptr %25, i64 -1
  %27 = getelementptr inbounds i8, ptr %25, i64 -3
  %wide.load = load <2 x i8>, ptr %26, align 1, !tbaa !5
  %reverse = shufflevector <2 x i8> %wide.load, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
  %wide.load126 = load <2 x i8>, ptr %27, align 1, !tbaa !5
  %reverse127 = shufflevector <2 x i8> %wide.load126, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
  %28 = sext <2 x i8> %reverse to <2 x i64>
  %29 = sext <2 x i8> %reverse127 to <2 x i64>
  %30 = add nsw <2 x i64> %28, <i64 -48, i64 -48>
  %31 = add nsw <2 x i64> %29, <i64 -48, i64 -48>
  %32 = getelementptr inbounds [32769 x i64], ptr @b, i64 0, i64 %index
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store <2 x i64> %30, ptr %32, align 16, !tbaa !8
  store <2 x i64> %31, ptr %33, align 16, !tbaa !8
  %index.next = add nuw i64 %index, 4
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %._crit_edge54, label %.lr.ph53.preheader143

.lr.ph:                                           ; preds = %.lr.ph.preheader144, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader144 ]
  %35 = xor i64 %indvars.iv, -1
  %36 = add nsw i64 %6, %35
  %37 = getelementptr inbounds [32769 x i8], ptr @s, i64 0, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !5
  %39 = sext i8 %38 to i64
  %40 = add nsw i64 %39, -48
  %41 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv
  store i64 %40, ptr %41, align 8, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge54:                                    ; preds = %.lr.ph53, %middle.block, %._crit_edge
  %42 = tail call i32 @llvm.smax.i32(i32 %4, i32 %20)
  %43 = shl i32 %42, 1
  %44 = sub nsw i32 0, %43
  %45 = and i32 %43, %44
  %46 = icmp slt i32 %45, %43
  br i1 %46, label %.lr.ph57, label %._crit_edge58

.lr.ph53:                                         ; preds = %.lr.ph53.preheader143, %.lr.ph53
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %.lr.ph53 ], [ %indvars.iv89.ph, %.lr.ph53.preheader143 ]
  %47 = xor i64 %indvars.iv89, -1
  %48 = add nsw i64 %22, %47
  %49 = getelementptr inbounds [32769 x i8], ptr @t, i64 0, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %51 = sext i8 %50 to i64
  %52 = add nsw i64 %51, -48
  %53 = getelementptr inbounds [32769 x i64], ptr @b, i64 0, i64 %indvars.iv89
  store i64 %52, ptr %53, align 8, !tbaa !8
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92
  br i1 %exitcond93.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !18

._crit_edge58:                                    ; preds = %.lr.ph57, %._crit_edge54
  %.lcssa = phi i32 [ %43, %._crit_edge54 ], [ %60, %.lr.ph57 ]
  %54 = shl i32 %.lcssa, 1
  store i32 %54, ptr @n, align 4, !tbaa !14
  tail call void @_Z3NTTiPxS_(i32 noundef %54, ptr noundef nonnull @a, ptr noundef nonnull @eps)
  %55 = load i32, ptr @n, align 4, !tbaa !14
  tail call void @_Z3NTTiPxS_(i32 noundef %55, ptr noundef nonnull @b, ptr noundef nonnull @eps)
  %56 = load i32, ptr @n, align 4, !tbaa !14
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph62.preheader, label %._crit_edge63

.lr.ph62.preheader:                               ; preds = %._crit_edge58
  %wide.trip.count97 = zext nneg i32 %56 to i64
  %xtraiter = and i64 %wide.trip.count97, 1
  %58 = icmp eq i32 %56, 1
  br i1 %58, label %._crit_edge63.loopexit.unr-lcssa, label %.lr.ph62.preheader.new

.lr.ph62.preheader.new:                           ; preds = %.lr.ph62.preheader
  %unroll_iter = and i64 %wide.trip.count97, 2147483646
  br label %.lr.ph62

.lr.ph57:                                         ; preds = %._crit_edge54, %.lr.ph57
  %.03355 = phi i32 [ %62, %.lr.ph57 ], [ %45, %._crit_edge54 ]
  %59 = phi i32 [ %60, %.lr.ph57 ], [ %43, %._crit_edge54 ]
  %60 = sub nsw i32 %59, %.03355
  %61 = sub nsw i32 0, %60
  %62 = and i32 %60, %61
  %63 = icmp slt i32 %62, %60
  br i1 %63, label %.lr.ph57, label %._crit_edge58, !llvm.loop !19

._crit_edge63.loopexit.unr-lcssa:                 ; preds = %.lr.ph62, %.lr.ph62.preheader
  %indvars.iv94.unr = phi i64 [ 0, %.lr.ph62.preheader ], [ %indvars.iv.next95.1, %.lr.ph62 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge63, label %.lr.ph62.epil

.lr.ph62.epil:                                    ; preds = %._crit_edge63.loopexit.unr-lcssa
  %64 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv94.unr
  %65 = load i64, ptr %64, align 8, !tbaa !8
  %66 = getelementptr inbounds [32769 x i64], ptr @b, i64 0, i64 %indvars.iv94.unr
  %67 = load i64, ptr %66, align 8, !tbaa !8
  %68 = mul nsw i64 %67, %65
  %69 = srem i64 %68, 998244353
  store i64 %69, ptr %64, align 8, !tbaa !8
  br label %._crit_edge63

._crit_edge63:                                    ; preds = %.lr.ph62.epil, %._crit_edge63.loopexit.unr-lcssa, %._crit_edge58
  tail call void @_Z3NTTiPxS_(i32 noundef %56, ptr noundef nonnull @a, ptr noundef nonnull @inv_eps)
  %70 = load i32, ptr @n, align 4, !tbaa !14
  %71 = sext i32 %70 to i64
  %72 = tail call noundef i64 @_Z7mod_powxx(i64 noundef %71, i64 noundef 998244351)
  %73 = load i32, ptr @n, align 4, !tbaa !14
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.lr.ph67.preheader, label %.preheader44

.lr.ph67.preheader:                               ; preds = %._crit_edge63
  %wide.trip.count102 = zext nneg i32 %73 to i64
  %xtraiter147 = and i64 %wide.trip.count102, 1
  %75 = icmp eq i32 %73, 1
  br i1 %75, label %.preheader45.unr-lcssa, label %.lr.ph67.preheader.new

.lr.ph67.preheader.new:                           ; preds = %.lr.ph67.preheader
  %unroll_iter149 = and i64 %wide.trip.count102, 2147483646
  br label %.lr.ph67

.lr.ph62:                                         ; preds = %.lr.ph62, %.lr.ph62.preheader.new
  %indvars.iv94 = phi i64 [ 0, %.lr.ph62.preheader.new ], [ %indvars.iv.next95.1, %.lr.ph62 ]
  %niter = phi i64 [ 0, %.lr.ph62.preheader.new ], [ %niter.next.1, %.lr.ph62 ]
  %76 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv94
  %77 = load i64, ptr %76, align 16, !tbaa !8
  %78 = getelementptr inbounds [32769 x i64], ptr @b, i64 0, i64 %indvars.iv94
  %79 = load i64, ptr %78, align 16, !tbaa !8
  %80 = mul nsw i64 %79, %77
  %81 = srem i64 %80, 998244353
  store i64 %81, ptr %76, align 16, !tbaa !8
  %indvars.iv.next95 = or disjoint i64 %indvars.iv94, 1
  %82 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv.next95
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = getelementptr inbounds [32769 x i64], ptr @b, i64 0, i64 %indvars.iv.next95
  %85 = load i64, ptr %84, align 8, !tbaa !8
  %86 = mul nsw i64 %85, %83
  %87 = srem i64 %86, 998244353
  store i64 %87, ptr %82, align 8, !tbaa !8
  %indvars.iv.next95.1 = add nuw nsw i64 %indvars.iv94, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge63.loopexit.unr-lcssa, label %.lr.ph62, !llvm.loop !20

.preheader45.unr-lcssa:                           ; preds = %.lr.ph67, %.lr.ph67.preheader
  %indvars.iv99.unr = phi i64 [ 0, %.lr.ph67.preheader ], [ %indvars.iv.next100.1, %.lr.ph67 ]
  %lcmp.mod148.not = icmp eq i64 %xtraiter147, 0
  br i1 %lcmp.mod148.not, label %.preheader45, label %.lr.ph67.epil

.lr.ph67.epil:                                    ; preds = %.preheader45.unr-lcssa
  %88 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv99.unr
  %89 = load i64, ptr %88, align 8, !tbaa !8
  %90 = mul nsw i64 %89, %72
  %91 = srem i64 %90, 998244353
  store i64 %91, ptr %88, align 8, !tbaa !8
  br label %.preheader45

.preheader45:                                     ; preds = %.preheader45.unr-lcssa, %.lr.ph67.epil
  br i1 %74, label %.lr.ph70.preheader, label %.preheader44

.lr.ph70.preheader:                               ; preds = %.preheader45
  %wide.trip.count107 = zext nneg i32 %73 to i64
  br label %.lr.ph70

.lr.ph67:                                         ; preds = %.lr.ph67, %.lr.ph67.preheader.new
  %indvars.iv99 = phi i64 [ 0, %.lr.ph67.preheader.new ], [ %indvars.iv.next100.1, %.lr.ph67 ]
  %niter150 = phi i64 [ 0, %.lr.ph67.preheader.new ], [ %niter150.next.1, %.lr.ph67 ]
  %92 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv99
  %93 = load i64, ptr %92, align 16, !tbaa !8
  %94 = mul nsw i64 %93, %72
  %95 = srem i64 %94, 998244353
  store i64 %95, ptr %92, align 16, !tbaa !8
  %indvars.iv.next100 = or disjoint i64 %indvars.iv99, 1
  %96 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv.next100
  %97 = load i64, ptr %96, align 8, !tbaa !8
  %98 = mul nsw i64 %97, %72
  %99 = srem i64 %98, 998244353
  store i64 %99, ptr %96, align 8, !tbaa !8
  %indvars.iv.next100.1 = add nuw nsw i64 %indvars.iv99, 2
  %niter150.next.1 = add i64 %niter150, 2
  %niter150.ncmp.1 = icmp eq i64 %niter150.next.1, %unroll_iter149
  br i1 %niter150.ncmp.1, label %.preheader45.unr-lcssa, label %.lr.ph67, !llvm.loop !21

.preheader44:                                     ; preds = %113, %._crit_edge63, %.preheader45
  %100 = sext i32 %73 to i64
  %101 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %100
  %102 = load i64, ptr %101, align 8, !tbaa !8
  %.not72 = icmp eq i64 %102, 0
  br i1 %.not72, label %.preheader, label %.lr.ph73

.lr.ph70:                                         ; preds = %.lr.ph70.preheader, %113
  %indvars.iv104 = phi i64 [ 0, %.lr.ph70.preheader ], [ %indvars.iv.next105.pre-phi, %113 ]
  %103 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv104
  %104 = load i64, ptr %103, align 8, !tbaa !8
  %105 = icmp sgt i64 %104, 7
  br i1 %105, label %106, label %.lr.ph70._crit_edge

.lr.ph70._crit_edge:                              ; preds = %.lr.ph70
  %.pre = add nuw nsw i64 %indvars.iv104, 1
  br label %113

106:                                              ; preds = %.lr.ph70
  %107 = lshr i64 %104, 3
  %108 = add nuw nsw i64 %indvars.iv104, 1
  %109 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !8
  %111 = add nsw i64 %110, %107
  store i64 %111, ptr %109, align 8, !tbaa !8
  %112 = and i64 %104, 7
  store i64 %112, ptr %103, align 8, !tbaa !8
  br label %113

113:                                              ; preds = %.lr.ph70._crit_edge, %106
  %indvars.iv.next105.pre-phi = phi i64 [ %.pre, %.lr.ph70._crit_edge ], [ %108, %106 ]
  %exitcond108.not = icmp eq i64 %indvars.iv.next105.pre-phi, %wide.trip.count107
  br i1 %exitcond108.not, label %.preheader44, label %.lr.ph70, !llvm.loop !22

..preheader_crit_edge:                            ; preds = %127
  %114 = trunc nsw i64 %indvars.iv.next110.pre-phi to i32
  store i32 %114, ptr @n, align 4, !tbaa !14
  br label %.preheader

.preheader:                                       ; preds = %..preheader_crit_edge, %.preheader44
  %.lcssa48 = phi i32 [ %114, %..preheader_crit_edge ], [ %73, %.preheader44 ]
  %115 = icmp sgt i32 %.lcssa48, 1
  br i1 %115, label %.lr.ph76.preheader, label %.critedge

.lr.ph76.preheader:                               ; preds = %.preheader
  %116 = zext nneg i32 %.lcssa48 to i64
  br label %.lr.ph76

.lr.ph73:                                         ; preds = %.preheader44, %127
  %indvars.iv109 = phi i64 [ %indvars.iv.next110.pre-phi, %127 ], [ %100, %.preheader44 ]
  %117 = phi i64 [ %129, %127 ], [ %102, %.preheader44 ]
  %118 = phi ptr [ %128, %127 ], [ %101, %.preheader44 ]
  %119 = icmp sgt i64 %117, 7
  br i1 %119, label %120, label %.lr.ph73._crit_edge

.lr.ph73._crit_edge:                              ; preds = %.lr.ph73
  %.pre118 = add nsw i64 %indvars.iv109, 1
  br label %127

120:                                              ; preds = %.lr.ph73
  %121 = lshr i64 %117, 3
  %122 = add nsw i64 %indvars.iv109, 1
  %123 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !8
  %125 = add nsw i64 %124, %121
  store i64 %125, ptr %123, align 8, !tbaa !8
  %126 = and i64 %117, 7
  store i64 %126, ptr %118, align 8, !tbaa !8
  br label %127

127:                                              ; preds = %.lr.ph73._crit_edge, %120
  %indvars.iv.next110.pre-phi = phi i64 [ %.pre118, %.lr.ph73._crit_edge ], [ %122, %120 ]
  %128 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv.next110.pre-phi
  %129 = load i64, ptr %128, align 8, !tbaa !8
  %.not = icmp eq i64 %129, 0
  br i1 %.not, label %..preheader_crit_edge, label %.lr.ph73, !llvm.loop !23

.lr.ph76:                                         ; preds = %.lr.ph76.preheader, %132
  %indvars.iv112 = phi i64 [ %116, %.lr.ph76.preheader ], [ %indvars.iv.next113, %132 ]
  %indvars.iv.next113 = add nsw i64 %indvars.iv112, -1
  %130 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv.next113
  %131 = load i64, ptr %130, align 8, !tbaa !8
  %.not43 = icmp eq i64 %131, 0
  br i1 %.not43, label %132, label %.critedge.loopexit

132:                                              ; preds = %.lr.ph76
  %133 = trunc nuw nsw i64 %indvars.iv.next113 to i32
  store i32 %133, ptr @n, align 4, !tbaa !14
  %134 = icmp ugt i64 %indvars.iv112, 2
  br i1 %134, label %.lr.ph76, label %.lr.ph81.preheader, !llvm.loop !24

.critedge.loopexit:                               ; preds = %.lr.ph76
  %135 = trunc nuw nsw i64 %indvars.iv112 to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader
  %.lcssa49 = phi i32 [ %.lcssa48, %.preheader ], [ %135, %.critedge.loopexit ]
  %136 = icmp sgt i32 %.lcssa49, 0
  br i1 %136, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %132, %.critedge
  %.lcssa49120 = phi i32 [ %.lcssa49, %.critedge ], [ 1, %132 ]
  %137 = zext nneg i32 %.lcssa49120 to i64
  br label %.lr.ph81

._crit_edge82:                                    ; preds = %.lr.ph81, %.critedge
  %138 = tail call i32 @putchar(i32 noundef 10)
  %139 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %140 = icmp eq i32 %139, 2
  br i1 %140, label %.lr.ph84, label %._crit_edge85, !llvm.loop !25

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %.lr.ph81
  %indvars.iv115 = phi i64 [ %137, %.lr.ph81.preheader ], [ %indvars.iv.next116, %.lr.ph81 ]
  %indvars.iv.next116 = add nsw i64 %indvars.iv115, -1
  %141 = getelementptr inbounds [32769 x i64], ptr @a, i64 0, i64 %indvars.iv.next116
  %142 = load i64, ptr %141, align 8, !tbaa !8
  %143 = trunc i64 %142 to i32
  %144 = add i32 %143, 48
  %145 = tail call i32 @putchar(i32 noundef %144)
  %146 = icmp ugt i64 %indvars.iv115, 1
  br i1 %146, label %.lr.ph81, label %._crit_edge82, !llvm.loop !26

._crit_edge85:                                    ; preds = %._crit_edge82, %0
  ret i32 0
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

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

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

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


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