; LLVM IR from DionysiosB/CodeForces :: 0100-0199 (158D-IceSculptures)

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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 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 ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %13, i64 8)
  %15 = extractvalue { i64, i1 } %14, 1
  %16 = extractvalue { i64, i1 } %14, 0
  %17 = select i1 %15, i64 -1, i64 %16
  %18 = call noalias noundef nonnull ptr @_Znam(i64 noundef %17) #6
  store ptr %18, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %19

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

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %33

24:                                               ; preds = %19
  %25 = load ptr, ptr %3, align 8, !tbaa !9
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i64, ptr %25, i64 %27
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %28)
  br label %30

30:                                               ; preds = %24
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %4, align 4, !tbaa !5
  br label %19, !llvm.loop !11

33:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 -30000000, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %86, %33
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sdiv i32 %36, 3
  %38 = icmp sle i32 %35, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %34
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = srem i32 %41, %42
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  br label %86

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

47:                                               ; preds = %82, %46
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

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

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

53:                                               ; preds = %72, %52
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = sdiv i32 %55, %56
  %58 = icmp slt i32 %54, %57
  br i1 %58, label %60, label %59

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

60:                                               ; preds = %53
  %61 = load ptr, ptr %3, align 8, !tbaa !9
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = mul nsw i32 %62, %63
  %65 = load i32, ptr %9, align 4, !tbaa !5
  %66 = add nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i64, ptr %61, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !13
  %70 = load i64, ptr %5, align 8, !tbaa !13
  %71 = add nsw i64 %70, %69
  store i64 %71, ptr %5, align 8, !tbaa !13
  br label %72

72:                                               ; preds = %60
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %10, align 4, !tbaa !5
  br label %53, !llvm.loop !15

75:                                               ; preds = %59
  %76 = load i64, ptr %5, align 8, !tbaa !13
  %77 = load i64, ptr %6, align 8, !tbaa !13
  %78 = icmp sgt i64 %76, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %75
  %80 = load i64, ptr %5, align 8, !tbaa !13
  store i64 %80, ptr %6, align 8, !tbaa !13
  br label %81

81:                                               ; preds = %79, %75
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %9, align 4, !tbaa !5
  br label %47, !llvm.loop !16

85:                                               ; preds = %51
  br label %86

86:                                               ; preds = %85, %45
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %7, align 4, !tbaa !5
  br label %34, !llvm.loop !17

89:                                               ; preds = %39
  %90 = load i64, ptr %6, align 8, !tbaa !13
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %90)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %92 = load i32, ptr %1, align 4
  ret i32 %92
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 }
attributes #6 = { builtin allocsize(0) }

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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = sext i32 %3 to i64
  %5 = icmp slt i32 %3, 0
  %6 = shl nsw i64 %4, 3
  %7 = select i1 %5, i64 -1, i64 %6
  %8 = call noalias noundef nonnull ptr @_Znam(i64 noundef %7) #6
  %9 = icmp sgt i32 %3, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.preheader29:                                     ; preds = %.lr.ph
  %.not37 = icmp slt i32 %14, 3
  br i1 %.not37, label %._crit_edge, label %.lr.ph41.preheader

.lr.ph41.preheader:                               ; preds = %.preheader29
  %10 = udiv i32 %14, 3
  %11 = add nuw nsw i32 %10, 1
  %wide.trip.count59 = zext nneg i32 %11 to i64
  br label %.lr.ph41

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %12 = getelementptr inbounds i64, ptr %8, i64 %indvars.iv
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = icmp slt i64 %indvars.iv.next, %15
  br i1 %16, label %.lr.ph, label %.preheader29, !llvm.loop !9

._crit_edge:                                      ; preds = %.loopexit, %0, %.preheader29
  %.024.lcssa = phi i64 [ -30000000, %.preheader29 ], [ -30000000, %0 ], [ %.3, %.loopexit ]
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.024.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

.lr.ph41:                                         ; preds = %.lr.ph41.preheader, %.loopexit
  %indvar = phi i64 [ 0, %.lr.ph41.preheader ], [ %indvar.next, %.loopexit ]
  %indvars.iv56 = phi i64 [ 1, %.lr.ph41.preheader ], [ %indvars.iv.next57, %.loopexit ]
  %.02438 = phi i64 [ -30000000, %.lr.ph41.preheader ], [ %.3, %.loopexit ]
  %18 = trunc nuw nsw i64 %indvars.iv56 to i32
  %19 = srem i32 %14, %18
  %20 = sdiv i32 %14, %18
  %.not27 = icmp eq i32 %19, 0
  br i1 %.not27, label %.preheader28, label %.loopexit

