; LLVM IR from DionysiosB/CodeForces :: 0700-0799 (774D-LieOrTruth-c99)

; 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 [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4compPKvS0_(ptr noundef, ptr noundef) #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 norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = add nsw i64 %15, -1
  store i64 %16, ptr %3, align 8, !tbaa !5
  %17 = load i64, ptr %4, align 8, !tbaa !5
  %18 = add nsw i64 %17, -1
  store i64 %18, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %20 = mul i64 %19, 8
  %21 = call noalias ptr @malloc(i64 noundef %20) #6
  store ptr %21, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = mul i64 %22, 8
  %24 = call noalias ptr @malloc(i64 noundef %23) #6
  store ptr %24, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %35, %0
  %26 = load i64, ptr %7, align 8, !tbaa !5
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = icmp slt i64 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %38

30:                                               ; preds = %25
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = load i64, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds i64, ptr %31, i64 %32
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %33)
  br label %35

35:                                               ; preds = %30
  %36 = load i64, ptr %7, align 8, !tbaa !5
  %37 = add nsw i64 %36, 1
  store i64 %37, ptr %7, align 8, !tbaa !5
  br label %25, !llvm.loop !11

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

39:                                               ; preds = %49, %38
  %40 = load i64, ptr %8, align 8, !tbaa !5
  %41 = load i64, ptr %2, align 8, !tbaa !5
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %52

44:                                               ; preds = %39
  %45 = load ptr, ptr %6, align 8, !tbaa !9
  %46 = load i64, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds i64, ptr %45, i64 %46
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %47)
  br label %49

49:                                               ; preds = %44
  %50 = load i64, ptr %8, align 8, !tbaa !5
  %51 = add nsw i64 %50, 1
  store i64 %51, ptr %8, align 8, !tbaa !5
  br label %39, !llvm.loop !13

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

53:                                               ; preds = %70, %52
  %54 = load i64, ptr %10, align 8, !tbaa !5
  %55 = load i64, ptr %3, align 8, !tbaa !5
  %56 = icmp slt i64 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 8, ptr %11, align 4
  br label %73

58:                                               ; preds = %53
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = load i64, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds i64, ptr %59, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !9
  %64 = load i64, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds i64, ptr %63, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = icmp ne i64 %62, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %58
  store i32 0, ptr %9, align 4, !tbaa !14
  store i32 8, ptr %11, align 4
  br label %73

69:                                               ; preds = %58
  br label %70

70:                                               ; preds = %69
  %71 = load i64, ptr %10, align 8, !tbaa !5
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %10, align 8, !tbaa !5
  br label %53, !llvm.loop !16

73:                                               ; preds = %68, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %74

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %75 = load i64, ptr %4, align 8, !tbaa !5
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %12, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %94, %74
  %78 = load i64, ptr %12, align 8, !tbaa !5
  %79 = load i64, ptr %2, align 8, !tbaa !5
  %80 = icmp slt i64 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 11, ptr %11, align 4
  br label %97

82:                                               ; preds = %77
  %83 = load ptr, ptr %5, align 8, !tbaa !9
  %84 = load i64, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds i64, ptr %83, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = load ptr, ptr %6, align 8, !tbaa !9
  %88 = load i64, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds i64, ptr %87, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !5
  %91 = icmp ne i64 %86, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %82
  store i32 0, ptr %9, align 4, !tbaa !14
  store i32 11, ptr %11, align 4
  br label %97

93:                                               ; preds = %82
  br label %94

94:                                               ; preds = %93
  %95 = load i64, ptr %12, align 8, !tbaa !5
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr %12, align 8, !tbaa !5
  br label %77, !llvm.loop !17

