; LLVM IR from tangjz/acm-icpc :: codeforces/gym (103957M)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@ans1 = external dso_local global i32, align 4
@ans2 = external dso_local global i32, align 4
@a = external dso_local global [1001 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %116, %0
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr @t, align 4, !tbaa !5
  %13 = icmp sle i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %119

15:                                               ; preds = %10
  store i32 0, ptr @ans2, align 4, !tbaa !5
  store i32 0, ptr @ans1, align 4, !tbaa !5
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m, ptr noundef @tot)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %32, %15
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load i32, ptr @tot, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

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

22:                                               ; preds = %17
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [1001 x %"struct.std::pair"], ptr @a, i64 0, i64 %24
  %26 = getelementptr inbounds %"struct.std::pair", ptr %25, i32 0, i32 0
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [1001 x %"struct.std::pair"], ptr @a, i64 0, i64 %28
  %30 = getelementptr inbounds %"struct.std::pair", ptr %29, i32 0, i32 1
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %26, ptr noundef %30)
  br label %32

32:                                               ; preds = %22
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %4, align 4, !tbaa !5
  br label %17, !llvm.loop !9

35:                                               ; preds = %21
  %36 = load i32, ptr @tot, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds %"struct.std::pair", ptr @a, i64 %37
  call void @_ZSt4sortIPSt4pairIiiEEvT_S3_(ptr noundef @a, ptr noundef %38)
  %39 = load i32, ptr @tot, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %"struct.std::pair", ptr @a, i64 %40
  %42 = call noundef ptr @_ZSt6uniqueIPSt4pairIiiEET_S3_S3_(ptr noundef @a, ptr noundef %41)
  %43 = ptrtoint ptr %42 to i64
  %44 = sub i64 %43, ptrtoint (ptr @a to i64)
  %45 = sdiv exact i64 %44, 8
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %108, %35
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = load i32, ptr @n, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %111

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 -1, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  br label %53

53:                                               ; preds = %86, %52
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr @tot, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %65

57:                                               ; preds = %53
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1001 x %"struct.std::pair"], ptr @a, i64 0, i64 %59
  %61 = getelementptr inbounds %"struct.std::pair", ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !11
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = icmp eq i32 %62, %63
  br label %65

65:                                               ; preds = %57, %53
  %66 = phi i1 [ false, %53 ], [ %64, %57 ]
  br i1 %66, label %67, label %93

67:                                               ; preds = %65
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1001 x %"struct.std::pair"], ptr @a, i64 0, i64 %69
  %71 = getelementptr inbounds %"struct.std::pair", ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !13
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = sub nsw i32 %72, %73
  %75 = sub nsw i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  %78 = ashr i32 %77, 1
  %79 = load i32, ptr @ans1, align 4, !tbaa !5
  %80 = add nsw i32 %79, %78
  store i32 %80, ptr @ans1, align 4, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = add nsw i32 %81, 2
  %83 = sdiv i32 %82, 3
  %84 = load i32, ptr @ans2, align 4, !tbaa !5
  %85 = add nsw i32 %84, %83
  store i32 %85, ptr @ans2, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %67
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %6, align 4, !tbaa !5
  %89 = sext i32 %87 to i64
  %90 = getelementptr inbounds [1001 x %"struct.std::pair"], ptr @a, i64 0, i64 %89
  %91 = getelementptr inbounds %"struct.std::pair", ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !13
  store i32 %92, ptr %7, align 4, !tbaa !5
  br label %53, !llvm.loop !14

93:                                               ; preds = %65
  %94 = load i32, ptr @m, align 4, !tbaa !5
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = sub nsw i32 %94, %95
  %97 = sub nsw i32 %96, 1
  store i32 %97, ptr %8, align 4, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  %100 = ashr i32 %99, 1
  %101 = load i32, ptr @ans1, align 4, !tbaa !5
  %102 = add nsw i32 %101, %100
  store i32 %102, ptr @ans1, align 4, !tbaa !5
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = add nsw i32 %103, 2
  %105 = sdiv i32 %104, 3
  %106 = load i32, ptr @ans2, align 4, !tbaa !5
  %107 = add nsw i32 %106, %105
  store i32 %107, ptr @ans2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %108

108:                                              ; preds = %93
  %109 = load i32, ptr %5, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %5, align 4, !tbaa !5
  br label %47, !llvm.loop !15

111:                                              ; preds = %51
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = load i32, ptr @ans1, align 4, !tbaa !5
  %114 = load i32, ptr @ans2, align 4, !tbaa !5
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %112, i32 noundef %113, i32 noundef %114)
  br label %116

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

119:                                              ; preds = %14
  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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPSt4pairIiiEET_S3_S3_(ptr noundef, ptr noundef) #3

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@ans1 = external dso_local local_unnamed_addr global i32, align 4
@ans2 = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local global [1001 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %2 = load i32, ptr @t, align 4, !tbaa !5
  %.not53 = icmp slt i32 %2, 1
  br i1 %.not53, label %._crit_edge57, label %.lr.ph56

._crit_edge57:                                    ; preds = %27, %0
  ret i32 0

.lr.ph56:                                         ; preds = %0, %27
  %.02354 = phi i32 [ %31, %27 ], [ 1, %0 ]
  store i32 0, ptr @ans2, align 4, !tbaa !5
  store i32 0, ptr @ans1, align 4, !tbaa !5
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @tot)
  %4 = load i32, ptr @tot, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %.lr.ph56.._crit_edge_crit_edge

.lr.ph56.._crit_edge_crit_edge:                   ; preds = %.lr.ph56
  %.pre67 = sext i32 %4 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph56.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre67, %.lr.ph56.._crit_edge_crit_edge ], [ %23, %.lr.ph ]
  %6 = getelementptr inbounds %"struct.std::pair", ptr @a, i64 %.pre-phi
  tail call void @_ZSt4sortIPSt4pairIiiEEvT_S3_(ptr noundef nonnull @a, ptr noundef nonnull %6)
  %7 = load i32, ptr @tot, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds %"struct.std::pair", ptr @a, i64 %8
  %10 = tail call noundef ptr @_ZSt6uniqueIPSt4pairIiiEET_S3_S3_(ptr noundef nonnull @a, ptr noundef nonnull %9)
  %11 = ptrtoint ptr %10 to i64
  %12 = sub i64 %11, ptrtoint (ptr @a to i64)
  %13 = lshr i64 %12, 3
  %14 = trunc i64 %13 to i32
  store i32 %14, ptr @tot, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.preheader.lr.ph, label %._crit_edge._crit_edge

._crit_edge._crit_edge:                           ; preds = %._crit_edge
  %.pre = load i32, ptr @ans1, align 4, !tbaa !5
  %.pre66 = load i32, ptr @ans2, align 4, !tbaa !5
  br label %27

.preheader.lr.ph:                                 ; preds = %._crit_edge
  %ans2.promoted37 = load i32, ptr @ans2, align 4, !tbaa !5
  %ans1.promoted34 = load i32, ptr @ans1, align 4, !tbaa !5
  %17 = load i32, ptr @m, align 4, !tbaa !5
  %sext = shl i64 %13, 32
  %18 = ashr exact i64 %sext, 32
  br label %.preheader

.lr.ph:                                           ; preds = %.lr.ph56, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph56 ]
  %19 = getelementptr inbounds [1001 x %"struct.std::pair"], ptr @a, i64 0, i64 %indvars.iv
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  %21 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %19, ptr noundef nonnull %20)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = load i32, ptr @tot, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = icmp slt i64 %indvars.iv.next, %23
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader:                                       ; preds = %.preheader.lr.ph, %.critedge
  %.02049 = phi i32 [ 0, %.preheader.lr.ph ], [ %.1.lcssa, %.critedge ]
  %.02148 = phi i32 [ 0, %.preheader.lr.ph ], [ %54, %.critedge ]
  %ans1.promoted3547 = phi i32 [ %ans1.promoted34, %.preheader.lr.ph ], [ %50, %.critedge ]
  %ans2.promoted3846 = phi i32 [ %ans2.promoted37, %.preheader.lr.ph ], [ %53, %.critedge ]
  %25 = icmp slt i32 %.02049, %14
  br i1 %25, label %.lr.ph28.preheader, label %.critedge

.lr.ph28.preheader:                               ; preds = %.preheader
  %26 = sext i32 %.02049 to i64
  br label %.lr.ph28

._crit_edge50:                                    ; preds = %.critedge
  store i32 %50, ptr @ans1, align 4, !tbaa !5
  store i32 %53, ptr @ans2, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %._crit_edge._crit_edge, %._crit_edge50
  %28 = phi i32 [ %.pre66, %._crit_edge._crit_edge ], [ %53, %._crit_edge50 ]
  %29 = phi i32 [ %.pre, %._crit_edge._crit_edge ], [ %50, %._crit_edge50 ]
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.02354, i32 noundef %29, i32 noundef %28)
  %31 = add nuw nsw i32 %.02354, 1
  %32 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.02354, %32
  br i1 %.not.not, label %.lr.ph56, label %._crit_edge57, !llvm.loop !11

.lr.ph28:                                         ; preds = %.lr.ph28.preheader, %38
  %indvars.iv62 = phi i64 [ %26, %.lr.ph28.preheader ], [ %indvars.iv.next63, %38 ]
  %.027 = phi i32 [ -1, %.lr.ph28.preheader ], [ %40, %38 ]
  %33 = phi i32 [ %ans1.promoted3547, %.lr.ph28.preheader ], [ %43, %38 ]
  %34 = phi i32 [ %ans2.promoted3846, %.lr.ph28.preheader ], [ %46, %38 ]
  %35 = getelementptr inbounds [1001 x %"struct.std::pair"], ptr @a, i64 0, i64 %indvars.iv62
  %36 = load i32, ptr %35, align 8, !tbaa !12
  %37 = icmp eq i32 %36, %.02148
  br i1 %37, label %38, label %.critedge.loopexit.split.loop.exit70

38:                                               ; preds = %.lr.ph28
  %39 = getelementptr inbounds i8, ptr %35, i64 4
  %40 = load i32, ptr %39, align 4, !tbaa !14
  %41 = sub nsw i32 %40, %.027
  %42 = ashr i32 %41, 1
  %43 = add nsw i32 %42, %33
  %44 = add nsw i32 %41, 1
  %45 = sdiv i32 %44, 3
  %46 = add nsw i32 %34, %45
  %indvars.iv.next63 = add nsw i64 %indvars.iv62, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next63, %18
  br i1 %exitcond.not, label %.critedge, label %.lr.ph28, !llvm.loop !15

.critedge.loopexit.split.loop.exit70:             ; preds = %.lr.ph28
  %47 = trunc nsw i64 %indvars.iv62 to i32
  br label %.critedge

.critedge:                                        ; preds = %38, %.critedge.loopexit.split.loop.exit70, %.preheader
  %ans2.promoted39 = phi i32 [ %ans2.promoted3846, %.preheader ], [ %34, %.critedge.loopexit.split.loop.exit70 ], [ %46, %38 ]
  %ans1.promoted36 = phi i32 [ %ans1.promoted3547, %.preheader ], [ %33, %.critedge.loopexit.split.loop.exit70 ], [ %43, %38 ]
  %.1.lcssa = phi i32 [ %.02049, %.preheader ], [ %47, %.critedge.loopexit.split.loop.exit70 ], [ %14, %38 ]
  %.0.lcssa = phi i32 [ -1, %.preheader ], [ %.027, %.critedge.loopexit.split.loop.exit70 ], [ %40, %38 ]
  %48 = sub nsw i32 %17, %.0.lcssa
  %49 = ashr i32 %48, 1
  %50 = add nsw i32 %49, %ans1.promoted36
  %51 = add nsw i32 %48, 1
  %52 = sdiv i32 %51, 3
  %53 = add nsw i32 %ans2.promoted39, %52
  %54 = add nuw nsw i32 %.02148, 1
  %exitcond65.not = icmp eq i32 %54, %15
  br i1 %exitcond65.not, label %._crit_edge50, label %.preheader, !llvm.loop !16
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPSt4pairIiiEET_S3_S3_(ptr noundef, ptr noundef) local_unnamed_addr #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!13, !6, i64 4}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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