; LLVM IR from tangjz/acm-icpc :: codeforces/complete (757D)

; 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.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@lim = external dso_local global i32, align 4
@all = external dso_local global i32, align 4
@f = external dso_local global [77 x [1048577 x i32]], align 16
@ans = external dso_local global i32, align 4
@g = external dso_local global [77 x [7 x %"struct.std::pair"]], align 16
@str = external dso_local global [77 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef getelementptr inbounds (i8, ptr @str, i64 1))
  store i32 20, ptr @lim, align 4, !tbaa !5
  %17 = load i32, ptr @lim, align 4, !tbaa !5
  %18 = shl i32 1, %17
  %19 = sub nsw i32 %18, 1
  store i32 %19, ptr @all, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %79, %0
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %82

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

26:                                               ; preds = %74, %25
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = add nsw i32 %27, %28
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  store i32 5, ptr %3, align 4
  br label %77

33:                                               ; preds = %26
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = shl i32 %34, 1
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = add nsw i32 %36, %37
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [77 x i8], ptr @str, i64 0, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = sext i8 %41 to i32
  %43 = sub nsw i32 %42, 48
  %44 = add nsw i32 %35, %43
  store i32 %44, ptr %4, align 4, !tbaa !5
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = load i32, ptr @lim, align 4, !tbaa !5
  %47 = icmp sgt i32 %45, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %33
  store i32 5, ptr %3, align 4
  br label %77

49:                                               ; preds = %33
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %73

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = add nsw i32 %53, %54
  store i32 %55, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sub nsw i32 %56, 1
  %58 = shl i32 1, %57
  store i32 %58, ptr %8, align 4, !tbaa !5
  %59 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i64 %59, ptr %6, align 4
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %64
  %66 = getelementptr inbounds [7 x %"struct.std::pair"], ptr %65, i64 0, i64 0
  %67 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !10
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %67, align 8, !tbaa !10
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [7 x %"struct.std::pair"], ptr %62, i64 0, i64 %70
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %71, ptr noundef nonnull align 4 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %73

73:                                               ; preds = %52, %49
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %5, align 4, !tbaa !5
  br label %26, !llvm.loop !12

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

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

79:                                               ; preds = %78
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %2, align 4, !tbaa !5
  br label %20, !llvm.loop !14

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

83:                                               ; preds = %199, %82
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = icmp sle i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %202

88:                                               ; preds = %83
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %90
  %92 = getelementptr inbounds [1048577 x i32], ptr %91, i64 0, i64 0
  store i32 1, ptr %92, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %168, %88
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = load i32, ptr @all, align 4, !tbaa !5
  %96 = icmp sle i32 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %171

98:                                               ; preds = %93
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %100
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1048577 x i32], ptr %101, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %108, label %107

107:                                              ; preds = %98
  br label %168

108:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %164, %108
  %110 = load i32, ptr %11, align 4, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %112
  %114 = getelementptr inbounds [7 x %"struct.std::pair"], ptr %113, i64 0, i64 0
  %115 = getelementptr inbounds %"struct.std::pair", ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !10
  %117 = icmp sle i32 %110, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %109
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %167

119:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %120 = load i32, ptr %9, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %121
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [7 x %"struct.std::pair"], ptr %122, i64 0, i64 %124
  %126 = getelementptr inbounds %"struct.std::pair", ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !10
  store i32 %127, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %130
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [7 x %"struct.std::pair"], ptr %131, i64 0, i64 %133
  %135 = getelementptr inbounds %"struct.std::pair", ptr %134, i32 0, i32 1
  %136 = load i32, ptr %135, align 4, !tbaa !15
  %137 = or i32 %128, %136
  store i32 %137, ptr %13, align 4, !tbaa !5
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %139
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [1048577 x i32], ptr %140, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %146
  %148 = load i32, ptr %13, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [1048577 x i32], ptr %147, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = add nsw i32 %151, %144
  store i32 %152, ptr %150, align 4, !tbaa !5
  %153 = icmp sge i32 %152, 1000000007
  br i1 %153, label %154, label %163

154:                                              ; preds = %119
  %155 = load i32, ptr %12, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %156
  %158 = load i32, ptr %13, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1048577 x i32], ptr %157, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = sub nsw i32 %161, 1000000007
  store i32 %162, ptr %160, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %154, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %11, align 4, !tbaa !5
  br label %109, !llvm.loop !16

167:                                              ; preds = %118
  br label %168

168:                                              ; preds = %167, %107
  %169 = load i32, ptr %10, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %10, align 4, !tbaa !5
  br label %93, !llvm.loop !17

171:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %192, %171
  %173 = load i32, ptr %14, align 4, !tbaa !5
  %174 = load i32, ptr @all, align 4, !tbaa !5
  %175 = icmp sle i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %198

177:                                              ; preds = %172
  %178 = load i32, ptr %9, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %179
  %181 = load i32, ptr %14, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [1048577 x i32], ptr %180, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = load i32, ptr @ans, align 4, !tbaa !5
  %186 = add nsw i32 %185, %184
  store i32 %186, ptr @ans, align 4, !tbaa !5
  %187 = icmp sge i32 %186, 1000000007
  br i1 %187, label %188, label %191

188:                                              ; preds = %177
  %189 = load i32, ptr @ans, align 4, !tbaa !5
  %190 = sub nsw i32 %189, 1000000007
  store i32 %190, ptr @ans, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %188, %177
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %15, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %15, align 4, !tbaa !5
  %195 = shl i32 1, %194
  %196 = load i32, ptr %14, align 4, !tbaa !5
  %197 = or i32 %196, %195
  store i32 %197, ptr %14, align 4, !tbaa !5
  br label %172, !llvm.loop !18

198:                                              ; preds = %176
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %9, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %9, align 4, !tbaa !5
  br label %83, !llvm.loop !19

202:                                              ; preds = %87
  %203 = load i32, ptr @ans, align 4, !tbaa !5
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %203)
  ret i32 0
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

attributes #0 = { 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 #1 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #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 = !{!11, !6, i64 0}
!11 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!11, !6, i64 4}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !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"

%"struct.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@lim = external dso_local local_unnamed_addr global i32, align 4
@all = external dso_local local_unnamed_addr global i32, align 4
@f = external dso_local local_unnamed_addr global [77 x [1048577 x i32]], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@g = external dso_local global [77 x [7 x %"struct.std::pair"]], align 16
@str = external dso_local global [77 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %"struct.std::pair", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 1))
  store i32 20, ptr @lim, align 4, !tbaa !5
  store i32 1048575, ptr @all, align 4, !tbaa !5
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.preheader62, label %.preheader61

.preheader62:                                     ; preds = %0, %._crit_edge
  %.pre135 = phi i32 [ %.pre135139, %._crit_edge ], [ 20, %0 ]
  %7 = phi i32 [ %95, %._crit_edge ], [ %5, %0 ]
  %indvars.iv99 = phi i64 [ %9, %._crit_edge ], [ 0, %0 ]
  %8 = sext i32 %7 to i64
  %.not5764.not = icmp slt i64 %indvars.iv99, %8
  %9 = add nuw nsw i64 %indvars.iv99, 1
  br i1 %.not5764.not, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader62
  %10 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv99
  %11 = trunc nuw nsw i64 %9 to i32
  br label %65

.preheader61:                                     ; preds = %._crit_edge, %0
  %.lcssa63 = phi i32 [ %5, %0 ], [ %95, %._crit_edge ]
  %ans.promoted85 = load i32, ptr @ans, align 4, !tbaa !5
  %.not88 = icmp slt i32 %.lcssa63, 0
  br i1 %.not88, label %._crit_edge92, label %.lr.ph91

.lr.ph91:                                         ; preds = %.preheader61
  %12 = load i32, ptr @all, align 4, !tbaa !5
  %.not5272 = icmp slt i32 %12, 0
  br i1 %.not5272, label %.preheader60.us.us.preheader, label %.lr.ph91.split

.preheader60.us.us.preheader:                     ; preds = %.lr.ph91
  %13 = add nuw i32 %.lcssa63, 1
  %wide.trip.count133 = zext i32 %13 to i64
  %xtraiter147 = and i64 %wide.trip.count133, 3
  %14 = icmp ult i32 %.lcssa63, 3
  br i1 %14, label %._crit_edge92.loopexit.unr-lcssa, label %.preheader60.us.us.preheader.new

.preheader60.us.us.preheader.new:                 ; preds = %.preheader60.us.us.preheader
  %unroll_iter149 = and i64 %wide.trip.count133, 4294967292
  br label %.preheader60.us.us

.preheader60.us.us:                               ; preds = %.preheader60.us.us, %.preheader60.us.us.preheader.new
  %indvars.iv130 = phi i64 [ 0, %.preheader60.us.us.preheader.new ], [ %indvars.iv.next131.3, %.preheader60.us.us ]
  %niter150 = phi i64 [ 0, %.preheader60.us.us.preheader.new ], [ %niter150.next.3, %.preheader60.us.us ]
  %15 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv130
  store i32 1, ptr %15, align 16, !tbaa !5
  %indvars.iv.next131 = or disjoint i64 %indvars.iv130, 1
  %16 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv.next131
  store i32 1, ptr %16, align 4, !tbaa !5
  %indvars.iv.next131.1 = or disjoint i64 %indvars.iv130, 2
  %17 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv.next131.1
  store i32 1, ptr %17, align 8, !tbaa !5
  %indvars.iv.next131.2 = or disjoint i64 %indvars.iv130, 3
  %18 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv.next131.2
  store i32 1, ptr %18, align 4, !tbaa !5
  %indvars.iv.next131.3 = add nuw nsw i64 %indvars.iv130, 4
  %niter150.next.3 = add i64 %niter150, 4
  %niter150.ncmp.3 = icmp eq i64 %niter150.next.3, %unroll_iter149
  br i1 %niter150.ncmp.3, label %._crit_edge92.loopexit.unr-lcssa, label %.preheader60.us.us, !llvm.loop !9

.lr.ph91.split:                                   ; preds = %.lr.ph91
  %.not5379 = icmp eq i32 %12, 0
  br i1 %.not5379, label %.lr.ph76.us.preheader, label %.lr.ph76.preheader

.lr.ph76.preheader:                               ; preds = %.lr.ph91.split
  %19 = add nuw i32 %12, 1
  %20 = add nuw i32 %.lcssa63, 1
  %wide.trip.count113 = zext i32 %20 to i64
  %wide.trip.count108 = zext i32 %19 to i64
  br label %.lr.ph76

.lr.ph76.us.preheader:                            ; preds = %.lr.ph91.split
  %21 = add nuw i32 %.lcssa63, 1
  %wide.trip.count128 = zext i32 %21 to i64
  br label %.lr.ph76.us

.lr.ph76.us:                                      ; preds = %.lr.ph76.us.preheader, %..preheader60_crit_edge.us
  %indvars.iv125 = phi i64 [ 0, %.lr.ph76.us.preheader ], [ %indvars.iv.next126, %..preheader60_crit_edge.us ]
  %22 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv125
  store i32 1, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv125, i64 0
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %.not54.us = icmp eq i32 %24, 0
  br i1 %.not54.us, label %..preheader60_crit_edge.us, label %.preheader.us

.lr.ph71.us:                                      ; preds = %.lr.ph71.us, %.lr.ph71.us.preheader.new
  %indvars.iv115 = phi i64 [ 1, %.lr.ph71.us.preheader.new ], [ %indvars.iv.next116.1, %.lr.ph71.us ]
  %niter = phi i64 [ 0, %.lr.ph71.us.preheader.new ], [ %niter.next.1, %.lr.ph71.us ]
  %25 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv125, i64 %indvars.iv115
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %25, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = load i32, ptr %23, align 4, !tbaa !5
  %30 = sext i32 %26 to i64
  %31 = sext i32 %28 to i64
  %32 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %30, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = add nsw i32 %33, %29
  %35 = icmp sgt i32 %34, 1000000006
  %36 = add nsw i32 %34, -1000000007
  %spec.select.us = select i1 %35, i32 %36, i32 %34
  store i32 %spec.select.us, ptr %32, align 4, !tbaa !5
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %37 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv125, i64 %indvars.iv.next116
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %37, i64 4
  %40 = load i32, ptr %39, align 4, !tbaa !13
  %41 = load i32, ptr %23, align 4, !tbaa !5
  %42 = sext i32 %38 to i64
  %43 = sext i32 %40 to i64
  %44 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %42, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = add nsw i32 %45, %41
  %47 = icmp sgt i32 %46, 1000000006
  %48 = add nsw i32 %46, -1000000007
  %spec.select.us.1 = select i1 %47, i32 %48, i32 %46
  store i32 %spec.select.us.1, ptr %44, align 4, !tbaa !5
  %indvars.iv.next116.1 = add nuw nsw i64 %indvars.iv115, 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 %..preheader60_crit_edge.us.loopexit.unr-lcssa, label %.lr.ph71.us, !llvm.loop !14

.preheader.us:                                    ; preds = %.lr.ph76.us
  %49 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv125
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %.not5569.us = icmp slt i32 %50, 1
  br i1 %.not5569.us, label %..preheader60_crit_edge.us, label %.lr.ph71.us.preheader

.lr.ph71.us.preheader:                            ; preds = %.preheader.us
  %51 = zext nneg i32 %50 to i64
  %xtraiter = and i64 %51, 1
  %52 = icmp eq i32 %50, 1
  br i1 %52, label %..preheader60_crit_edge.us.loopexit.unr-lcssa, label %.lr.ph71.us.preheader.new

.lr.ph71.us.preheader.new:                        ; preds = %.lr.ph71.us.preheader
  %unroll_iter = and i64 %51, 2147483646
  br label %.lr.ph71.us

