; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/312 Division 2/Problem E (E)

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

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@type = external dso_local global i32, align 4
@a = external dso_local global [262144 x i32], align 16
@cnt = external dso_local global [26 x i32], align 16
@s = external dso_local global [262144 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5buildiiii(i32 noundef, i32 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 uwtable
declare dso_local void @_Z6updateiiiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryiiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @q)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @s)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %29, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %32

19:                                               ; preds = %14
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [262144 x i8], ptr @s, i64 0, i64 %21
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %24 = sext i8 %23 to i32
  %25 = sub nsw i32 %24, 97
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [262144 x i32], ptr @a, i64 0, i64 %27
  store i32 %25, ptr %28, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %19
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !10

32:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %40, %32
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 26
  br i1 %35, label %37, label %36

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

37:                                               ; preds = %33
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z5buildiiii(i32 noundef %38, i32 noundef 1, i32 noundef 0, i32 noundef %39)
  br label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !5
  br label %33, !llvm.loop !12

43:                                               ; preds = %36
  br label %44

44:                                               ; preds = %150, %43
  %45 = load i32, ptr @q, align 4, !tbaa !5
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr @q, align 4, !tbaa !5
  %47 = icmp ne i32 %45, 0
  br i1 %47, label %48, label %151

48:                                               ; preds = %44
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @x, ptr noundef @y, ptr noundef @type)
  %50 = load i32, ptr @x, align 4, !tbaa !5
  %51 = add nsw i32 %50, -1
  store i32 %51, ptr @x, align 4, !tbaa !5
  %52 = load i32, ptr @y, align 4, !tbaa !5
  %53 = add nsw i32 %52, -1
  store i32 %53, ptr @y, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @cnt, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %68, %48
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = icmp slt i32 %55, 26
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %71

58:                                               ; preds = %54
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = load i32, ptr @x, align 4, !tbaa !5
  %61 = load i32, ptr @y, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  %63 = load i32, ptr @n, align 4, !tbaa !5
  %64 = call noundef i32 @_Z5queryiiiiii(i32 noundef %59, i32 noundef %60, i32 noundef %62, i32 noundef 1, i32 noundef 0, i32 noundef %63)
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %66
  store i32 %64, ptr %67, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %58
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %4, align 4, !tbaa !5
  br label %54, !llvm.loop !13

71:                                               ; preds = %57
  %72 = load i32, ptr @type, align 4, !tbaa !5
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %112

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

76:                                               ; preds = %108, %74
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 26
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %111

80:                                               ; preds = %76
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %86, label %107

86:                                               ; preds = %80
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = load i32, ptr @x, align 4, !tbaa !5
  %89 = load i32, ptr @y, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  %91 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z6updateiiiiiii(i32 noundef %87, i32 noundef %88, i32 noundef %90, i32 noundef -1, i32 noundef 1, i32 noundef 0, i32 noundef %91)
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = add nsw i32 %94, %98
  %100 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z6updateiiiiiii(i32 noundef %92, i32 noundef %93, i32 noundef %99, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef %100)
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = add nsw i32 %105, %104
  store i32 %106, ptr %5, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %86, %80
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %6, align 4, !tbaa !5
  br label %76, !llvm.loop !14

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

112:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %113 = load i32, ptr @x, align 4, !tbaa !5
  store i32 %113, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 25, ptr %8, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %146, %112
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = icmp sge i32 %115, 0
  br i1 %116, label %118, label %117

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

118:                                              ; preds = %114
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = icmp sgt i32 %122, 0
  br i1 %123, label %124, label %145

124:                                              ; preds = %118
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = load i32, ptr @x, align 4, !tbaa !5
  %127 = load i32, ptr @y, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  %129 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z6updateiiiiiii(i32 noundef %125, i32 noundef %126, i32 noundef %128, i32 noundef -1, i32 noundef 1, i32 noundef 0, i32 noundef %129)
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = add nsw i32 %132, %136
  %138 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z6updateiiiiiii(i32 noundef %130, i32 noundef %131, i32 noundef %137, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef %138)
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = add nsw i32 %143, %142
  store i32 %144, ptr %7, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %124, %118
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %8, align 4, !tbaa !5
  %148 = add nsw i32 %147, -1
  store i32 %148, ptr %8, align 4, !tbaa !5
  br label %114, !llvm.loop !15

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

150:                                              ; preds = %149, %111
  br label %44, !llvm.loop !16

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

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

156:                                              ; preds = %152
  store i32 19, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %185

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

158:                                              ; preds = %177, %157
  %159 = load i32, ptr %11, align 4, !tbaa !5
  %160 = icmp slt i32 %159, 26
  br i1 %160, label %162, label %161

161:                                              ; preds = %158
  store i32 22, ptr %10, align 4
  br label %180

162:                                              ; preds = %158
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = load i32, ptr %9, align 4, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  %167 = load i32, ptr @n, align 4, !tbaa !5
  %168 = call noundef i32 @_Z5queryiiiiii(i32 noundef %163, i32 noundef %164, i32 noundef %166, i32 noundef 1, i32 noundef 0, i32 noundef %167)
  %169 = icmp sgt i32 %168, 0
  br i1 %169, label %170, label %176

170:                                              ; preds = %162
  %171 = load i32, ptr %11, align 4, !tbaa !5
  %172 = add nsw i32 %171, 97
  %173 = trunc i32 %172 to i8
  %174 = sext i8 %173 to i32
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %174)
  store i32 22, ptr %10, align 4
  br label %180

176:                                              ; preds = %162
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %11, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %11, align 4, !tbaa !5
  br label %158, !llvm.loop !17

180:                                              ; preds = %170, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %9, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %9, align 4, !tbaa !5
  br label %152, !llvm.loop !18

185:                                              ; preds = %156
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  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

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

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

!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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


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

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@type = external dso_local global i32, align 4
@a = external dso_local local_unnamed_addr global [262144 x i32], align 16
@cnt = external dso_local local_unnamed_addr global [26 x i32], align 16
@s = external dso_local global [262144 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

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

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 8
  br i1 %min.iters.check, label %.lr.ph.preheader89, label %vector.ph

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

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %5 = getelementptr inbounds [262144 x i8], ptr @s, i64 0, i64 %index
  %6 = getelementptr inbounds i8, ptr %5, i64 4
  %wide.load = load <4 x i8>, ptr %5, align 8, !tbaa !9
  %wide.load87 = load <4 x i8>, ptr %6, align 4, !tbaa !9
  %7 = sext <4 x i8> %wide.load to <4 x i32>
  %8 = sext <4 x i8> %wide.load87 to <4 x i32>
  %9 = add nsw <4 x i32> %7, <i32 -97, i32 -97, i32 -97, i32 -97>
  %10 = add nsw <4 x i32> %8, <i32 -97, i32 -97, i32 -97, i32 -97>
  %11 = getelementptr inbounds [262144 x i32], ptr @a, i64 0, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x i32> %9, ptr %11, align 16, !tbaa !5
  store <4 x i32> %10, ptr %12, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %13 = icmp eq i64 %index.next, %n.vec
  br i1 %13, label %middle.block, label %vector.body, !llvm.loop !10

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader53, label %.lr.ph.preheader89

.preheader53:                                     ; preds = %.lr.ph, %middle.block, %0
  tail call void @_Z5buildiiii(i32 noundef 0, i32 noundef 1, i32 noundef 0, i32 noundef %3)
  %14 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef %14)
  %15 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 2, i32 noundef 1, i32 noundef 0, i32 noundef %15)
  %16 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 3, i32 noundef 1, i32 noundef 0, i32 noundef %16)
  %17 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 4, i32 noundef 1, i32 noundef 0, i32 noundef %17)
  %18 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 5, i32 noundef 1, i32 noundef 0, i32 noundef %18)
  %19 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 6, i32 noundef 1, i32 noundef 0, i32 noundef %19)
  %20 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 7, i32 noundef 1, i32 noundef 0, i32 noundef %20)
  %21 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 8, i32 noundef 1, i32 noundef 0, i32 noundef %21)
  %22 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 9, i32 noundef 1, i32 noundef 0, i32 noundef %22)
  %23 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 10, i32 noundef 1, i32 noundef 0, i32 noundef %23)
  %24 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 11, i32 noundef 1, i32 noundef 0, i32 noundef %24)
  %25 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 12, i32 noundef 1, i32 noundef 0, i32 noundef %25)
  %26 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 13, i32 noundef 1, i32 noundef 0, i32 noundef %26)
  %27 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 14, i32 noundef 1, i32 noundef 0, i32 noundef %27)
  %28 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 15, i32 noundef 1, i32 noundef 0, i32 noundef %28)
  %29 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 16, i32 noundef 1, i32 noundef 0, i32 noundef %29)
  %30 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 17, i32 noundef 1, i32 noundef 0, i32 noundef %30)
  %31 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 18, i32 noundef 1, i32 noundef 0, i32 noundef %31)
  %32 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 19, i32 noundef 1, i32 noundef 0, i32 noundef %32)
  %33 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 20, i32 noundef 1, i32 noundef 0, i32 noundef %33)
  %34 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 21, i32 noundef 1, i32 noundef 0, i32 noundef %34)
  %35 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 22, i32 noundef 1, i32 noundef 0, i32 noundef %35)
  %36 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 23, i32 noundef 1, i32 noundef 0, i32 noundef %36)
  %37 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 24, i32 noundef 1, i32 noundef 0, i32 noundef %37)
  %38 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5buildiiii(i32 noundef 25, i32 noundef 1, i32 noundef 0, i32 noundef %38)
  %39 = load i32, ptr @q, align 4, !tbaa !5
  %40 = add nsw i32 %39, -1
  store i32 %40, ptr @q, align 4, !tbaa !5
  %.not62 = icmp eq i32 %39, 0
  br i1 %.not62, label %.preheader49, label %.lr.ph63

.lr.ph:                                           ; preds = %.lr.ph.preheader89, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader89 ]
  %41 = getelementptr inbounds [262144 x i8], ptr @s, i64 0, i64 %indvars.iv
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = sext i8 %42 to i32
  %44 = add nsw i32 %43, -97
  %45 = getelementptr inbounds [262144 x i32], ptr @a, i64 0, i64 %indvars.iv
  store i32 %44, ptr %45, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader53, label %.lr.ph, !llvm.loop !14

.preheader49:                                     ; preds = %.loopexit50, %.preheader53
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.preheader, label %._crit_edge

.lr.ph63:                                         ; preds = %.preheader53, %.loopexit50
  %48 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @x, ptr noundef nonnull @y, ptr noundef nonnull @type)
  %49 = load i32, ptr @x, align 4, !tbaa !5
  %50 = add nsw i32 %49, -1
  store i32 %50, ptr @x, align 4, !tbaa !5
  %51 = load i32, ptr @y, align 4, !tbaa !5
  %52 = add nsw i32 %51, -1
  store i32 %52, ptr @y, align 4, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) @cnt, i8 0, i64 104, i1 false)
  br label %56

53:                                               ; preds = %56
  %54 = load i32, ptr @type, align 4, !tbaa !5
  %.not48 = icmp eq i32 %54, 0
  %55 = load i32, ptr @x, align 4, !tbaa !5
  br i1 %.not48, label %.preheader84, label %.preheader85

56:                                               ; preds = %.lr.ph63, %56
  %indvars.iv70 = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next71, %56 ]
  %57 = load i32, ptr @x, align 4, !tbaa !5
  %58 = load i32, ptr @y, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = trunc nuw nsw i64 %indvars.iv70 to i32
  %62 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef %61, i32 noundef %57, i32 noundef %59, i32 noundef 1, i32 noundef 0, i32 noundef %60)
  %63 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %indvars.iv70
  store i32 %62, ptr %63, align 4, !tbaa !5
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next71, 26
  br i1 %exitcond73.not, label %53, label %56, !llvm.loop !15

.preheader85:                                     ; preds = %53, %78
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %78 ], [ 0, %53 ]
  %.04358 = phi i32 [ %.144, %78 ], [ %55, %53 ]
  %64 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %indvars.iv74
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %67, label %78

67:                                               ; preds = %.preheader85
  %68 = load i32, ptr @x, align 4, !tbaa !5
  %69 = load i32, ptr @y, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = trunc nuw nsw i64 %indvars.iv74 to i32
  tail call void @_Z6updateiiiiiii(i32 noundef %72, i32 noundef %68, i32 noundef %70, i32 noundef -1, i32 noundef 1, i32 noundef 0, i32 noundef %71)
  %73 = load i32, ptr %64, align 4, !tbaa !5
  %74 = add nsw i32 %73, %.04358
  %75 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z6updateiiiiiii(i32 noundef %72, i32 noundef %.04358, i32 noundef %74, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef %75)
  %76 = load i32, ptr %64, align 4, !tbaa !5
  %77 = add nsw i32 %76, %.04358
  br label %78

