; LLVM IR from tangjz/acm-icpc :: poj (2159)

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

@cnt = external dso_local global [2 x [26 x i32]], align 16
@str = external dso_local global [101 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 [4 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %46, %0
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = icmp slt i32 %7, 2
  br i1 %8, label %10, label %9

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

10:                                               ; preds = %6
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @str)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %33, %10
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [101 x i8], ptr @str, i64 0, i64 %14
  %16 = load i8, ptr %15, align 1, !tbaa !9
  %17 = icmp ne i8 %16, 0
  br i1 %17, label %19, label %18

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

19:                                               ; preds = %12
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [2 x [26 x i32]], ptr @cnt, i64 0, i64 %21
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [101 x i8], ptr @str, i64 0, i64 %24
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = sext i8 %26 to i32
  %28 = sub nsw i32 %27, 65
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [26 x i32], ptr %22, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %30, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %19
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %4, align 4, !tbaa !5
  br label %12, !llvm.loop !10

36:                                               ; preds = %18
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [2 x [26 x i32]], ptr @cnt, i64 0, i64 %38
  %40 = getelementptr inbounds [26 x i32], ptr %39, i64 0, i64 0
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [2 x [26 x i32]], ptr @cnt, i64 0, i64 %42
  %44 = getelementptr inbounds [26 x i32], ptr %43, i64 0, i64 0
  %45 = getelementptr inbounds i32, ptr %44, i64 26
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef %40, ptr noundef %45)
  br label %46

46:                                               ; preds = %36
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %2, align 4, !tbaa !5
  br label %6, !llvm.loop !12

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

50:                                               ; preds = %67, %49
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 26
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i32 8, ptr %3, align 4
  br label %70

54:                                               ; preds = %50
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [26 x i32], ptr @cnt, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [26 x i32], ptr getelementptr inbounds ([2 x [26 x i32]], ptr @cnt, i64 0, i64 1), i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = icmp ne i32 %58, %62
  br i1 %63, label %64, label %66

64:                                               ; preds = %54
  %65 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %70

66:                                               ; preds = %54
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %5, align 4, !tbaa !5
  br label %50, !llvm.loop !13

70:                                               ; preds = %64, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %71 = load i32, ptr %3, align 4
  switch i32 %71, label %76 [
    i32 8, label %72
    i32 1, label %74
  ]

72:                                               ; preds = %70
  %73 = call i32 @puts(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  br label %74

74:                                               ; preds = %72, %70
  %75 = load i32, ptr %1, align 4
  ret i32 %75

76:                                               ; preds = %70
  unreachable
}

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

declare i32 @puts(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 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !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"

@cnt = external dso_local global [2 x [26 x i32]], align 16
@str = external dso_local global [101 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 [4 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 @str)
  %2 = load i8, ptr @str, align 16, !tbaa !5
  %.not1923 = icmp eq i8 %2, 0
  br i1 %.not1923, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  tail call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @cnt, ptr noundef nonnull getelementptr inbounds (i8, ptr @cnt, i64 104))
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @str)
  %4 = load i8, ptr @str, align 16, !tbaa !5
  %.not1923.1 = icmp eq i8 %4, 0
  br i1 %.not1923.1, label %._crit_edge.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph.1 ], [ 0, %._crit_edge ]
  %5 = phi i8 [ %12, %.lr.ph.1 ], [ %4, %._crit_edge ]
  %6 = sext i8 %5 to i64
  %7 = add nsw i64 %6, -65
  %8 = getelementptr inbounds [2 x [26 x i32]], ptr @cnt, i64 0, i64 1, i64 %7
  %9 = load i32, ptr %8, align 4, !tbaa !8
  %10 = add nsw i32 %9, 1
  store i32 %10, ptr %8, align 4, !tbaa !8
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %11 = getelementptr inbounds [101 x i8], ptr @str, i64 0, i64 %indvars.iv.next.1
  %12 = load i8, ptr %11, align 1, !tbaa !5
  %.not19.1 = icmp eq i8 %12, 0
  br i1 %.not19.1, label %._crit_edge.1, label %.lr.ph.1, !llvm.loop !10

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  tail call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @cnt, i64 104), ptr noundef nonnull getelementptr inbounds (i8, ptr @cnt, i64 208))
  %13 = load i32, ptr @cnt, align 16, !tbaa !8
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 104), align 8, !tbaa !8
  %.not = icmp eq i32 %13, %14
  br i1 %.not, label %.preheader.1, label %73

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %15 = phi i8 [ %22, %.lr.ph ], [ %2, %0 ]
  %16 = sext i8 %15 to i64
  %17 = add nsw i64 %16, -65
  %18 = getelementptr inbounds [2 x [26 x i32]], ptr @cnt, i64 0, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !8
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %18, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = getelementptr inbounds [101 x i8], ptr @str, i64 0, i64 %indvars.iv.next
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %.not19 = icmp eq i8 %22, 0
  br i1 %.not19, label %._crit_edge, label %.lr.ph, !llvm.loop !10