..preheader60_crit_edge.us.loopexit.unr-lcssa:    ; preds = %.lr.ph71.us, %.lr.ph71.us.preheader
  %indvars.iv115.unr = phi i64 [ 1, %.lr.ph71.us.preheader ], [ %indvars.iv.next116.1, %.lr.ph71.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %..preheader60_crit_edge.us, label %.lr.ph71.us.epil

.lr.ph71.us.epil:                                 ; preds = %..preheader60_crit_edge.us.loopexit.unr-lcssa
  %53 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv125, i64 %indvars.iv115.unr
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds i8, ptr %53, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = load i32, ptr %23, align 4, !tbaa !5
  %58 = sext i32 %54 to i64
  %59 = sext i32 %56 to i64
  %60 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %58, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %61, %57
  %63 = icmp sgt i32 %62, 1000000006
  %64 = add nsw i32 %62, -1000000007
  %spec.select.us.epil = select i1 %63, i32 %64, i32 %62
  store i32 %spec.select.us.epil, ptr %60, align 4, !tbaa !5
  br label %..preheader60_crit_edge.us

..preheader60_crit_edge.us:                       ; preds = %.lr.ph71.us.epil, %..preheader60_crit_edge.us.loopexit.unr-lcssa, %.lr.ph76.us, %.preheader.us
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count128
  br i1 %exitcond129.not, label %._crit_edge92, label %.lr.ph76.us, !llvm.loop !9

65:                                               ; preds = %.lr.ph, %88
  %.pre135137 = phi i32 [ %.pre135, %.lr.ph ], [ %.pre135141, %88 ]
  %66 = phi i32 [ %7, %.lr.ph ], [ %89, %88 ]
  %67 = phi i32 [ %7, %.lr.ph ], [ %90, %88 ]
  %68 = phi i32 [ %.pre135, %.lr.ph ], [ %91, %88 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %88 ]
  %69 = phi i32 [ %11, %.lr.ph ], [ %93, %88 ]
  %.04765 = phi i32 [ 0, %.lr.ph ], [ %76, %88 ]
  %70 = shl i32 %.04765, 1
  %71 = zext nneg i32 %69 to i64
  %72 = getelementptr inbounds [77 x i8], ptr @str, i64 0, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !15
  %74 = sext i8 %73 to i32
  %75 = add i32 %70, -48
  %76 = add i32 %75, %74
  %77 = icmp sgt i32 %76, %68
  br i1 %77, label %._crit_edge.loopexit, label %78

78:                                               ; preds = %65
  %.not58 = icmp eq i32 %76, 0
  br i1 %.not58, label %88, label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 %69, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %80 = add nsw i32 %76, -1
  %81 = shl nuw i32 1, %80
  store i32 %81, ptr %3, align 4, !tbaa !5
  %82 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %82, ptr %1, align 8
  %83 = load i32, ptr %10, align 8, !tbaa !11
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %10, align 8, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv99, i64 %85
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %86, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  %.pre = load i32, ptr @lim, align 4, !tbaa !5
  %.pre136 = load i32, ptr @n, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %78, %79
  %.pre135141 = phi i32 [ %.pre135137, %78 ], [ %.pre, %79 ]
  %89 = phi i32 [ %66, %78 ], [ %.pre136, %79 ]
  %90 = phi i32 [ %67, %78 ], [ %.pre136, %79 ]
  %91 = phi i32 [ %68, %78 ], [ %.pre, %79 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %92 = add nuw nsw i64 %indvars.iv.next, %indvars.iv99
  %93 = trunc nuw i64 %92 to i32
  %.not57 = icmp slt i32 %90, %93
  br i1 %.not57, label %._crit_edge.loopexit, label %65, !llvm.loop !16

._crit_edge.loopexit:                             ; preds = %65, %88
  %.pre135140 = phi i32 [ %.pre135137, %65 ], [ %.pre135141, %88 ]
  %94 = phi i32 [ %66, %65 ], [ %89, %88 ]
  %.pre142 = sext i32 %94 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader62, %._crit_edge.loopexit
  %.pre-phi = phi i64 [ %.pre142, %._crit_edge.loopexit ], [ %8, %.preheader62 ]
  %.pre135139 = phi i32 [ %.pre135140, %._crit_edge.loopexit ], [ %.pre135, %.preheader62 ]
  %95 = phi i32 [ %94, %._crit_edge.loopexit ], [ %7, %.preheader62 ]
  %96 = icmp slt i64 %9, %.pre-phi
  br i1 %96, label %.preheader62, label %.preheader61, !llvm.loop !17

._crit_edge92.split.split:                        ; preds = %._crit_edge84
  store i32 %spec.select59, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge92

._crit_edge92.loopexit.unr-lcssa:                 ; preds = %.preheader60.us.us, %.preheader60.us.us.preheader
  %indvars.iv130.unr = phi i64 [ 0, %.preheader60.us.us.preheader ], [ %indvars.iv.next131.3, %.preheader60.us.us ]
  %lcmp.mod148.not = icmp eq i64 %xtraiter147, 0
  br i1 %lcmp.mod148.not, label %._crit_edge92, label %.preheader60.us.us.epil

.preheader60.us.us.epil:                          ; preds = %._crit_edge92.loopexit.unr-lcssa, %.preheader60.us.us.epil
  %indvars.iv130.epil = phi i64 [ %indvars.iv.next131.epil, %.preheader60.us.us.epil ], [ %indvars.iv130.unr, %._crit_edge92.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader60.us.us.epil ], [ 0, %._crit_edge92.loopexit.unr-lcssa ]
  %97 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv130.epil
  store i32 1, ptr %97, align 4, !tbaa !5
  %indvars.iv.next131.epil = add nuw nsw i64 %indvars.iv130.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter147
  br i1 %epil.iter.cmp.not, label %._crit_edge92, label %.preheader60.us.us.epil, !llvm.loop !18

._crit_edge92:                                    ; preds = %..preheader60_crit_edge.us, %._crit_edge92.loopexit.unr-lcssa, %.preheader60.us.us.epil, %._crit_edge92.split.split, %.preheader61
  %98 = phi i32 [ %spec.select59, %._crit_edge92.split.split ], [ %ans.promoted85, %.preheader61 ], [ %ans.promoted85, %.preheader60.us.us.epil ], [ %ans.promoted85, %._crit_edge92.loopexit.unr-lcssa ], [ %ans.promoted85, %..preheader60_crit_edge.us ]
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %98)
  ret i32 0

.lr.ph76:                                         ; preds = %.lr.ph76.preheader, %._crit_edge84
  %indvars.iv110 = phi i64 [ 0, %.lr.ph76.preheader ], [ %indvars.iv.next111, %._crit_edge84 ]
  %spec.select59.lcssa8789 = phi i32 [ %ans.promoted85, %.lr.ph76.preheader ], [ %spec.select59, %._crit_edge84 ]
  %100 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv110
  store i32 1, ptr %100, align 4, !tbaa !5
  %101 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv110
  br label %102

102:                                              ; preds = %.lr.ph76, %.loopexit
  %indvars.iv105 = phi i64 [ 0, %.lr.ph76 ], [ %indvars.iv.next106, %.loopexit ]
  %103 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv110, i64 %indvars.iv105
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %.not54 = icmp eq i32 %104, 0
  br i1 %.not54, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %102
  %105 = load i32, ptr %101, align 8, !tbaa !11
  %.not5569 = icmp slt i32 %105, 1
  br i1 %.not5569, label %.loopexit, label %.lr.ph71.preheader

.lr.ph71.preheader:                               ; preds = %.preheader
  %106 = add nuw i32 %105, 1
  %wide.trip.count = zext i32 %106 to i64
  %107 = trunc nuw nsw i64 %indvars.iv105 to i32
  br label %.lr.ph71

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %.lr.ph71
  %indvars.iv102 = phi i64 [ 1, %.lr.ph71.preheader ], [ %indvars.iv.next103, %.lr.ph71 ]
  %108 = getelementptr inbounds [77 x [7 x %"struct.std::pair"]], ptr @g, i64 0, i64 %indvars.iv110, i64 %indvars.iv102
  %109 = load i32, ptr %108, align 8, !tbaa !11
  %110 = getelementptr inbounds i8, ptr %108, i64 4
  %111 = load i32, ptr %110, align 4, !tbaa !13
  %112 = or i32 %111, %107
  %113 = load i32, ptr %103, align 4, !tbaa !5
  %114 = sext i32 %109 to i64
  %115 = sext i32 %112 to i64
  %116 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %114, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = add nsw i32 %117, %113
  %119 = icmp sgt i32 %118, 1000000006
  %120 = add nsw i32 %118, -1000000007
  %spec.select = select i1 %119, i32 %120, i32 %118
  store i32 %spec.select, ptr %116, align 4, !tbaa !5
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph71, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph71, %.preheader, %102
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond109.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count108
  br i1 %exitcond109.not, label %..preheader60_crit_edge, label %102, !llvm.loop !20

._crit_edge84:                                    ; preds = %..preheader60_crit_edge
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond114.not = icmp eq i64 %indvars.iv.next111, %wide.trip.count113
  br i1 %exitcond114.not, label %._crit_edge92.split.split, label %.lr.ph76, !llvm.loop !9

..preheader60_crit_edge:                          ; preds = %.loopexit, %..preheader60_crit_edge
  %.082 = phi i32 [ %127, %..preheader60_crit_edge ], [ 0, %.loopexit ]
  %.04181 = phi i32 [ %129, %..preheader60_crit_edge ], [ 1, %.loopexit ]
  %spec.select597880 = phi i32 [ %spec.select59, %..preheader60_crit_edge ], [ %spec.select59.lcssa8789, %.loopexit ]
  %121 = sext i32 %.04181 to i64
  %122 = getelementptr inbounds [77 x [1048577 x i32]], ptr @f, i64 0, i64 %indvars.iv110, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = add nsw i32 %spec.select597880, %123
  %125 = icmp sgt i32 %124, 1000000006
  %126 = add nsw i32 %124, -1000000007
  %spec.select59 = select i1 %125, i32 %126, i32 %124
  %127 = add nuw nsw i32 %.082, 1
  %128 = shl nuw i32 2, %.082
  %129 = or i32 %128, %.04181
  %.not53 = icmp sgt i32 %129, %12
  br i1 %.not53, label %._crit_edge84, label %..preheader60_crit_edge, !llvm.loop !21
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !10}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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