; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/176 Division 1/Problem C (C)

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

@n = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@p = external dso_local global [1001000 x i32], align 16
@q = external dso_local global [1001000 x i32], align 16
@s = external dso_local global [1001000 x i32], align 16
@tp = external dso_local global i32, align 4
@.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
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 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
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %17, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = icmp slt i32 %8, %9
  br i1 %10, label %12, label %11

11:                                               ; preds = %7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %20

12:                                               ; preds = %7
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %14
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %15)
  br label %17

17:                                               ; preds = %12
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %2, align 4, !tbaa !5
  br label %7, !llvm.loop !9

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

22:                                               ; preds = %41, %20
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr @t, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %22
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [1001000 x i32], ptr @q, i64 0, i64 %29
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %30)
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [1001000 x i32], ptr @q, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = sub nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = mul nsw i32 %39, -1
  store i32 %40, ptr %38, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %27
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !5
  br label %22, !llvm.loop !11

44:                                               ; preds = %26
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr @p, i64 %46
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @p, ptr noundef %47)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %117, %44
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %120

53:                                               ; preds = %48
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %59, label %69

59:                                               ; preds = %53
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sub nsw i32 0, %63
  %65 = load i32, ptr @tp, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr @tp, align 4, !tbaa !5
  %67 = sext i32 %65 to i64
  %68 = getelementptr inbounds [1001000 x i32], ptr @s, i64 0, i64 %67
  store i32 %64, ptr %68, align 4, !tbaa !5
  br label %116

69:                                               ; preds = %53
  %70 = load i32, ptr @tp, align 4, !tbaa !5
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %86

72:                                               ; preds = %69
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr @tp, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr @tp, align 4, !tbaa !5
  %79 = sext i32 %77 to i64
  %80 = getelementptr inbounds [1001000 x i32], ptr @s, i64 0, i64 %79
  store i32 %76, ptr %80, align 4, !tbaa !5
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = mul nsw i32 %84, -1
  store i32 %85, ptr %83, align 4, !tbaa !5
  br label %115

86:                                               ; preds = %69
  %87 = load i32, ptr @tp, align 4, !tbaa !5
  %88 = sub nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1001000 x i32], ptr @s, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = icmp ne i32 %91, %95
  br i1 %96, label %97, label %111

97:                                               ; preds = %86
  %98 = load i32, ptr %4, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = load i32, ptr @tp, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr @tp, align 4, !tbaa !5
  %104 = sext i32 %102 to i64
  %105 = getelementptr inbounds [1001000 x i32], ptr @s, i64 0, i64 %104
  store i32 %101, ptr %105, align 4, !tbaa !5
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = mul nsw i32 %109, -1
  store i32 %110, ptr %108, align 4, !tbaa !5
  br label %114

111:                                              ; preds = %86
  %112 = load i32, ptr @tp, align 4, !tbaa !5
  %113 = sub nsw i32 %112, 1
  store i32 %113, ptr @tp, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %111, %97
  br label %115

115:                                              ; preds = %114, %72
  br label %116

116:                                              ; preds = %115, %59
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %4, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %4, align 4, !tbaa !5
  br label %48, !llvm.loop !12

120:                                              ; preds = %52
  %121 = load i32, ptr @tp, align 4, !tbaa !5
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  %124 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  br label %146

125:                                              ; preds = %120
  %126 = load i32, ptr @n, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr @p, i64 %127
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @p, ptr noundef %128)
  %129 = call i32 @puts(ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %141, %125
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = load i32, ptr @n, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %144

135:                                              ; preds = %130
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %139)
  br label %141

141:                                              ; preds = %135
  %142 = load i32, ptr %5, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %5, align 4, !tbaa !5
  br label %130, !llvm.loop !13

144:                                              ; preds = %134
  %145 = call i32 @puts(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  br label %146

146:                                              ; preds = %144, %123
  %147 = load i32, ptr %1, align 4
  ret i32 %147
}

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: 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 @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) #3

declare i32 @puts(ptr noundef) #1

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 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !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"

@n = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@p = external dso_local global [1001000 x i32], align 16
@q = external dso_local global [1001000 x i32], align 16
@s = external dso_local local_unnamed_addr global [1001000 x i32], align 16
@tp = external dso_local local_unnamed_addr global i32, align 4
@.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
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 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 @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph31, label %._crit_edge32

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %7 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %indvars.iv
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = icmp slt i64 %indvars.iv.next, %10
  br i1 %11, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge32:                                    ; preds = %.lr.ph31, %._crit_edge
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds i32, ptr @p, i64 %13
  tail call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @p, ptr noundef nonnull %14)
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %tp.promoted = load i32, ptr @tp, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph35.preheader, label %._crit_edge36

.lr.ph35.preheader:                               ; preds = %._crit_edge32
  %wide.trip.count = zext nneg i32 %15 to i64
  br label %.lr.ph35

.lr.ph31:                                         ; preds = %._crit_edge, %.lr.ph31
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %.lr.ph31 ], [ 0, %._crit_edge ]
  %17 = getelementptr inbounds [1001000 x i32], ptr @q, i64 0, i64 %indvars.iv42
  %18 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %17)
  %19 = load i32, ptr %17, align 4, !tbaa !5
  %20 = add nsw i32 %19, -1
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = sub nsw i32 0, %23
  store i32 %24, ptr %22, align 4, !tbaa !5
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %25 = load i32, ptr @t, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = icmp slt i64 %indvars.iv.next43, %26
  br i1 %27, label %.lr.ph31, label %._crit_edge32, !llvm.loop !11

._crit_edge36:                                    ; preds = %54, %._crit_edge32
  %28 = phi i32 [ %tp.promoted, %._crit_edge32 ], [ %55, %54 ]
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %._crit_edge40, label %56

.lr.ph35:                                         ; preds = %.lr.ph35.preheader, %54
  %indvars.iv45 = phi i64 [ 0, %.lr.ph35.preheader ], [ %indvars.iv.next46, %54 ]
  %30 = phi i32 [ %tp.promoted, %.lr.ph35.preheader ], [ %55, %54 ]
  %31 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %indvars.iv45
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %39

34:                                               ; preds = %.lr.ph35
  %35 = sub nsw i32 0, %32
  %36 = add nsw i32 %30, 1
  store i32 %36, ptr @tp, align 4, !tbaa !5
  %37 = sext i32 %30 to i64
  %38 = getelementptr inbounds [1001000 x i32], ptr @s, i64 0, i64 %37
  store i32 %35, ptr %38, align 4, !tbaa !5
  br label %54

39:                                               ; preds = %.lr.ph35
  %40 = icmp eq i32 %30, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %39
  store i32 1, ptr @tp, align 4, !tbaa !5
  store i32 %32, ptr @s, align 16, !tbaa !5
  %42 = sub nsw i32 0, %32
  store i32 %42, ptr %31, align 4, !tbaa !5
  br label %54

43:                                               ; preds = %39
  %44 = add nsw i32 %30, -1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [1001000 x i32], ptr @s, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %.not = icmp eq i32 %47, %32
  br i1 %.not, label %53, label %48

48:                                               ; preds = %43
  %49 = add nsw i32 %30, 1
  store i32 %49, ptr @tp, align 4, !tbaa !5
  %50 = sext i32 %30 to i64
  %51 = getelementptr inbounds [1001000 x i32], ptr @s, i64 0, i64 %50
  store i32 %32, ptr %51, align 4, !tbaa !5
  %52 = sub nsw i32 0, %32
  store i32 %52, ptr %31, align 4, !tbaa !5
  br label %54

53:                                               ; preds = %43
  store i32 %44, ptr @tp, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %34, %48, %53, %41
  %55 = phi i32 [ %36, %34 ], [ %49, %48 ], [ %44, %53 ], [ 1, %41 ]
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next46, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge36, label %.lr.ph35, !llvm.loop !12

56:                                               ; preds = %._crit_edge36
  %57 = sext i32 %15 to i64
  %58 = getelementptr inbounds i32, ptr @p, i64 %57
  tail call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @p, ptr noundef nonnull %58)
  %59 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph39, label %._crit_edge40

.lr.ph39:                                         ; preds = %56, %.lr.ph39
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %.lr.ph39 ], [ 0, %56 ]
  %62 = getelementptr inbounds [1001000 x i32], ptr @p, i64 0, i64 %indvars.iv48
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %63)
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next49, %66
  br i1 %67, label %.lr.ph39, label %._crit_edge40, !llvm.loop !13

._crit_edge40:                                    ; preds = %.lr.ph39, %56, %._crit_edge36
  %.str.4.sink = phi ptr [ @.str.1, %._crit_edge36 ], [ @.str.4, %56 ], [ @.str.4, %.lr.ph39 ]
  %68 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.4.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 @_ZSt7reverseIPiEvT_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

; 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 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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