97:                                               ; preds = %92, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %5, align 8, !tbaa !9
  %100 = load i64, ptr %2, align 8, !tbaa !5
  call void @qsort(ptr noundef %99, i64 noundef %100, i64 noundef 8, ptr noundef @_Z4compPKvS0_)
  %101 = load ptr, ptr %6, align 8, !tbaa !9
  %102 = load i64, ptr %2, align 8, !tbaa !5
  call void @qsort(ptr noundef %101, i64 noundef %102, i64 noundef 8, ptr noundef @_Z4compPKvS0_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %120, %98
  %104 = load i64, ptr %13, align 8, !tbaa !5
  %105 = load i64, ptr %2, align 8, !tbaa !5
  %106 = icmp slt i64 %104, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  store i32 14, ptr %11, align 4
  br label %123

108:                                              ; preds = %103
  %109 = load ptr, ptr %5, align 8, !tbaa !9
  %110 = load i64, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds i64, ptr %109, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !5
  %113 = load ptr, ptr %6, align 8, !tbaa !9
  %114 = load i64, ptr %13, align 8, !tbaa !5
  %115 = getelementptr inbounds i64, ptr %113, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !5
  %117 = icmp ne i64 %112, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %108
  store i32 0, ptr %9, align 4, !tbaa !14
  store i32 14, ptr %11, align 4
  br label %123

119:                                              ; preds = %108
  br label %120

120:                                              ; preds = %119
  %121 = load i64, ptr %13, align 8, !tbaa !5
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %13, align 8, !tbaa !5
  br label %103, !llvm.loop !18

123:                                              ; preds = %118, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %9, align 4, !tbaa !14
  %126 = icmp ne i32 %125, 0
  %127 = zext i1 %126 to i64
  %128 = select i1 %126, ptr @.str.2, ptr @.str.3
  %129 = call i32 @puts(ptr noundef %128)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  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 %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %130 = load i32, ptr %1, align 4
  ret i32 %130
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare i32 @puts(ptr noundef) #3

attributes #0 = { 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 #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 = { nounwind 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 = { nounwind 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 = !{!"long", !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 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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 [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4compPKvS0_(ptr noundef, ptr noundef) #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 nofree norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %5 = load i64, ptr %2, align 8, !tbaa !5
  %6 = add nsw i64 %5, -1
  store i64 %6, ptr %2, align 8, !tbaa !5
  %7 = load i64, ptr %3, align 8, !tbaa !5
  %8 = add nsw i64 %7, -1
  store i64 %8, ptr %3, align 8, !tbaa !5
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = shl i64 %9, 3
  %11 = call noalias ptr @malloc(i64 noundef %10) #7
  %12 = call noalias ptr @malloc(i64 noundef %10) #7
  %13 = icmp sgt i64 %9, 0
  br i1 %13, label %.lr.ph, label %.preheader

.preheader37:                                     ; preds = %.lr.ph
  %14 = icmp sgt i64 %18, 0
  br i1 %14, label %.lr.ph41, label %.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.03339 = phi i64 [ %17, %.lr.ph ], [ 0, %0 ]
  %15 = getelementptr inbounds i64, ptr %11, i64 %.03339
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef %15)
  %17 = add nuw nsw i64 %.03339, 1
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br i1 %19, label %.lr.ph, label %.preheader37, !llvm.loop !9

.preheader:                                       ; preds = %.lr.ph41, %0, %.preheader37
  %.lcssa38 = phi i64 [ %18, %.preheader37 ], [ %9, %0 ], [ %27, %.lr.ph41 ]
  %20 = load i64, ptr %2, align 8, !tbaa !5
  %21 = icmp sgt i64 %20, 0
  br i1 %21, label %.lr.ph43.preheader, label %._crit_edge

.lr.ph43.preheader:                               ; preds = %.preheader
  %22 = load i64, ptr %11, align 8, !tbaa !5
  %23 = load i64, ptr %12, align 8, !tbaa !5
  %.not60 = icmp eq i64 %22, %23
  br i1 %.not60, label %.lr.ph62, label %._crit_edge

.lr.ph41:                                         ; preds = %.preheader37, %.lr.ph41
  %.03240 = phi i64 [ %26, %.lr.ph41 ], [ 0, %.preheader37 ]
  %24 = getelementptr inbounds i64, ptr %12, i64 %.03240
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef %24)
  %26 = add nuw nsw i64 %.03240, 1
  %27 = load i64, ptr %1, align 8, !tbaa !5
  %28 = icmp slt i64 %26, %27
  br i1 %28, label %.lr.ph41, label %.preheader, !llvm.loop !11

.lr.ph62:                                         ; preds = %.lr.ph43.preheader, %.lr.ph43
  %.0304261 = phi i64 [ %29, %.lr.ph43 ], [ 0, %.lr.ph43.preheader ]
  %29 = add nuw nsw i64 %.0304261, 1
  %exitcond.not = icmp eq i64 %29, %20
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph43, !llvm.loop !12

.lr.ph43:                                         ; preds = %.lr.ph62
  %30 = getelementptr inbounds i64, ptr %11, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds i64, ptr %12, i64 %29
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %.not = icmp eq i64 %31, %33
  br i1 %.not, label %.lr.ph62, label %.lr.ph43.._crit_edge.loopexit_crit_edge, !llvm.loop !12

.lr.ph43.._crit_edge.loopexit_crit_edge:          ; preds = %.lr.ph43
  %34 = icmp slt i64 %29, %20
  %35 = select i1 %34, ptr @.str.3, ptr @.str.2
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph62, %.lr.ph43.preheader, %.lr.ph43.._crit_edge.loopexit_crit_edge, %.preheader
  %.lcssa = phi ptr [ @.str.2, %.preheader ], [ %35, %.lr.ph43.._crit_edge.loopexit_crit_edge ], [ @.str.3, %.lr.ph43.preheader ], [ @.str.2, %.lr.ph62 ]
  %36 = load i64, ptr %3, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %39, %._crit_edge
  %.029.in = phi i64 [ %36, %._crit_edge ], [ %.029, %39 ]
  %.029 = add nsw i64 %.029.in, 1
  %38 = icmp slt i64 %.029, %.lcssa38
  br i1 %38, label %39, label %.loopexit

39:                                               ; preds = %37
  %40 = getelementptr inbounds i64, ptr %11, i64 %.029
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds i64, ptr %12, i64 %.029
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %.not34 = icmp eq i64 %41, %43
  br i1 %.not34, label %37, label %.loopexit, !llvm.loop !13

.loopexit:                                        ; preds = %39, %37
  %.1 = phi ptr [ %.lcssa, %37 ], [ @.str.3, %39 ]
  call void @qsort(ptr noundef %11, i64 noundef %.lcssa38, i64 noundef 8, ptr noundef nonnull @_Z4compPKvS0_)
  %44 = load i64, ptr %1, align 8, !tbaa !5
  call void @qsort(ptr noundef %12, i64 noundef %44, i64 noundef 8, ptr noundef nonnull @_Z4compPKvS0_)
  %45 = load i64, ptr %1, align 8, !tbaa !5
  %46 = icmp sgt i64 %45, 0
  br i1 %46, label %.lr.ph49, label %._crit_edge50

47:                                               ; preds = %.lr.ph49
  %48 = add nuw nsw i64 %.047, 1
  %exitcond55.not = icmp eq i64 %48, %45
  br i1 %exitcond55.not, label %._crit_edge50, label %.lr.ph49, !llvm.loop !14

.lr.ph49:                                         ; preds = %.loopexit, %47
  %.047 = phi i64 [ %48, %47 ], [ 0, %.loopexit ]
  %49 = getelementptr inbounds i64, ptr %11, i64 %.047
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds i64, ptr %12, i64 %.047
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %.not35 = icmp eq i64 %50, %52
  br i1 %.not35, label %47, label %._crit_edge50

._crit_edge50:                                    ; preds = %47, %.lr.ph49, %.loopexit
  %.2 = phi ptr [ %.1, %.loopexit ], [ @.str.3, %.lr.ph49 ], [ %.1, %47 ]
  %53 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree "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 }
attributes #7 = { nounwind 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 = !{!"long", !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}


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