; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/Good Bye 2014/Problem E/E.ll (Z11sparseTablev)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@pa = external dso_local global [18 x [262144 x i32]], align 16
@cost = external dso_local global [18 x [262144 x i32]], align 16
@r = external dso_local global [262144 x i32], align 16
@u = external dso_local global [262144 x i32], align 16
@d = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z11sparseTablev() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #2
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %5

5:                                                ; preds = %46, %0
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp slt i32 %6, %7
  br i1 %8, label %10, label %9

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

10:                                               ; preds = %5
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [262144 x i32], ptr @u, i64 0, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [262144 x i32], ptr @pa, i64 0, i64 %16
  store i32 %14, ptr %17, align 4, !tbaa !5
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [262144 x i32], ptr @u, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %24, label %28

24:                                               ; preds = %10
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [262144 x i32], ptr @cost, i64 0, i64 %26
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %45

28:                                               ; preds = %10
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [262144 x i32], ptr @u, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @d, i64 noundef %33) #2
  %35 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [262144 x i32], ptr @r, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = sub nsw i32 %36, %40
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [262144 x i32], ptr @cost, i64 0, i64 %43
  store i32 %41, ptr %44, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %28, %24
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %1, align 4, !tbaa !5
  br label %5, !llvm.loop !11

49:                                               ; preds = %9
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = load i32, ptr @n, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [262144 x i32], ptr @pa, i64 0, i64 %52
  store i32 %50, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #2
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %127, %49
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = icmp slt i32 %55, 18
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %54
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %61
  %63 = load i32, ptr @n, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [262144 x i32], ptr %62, i64 0, i64 %64
  store i32 %59, ptr %65, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %123, %58
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  br label %126

71:                                               ; preds = %66
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = sub nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %74
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %78
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [262144 x i32], ptr %79, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [262144 x i32], ptr %75, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %88
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [262144 x i32], ptr %89, i64 0, i64 %91
  store i32 %86, ptr %92, align 4, !tbaa !5
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = sub nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [18 x [262144 x i32]], ptr @cost, i64 0, i64 %95
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [262144 x i32], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [18 x [262144 x i32]], ptr @cost, i64 0, i64 %103
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = sub nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %107
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [262144 x i32], ptr %108, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [262144 x i32], ptr %104, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = add nsw i32 %100, %115
  %117 = load i32, ptr %2, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [18 x [262144 x i32]], ptr @cost, i64 0, i64 %118
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [262144 x i32], ptr %119, i64 0, i64 %121
  store i32 %116, ptr %122, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %71
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %4, align 4, !tbaa !5
  br label %66, !llvm.loop !13

126:                                              ; preds = %70
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %2, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %2, align 4, !tbaa !5
  br label %54, !llvm.loop !14

