; LLVM IR from tangjz/acm-icpc :: 51nod (1570)

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

%struct.Node = type { [65537 x i32] }

@qtot = external dso_local global i32, align 4
@que = external dso_local global [125 x %struct.Node], align 16
@str = external dso_local global [501 x i8], align 16
@n = external dso_local global i32, align 4
@expID = external dso_local global i32, align 4
@digit = external dso_local global [16 x i32], align 16
@ways = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 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 uwtable
declare dso_local noundef i32 @_Z10expressionv() #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @str, ptr noundef @n)
  call void @llvm.memset.p0.i64(ptr align 16 @digit, i8 -1, i64 64, i1 false)
  br label %13

13:                                               ; preds = %32, %0
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = add nsw i32 %14, -1
  store i32 %15, ptr @n, align 4, !tbaa !5
  %16 = icmp ne i32 %14, 0
  br i1 %16, label %17, label %38

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %29, %17
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 4
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %32

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4)
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = shl i32 %24, %25
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = or i32 %27, %26
  store i32 %28, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %29

29:                                               ; preds = %22
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !5
  br label %18, !llvm.loop !9

32:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5)
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [16 x i32], ptr @digit, i64 0, i64 %36
  store i32 %34, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %13, !llvm.loop !11

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

39:                                               ; preds = %114, %38
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 4
  br i1 %41, label %43, label %42

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

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

44:                                               ; preds = %60, %43
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 16
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %44
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = shl i32 1, %50
  %52 = and i32 %49, %51
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %59

54:                                               ; preds = %48
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = shl i32 1, %55
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = or i32 %57, %56
  store i32 %58, ptr %8, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %54, %48
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %9, align 4, !tbaa !5
  br label %44, !llvm.loop !12

63:                                               ; preds = %47
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [125 x %struct.Node], ptr @que, i64 0, i64 %65
  %67 = getelementptr inbounds %struct.Node, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [65537 x i32], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !5
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [65537 x i32], ptr getelementptr inbounds ([125 x %struct.Node], ptr @que, i64 0, i64 8), i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %75, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %95, %63
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = icmp slt i32 %79, 16
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %98

82:                                               ; preds = %78
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = xor i32 %83, -1
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = shl i32 1, %85
  %87 = and i32 %84, %86
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %94

89:                                               ; preds = %82
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = shl i32 1, %90
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = or i32 %92, %91
  store i32 %93, ptr %10, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %89, %82
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %11, align 4, !tbaa !5
  br label %78, !llvm.loop !13

98:                                               ; preds = %81
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = add nsw i32 4, %99
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [125 x %struct.Node], ptr @que, i64 0, i64 %101
  %103 = getelementptr inbounds %struct.Node, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [65537 x i32], ptr %103, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %106, align 4, !tbaa !5
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [65537 x i32], ptr getelementptr inbounds ([125 x %struct.Node], ptr @que, i64 0, i64 8), i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %111, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %114

114:                                              ; preds = %98
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !5
  br label %39, !llvm.loop !14

117:                                              ; preds = %42
  %118 = call noundef i32 @_Z10expressionv()
  store i32 %118, ptr @expID, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef 0, i32 noundef 0)
  %119 = load i32, ptr @ways, align 4, !tbaa !5
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %119)
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

%struct.Node = type { [65537 x i32] }

@qtot = external dso_local local_unnamed_addr global i32, align 4
@que = external dso_local local_unnamed_addr global [125 x %struct.Node], align 16
@str = external dso_local global [501 x i8], align 16
@n = external dso_local global i32, align 4
@expID = external dso_local local_unnamed_addr global i32, align 4
@digit = external dso_local local_unnamed_addr global [16 x i32], align 16
@ways = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [5 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 uwtable
declare dso_local noundef i32 @_Z10expressionv() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @str, ptr noundef nonnull @n)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) @digit, i8 -1, i64 64, i1 false)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @n, align 4, !tbaa !5
  %.not37 = icmp eq i32 %4, 0
  br i1 %.not37, label %._crit_edge, label %.preheader34

.preheader34:                                     ; preds = %0, %.preheader34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = shl i32 %9, 1
  %11 = or i32 %10, %7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = shl i32 %13, 2
  %15 = or i32 %14, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %17 = load i32, ptr %1, align 4, !tbaa !5
  %18 = shl i32 %17, 3
  %19 = or i32 %18, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2)
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = sext i32 %19 to i64
  %23 = getelementptr inbounds [16 x i32], ptr @digit, i64 0, i64 %22
  store i32 %21, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr @n, align 4, !tbaa !5
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %._crit_edge, label %.preheader34, !llvm.loop !9

._crit_edge:                                      ; preds = %.preheader34, %0
  store i32 9, ptr @qtot, align 4, !tbaa !5
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 174760), align 8, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr getelementptr inbounds (i8, ptr @que, i64 174760), align 8, !tbaa !5
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2271944), align 8, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr getelementptr inbounds (i8, ptr @que, i64 2271944), align 8, !tbaa !5
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 1135972), align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr getelementptr inbounds (i8, ptr @que, i64 1135972), align 4, !tbaa !5
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2184564), align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr getelementptr inbounds (i8, ptr @que, i64 2184564), align 4, !tbaa !5
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 471860), align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr getelementptr inbounds (i8, ptr @que, i64 471860), align 4, !tbaa !5
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2306896), align 16, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr getelementptr inbounds (i8, ptr @que, i64 2306896), align 16, !tbaa !5
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 1363168), align 16, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr getelementptr inbounds (i8, ptr @que, i64 1363168), align 16, !tbaa !5
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2149612), align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr getelementptr inbounds (i8, ptr @que, i64 2149612), align 4, !tbaa !5
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 771016), align 8, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr getelementptr inbounds (i8, ptr @que, i64 771016), align 8, !tbaa !5
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2343904), align 16, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr getelementptr inbounds (i8, ptr @que, i64 2343904), align 16, !tbaa !5
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 1588308), align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr getelementptr inbounds (i8, ptr @que, i64 1588308), align 4, !tbaa !5
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2112604), align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr getelementptr inbounds (i8, ptr @que, i64 2112604), align 4, !tbaa !5
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 1047564), align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr getelementptr inbounds (i8, ptr @que, i64 1047564), align 4, !tbaa !5
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2358304), align 16, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr getelementptr inbounds (i8, ptr @que, i64 2358304), align 16, !tbaa !5
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 1836056), align 8, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr getelementptr inbounds (i8, ptr @que, i64 1836056), align 8, !tbaa !5
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @que, i64 2098204), align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr getelementptr inbounds (i8, ptr @que, i64 2098204), align 4, !tbaa !5
  %58 = call noundef i32 @_Z10expressionv()
  store i32 %58, ptr @expID, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef 0, i32 noundef 0)
  %59 = load i32, ptr @ways, align 4, !tbaa !5
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %59)
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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