; LLVM IR from tangjz/acm-icpc :: hdu (6359)

; 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 [2000003 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3buf = external hidden global [3145729 x i8], align 16
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 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 i64, align 8
  %6 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %8

8:                                                ; preds = %117, %0
  %9 = load i32, ptr @t, align 4, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr @t, align 4, !tbaa !5
  %11 = icmp ne i32 %9, 0
  br i1 %11, label %12, label %118

12:                                               ; preds = %8
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n)
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = mul nsw i32 %14, 3
  %16 = load ptr, ptr @stdin, align 8, !tbaa !9
  %17 = call ptr @fgets(ptr noundef @_ZZ4mainE3buf, i32 noundef %15, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %83, %12
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %86

23:                                               ; preds = %18
  br label %24

24:                                               ; preds = %40, %23
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = icmp ne i8 %28, 0
  br i1 %29, label %30, label %37

30:                                               ; preds = %24
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %32
  %34 = load i8, ptr %33, align 1, !tbaa !11
  %35 = call noundef zeroext i1 @_Z7isDigitc(i8 noundef signext %34)
  %36 = xor i1 %35, true
  br label %37

37:                                               ; preds = %30, %24
  %38 = phi i1 [ false, %24 ], [ %36, %30 ]
  br i1 %38, label %39, label %43

39:                                               ; preds = %37
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !5
  br label %24, !llvm.loop !12

43:                                               ; preds = %37
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %45
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %54, %43
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = call noundef zeroext i1 @_Z7isDigitc(i8 noundef signext %51)
  br i1 %52, label %53, label %77

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = shl i32 %58, 3
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = shl i32 %63, 1
  %65 = add nsw i32 %59, %64
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %3, align 4, !tbaa !5
  %68 = sext i32 %66 to i64
  %69 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !11
  %71 = sext i8 %70 to i32
  %72 = sub nsw i32 %71, 48
  %73 = add nsw i32 %65, %72
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %75
  store i32 %73, ptr %76, align 4, !tbaa !5
  br label %47, !llvm.loop !14

77:                                               ; preds = %47
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %80, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %77
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !15

86:                                               ; preds = %22
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %88
  store i32 0, ptr %89, align 4, !tbaa !5
  call void @_Z11SuffixArrayv()
  call void @_Z10SuffixTreev()
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %90 = call noundef i64 @_Z11HaffmanCodev()
  store i64 %90, ptr %4, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %91 = load i32, ptr @n, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = load i32, ptr @n, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = add nsw i64 %94, 1
  %96 = mul nsw i64 %92, %95
  %97 = sdiv i64 %96, 2
  store i64 %97, ptr %5, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %98 = load i64, ptr %4, align 8, !tbaa !16
  %99 = load i64, ptr %5, align 8, !tbaa !16
  %100 = call noundef i64 @_ZSt5__gcdIxET_S0_S0_(i64 noundef %98, i64 noundef %99)
  store i64 %100, ptr %6, align 8, !tbaa !16
  %101 = load i64, ptr %5, align 8, !tbaa !16
  %102 = load i64, ptr %6, align 8, !tbaa !16
  %103 = icmp eq i64 %101, %102
  br i1 %103, label %104, label %109

104:                                              ; preds = %86
  %105 = load i64, ptr %4, align 8, !tbaa !16
  %106 = load i64, ptr %6, align 8, !tbaa !16
  %107 = sdiv i64 %105, %106
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %107)
  br label %117

109:                                              ; preds = %86
  %110 = load i64, ptr %4, align 8, !tbaa !16
  %111 = load i64, ptr %6, align 8, !tbaa !16
  %112 = sdiv i64 %110, %111
  %113 = load i64, ptr %5, align 8, !tbaa !16
  %114 = load i64, ptr %6, align 8, !tbaa !16
  %115 = sdiv i64 %113, %114
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %112, i64 noundef %115)
  br label %117

117:                                              ; preds = %109, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %8, !llvm.loop !18

118:                                              ; preds = %8
  ret i32 0
}

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

declare ptr @fgets(ptr noundef, i32 noundef, 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 zeroext i1 @_Z7isDigitc(i8 noundef signext) #3

; 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 uwtable
declare dso_local void @_Z11SuffixArrayv() #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10SuffixTreev() #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z11HaffmanCodev() #3

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

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


; 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 local_unnamed_addr global [2000003 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3buf = external hidden global [3145729 x i8], align 16
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 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 @t)
  %2 = load i32, ptr @t, align 4, !tbaa !5
  %3 = add nsw i32 %2, -1
  store i32 %3, ptr @t, align 4, !tbaa !5
  %.not40 = icmp eq i32 %2, 0
  br i1 %.not40, label %._crit_edge43, label %.lr.ph42

.lr.ph42:                                         ; preds = %0, %57
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n)
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = mul nsw i32 %5, 3
  %7 = load ptr, ptr @stdin, align 8, !tbaa !9
  %8 = tail call ptr @fgets(ptr noundef nonnull @_ZZ4mainE3buf, i32 noundef %6, ptr noundef %7)
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.preheader, label %.lr.ph42.._crit_edge38_crit_edge

.lr.ph42.._crit_edge38_crit_edge:                 ; preds = %.lr.ph42
  %.pre53 = sext i32 %9 to i64
  br label %._crit_edge38

.preheader:                                       ; preds = %.lr.ph42, %._crit_edge
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %._crit_edge ], [ 0, %.lr.ph42 ]
  %.02236 = phi i32 [ %.2.lcssa, %._crit_edge ], [ 0, %.lr.ph42 ]
  %11 = sext i32 %.02236 to i64
  %12 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %11
  %13 = load i8, ptr %12, align 1, !tbaa !11
  %.not2829 = icmp eq i8 %13, 0
  br i1 %.not2829, label %.critedge, label %.lr.ph