130:                                              ; preds = %57
  ret void
}

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

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

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

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 = { 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 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local local_unnamed_addr global i32, align 4
@pa = external dso_local local_unnamed_addr global [18 x [262144 x i32]], align 16
@cost = external dso_local local_unnamed_addr global [18 x [262144 x i32]], align 16
@r = external dso_local local_unnamed_addr global [262144 x i32], align 16
@u = external dso_local local_unnamed_addr global [262144 x i32], align 16
@d = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z11sparseTablev() local_unnamed_addr #0 {
  %1 = load i32, ptr @n, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 0
  br i1 %2, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  %.pre51 = sext i32 %1 to i64
  %3 = getelementptr inbounds [262144 x i32], ptr @pa, i64 0, i64 %.pre51
  store i32 %1, ptr %3, align 4, !tbaa !5
  br label %.split.preheader

._crit_edge:                                      ; preds = %50
  %4 = getelementptr inbounds [262144 x i32], ptr @pa, i64 0, i64 %53
  store i32 %51, ptr %4, align 4, !tbaa !5
  %5 = icmp sgt i32 %51, 0
  br i1 %5, label %.lr.ph33.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %._crit_edge.thread, %._crit_edge
  %.lcssa55 = phi i32 [ %1, %._crit_edge.thread ], [ %51, %._crit_edge ]
  %.pre-phi54 = phi i64 [ %.pre51, %._crit_edge.thread ], [ %53, %._crit_edge ]
  %6 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 1, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %6, align 4, !tbaa !5
  %7 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 2, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %7, align 4, !tbaa !5
  %8 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 3, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %8, align 4, !tbaa !5
  %9 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 4, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %9, align 4, !tbaa !5
  %10 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 5, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 6, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 7, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 8, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %13, align 4, !tbaa !5
  %14 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 9, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 10, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %15, align 4, !tbaa !5
  %16 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 11, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %16, align 4, !tbaa !5
  %17 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 12, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 13, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 14, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 15, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 16, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 17, i64 %.pre-phi54
  store i32 %.lcssa55, ptr %22, align 4, !tbaa !5
  br label %.split37.us

.lr.ph33.us.preheader:                            ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %51 to i64
  br label %.lr.ph33.us

.lr.ph33.us:                                      ; preds = %.lr.ph33.us.preheader, %._crit_edge34.us
  %indvars.iv47 = phi i64 [ 1, %.lr.ph33.us.preheader ], [ %indvars.iv.next48, %._crit_edge34.us ]
  %23 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %indvars.iv47, i64 %53
  store i32 %51, ptr %23, align 4, !tbaa !5
  %24 = add nsw i64 %indvars.iv47, -1
  br label %25

25:                                               ; preds = %.lr.ph33.us, %25
  %indvars.iv44 = phi i64 [ 0, %.lr.ph33.us ], [ %indvars.iv.next45, %25 ]
  %26 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %24, i64 %indvars.iv44
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %24, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = getelementptr inbounds [18 x [262144 x i32]], ptr @pa, i64 0, i64 %indvars.iv47, i64 %indvars.iv44
  store i32 %30, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds [18 x [262144 x i32]], ptr @cost, i64 0, i64 %24, i64 %indvars.iv44
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = getelementptr inbounds [18 x [262144 x i32]], ptr @cost, i64 0, i64 %24, i64 %28
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, %33
  %37 = getelementptr inbounds [18 x [262144 x i32]], ptr @cost, i64 0, i64 %indvars.iv47, i64 %indvars.iv44
  store i32 %36, ptr %37, align 4, !tbaa !5
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge34.us, label %25, !llvm.loop !9

._crit_edge34.us:                                 ; preds = %25
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond50.not = icmp eq i64 %indvars.iv.next48, 18
  br i1 %exitcond50.not, label %.split37.us, label %.lr.ph33.us, !llvm.loop !11

.lr.ph:                                           ; preds = %0, %50
  %38 = phi i32 [ %51, %50 ], [ %1, %0 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %50 ], [ 0, %0 ]
  %39 = getelementptr inbounds [262144 x i32], ptr @u, i64 0, i64 %indvars.iv
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = getelementptr inbounds [262144 x i32], ptr @pa, i64 0, i64 %indvars.iv
  store i32 %40, ptr %41, align 4, !tbaa !5
  %42 = icmp eq i32 %40, %38
  br i1 %42, label %50, label %43

43:                                               ; preds = %.lr.ph
  %44 = sext i32 %40 to i64
  %45 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @d, i64 noundef %44) #1
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = getelementptr inbounds [262144 x i32], ptr @r, i64 0, i64 %indvars.iv
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sub nsw i32 %46, %48
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %.lr.ph, %43
  %51 = phi i32 [ %.pre, %43 ], [ %38, %.lr.ph ]
  %.sink = phi i32 [ %49, %43 ], [ 0, %.lr.ph ]
  %52 = getelementptr inbounds [262144 x i32], ptr @cost, i64 0, i64 %indvars.iv
  store i32 %.sink, ptr %52, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %53 = sext i32 %51 to i64
  %54 = icmp slt i64 %indvars.iv.next, %53
  br i1 %54, label %.lr.ph, label %._crit_edge, !llvm.loop !14

.split37.us:                                      ; preds = %._crit_edge34.us, %.split.preheader
  ret void
}

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

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!14 = distinct !{!14, !10}


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