; LLVM IR from tangjz/acm-icpc :: codeforces/gym/100827E.ll (Z5solvev)

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

@f = external dso_local global [2 x [11 x [71 x i64]]], align 16
@_ZZ5solvevE3buf = external hidden global [71 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #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 i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @_ZZ5solvevE3buf)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  %12 = call i64 @strlen(ptr noundef @_ZZ5solvevE3buf) #5
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %49, %0
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store i32 2, ptr %4, align 4
  br label %52

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sub nsw i32 %20, 1
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [71 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %22
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = sext i8 %24 to i32
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [71 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %27
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %30 = sext i8 %29 to i32
  %31 = sub nsw i32 %25, %30
  store i32 %31, ptr %5, align 4, !tbaa !5
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %35, label %34

34:                                               ; preds = %19
  store i32 4, ptr %4, align 4
  br label %46

35:                                               ; preds = %19
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %45

39:                                               ; preds = %35
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %39
  %43 = call i32 @puts(ptr noundef @.str.1)
  store i32 1, ptr %4, align 4
  br label %46

44:                                               ; preds = %39
  br label %45

45:                                               ; preds = %44, %38
  store i32 0, ptr %4, align 4
  br label %46

46:                                               ; preds = %45, %42, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %47 = load i32, ptr %4, align 4
  switch i32 %47, label %52 [
    i32 0, label %48
    i32 4, label %49
  ]

48:                                               ; preds = %46
  br label %49

49:                                               ; preds = %48, %46
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %3, align 4, !tbaa !5
  br label %14, !llvm.loop !10

52:                                               ; preds = %46, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  %53 = load i32, ptr %4, align 4
  switch i32 %53, label %121 [
    i32 2, label %54
  ]

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %115, %54
  %56 = load i32, ptr %9, align 4, !tbaa !5
  %57 = load i32, ptr %1, align 4, !tbaa !5
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %118

60:                                               ; preds = %55
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [71 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !9
  %65 = sext i8 %64 to i32
  %66 = sub nsw i32 %65, 48
  store i32 %66, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %103, %60
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 8, ptr %4, align 4
  br label %106

72:                                               ; preds = %67
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %80

75:                                               ; preds = %72
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i32 8, ptr %4, align 4
  br label %106

80:                                               ; preds = %75, %72
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %87, label %83

83:                                               ; preds = %80
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = icmp sgt i32 %84, %85
  br label %87

87:                                               ; preds = %83, %80
  %88 = phi i1 [ true, %80 ], [ %86, %83 ]
  %89 = zext i1 %88 to i64
  %90 = getelementptr inbounds [2 x [11 x [71 x i64]]], ptr @f, i64 0, i64 %89
  %91 = load i32, ptr %10, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [11 x [71 x i64]], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %1, align 4, !tbaa !5
  %95 = sub nsw i32 %94, 1
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sub nsw i32 %95, %96
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [71 x i64], ptr %93, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !12
  %101 = load i64, ptr %6, align 8, !tbaa !12
  %102 = add nsw i64 %101, %100
  store i64 %102, ptr %6, align 8, !tbaa !12
  br label %103

103:                                              ; preds = %87
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %10, align 4, !tbaa !5
  br label %67, !llvm.loop !14

106:                                              ; preds = %79, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %7, align 4, !tbaa !5
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = icmp sgt i32 %108, %109
  %111 = zext i1 %110 to i32
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = or i32 %112, %111
  store i32 %113, ptr %2, align 4, !tbaa !5
  %114 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %114, ptr %7, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %107
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %9, align 4, !tbaa !5
  br label %55, !llvm.loop !15

118:                                              ; preds = %59
  %119 = load i64, ptr %6, align 8, !tbaa !12
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %119)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  store i32 0, ptr %4, align 4
  br label %121

121:                                              ; preds = %118, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  %122 = load i32, ptr %4, align 4
  switch i32 %122, label %124 [
    i32 0, label %123
    i32 1, label %123
  ]

123:                                              ; preds = %121, %121
  ret void

124:                                              ; preds = %121
  unreachable
}

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: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare i32 @puts(ptr noundef) #1

; 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 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 = { nounwind willreturn memory(read) "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 }
attributes #5 = { nounwind willreturn memory(read) }

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


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

@f = external dso_local local_unnamed_addr global [2 x [11 x [71 x i64]]], align 16
@_ZZ5solvevE3buf = external hidden global [71 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @_ZZ5solvevE3buf)
  %2 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @_ZZ5solvevE3buf) #4
  %3 = trunc i64 %2 to i32
  %.not4347 = icmp sgt i32 %3, 1
  br i1 %.not4347, label %.lr.ph.preheader, label %.critedge.preheader

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = and i64 %2, 2147483647
  %.pre = load i8, ptr @_ZZ5solvevE3buf, align 16, !tbaa !5
  br label %.lr.ph

.critedge.preheader:                              ; preds = %12, %0
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph60.preheader, label %.critedge._crit_edge

.lr.ph60.preheader:                               ; preds = %.critedge.preheader
  %5 = and i64 %2, 2147483647
  %wide.trip.count80 = and i64 %2, 2147483647
  br label %.lr.ph60

.lr.ph:                                           ; preds = %.lr.ph.preheader, %12
  %6 = phi i8 [ %.pre, %.lr.ph.preheader ], [ %8, %12 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %12 ]
  %.03349 = phi i32 [ 0, %.lr.ph.preheader ], [ %.2.ph, %12 ]
  %7 = getelementptr inbounds [71 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %indvars.iv
  %8 = load i8, ptr %7, align 1, !tbaa !5
  %.not = icmp eq i8 %6, %8
  br i1 %.not, label %12, label %9

9:                                                ; preds = %.lr.ph
  %10 = icmp sgt i8 %6, %8
  br i1 %10, label %12, label %11

11:                                               ; preds = %9
  %.not42 = icmp eq i32 %.03349, 0
  br i1 %.not42, label %12, label %13

12:                                               ; preds = %.lr.ph, %9, %11
  %.2.ph = phi i32 [ 1, %9 ], [ 0, %11 ], [ %.03349, %.lr.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge.preheader, label %.lr.ph, !llvm.loop !8

13:                                               ; preds = %11
  %14 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %59

.critedge._crit_edge:                             ; preds = %.critedge, %.critedge.preheader
  %.035.lcssa = phi i64 [ 0, %.critedge.preheader ], [ %.136.lcssa, %.critedge ]
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.035.lcssa)
  br label %59

.lr.ph60:                                         ; preds = %.lr.ph60.preheader, %.critedge
  %indvars.iv77 = phi i64 [ 0, %.lr.ph60.preheader ], [ %indvars.iv.next78, %.critedge ]
  %.358 = phi i32 [ 0, %.lr.ph60.preheader ], [ %58, %.critedge ]
  %.03456 = phi i32 [ 0, %.lr.ph60.preheader ], [ %19, %.critedge ]
  %.03555 = phi i64 [ 0, %.lr.ph60.preheader ], [ %.136.lcssa, %.critedge ]
  %.358.fr = freeze i32 %.358
  %16 = getelementptr inbounds [71 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %indvars.iv77
  %17 = load i8, ptr %16, align 1, !tbaa !5
  %18 = sext i8 %17 to i32
  %19 = add nsw i32 %18, -48
  %20 = icmp sgt i8 %17, 48
  br i1 %20, label %.lr.ph52, label %.critedge

.lr.ph52:                                         ; preds = %.lr.ph60
  %.not62 = icmp eq i32 %.358.fr, 0
  %21 = xor i64 %indvars.iv77, -1
  %22 = add nsw i64 %5, %21
  br i1 %.not62, label %.lr.ph52.split.us.preheader, label %.lr.ph52.split.preheader

.lr.ph52.split.preheader:                         ; preds = %.lr.ph52
  %23 = tail call i32 @llvm.smax.i32(i32 %.03456, i32 -1)
  %smax = add nsw i32 %23, 1
  %wide.trip.count68 = zext nneg i32 %smax to i64
  %wide.trip.count70 = zext i32 %19 to i64
  br label %.lr.ph52.split

.lr.ph52.split.us.preheader:                      ; preds = %.lr.ph52
  %24 = sext i32 %.03456 to i64
  %wide.trip.count75 = zext i32 %19 to i64
  %25 = add nsw i64 %wide.trip.count75, -1
  %xtraiter = and i64 %wide.trip.count75, 3
  %26 = icmp ult i64 %25, 3
  br i1 %26, label %.critedge.loopexit.unr-lcssa, label %.lr.ph52.split.us.preheader.new

.lr.ph52.split.us.preheader.new:                  ; preds = %.lr.ph52.split.us.preheader
  %unroll_iter = and i64 %wide.trip.count75, 4294967292
  br label %.lr.ph52.split.us

.lr.ph52.split.us:                                ; preds = %.lr.ph52.split.us, %.lr.ph52.split.us.preheader.new
  %indvars.iv72 = phi i64 [ 0, %.lr.ph52.split.us.preheader.new ], [ %indvars.iv.next73.3, %.lr.ph52.split.us ]
  %.13650.us = phi i64 [ %.03555, %.lr.ph52.split.us.preheader.new ], [ %46, %.lr.ph52.split.us ]
  %niter = phi i64 [ 0, %.lr.ph52.split.us.preheader.new ], [ %niter.next.3, %.lr.ph52.split.us ]
  %27 = icmp slt i64 %indvars.iv72, %24
  %28 = zext i1 %27 to i64
  %29 = getelementptr inbounds [2 x [11 x [71 x i64]]], ptr @f, i64 0, i64 %28, i64 %indvars.iv72, i64 %22
  %30 = load i64, ptr %29, align 8, !tbaa !10
  %31 = add nsw i64 %30, %.13650.us
  %indvars.iv.next73 = or disjoint i64 %indvars.iv72, 1
  %32 = icmp slt i64 %indvars.iv.next73, %24
  %33 = zext i1 %32 to i64
  %34 = getelementptr inbounds [2 x [11 x [71 x i64]]], ptr @f, i64 0, i64 %33, i64 %indvars.iv.next73, i64 %22
  %35 = load i64, ptr %34, align 8, !tbaa !10
  %36 = add nsw i64 %35, %31
  %indvars.iv.next73.1 = or disjoint i64 %indvars.iv72, 2
  %37 = icmp slt i64 %indvars.iv.next73.1, %24
  %38 = zext i1 %37 to i64
  %39 = getelementptr inbounds [2 x [11 x [71 x i64]]], ptr @f, i64 0, i64 %38, i64 %indvars.iv.next73.1, i64 %22
  %40 = load i64, ptr %39, align 8, !tbaa !10
  %41 = add nsw i64 %40, %36
  %indvars.iv.next73.2 = or disjoint i64 %indvars.iv72, 3
  %42 = icmp slt i64 %indvars.iv.next73.2, %24
  %43 = zext i1 %42 to i64
  %44 = getelementptr inbounds [2 x [11 x [71 x i64]]], ptr @f, i64 0, i64 %43, i64 %indvars.iv.next73.2, i64 %22
  %45 = load i64, ptr %44, align 8, !tbaa !10
  %46 = add nsw i64 %45, %41
  %indvars.iv.next73.3 = add nuw nsw i64 %indvars.iv72, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.critedge.loopexit.unr-lcssa, label %.lr.ph52.split.us, !llvm.loop !12

.lr.ph52.split:                                   ; preds = %.lr.ph52.split.preheader, %47
  %indvars.iv65 = phi i64 [ 0, %.lr.ph52.split.preheader ], [ %indvars.iv.next66, %47 ]
  %.13650 = phi i64 [ %.03555, %.lr.ph52.split.preheader ], [ %50, %47 ]
  %exitcond69 = icmp eq i64 %indvars.iv65, %wide.trip.count68
  br i1 %exitcond69, label %.critedge, label %47

47:                                               ; preds = %.lr.ph52.split
  %48 = getelementptr inbounds [2 x [11 x [71 x i64]]], ptr @f, i64 0, i64 1, i64 %indvars.iv65, i64 %22
  %49 = load i64, ptr %48, align 8, !tbaa !10
  %50 = add nsw i64 %49, %.13650
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count70
  br i1 %exitcond71.not, label %.critedge, label %.lr.ph52.split, !llvm.loop !12

.critedge.loopexit.unr-lcssa:                     ; preds = %.lr.ph52.split.us, %.lr.ph52.split.us.preheader
  %.lcssa.ph = phi i64 [ poison, %.lr.ph52.split.us.preheader ], [ %46, %.lr.ph52.split.us ]
  %indvars.iv72.unr = phi i64 [ 0, %.lr.ph52.split.us.preheader ], [ %indvars.iv.next73.3, %.lr.ph52.split.us ]
  %.13650.us.unr = phi i64 [ %.03555, %.lr.ph52.split.us.preheader ], [ %46, %.lr.ph52.split.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.critedge, label %.lr.ph52.split.us.epil

.lr.ph52.split.us.epil:                           ; preds = %.critedge.loopexit.unr-lcssa, %.lr.ph52.split.us.epil
  %indvars.iv72.epil = phi i64 [ %indvars.iv.next73.epil, %.lr.ph52.split.us.epil ], [ %indvars.iv72.unr, %.critedge.loopexit.unr-lcssa ]
  %.13650.us.epil = phi i64 [ %55, %.lr.ph52.split.us.epil ], [ %.13650.us.unr, %.critedge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph52.split.us.epil ], [ 0, %.critedge.loopexit.unr-lcssa ]
  %51 = icmp slt i64 %indvars.iv72.epil, %24
  %52 = zext i1 %51 to i64
  %53 = getelementptr inbounds [2 x [11 x [71 x i64]]], ptr @f, i64 0, i64 %52, i64 %indvars.iv72.epil, i64 %22
  %54 = load i64, ptr %53, align 8, !tbaa !10
  %55 = add nsw i64 %54, %.13650.us.epil
  %indvars.iv.next73.epil = add nuw nsw i64 %indvars.iv72.epil, 1
  %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 %.critedge, label %.lr.ph52.split.us.epil, !llvm.loop !13

.critedge:                                        ; preds = %47, %.lr.ph52.split, %.critedge.loopexit.unr-lcssa, %.lr.ph52.split.us.epil, %.lr.ph60
  %.136.lcssa = phi i64 [ %.03555, %.lr.ph60 ], [ %.lcssa.ph, %.critedge.loopexit.unr-lcssa ], [ %55, %.lr.ph52.split.us.epil ], [ %.13650, %.lr.ph52.split ], [ %50, %47 ]
  %56 = icmp sgt i32 %.03456, %19
  %57 = zext i1 %56 to i32
  %58 = or i32 %.358.fr, %57
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond81.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count80
  br i1 %exitcond81.not, label %.critedge._crit_edge, label %.lr.ph60, !llvm.loop !15

59:                                               ; preds = %13, %.critedge._crit_edge
  ret void
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress nofree 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 nofree nounwind willreturn memory(argmem: read) "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 = { nounwind willreturn memory(read) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !6, i64 0}
!12 = distinct !{!12, !9}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !9}


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