.preheader.1:                                     ; preds = %._crit_edge.1
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 4), align 4, !tbaa !8
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 108), align 4, !tbaa !8
  %.not.1 = icmp eq i32 %23, %24
  br i1 %.not.1, label %.preheader.2, label %73

.preheader.2:                                     ; preds = %.preheader.1
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 8), align 8, !tbaa !8
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 112), align 16, !tbaa !8
  %.not.2 = icmp eq i32 %25, %26
  br i1 %.not.2, label %.preheader.3, label %73

.preheader.3:                                     ; preds = %.preheader.2
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 12), align 4, !tbaa !8
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 116), align 4, !tbaa !8
  %.not.3 = icmp eq i32 %27, %28
  br i1 %.not.3, label %.preheader.4, label %73

.preheader.4:                                     ; preds = %.preheader.3
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 16), align 16, !tbaa !8
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 120), align 8, !tbaa !8
  %.not.4 = icmp eq i32 %29, %30
  br i1 %.not.4, label %.preheader.5, label %73

.preheader.5:                                     ; preds = %.preheader.4
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 20), align 4, !tbaa !8
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !8
  %.not.5 = icmp eq i32 %31, %32
  br i1 %.not.5, label %.preheader.6, label %73

.preheader.6:                                     ; preds = %.preheader.5
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 24), align 8, !tbaa !8
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 128), align 16, !tbaa !8
  %.not.6 = icmp eq i32 %33, %34
  br i1 %.not.6, label %.preheader.7, label %73

.preheader.7:                                     ; preds = %.preheader.6
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 28), align 4, !tbaa !8
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 132), align 4, !tbaa !8
  %.not.7 = icmp eq i32 %35, %36
  br i1 %.not.7, label %.preheader.8, label %73

.preheader.8:                                     ; preds = %.preheader.7
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 32), align 16, !tbaa !8
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 136), align 8, !tbaa !8
  %.not.8 = icmp eq i32 %37, %38
  br i1 %.not.8, label %.preheader.9, label %73

.preheader.9:                                     ; preds = %.preheader.8
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 36), align 4, !tbaa !8
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !8
  %.not.9 = icmp eq i32 %39, %40
  br i1 %.not.9, label %.preheader.10, label %73

.preheader.10:                                    ; preds = %.preheader.9
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 40), align 8, !tbaa !8
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 144), align 16, !tbaa !8
  %.not.10 = icmp eq i32 %41, %42
  br i1 %.not.10, label %.preheader.11, label %73

.preheader.11:                                    ; preds = %.preheader.10
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 44), align 4, !tbaa !8
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 148), align 4, !tbaa !8
  %.not.11 = icmp eq i32 %43, %44
  br i1 %.not.11, label %.preheader.12, label %73

.preheader.12:                                    ; preds = %.preheader.11
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 48), align 16, !tbaa !8
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 152), align 8, !tbaa !8
  %.not.12 = icmp eq i32 %45, %46
  br i1 %.not.12, label %.preheader.13, label %73