.preheader28:                                     ; preds = %.lr.ph41
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.preheader.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader28
  %xtraiter = and i64 %indvars.iv56, 7
  %22 = icmp ult i64 %indvar, 7
  br i1 %22, label %.loopexit.loopexit67.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %indvars.iv56, 9223372036854775800
  br label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader28
  %wide.trip.count = zext nneg i32 %20 to i64
  %xtraiter70 = and i64 %wide.trip.count, 3
  %23 = icmp ult i32 %20, 4
  %unroll_iter74 = and i64 %wide.trip.count, 2147483644
  %lcmp.mod72.not = icmp eq i64 %xtraiter70, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv51 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next52, %._crit_edge.us ]
  %.135.us = phi i64 [ %.02438, %.preheader.us.preheader ], [ %spec.select.us, %._crit_edge.us ]
  %invariant.gep = getelementptr inbounds i64, ptr %8, i64 %indvars.iv51
  br i1 %23, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv47 = phi i64 [ %indvars.iv.next48.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %.02531.us = phi i64 [ %35, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter75 = phi i64 [ %niter75.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %24 = mul nuw nsw i64 %indvars.iv47, %indvars.iv56
  %gep = getelementptr inbounds i64, ptr %invariant.gep, i64 %24
  %25 = load i64, ptr %gep, align 8, !tbaa !11
  %26 = add nsw i64 %25, %.02531.us
  %indvars.iv.next48 = or disjoint i64 %indvars.iv47, 1
  %27 = mul nuw nsw i64 %indvars.iv.next48, %indvars.iv56
  %gep.1 = getelementptr inbounds i64, ptr %invariant.gep, i64 %27
  %28 = load i64, ptr %gep.1, align 8, !tbaa !11
  %29 = add nsw i64 %28, %26
  %indvars.iv.next48.1 = or disjoint i64 %indvars.iv47, 2
  %30 = mul nuw nsw i64 %indvars.iv.next48.1, %indvars.iv56
  %gep.2 = getelementptr inbounds i64, ptr %invariant.gep, i64 %30
  %31 = load i64, ptr %gep.2, align 8, !tbaa !11
  %32 = add nsw i64 %31, %29
  %indvars.iv.next48.2 = or disjoint i64 %indvars.iv47, 3
  %33 = mul nuw nsw i64 %indvars.iv.next48.2, %indvars.iv56
  %gep.3 = getelementptr inbounds i64, ptr %invariant.gep, i64 %33
  %34 = load i64, ptr %gep.3, align 8, !tbaa !11
  %35 = add nsw i64 %34, %32
  %indvars.iv.next48.3 = add nuw nsw i64 %indvars.iv47, 4
  %niter75.next.3 = add i64 %niter75, 4
  %niter75.ncmp.3 = icmp eq i64 %niter75.next.3, %unroll_iter74
  br i1 %niter75.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !13

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa.ph = phi i64 [ poison, %.preheader.us ], [ %35, %.preheader.us.new ]
  %indvars.iv47.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next48.3, %.preheader.us.new ]
  %.02531.us.unr = phi i64 [ 0, %.preheader.us ], [ %35, %.preheader.us.new ]
  br i1 %lcmp.mod72.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv47.epil = phi i64 [ %indvars.iv.next48.epil, %.epil.preheader ], [ %indvars.iv47.unr, %._crit_edge.us.unr-lcssa ]
  %.02531.us.epil = phi i64 [ %38, %.epil.preheader ], [ %.02531.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter71 = phi i64 [ %epil.iter71.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %36 = mul nuw nsw i64 %indvars.iv47.epil, %indvars.iv56
  %gep.epil = getelementptr inbounds i64, ptr %invariant.gep, i64 %36
  %37 = load i64, ptr %gep.epil, align 8, !tbaa !11
  %38 = add nsw i64 %37, %.02531.us.epil
  %indvars.iv.next48.epil = add nuw nsw i64 %indvars.iv47.epil, 1
  %epil.iter71.next = add i64 %epil.iter71, 1
  %epil.iter71.cmp.not = icmp eq i64 %epil.iter71.next, %xtraiter70
  br i1 %epil.iter71.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !14

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %38, %.epil.preheader ]
  %spec.select.us = call i64 @llvm.smax.i64(i64 %.lcssa, i64 %.135.us)
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next52, %indvars.iv56
  br i1 %exitcond55.not, label %.loopexit, label %.preheader.us, !llvm.loop !16

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %.135 = phi i64 [ %.02438, %.preheader.preheader.new ], [ %spec.select, %.preheader ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.7, %.preheader ]
  %spec.select = call i64 @llvm.smax.i64(i64 %.135, i64 0)
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.loopexit.loopexit67.unr-lcssa, label %.preheader, !llvm.loop !16

.loopexit.loopexit67.unr-lcssa:                   ; preds = %.preheader, %.preheader.preheader
  %spec.select.lcssa.ph = phi i64 [ poison, %.preheader.preheader ], [ %spec.select, %.preheader ]
  %.135.unr = phi i64 [ %.02438, %.preheader.preheader ], [ %spec.select, %.preheader ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.preheader.epil

.preheader.epil:                                  ; preds = %.loopexit.loopexit67.unr-lcssa, %.preheader.epil
  %.135.epil = phi i64 [ %spec.select.epil, %.preheader.epil ], [ %.135.unr, %.loopexit.loopexit67.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader.epil ], [ 0, %.loopexit.loopexit67.unr-lcssa ]
  %spec.select.epil = call i64 @llvm.smax.i64(i64 %.135.epil, i64 0)
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.preheader.epil, !llvm.loop !17

.loopexit:                                        ; preds = %.loopexit.loopexit67.unr-lcssa, %.preheader.epil, %._crit_edge.us, %.lr.ph41
  %.3 = phi i64 [ %.02438, %.lr.ph41 ], [ %spec.select.us, %._crit_edge.us ], [ %spec.select.lcssa.ph, %.loopexit.loopexit67.unr-lcssa ], [ %spec.select.epil, %.preheader.epil ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next57, %wide.trip.count59
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond60.not, label %._crit_edge, label %.lr.ph41, !llvm.loop !18
}

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) 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) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nobuiltin allocsize(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !10}


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