; LLVM IR from tangjz/acm-icpc :: codeforces/complete (924A)

; 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
@m = external dso_local global i32, align 4
@dsu = external dso_local global [10003 x i32], align 16
@cB = external dso_local global [10003 x i32], align 16
@cW = external dso_local global [10003 x i32], align 16
@cE = external dso_local global [10003 x i32], align 16
@buf = external dso_local global [5001 x i8], align 16
@.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 [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8dsu_findi(i32 noundef) #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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
  store i32 0, ptr %1, align 4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = load i32, ptr @m, align 4, !tbaa !5
  %11 = add nsw i32 %9, %10
  %12 = sext i32 %11 to i64
  %13 = mul i64 %12, 4
  call void @llvm.memset.p0.i64(ptr align 16 @dsu, i8 -1, i64 %13, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %23, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

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

19:                                               ; preds = %14
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [10003 x i32], ptr @cB, i64 0, i64 %21
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %19
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !9

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

27:                                               ; preds = %38, %26
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = load i32, ptr @m, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %27
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = add nsw i32 %33, %34
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [10003 x i32], ptr @cW, i64 0, i64 %36
  store i32 1, ptr %37, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %32
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %3, align 4, !tbaa !5
  br label %27, !llvm.loop !11

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

42:                                               ; preds = %71, %41
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %74

47:                                               ; preds = %42
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @buf)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %49

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

53:                                               ; preds = %49
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %70

54:                                               ; preds = %49
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [5001 x i8], ptr @buf, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !12
  %59 = sext i8 %58 to i32
  %60 = icmp ne i32 %59, 46
  br i1 %60, label %61, label %66

61:                                               ; preds = %54
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = load i32, ptr @n, align 4, !tbaa !5
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = add nsw i32 %63, %64
  call void @_Z9dsu_mergeii(i32 noundef %62, i32 noundef %65)
  br label %66

66:                                               ; preds = %61, %54
  br label %67

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

70:                                               ; preds = %53
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %4, align 4, !tbaa !5
  br label %42, !llvm.loop !14

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

75:                                               ; preds = %105, %74
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = load i32, ptr @n, align 4, !tbaa !5
  %78 = load i32, ptr @m, align 4, !tbaa !5
  %79 = add nsw i32 %77, %78
  %80 = icmp slt i32 %76, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %75
  store i32 14, ptr %5, align 4
  br label %108

82:                                               ; preds = %75
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = call noundef i32 @_Z8dsu_findi(i32 noundef %83)
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = icmp eq i32 %84, %85
  br i1 %86, label %87, label %104

87:                                               ; preds = %82
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [10003 x i32], ptr @cB, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10003 x i32], ptr @cW, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = mul nsw i32 %91, %95
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [10003 x i32], ptr @cE, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = icmp ne i32 %96, %100
  br i1 %101, label %102, label %104

102:                                              ; preds = %87
  %103 = call i32 @puts(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %108

104:                                              ; preds = %87, %82
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %7, align 4, !tbaa !5
  br label %75, !llvm.loop !15

108:                                              ; preds = %102, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %109 = load i32, ptr %5, align 4
  switch i32 %109, label %114 [
    i32 14, label %110
    i32 1, label %112
  ]

110:                                              ; preds = %108
  %111 = call i32 @puts(ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  br label %112

112:                                              ; preds = %110, %108
  %113 = load i32, ptr %1, align 4
  ret i32 %113

114:                                              ; preds = %108
  unreachable
}

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

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

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

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

declare i32 @puts(ptr noundef) #2

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 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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
@m = external dso_local global i32, align 4
@dsu = external dso_local local_unnamed_addr global [10003 x i32], align 16
@cB = external dso_local local_unnamed_addr global [10003 x i32], align 16
@cW = external dso_local local_unnamed_addr global [10003 x i32], align 16
@cE = external dso_local local_unnamed_addr global [10003 x i32], align 16
@buf = external dso_local global [5001 x i8], align 16
@.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 [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %3 = load i32, ptr @m, align 4, !tbaa !5
  %4 = add nsw i32 %3, %2
  %5 = sext i32 %4 to i64
  %6 = shl nsw i64 %5, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @dsu, i8 -1, i64 %6, i1 false)
  %7 = icmp sgt i32 %2, 0
  br i1 %7, label %.lr.ph.preheader, label %.preheader33

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 8
  br i1 %min.iters.check, label %.lr.ph.preheader75, label %vector.ph

.lr.ph.preheader75:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %8 = getelementptr inbounds [10003 x i32], ptr @cB, i64 0, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %8, align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %9, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %10 = icmp eq i64 %index.next, %n.vec
  br i1 %10, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader33, label %.lr.ph.preheader75

.preheader33:                                     ; preds = %.lr.ph, %middle.block, %0
  %11 = icmp sgt i32 %3, 0
  br i1 %11, label %.lr.ph36.preheader, label %.preheader32

.lr.ph36.preheader:                               ; preds = %.preheader33
  %12 = sext i32 %2 to i64
  %wide.trip.count48 = zext nneg i32 %3 to i64
  %min.iters.check63 = icmp ult i32 %3, 8
  br i1 %min.iters.check63, label %.lr.ph36.preheader74, label %vector.ph64

.lr.ph36.preheader74:                             ; preds = %middle.block61, %.lr.ph36.preheader
  %indvars.iv45.ph = phi i64 [ 0, %.lr.ph36.preheader ], [ %n.vec66, %middle.block61 ]
  br label %.lr.ph36

vector.ph64:                                      ; preds = %.lr.ph36.preheader
  %n.vec66 = and i64 %wide.trip.count48, 2147483640
  br label %vector.body68

vector.body68:                                    ; preds = %vector.body68, %vector.ph64
  %index69 = phi i64 [ 0, %vector.ph64 ], [ %index.next70, %vector.body68 ]
  %13 = add nsw i64 %index69, %12
  %14 = getelementptr inbounds [10003 x i32], ptr @cW, i64 0, i64 %13
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %14, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %15, align 4, !tbaa !5
  %index.next70 = add nuw i64 %index69, 8
  %16 = icmp eq i64 %index.next70, %n.vec66
  br i1 %16, label %middle.block61, label %vector.body68, !llvm.loop !13

middle.block61:                                   ; preds = %vector.body68
  %cmp.n71 = icmp eq i64 %n.vec66, %wide.trip.count48
  br i1 %cmp.n71, label %.preheader32, label %.lr.ph36.preheader74

.lr.ph:                                           ; preds = %.lr.ph.preheader75, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader75 ]
  %17 = getelementptr inbounds [10003 x i32], ptr @cB, i64 0, i64 %indvars.iv
  store i32 1, ptr %17, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader33, label %.lr.ph, !llvm.loop !14

.preheader32:                                     ; preds = %.lr.ph36, %middle.block61, %.preheader33
  br i1 %7, label %.lr.ph40, label %.preheader

.lr.ph36:                                         ; preds = %.lr.ph36.preheader74, %.lr.ph36
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %.lr.ph36 ], [ %indvars.iv45.ph, %.lr.ph36.preheader74 ]
  %18 = add nsw i64 %indvars.iv45, %12
  %19 = getelementptr inbounds [10003 x i32], ptr @cW, i64 0, i64 %18
  store i32 1, ptr %19, align 4, !tbaa !5
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond49.not = icmp eq i64 %indvars.iv.next46, %wide.trip.count48
  br i1 %exitcond49.not, label %.preheader32, label %.lr.ph36, !llvm.loop !15

.preheader.loopexit:                              ; preds = %._crit_edge
  %.pre56 = add nsw i32 %24, %26
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader32
  %.pre-phi = phi i32 [ %.pre56, %.preheader.loopexit ], [ %4, %.preheader32 ]
  %20 = icmp sgt i32 %.pre-phi, 0
  br i1 %20, label %.lr.ph42, label %._crit_edge43

.lr.ph40:                                         ; preds = %.preheader32, %._crit_edge
  %.02439 = phi i32 [ %25, %._crit_edge ], [ 0, %.preheader32 ]
  %21 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @buf)
  %22 = load i32, ptr @m, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph38, label %._crit_edge

._crit_edge:                                      ; preds = %35, %.lr.ph40
  %24 = phi i32 [ %22, %.lr.ph40 ], [ %36, %35 ]
  %25 = add nuw nsw i32 %.02439, 1
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %.lr.ph40, label %.preheader.loopexit, !llvm.loop !16

.lr.ph38:                                         ; preds = %.lr.ph40, %35
  %28 = phi i32 [ %36, %35 ], [ %22, %.lr.ph40 ]
  %indvars.iv50 = phi i64 [ %indvars.iv.next51, %35 ], [ 0, %.lr.ph40 ]
  %29 = getelementptr inbounds [5001 x i8], ptr @buf, i64 0, i64 %indvars.iv50
  %30 = load i8, ptr %29, align 1, !tbaa !17
  %.not28 = icmp eq i8 %30, 46
  br i1 %.not28, label %35, label %31

31:                                               ; preds = %.lr.ph38
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = trunc nuw nsw i64 %indvars.iv50 to i32
  %34 = add nsw i32 %32, %33
  tail call void @_Z9dsu_mergeii(i32 noundef %.02439, i32 noundef %34)
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %.lr.ph38, %31
  %36 = phi i32 [ %28, %.lr.ph38 ], [ %.pre, %31 ]
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %indvars.iv.next51, %37
  br i1 %38, label %.lr.ph38, label %._crit_edge, !llvm.loop !18

.lr.ph42:                                         ; preds = %.preheader, %51
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %51 ], [ 0, %.preheader ]
  %39 = trunc nuw nsw i64 %indvars.iv53 to i32
  %40 = tail call noundef i32 @_Z8dsu_findi(i32 noundef %39)
  %41 = zext i32 %40 to i64
  %42 = icmp eq i64 %indvars.iv53, %41
  br i1 %42, label %43, label %51

43:                                               ; preds = %.lr.ph42
  %44 = getelementptr inbounds [10003 x i32], ptr @cB, i64 0, i64 %indvars.iv53
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = getelementptr inbounds [10003 x i32], ptr @cW, i64 0, i64 %indvars.iv53
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = mul nsw i32 %47, %45
  %49 = getelementptr inbounds [10003 x i32], ptr @cE, i64 0, i64 %indvars.iv53
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %.not = icmp eq i32 %48, %50
  br i1 %.not, label %51, label %._crit_edge43

51:                                               ; preds = %.lr.ph42, %43
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = load i32, ptr @m, align 4, !tbaa !5
  %54 = add nsw i32 %53, %52
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next54, %55
  br i1 %56, label %.lr.ph42, label %._crit_edge43, !llvm.loop !19

._crit_edge43:                                    ; preds = %51, %43, %.preheader
  %.str.2.sink = phi ptr [ @.str.3, %.preheader ], [ @.str.2, %43 ], [ @.str.3, %51 ]
  %57 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  ret i32 0
}

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

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

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

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 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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }

!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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10, !12, !11}
!16 = distinct !{!16, !10}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass