; LLVM IR from tangjz/acm-icpc :: uvalive (7225)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@seq = external dso_local global [51 x [51 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 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 i64, align 8
  %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
  store i32 0, ptr %1, align 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %11

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

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

16:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store i64 0, ptr %4, align 8, !tbaa !9
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %88, %16
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp sle i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %25
  %27 = getelementptr inbounds [51 x i32], ptr %26, i64 0, i64 0
  %28 = getelementptr inbounds i32, ptr %27, i64 0
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %66, %23
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %33
  %35 = getelementptr inbounds [51 x i32], ptr %34, i64 0, i64 0
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp sle i32 %31, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %30
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %69

39:                                               ; preds = %30
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %41
  %43 = getelementptr inbounds [51 x i32], ptr %42, i64 0, i64 0
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %46)
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %49
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [51 x i32], ptr %50, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %56
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [51 x i32], ptr %57, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = icmp sgt i32 %54, %61
  br i1 %62, label %63, label %65

63:                                               ; preds = %39
  %64 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %64, ptr %6, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %63, %39
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %7, align 4, !tbaa !5
  br label %30, !llvm.loop !11

69:                                               ; preds = %38
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %71
  %73 = getelementptr inbounds [51 x i32], ptr %72, i64 0, i64 1
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %75
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [51 x i32], ptr %76, i64 0, i64 %78
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(4) %79) #5
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %81
  %83 = getelementptr inbounds [51 x i32], ptr %82, i64 0, i64 1
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = load i64, ptr %4, align 8, !tbaa !9
  %87 = add nsw i64 %86, %85
  store i64 %87, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %88

88:                                               ; preds = %69
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !5
  br label %18, !llvm.loop !13

91:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %128, %91
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = load i32, ptr @n, align 4, !tbaa !5
  %95 = icmp sle i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %131

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 2, ptr %9, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %124, %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr %8, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %101
  %103 = getelementptr inbounds [51 x i32], ptr %102, i64 0, i64 0
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = icmp sle i32 %99, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %98
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %127

107:                                              ; preds = %98
  %108 = load i64, ptr %4, align 8, !tbaa !9
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %110
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [51 x i32], ptr %111, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %117
  %119 = getelementptr inbounds [51 x i32], ptr %118, i64 0, i64 1
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = sub nsw i32 %115, %120
  %122 = sext i32 %121 to i64
  %123 = call noundef i64 @_ZSt5__gcdIxET_S0_S0_(i64 noundef %108, i64 noundef %122)
  store i64 %123, ptr %4, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %107
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %9, align 4, !tbaa !5
  br label %98, !llvm.loop !14

127:                                              ; preds = %106
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %8, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %8, align 4, !tbaa !5
  br label %92, !llvm.loop !15

131:                                              ; preds = %96
  %132 = load i32, ptr %2, align 4, !tbaa !5
  %133 = load i64, ptr %4, align 8, !tbaa !9
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %132, i64 noundef %133)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %135

135:                                              ; preds = %131
  %136 = load i32, ptr %2, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %2, align 4, !tbaa !5
  br label %11, !llvm.loop !16

138:                                              ; preds = %15
  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 nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt5__gcdIxET_S0_S0_(i64 noundef, i64 noundef) #4

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@seq = external dso_local global [51 x [51 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind 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
  %.not63 = icmp slt i32 %2, 1
  br i1 %.not63, label %._crit_edge67, label %.lr.ph66

._crit_edge67:                                    ; preds = %._crit_edge61, %0
  ret i32 0

.lr.ph66:                                         ; preds = %0, %._crit_edge61
  %.03764 = phi i32 [ %32, %._crit_edge61 ], [ 1, %0 ]
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not3846 = icmp slt i32 %4, 1
  br i1 %.not3846, label %._crit_edge61, label %.lr.ph50

.preheader42:                                     ; preds = %._crit_edge
  %.not3958 = icmp slt i32 %14, 1
  br i1 %.not3958, label %._crit_edge61, label %.preheader

.lr.ph50:                                         ; preds = %.lr.ph66, %._crit_edge
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %._crit_edge ], [ 1, %.lr.ph66 ]
  %.03547 = phi i64 [ %13, %._crit_edge ], [ 0, %.lr.ph66 ]
  %5 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %indvars.iv70
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %7 = load i32, ptr %5, align 4, !tbaa !5
  %.not4143 = icmp slt i32 %7, 1
  br i1 %.not4143, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph50
  %.033.lcssa = phi i32 [ 1, %.lr.ph50 ], [ %spec.select, %.lr.ph ]
  %8 = getelementptr inbounds i8, ptr %5, i64 4
  %9 = sext i32 %.033.lcssa to i64
  %10 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %indvars.iv70, i64 %9
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  %11 = load i32, ptr %8, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = add nsw i64 %.03547, %12
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %.not38.not = icmp slt i64 %indvars.iv70, %15
  br i1 %.not38.not, label %.lr.ph50, label %.preheader42, !llvm.loop !9

.lr.ph:                                           ; preds = %.lr.ph50, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph50 ]
  %.03344 = phi i32 [ %spec.select, %.lr.ph ], [ 1, %.lr.ph50 ]
  %16 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv
  %17 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %16)
  %18 = sext i32 %.03344 to i64
  %19 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %indvars.iv70, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %indvars.iv70, i64 %indvars.iv
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = icmp sgt i32 %20, %22
  %24 = trunc nuw nsw i64 %indvars.iv to i32
  %spec.select = select i1 %23, i32 %24, i32 %.03344
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %.not41.not = icmp slt i64 %indvars.iv, %26
  br i1 %.not41.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader:                                       ; preds = %.preheader42, %._crit_edge56
  %27 = phi i32 [ %34, %._crit_edge56 ], [ %14, %.preheader42 ]
  %indvars.iv76 = phi i64 [ %indvars.iv.next77, %._crit_edge56 ], [ 1, %.preheader42 ]
  %.13659 = phi i64 [ %.2.lcssa, %._crit_edge56 ], [ %13, %.preheader42 ]
  %28 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %indvars.iv76
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %.not4052 = icmp slt i32 %29, 2
  br i1 %.not4052, label %._crit_edge56, label %.lr.ph55

.lr.ph55:                                         ; preds = %.preheader
  %30 = getelementptr inbounds i8, ptr %28, i64 4
  br label %36

._crit_edge61:                                    ; preds = %._crit_edge56, %.lr.ph66, %.preheader42
  %.136.lcssa = phi i64 [ %13, %.preheader42 ], [ 0, %.lr.ph66 ], [ %.2.lcssa, %._crit_edge56 ]
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.03764, i64 noundef %.136.lcssa)
  %32 = add nuw nsw i32 %.03764, 1
  %33 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.03764, %33
  br i1 %.not.not, label %.lr.ph66, label %._crit_edge67, !llvm.loop !12

._crit_edge56.loopexit:                           ; preds = %36
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge56

._crit_edge56:                                    ; preds = %._crit_edge56.loopexit, %.preheader
  %34 = phi i32 [ %27, %.preheader ], [ %.pre, %._crit_edge56.loopexit ]
  %.2.lcssa = phi i64 [ %.13659, %.preheader ], [ %42, %._crit_edge56.loopexit ]
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %35 = sext i32 %34 to i64
  %.not39.not = icmp slt i64 %indvars.iv76, %35
  br i1 %.not39.not, label %.preheader, label %._crit_edge61, !llvm.loop !13

36:                                               ; preds = %.lr.ph55, %36
  %indvars.iv73 = phi i64 [ 2, %.lr.ph55 ], [ %indvars.iv.next74, %36 ]
  %.253 = phi i64 [ %.13659, %.lr.ph55 ], [ %42, %36 ]
  %37 = getelementptr inbounds [51 x [51 x i32]], ptr @seq, i64 0, i64 %indvars.iv76, i64 %indvars.iv73
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = load i32, ptr %30, align 4, !tbaa !5
  %40 = sub nsw i32 %38, %39
  %41 = sext i32 %40 to i64
  %42 = tail call noundef i64 @_ZSt5__gcdIxET_S0_S0_(i64 noundef %.253, i64 noundef %41)
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %43 = load i32, ptr %28, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %.not40.not = icmp slt i64 %indvars.iv73, %44
  br i1 %.not40.not, label %36, label %._crit_edge56.loopexit, !llvm.loop !14
}

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

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

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

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

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


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