78:                                               ; preds = %.preheader85, %67
  %.144 = phi i32 [ %77, %67 ], [ %.04358, %.preheader85 ]
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond77.not = icmp eq i64 %indvars.iv.next75, 26
  br i1 %exitcond77.not, label %.loopexit50, label %.preheader85, !llvm.loop !16

.preheader84:                                     ; preds = %53, %93
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %93 ], [ 25, %53 ]
  %.04160 = phi i32 [ %.1, %93 ], [ %55, %53 ]
  %79 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %indvars.iv78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %82, label %93

82:                                               ; preds = %.preheader84
  %83 = load i32, ptr @x, align 4, !tbaa !5
  %84 = load i32, ptr @y, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = trunc nuw nsw i64 %indvars.iv78 to i32
  tail call void @_Z6updateiiiiiii(i32 noundef %87, i32 noundef %83, i32 noundef %85, i32 noundef -1, i32 noundef 1, i32 noundef 0, i32 noundef %86)
  %88 = load i32, ptr %79, align 4, !tbaa !5
  %89 = add nsw i32 %88, %.04160
  %90 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z6updateiiiiiii(i32 noundef %87, i32 noundef %.04160, i32 noundef %89, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef %90)
  %91 = load i32, ptr %79, align 4, !tbaa !5
  %92 = add nsw i32 %91, %.04160
  br label %93

93:                                               ; preds = %.preheader84, %82
  %.1 = phi i32 [ %92, %82 ], [ %.04160, %.preheader84 ]
  %indvars.iv.next79 = add nsw i64 %indvars.iv78, -1
  %.not82 = icmp eq i64 %indvars.iv78, 0
  br i1 %.not82, label %.loopexit50, label %.preheader84, !llvm.loop !17

.loopexit50:                                      ; preds = %78, %93
  %94 = load i32, ptr @q, align 4, !tbaa !5
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr @q, align 4, !tbaa !5
  %.not = icmp eq i32 %94, 0
  br i1 %.not, label %.preheader49, label %.lr.ph63, !llvm.loop !18

.preheader:                                       ; preds = %.preheader49, %.loopexit
  %96 = phi i32 [ %203, %.loopexit ], [ %46, %.preheader49 ]
  %.03965 = phi i32 [ %97, %.loopexit ], [ 0, %.preheader49 ]
  %97 = add nuw nsw i32 %.03965, 1
  %98 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 0, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %96)
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %101, label %103

._crit_edge:                                      ; preds = %.loopexit, %.preheader49
  %100 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  ret i32 0

101:                                              ; preds = %199, %195, %191, %187, %183, %179, %175, %171, %167, %163, %159, %155, %151, %147, %143, %139, %135, %131, %127, %123, %119, %115, %111, %107, %103, %.preheader
  %.064.lcssa = phi i32 [ 97, %.preheader ], [ 98, %103 ], [ 99, %107 ], [ 100, %111 ], [ 101, %115 ], [ 102, %119 ], [ 103, %123 ], [ 104, %127 ], [ 105, %131 ], [ 106, %135 ], [ 107, %139 ], [ 108, %143 ], [ 109, %147 ], [ 110, %151 ], [ 111, %155 ], [ 112, %159 ], [ 113, %163 ], [ 114, %167 ], [ 115, %171 ], [ 116, %175 ], [ 117, %179 ], [ 118, %183 ], [ 119, %187 ], [ 120, %191 ], [ 121, %195 ], [ 122, %199 ]
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.064.lcssa)
  br label %.loopexit

103:                                              ; preds = %.preheader
  %104 = load i32, ptr @n, align 4, !tbaa !5
  %105 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 1, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %104)
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %101, label %107

107:                                              ; preds = %103
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 2, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %108)
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %101, label %111

111:                                              ; preds = %107
  %112 = load i32, ptr @n, align 4, !tbaa !5
  %113 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 3, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %112)
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %101, label %115

115:                                              ; preds = %111
  %116 = load i32, ptr @n, align 4, !tbaa !5
  %117 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 4, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %116)
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %101, label %119

119:                                              ; preds = %115
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 5, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %120)
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %101, label %123

123:                                              ; preds = %119
  %124 = load i32, ptr @n, align 4, !tbaa !5
  %125 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 6, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %124)
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %101, label %127

127:                                              ; preds = %123
  %128 = load i32, ptr @n, align 4, !tbaa !5
  %129 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 7, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %128)
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %101, label %131