.preheader.13:                                    ; preds = %.preheader.12
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 52), align 4, !tbaa !8
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !8
  %.not.13 = icmp eq i32 %47, %48
  br i1 %.not.13, label %.preheader.14, label %73

.preheader.14:                                    ; preds = %.preheader.13
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 56), align 8, !tbaa !8
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 160), align 16, !tbaa !8
  %.not.14 = icmp eq i32 %49, %50
  br i1 %.not.14, label %.preheader.15, label %73

.preheader.15:                                    ; preds = %.preheader.14
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 60), align 4, !tbaa !8
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 164), align 4, !tbaa !8
  %.not.15 = icmp eq i32 %51, %52
  br i1 %.not.15, label %.preheader.16, label %73

.preheader.16:                                    ; preds = %.preheader.15
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 64), align 16, !tbaa !8
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 168), align 8, !tbaa !8
  %.not.16 = icmp eq i32 %53, %54
  br i1 %.not.16, label %.preheader.17, label %73

.preheader.17:                                    ; preds = %.preheader.16
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 68), align 4, !tbaa !8
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 172), align 4, !tbaa !8
  %.not.17 = icmp eq i32 %55, %56
  br i1 %.not.17, label %.preheader.18, label %73

.preheader.18:                                    ; preds = %.preheader.17
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 72), align 8, !tbaa !8
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 176), align 16, !tbaa !8
  %.not.18 = icmp eq i32 %57, %58
  br i1 %.not.18, label %.preheader.19, label %73

.preheader.19:                                    ; preds = %.preheader.18
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 76), align 4, !tbaa !8
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 180), align 4, !tbaa !8
  %.not.19 = icmp eq i32 %59, %60
  br i1 %.not.19, label %.preheader.20, label %73

.preheader.20:                                    ; preds = %.preheader.19
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 80), align 16, !tbaa !8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 184), align 8, !tbaa !8
  %.not.20 = icmp eq i32 %61, %62
  br i1 %.not.20, label %.preheader.21, label %73

.preheader.21:                                    ; preds = %.preheader.20
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 84), align 4, !tbaa !8
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 188), align 4, !tbaa !8
  %.not.21 = icmp eq i32 %63, %64
  br i1 %.not.21, label %.preheader.22, label %73

.preheader.22:                                    ; preds = %.preheader.21
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 88), align 8, !tbaa !8
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 192), align 16, !tbaa !8
  %.not.22 = icmp eq i32 %65, %66
  br i1 %.not.22, label %.preheader.23, label %73

.preheader.23:                                    ; preds = %.preheader.22
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 92), align 4, !tbaa !8
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 196), align 4, !tbaa !8
  %.not.23 = icmp eq i32 %67, %68
  br i1 %.not.23, label %.preheader.24, label %73

.preheader.24:                                    ; preds = %.preheader.23
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 96), align 16, !tbaa !8
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 200), align 8, !tbaa !8
  %.not.24 = icmp eq i32 %69, %70
  br i1 %.not.24, label %.preheader.25, label %73

.preheader.25:                                    ; preds = %.preheader.24
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 100), align 4, !tbaa !8
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 204), align 4, !tbaa !8
  %.not.25 = icmp eq i32 %71, %72
  br i1 %.not.25, label %74, label %73

73:                                               ; preds = %.preheader.25, %.preheader.24, %.preheader.23, %.preheader.22, %.preheader.21, %.preheader.20, %.preheader.19, %.preheader.18, %.preheader.17, %.preheader.16, %.preheader.15, %.preheader.14, %.preheader.13, %.preheader.12, %.preheader.11, %.preheader.10, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %._crit_edge.1
  br label %74

74:                                               ; preds = %.preheader.25, %73
  %.str.1.sink = phi ptr [ @.str.1, %73 ], [ @.str.2, %.preheader.25 ]
  %75 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.1.sink)
  ret i32 0
}

; 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 @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @puts(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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass