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

; 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
@tot = external dso_local global i32, align 4
@seq = external dso_local global [100001 x i32], align 16
@L = external dso_local global i64, align 8
@R = external dso_local global i64, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %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)
  br label %10

10:                                               ; preds = %124, %0
  %11 = load i32, ptr @t, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr @t, align 4, !tbaa !5
  %13 = icmp ne i32 %11, 0
  br i1 %13, label %14, label %125

14:                                               ; preds = %10
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @L, ptr noundef @R)
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store i64 0, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %16

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

20:                                               ; preds = %16
  store i32 4, ptr %5, align 4
  br label %91

21:                                               ; preds = %16
  %22 = load i64, ptr %2, align 8, !tbaa !9
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = sub nsw i32 %23, %24
  %26 = mul nsw i32 %25, 2
  %27 = sext i32 %26 to i64
  %28 = add nsw i64 %22, %27
  store i64 %28, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %29 = load i64, ptr %2, align 8, !tbaa !9
  %30 = add nsw i64 %29, 1
  store i64 %30, ptr %6, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) @L)
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) @R)
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = icmp sle i64 %32, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br i1 %35, label %36, label %81

36:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %77, %36
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sub nsw i32 %39, %40
  %42 = mul nsw i32 %41, 2
  %43 = icmp sle i32 %38, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %37
  store i32 7, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %80

45:                                               ; preds = %37
  %46 = load i64, ptr %2, align 8, !tbaa !9
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = add nsw i64 %46, %48
  %50 = load i64, ptr @L, align 8, !tbaa !9
  %51 = icmp sge i64 %49, %50
  br i1 %51, label %52, label %76

52:                                               ; preds = %45
  %53 = load i64, ptr %2, align 8, !tbaa !9
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = add nsw i64 %53, %55
  %57 = load i64, ptr @R, align 8, !tbaa !9
  %58 = icmp sle i64 %56, %57
  br i1 %58, label %59, label %76

59:                                               ; preds = %52
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = and i32 %60, 1
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = load i32, ptr %4, align 4, !tbaa !5
  br label %70

65:                                               ; preds = %59
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = ashr i32 %67, 1
  %69 = add nsw i32 %66, %68
  br label %70

70:                                               ; preds = %65, %63
  %71 = phi i32 [ %64, %63 ], [ %69, %65 ]
  %72 = load i32, ptr @tot, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr @tot, align 4, !tbaa !5
  %74 = sext i32 %72 to i64
  %75 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %74
  store i32 %71, ptr %75, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %70, %52, %45
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %7, align 4, !tbaa !5
  br label %37, !llvm.loop !11

80:                                               ; preds = %44
  br label %81

81:                                               ; preds = %80, %21
  %82 = load i64, ptr %3, align 8, !tbaa !9
  store i64 %82, ptr %2, align 8, !tbaa !9
  %83 = load i64, ptr %2, align 8, !tbaa !9
  %84 = load i64, ptr @R, align 8, !tbaa !9
  %85 = icmp sge i64 %83, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %81
  store i32 4, ptr %5, align 4
  br label %91

87:                                               ; preds = %81
  br label %88

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

91:                                               ; preds = %86, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %92

92:                                               ; preds = %91
  %93 = load i64, ptr %2, align 8, !tbaa !9
  %94 = load i64, ptr @R, align 8, !tbaa !9
  %95 = icmp slt i64 %93, %94
  br i1 %95, label %96, label %101

96:                                               ; preds = %92
  %97 = load i32, ptr @tot, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr @tot, align 4, !tbaa !5
  %99 = sext i32 %97 to i64
  %100 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %99
  store i32 1, ptr %100, align 4, !tbaa !5
  br label %101

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

102:                                              ; preds = %121, %101
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = load i32, ptr @tot, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %124

107:                                              ; preds = %102
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = load i32, ptr @tot, align 4, !tbaa !5
  %114 = sub nsw i32 %113, 1
  %115 = icmp eq i32 %112, %114
  %116 = zext i1 %115 to i64
  %117 = getelementptr inbounds [3 x i8], ptr @.str.3, i64 0, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !14
  %119 = sext i8 %118 to i32
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %111, i32 noundef %119)
  br label %121

121:                                              ; preds = %107
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !5
  br label %102, !llvm.loop !15

124:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  br label %10, !llvm.loop !16

125:                                              ; preds = %10
  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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; 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 = { 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 = { 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 = !{!7, !7, i64 0}
!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
@tot = external dso_local local_unnamed_addr global i32, align 4
@seq = external dso_local local_unnamed_addr global [100001 x i32], align 16
@L = external dso_local global i64, align 8
@R = external dso_local global i64, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @t, align 4, !tbaa !5
  %.not48 = icmp eq i32 %4, 0
  br i1 %.not48, label %._crit_edge51, label %.lr.ph50

.lr.ph50:                                         ; preds = %0, %._crit_edge47
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @L, ptr noundef nonnull @R)
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 1
  br i1 %8, label %.lr.ph41, label %.lr.ph50.._crit_edge_crit_edge

.lr.ph50.._crit_edge_crit_edge:                   ; preds = %.lr.ph50
  %.pre60 = load i64, ptr @R, align 8, !tbaa !9
  br label %._crit_edge

.lr.ph41:                                         ; preds = %.lr.ph50, %.loopexit
  %9 = phi i32 [ %38, %.loopexit ], [ %7, %.lr.ph50 ]
  %.02339 = phi i32 [ %41, %.loopexit ], [ 1, %.lr.ph50 ]
  %.02438 = phi i64 [ %40, %.loopexit ], [ 0, %.lr.ph50 ]
  %10 = sub nsw i32 %9, %.02339
  %11 = shl nsw i32 %10, 1
  %12 = sext i32 %11 to i64
  %13 = add nsw i64 %.02438, %12
  store i64 %13, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %14 = add nsw i64 %.02438, 1
  store i64 %14, ptr %2, align 8, !tbaa !9
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) @L)
  %16 = load i64, ptr %15, align 8, !tbaa !9
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) @R)
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %.not30 = icmp sgt i64 %16, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br i1 %.not30, label %.lr.ph41..loopexit_crit_edge, label %.preheader

.lr.ph41..loopexit_crit_edge:                     ; preds = %.lr.ph41
  %.pre = load i64, ptr @R, align 8, !tbaa !9
  %.pre59 = load i32, ptr @n, align 4
  br label %.loopexit

.preheader:                                       ; preds = %.lr.ph41
  %19 = load i32, ptr @n, align 4
  %20 = sub nsw i32 %19, %.02339
  %.not3136 = icmp slt i32 %20, 1
  %.pre58 = load i64, ptr @R, align 8
  br i1 %.not3136, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %21 = shl nuw nsw i32 %20, 1
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  %22 = load i64, ptr @L, align 8, !tbaa !9
  %23 = zext nneg i32 %21 to i64
  br label %24

24:                                               ; preds = %.lr.ph, %36
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %36 ]
  %25 = phi i32 [ %tot.promoted, %.lr.ph ], [ %37, %36 ]
  %26 = add nsw i64 %.02438, %indvars.iv
  %.not33 = icmp slt i64 %26, %22
  %.not34 = icmp sgt i64 %26, %.pre58
  %or.cond = select i1 %.not33, i1 true, i1 %.not34
  br i1 %or.cond, label %36, label %27

27:                                               ; preds = %24
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = and i32 %28, 1
  %.not35 = icmp eq i32 %29, 0
  %30 = lshr exact i32 %28, 1
  %31 = select i1 %.not35, i32 %30, i32 0
  %32 = add nuw nsw i32 %31, %.02339
  %33 = add nsw i32 %25, 1
  store i32 %33, ptr @tot, align 4, !tbaa !5
  %34 = sext i32 %25 to i64
  %35 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %34
  store i32 %32, ptr %35, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %24, %27
  %37 = phi i32 [ %25, %24 ], [ %33, %27 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not31.not = icmp ult i64 %indvars.iv, %23
  br i1 %.not31.not, label %24, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %36, %.lr.ph41..loopexit_crit_edge, %.preheader
  %38 = phi i32 [ %.pre59, %.lr.ph41..loopexit_crit_edge ], [ %19, %.preheader ], [ %19, %36 ]
  %39 = phi i64 [ %.pre, %.lr.ph41..loopexit_crit_edge ], [ %.pre58, %.preheader ], [ %.pre58, %36 ]
  %40 = load i64, ptr %1, align 8, !tbaa !9
  %.not32 = icmp slt i64 %40, %39
  %41 = add nuw nsw i32 %.02339, 1
  %42 = icmp slt i32 %41, %38
  %or.cond53 = select i1 %.not32, i1 %42, i1 false
  br i1 %or.cond53, label %.lr.ph41, label %._crit_edge.loopexit, !llvm.loop !13

._crit_edge.loopexit:                             ; preds = %.loopexit
  %.pre61.pre = load i32, ptr @tot, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph50.._crit_edge_crit_edge, %._crit_edge.loopexit
  %.pre61 = phi i32 [ 0, %.lr.ph50.._crit_edge_crit_edge ], [ %.pre61.pre, %._crit_edge.loopexit ]
  %43 = phi i64 [ %.pre60, %.lr.ph50.._crit_edge_crit_edge ], [ %39, %._crit_edge.loopexit ]
  %.1 = phi i64 [ 0, %.lr.ph50.._crit_edge_crit_edge ], [ %40, %._crit_edge.loopexit ]
  %44 = icmp slt i64 %.1, %43
  br i1 %44, label %45, label %49

45:                                               ; preds = %._crit_edge
  %46 = add nsw i32 %.pre61, 1
  store i32 %46, ptr @tot, align 4, !tbaa !5
  %47 = sext i32 %.pre61 to i64
  %48 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %47
  store i32 1, ptr %48, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %45, %._crit_edge
  %50 = phi i32 [ %46, %45 ], [ %.pre61, %._crit_edge ]
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph46, label %._crit_edge47

._crit_edge47:                                    ; preds = %.lr.ph46, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  %52 = load i32, ptr @t, align 4, !tbaa !5
  %53 = add nsw i32 %52, -1
  store i32 %53, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %52, 0
  br i1 %.not, label %._crit_edge51, label %.lr.ph50, !llvm.loop !14

.lr.ph46:                                         ; preds = %49, %.lr.ph46
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %.lr.ph46 ], [ 0, %49 ]
  %54 = phi i32 [ %65, %.lr.ph46 ], [ %50, %49 ]
  %55 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %indvars.iv55
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %54, -1
  %58 = zext i32 %57 to i64
  %59 = icmp eq i64 %indvars.iv55, %58
  %60 = zext i1 %59 to i64
  %61 = getelementptr inbounds [3 x i8], ptr @.str.3, i64 0, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !15
  %63 = sext i8 %62 to i32
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %56, i32 noundef %63)
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %65 = load i32, ptr @tot, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next56, %66
  br i1 %67, label %.lr.ph46, label %._crit_edge47, !llvm.loop !16

._crit_edge51:                                    ; preds = %._crit_edge47, %0
  ret i32 0
}

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; 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 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 = { mustprogress 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 = { 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 = !{!7, !7, i64 0}
!16 = distinct !{!16, !12}


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