131:                                              ; preds = %127
  %132 = load i32, ptr @n, align 4, !tbaa !5
  %133 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 8, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %132)
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %101, label %135

135:                                              ; preds = %131
  %136 = load i32, ptr @n, align 4, !tbaa !5
  %137 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 9, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %136)
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %101, label %139

139:                                              ; preds = %135
  %140 = load i32, ptr @n, align 4, !tbaa !5
  %141 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 10, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %140)
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %101, label %143

143:                                              ; preds = %139
  %144 = load i32, ptr @n, align 4, !tbaa !5
  %145 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 11, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %144)
  %146 = icmp sgt i32 %145, 0
  br i1 %146, label %101, label %147

147:                                              ; preds = %143
  %148 = load i32, ptr @n, align 4, !tbaa !5
  %149 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 12, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %148)
  %150 = icmp sgt i32 %149, 0
  br i1 %150, label %101, label %151

151:                                              ; preds = %147
  %152 = load i32, ptr @n, align 4, !tbaa !5
  %153 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 13, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %152)
  %154 = icmp sgt i32 %153, 0
  br i1 %154, label %101, label %155

155:                                              ; preds = %151
  %156 = load i32, ptr @n, align 4, !tbaa !5
  %157 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 14, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %156)
  %158 = icmp sgt i32 %157, 0
  br i1 %158, label %101, label %159

159:                                              ; preds = %155
  %160 = load i32, ptr @n, align 4, !tbaa !5
  %161 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 15, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %160)
  %162 = icmp sgt i32 %161, 0
  br i1 %162, label %101, label %163

163:                                              ; preds = %159
  %164 = load i32, ptr @n, align 4, !tbaa !5
  %165 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 16, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %164)
  %166 = icmp sgt i32 %165, 0
  br i1 %166, label %101, label %167

167:                                              ; preds = %163
  %168 = load i32, ptr @n, align 4, !tbaa !5
  %169 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 17, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %168)
  %170 = icmp sgt i32 %169, 0
  br i1 %170, label %101, label %171

171:                                              ; preds = %167
  %172 = load i32, ptr @n, align 4, !tbaa !5
  %173 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 18, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %172)
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %101, label %175

175:                                              ; preds = %171
  %176 = load i32, ptr @n, align 4, !tbaa !5
  %177 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 19, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %176)
  %178 = icmp sgt i32 %177, 0
  br i1 %178, label %101, label %179

179:                                              ; preds = %175
  %180 = load i32, ptr @n, align 4, !tbaa !5
  %181 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 20, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %180)
  %182 = icmp sgt i32 %181, 0
  br i1 %182, label %101, label %183

183:                                              ; preds = %179
  %184 = load i32, ptr @n, align 4, !tbaa !5
  %185 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 21, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %184)
  %186 = icmp sgt i32 %185, 0
  br i1 %186, label %101, label %187

187:                                              ; preds = %183
  %188 = load i32, ptr @n, align 4, !tbaa !5
  %189 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 22, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %188)
  %190 = icmp sgt i32 %189, 0
  br i1 %190, label %101, label %191

191:                                              ; preds = %187
  %192 = load i32, ptr @n, align 4, !tbaa !5
  %193 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 23, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %192)
  %194 = icmp sgt i32 %193, 0
  br i1 %194, label %101, label %195

195:                                              ; preds = %191
  %196 = load i32, ptr @n, align 4, !tbaa !5
  %197 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 24, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %196)
  %198 = icmp sgt i32 %197, 0
  br i1 %198, label %101, label %199

199:                                              ; preds = %195
  %200 = load i32, ptr @n, align 4, !tbaa !5
  %201 = tail call noundef i32 @_Z5queryiiiiii(i32 noundef 25, i32 noundef %.03965, i32 noundef %97, i32 noundef 1, i32 noundef 0, i32 noundef %200)
  %202 = icmp sgt i32 %201, 0
  br i1 %202, label %101, label %.loopexit

.loopexit:                                        ; preds = %199, %101
  %203 = load i32, ptr @n, align 4, !tbaa !5
  %204 = icmp slt i32 %97, %203
  br i1 %204, label %.preheader, label %._crit_edge, !llvm.loop !19
}

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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 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 #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) }

!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 = distinct !{!10, !11, !12, !13}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !11, !13, !12}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}


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