._crit_edge38:                                    ; preds = %._crit_edge, %.lr.ph42.._crit_edge38_crit_edge
  %.pre-phi54 = phi i64 [ %.pre53, %.lr.ph42.._crit_edge38_crit_edge ], [ %48, %._crit_edge ]
  %14 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %.pre-phi54
  store i32 0, ptr %14, align 4, !tbaa !5
  tail call void @_Z11SuffixArrayv()
  tail call void @_Z10SuffixTreev()
  %15 = tail call noundef i64 @_Z11HaffmanCodev()
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = add nsw i64 %17, 1
  %19 = mul nsw i64 %18, %17
  %20 = sdiv i64 %19, 2
  %21 = tail call noundef i64 @_ZSt5__gcdIxET_S0_S0_(i64 noundef %15, i64 noundef %20)
  %22 = icmp eq i64 %20, %21
  br i1 %22, label %50, label %53

.lr.ph:                                           ; preds = %.preheader, %25
  %indvars.iv = phi i64 [ %indvars.iv.next, %25 ], [ %11, %.preheader ]
  %23 = phi i8 [ %28, %25 ], [ %13, %.preheader ]
  %.130 = phi i32 [ %26, %25 ], [ %.02236, %.preheader ]
  %24 = tail call noundef zeroext i1 @_Z7isDigitc(i8 noundef signext %23)
  br i1 %24, label %.critedge.loopexit.split.loop.exit55, label %25

25:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %26 = add nsw i32 %.130, 1
  %27 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %indvars.iv.next
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %.not28 = icmp eq i8 %28, 0
  br i1 %.not28, label %.critedge.loopexit, label %.lr.ph, !llvm.loop !12

.critedge.loopexit.split.loop.exit55:             ; preds = %.lr.ph
  %29 = trunc nsw i64 %indvars.iv to i32
  br label %.critedge.loopexit

.critedge.loopexit:                               ; preds = %25, %.critedge.loopexit.split.loop.exit55
  %.1.lcssa.ph = phi i32 [ %29, %.critedge.loopexit.split.loop.exit55 ], [ %26, %25 ]
  %.pre = sext i32 %.1.lcssa.ph to i64
  %.phi.trans.insert = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %.pre
  %.pre52 = load i8, ptr %.phi.trans.insert, align 1, !tbaa !11
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader
  %30 = phi i8 [ %.pre52, %.critedge.loopexit ], [ 0, %.preheader ]
  %.pre-phi = phi i64 [ %.pre, %.critedge.loopexit ], [ %11, %.preheader ]
  %.1.lcssa = phi i32 [ %.1.lcssa.ph, %.critedge.loopexit ], [ %.02236, %.preheader ]
  %31 = getelementptr inbounds [2000003 x i32], ptr @seq, i64 0, i64 %indvars.iv49
  store i32 0, ptr %31, align 4, !tbaa !5
  %32 = tail call noundef zeroext i1 @_Z7isDigitc(i8 noundef signext %30)
  br i1 %32, label %.lr.ph34.preheader, label %._crit_edge

.lr.ph34.preheader:                               ; preds = %.critedge
  %33 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %.pre-phi
  br label %.lr.ph34

.lr.ph34:                                         ; preds = %.lr.ph34.preheader, %.lr.ph34
  %indvars.iv46 = phi i64 [ %.pre-phi, %.lr.ph34.preheader ], [ %indvars.iv.next47, %.lr.ph34 ]
  %34 = phi ptr [ %33, %.lr.ph34.preheader ], [ %41, %.lr.ph34 ]
  %35 = load i32, ptr %31, align 4, !tbaa !5
  %36 = mul i32 %35, 10
  %indvars.iv.next47 = add nsw i64 %indvars.iv46, 1
  %37 = load i8, ptr %34, align 1, !tbaa !11
  %38 = sext i8 %37 to i32
  %39 = add i32 %36, -48
  %40 = add i32 %39, %38
  store i32 %40, ptr %31, align 4, !tbaa !5
  %41 = getelementptr inbounds [3145729 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %indvars.iv.next47
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = tail call noundef zeroext i1 @_Z7isDigitc(i8 noundef signext %42)
  br i1 %43, label %.lr.ph34, label %._crit_edge.loopexit, !llvm.loop !14

._crit_edge.loopexit:                             ; preds = %.lr.ph34
  %44 = trunc nsw i64 %indvars.iv.next47 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.critedge
  %.2.lcssa = phi i32 [ %.1.lcssa, %.critedge ], [ %44, %._crit_edge.loopexit ]
  %45 = load i32, ptr %31, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %31, align 4, !tbaa !5
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %47 = load i32, ptr @n, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next50, %48
  br i1 %49, label %.preheader, label %._crit_edge38, !llvm.loop !15

50:                                               ; preds = %._crit_edge38
  %51 = sdiv i64 %15, %20
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %51)
  br label %57

53:                                               ; preds = %._crit_edge38
  %54 = sdiv i64 %15, %21
  %55 = sdiv i64 %20, %21
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %54, i64 noundef %55)
  br label %57

57:                                               ; preds = %53, %50
  %58 = load i32, ptr @t, align 4, !tbaa !5
  %59 = add nsw i32 %58, -1
  store i32 %59, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %58, 0
  br i1 %.not, label %._crit_edge43, label %.lr.ph42, !llvm.loop !16

._crit_edge43:                                    ; preds = %57, %0
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7isDigitc(i8 noundef signext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11SuffixArrayv() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10SuffixTreev() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z11HaffmanCodev() 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 #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(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 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 = { 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 = { 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" }

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


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