; LLVM IR from VastoLorde95/Competitive-Programming :: Codejam/2016/Round 1C/Problem B/B.ll (Z5solvev)

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

@mt = external dso_local global [60 x [60 x i32]], align 16
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4goodv() #0

declare i32 @puts(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3badv() #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %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
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %1, ptr noundef %2)
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 2
  br i1 %12, label %13, label %21

13:                                               ; preds = %0
  %14 = load i64, ptr %2, align 8, !tbaa !9
  %15 = icmp sgt i64 %14, 1
  br i1 %15, label %16, label %17

16:                                               ; preds = %13
  call void @_Z3badv()
  br label %20

17:                                               ; preds = %13
  call void @_Z4goodv()
  %18 = call i32 @puts(ptr noundef @.str.3)
  %19 = call i32 @puts(ptr noundef @.str.4)
  br label %20

20:                                               ; preds = %17, %16
  store i32 1, ptr %3, align 4
  br label %118

21:                                               ; preds = %0
  %22 = load i64, ptr %2, align 8, !tbaa !9
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = sub nsw i32 %23, 2
  %25 = zext i32 %24 to i64
  %26 = shl i64 1, %25
  %27 = icmp sgt i64 %22, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %21
  call void @_Z3badv()
  store i32 1, ptr %3, align 4
  br label %118

29:                                               ; preds = %21
  call void @llvm.memset.p0.i64(ptr align 16 @mt, i8 0, i64 14400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %54, %29
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = icmp sle i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %57

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %5, align 4, !tbaa !5
  br label %38

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

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

43:                                               ; preds = %38
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %45
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [60 x i32], ptr %46, i64 0, i64 %48
  store i32 1, ptr %49, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %43
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %5, align 4, !tbaa !5
  br label %38, !llvm.loop !11

53:                                               ; preds = %42
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %4, align 4, !tbaa !5
  br label %30, !llvm.loop !13

57:                                               ; preds = %34
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [60 x i32], ptr getelementptr inbounds ([60 x [60 x i32]], ptr @mt, i64 0, i64 1), i64 0, i64 %59
  store i32 1, ptr %60, align 4, !tbaa !5
  %61 = load i64, ptr %2, align 8, !tbaa !9
  %62 = add nsw i64 %61, -1
  store i64 %62, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %85, %57
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = load i32, ptr %1, align 4, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %88

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = sub nsw i32 %69, 2
  store i32 %70, ptr %7, align 4, !tbaa !5
  %71 = load i64, ptr %2, align 8, !tbaa !9
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = shl i64 1, %73
  %75 = and i64 %71, %74
  %76 = icmp sgt i64 %75, 0
  br i1 %76, label %77, label %84

77:                                               ; preds = %68
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %79
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [60 x i32], ptr %80, i64 0, i64 %82
  store i32 1, ptr %83, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %77, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %6, align 4, !tbaa !5
  br label %63, !llvm.loop !14

88:                                               ; preds = %67
  call void @_Z4goodv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %114, %88
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = load i32, ptr %1, align 4, !tbaa !5
  %92 = icmp sle i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %117

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %109, %94
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = icmp sle i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %112

100:                                              ; preds = %95
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %102
  %104 = load i32, ptr %9, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [60 x i32], ptr %103, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %107)
  br label %109

109:                                              ; preds = %100
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !5
  br label %95, !llvm.loop !15

112:                                              ; preds = %99
  %113 = call i32 @puts(ptr noundef @.str.6)
  br label %114

114:                                              ; preds = %112
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %8, align 4, !tbaa !5
  br label %89, !llvm.loop !16

117:                                              ; preds = %93
  store i32 1, ptr %3, align 4
  br label %118

118:                                              ; preds = %117, %28, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

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

; 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.end.p0(i64 immarg, ptr nocapture) #2

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

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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !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"

@mt = external dso_local local_unnamed_addr global [60 x [60 x i32]], align 16
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4goodv() local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3badv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %5 = icmp eq i32 %4, 2
  %6 = load i64, ptr %2, align 8, !tbaa !9
  br i1 %5, label %7, label %13

7:                                                ; preds = %0
  %8 = icmp sgt i64 %6, 1
  br i1 %8, label %9, label %10

9:                                                ; preds = %7
  call void @_Z3badv()
  br label %.loopexit

10:                                               ; preds = %7
  call void @_Z4goodv()
  %11 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  %12 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %.loopexit

13:                                               ; preds = %0
  %14 = add nsw i32 %4, -2
  %15 = zext nneg i32 %14 to i64
  %16 = shl nuw i64 1, %15
  %17 = icmp sgt i64 %6, %16
  br i1 %17, label %18, label %19

18:                                               ; preds = %13
  call void @_Z3badv()
  br label %.loopexit

19:                                               ; preds = %13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(14400) @mt, i8 0, i64 14400, i1 false)
  %.not29 = icmp slt i32 %4, 1
  br i1 %.not29, label %._crit_edge.thread, label %.lr.ph31.preheader

._crit_edge.thread:                               ; preds = %19
  %.pre = sext i32 %4 to i64
  %20 = getelementptr inbounds [60 x i32], ptr getelementptr inbounds (i8, ptr @mt, i64 240), i64 0, i64 %.pre
  store i32 1, ptr %20, align 4, !tbaa !5
  %21 = add nsw i64 %6, -1
  store i64 %21, ptr %2, align 8, !tbaa !9
  br label %._crit_edge35

.lr.ph31.preheader:                               ; preds = %19
  %22 = zext nneg i32 %4 to i64
  %23 = add nuw i32 %4, 1
  %wide.trip.count48 = zext i32 %23 to i64
  %wide.trip.count = zext nneg i32 %4 to i64
  %24 = add nsw i64 %wide.trip.count, -2
  br label %.lr.ph31

.loopexit27:                                      ; preds = %.lr.ph, %middle.block, %.lr.ph31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond49.not = icmp eq i64 %indvars.iv.next46, %wide.trip.count48
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond49.not, label %._crit_edge, label %.lr.ph31, !llvm.loop !11

._crit_edge:                                      ; preds = %.loopexit27
  %25 = getelementptr inbounds [60 x i32], ptr getelementptr inbounds (i8, ptr @mt, i64 240), i64 0, i64 %22
  store i32 1, ptr %25, align 4, !tbaa !5
  %26 = add nsw i64 %6, -1
  store i64 %26, ptr %2, align 8, !tbaa !9
  %27 = icmp sgt i32 %4, 2
  br i1 %27, label %.lr.ph34.preheader, label %._crit_edge35

.lr.ph34.preheader:                               ; preds = %._crit_edge
  %xtraiter = and i64 %wide.trip.count, 1
  %28 = icmp eq i32 %4, 3
  br i1 %28, label %._crit_edge35.loopexit.unr-lcssa, label %.lr.ph34.preheader.new

.lr.ph34.preheader.new:                           ; preds = %.lr.ph34.preheader
  %unroll_iter = and i64 %24, -2
  br label %.lr.ph34

.lr.ph31:                                         ; preds = %.lr.ph31.preheader, %.loopexit27
  %indvar = phi i64 [ 0, %.lr.ph31.preheader ], [ %indvar.next, %.loopexit27 ]
  %indvars.iv45 = phi i64 [ 1, %.lr.ph31.preheader ], [ %indvars.iv.next46, %.loopexit27 ]
  %indvars.iv = phi i64 [ 2, %.lr.ph31.preheader ], [ %indvars.iv.next, %.loopexit27 ]
  %29 = sub i64 %24, %indvar
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %30 = icmp ult i64 %indvars.iv.next46, %22
  br i1 %30, label %.lr.ph.preheader, label %.loopexit27

.lr.ph.preheader:                                 ; preds = %.lr.ph31
  %min.iters.check = icmp ult i64 %29, 8
  br i1 %min.iters.check, label %.lr.ph.preheader62, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %29, -8
  %ind.end = add i64 %indvars.iv, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv, %index
  %31 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %indvars.iv45, i64 %offset.idx
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %31, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %32, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %33 = icmp eq i64 %index.next, %n.vec
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %29, %n.vec
  br i1 %cmp.n, label %.loopexit27, label %.lr.ph.preheader62

.lr.ph.preheader62:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv42.ph = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader62, %.lr.ph
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %.lr.ph ], [ %indvars.iv42.ph, %.lr.ph.preheader62 ]
  %34 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %indvars.iv45, i64 %indvars.iv42
  store i32 1, ptr %34, align 4, !tbaa !5
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next43, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit27, label %.lr.ph, !llvm.loop !16

._crit_edge35.loopexit.unr-lcssa:                 ; preds = %53, %.lr.ph34.preheader
  %indvars.iv50.unr = phi i64 [ 2, %.lr.ph34.preheader ], [ %indvars.iv.next51.1, %53 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge35, label %.lr.ph34.epil

.lr.ph34.epil:                                    ; preds = %._crit_edge35.loopexit.unr-lcssa
  %35 = add nsw i64 %indvars.iv50.unr, -2
  %36 = shl nuw i64 1, %35
  %37 = and i64 %36, %26
  %38 = icmp sgt i64 %37, 0
  br i1 %38, label %39, label %._crit_edge35

39:                                               ; preds = %.lr.ph34.epil
  %40 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %indvars.iv50.unr, i64 %22
  store i32 1, ptr %40, align 4, !tbaa !5
  br label %._crit_edge35

._crit_edge35:                                    ; preds = %._crit_edge35.loopexit.unr-lcssa, %39, %.lr.ph34.epil, %._crit_edge.thread, %._crit_edge
  call void @_Z4goodv()
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %.not2540 = icmp slt i32 %41, 1
  br i1 %.not2540, label %.loopexit, label %.preheader

.lr.ph34:                                         ; preds = %53, %.lr.ph34.preheader.new
  %indvars.iv50 = phi i64 [ 2, %.lr.ph34.preheader.new ], [ %indvars.iv.next51.1, %53 ]
  %niter = phi i64 [ 0, %.lr.ph34.preheader.new ], [ %niter.next.1, %53 ]
  %42 = add nsw i64 %indvars.iv50, -2
  %43 = shl nuw i64 1, %42
  %44 = and i64 %43, %26
  %.not = icmp eq i64 %44, 0
  br i1 %.not, label %.lr.ph34.1, label %45

45:                                               ; preds = %.lr.ph34
  %46 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %indvars.iv50, i64 %22
  store i32 1, ptr %46, align 4, !tbaa !5
  br label %.lr.ph34.1

.lr.ph34.1:                                       ; preds = %45, %.lr.ph34
  %47 = add nsw i64 %indvars.iv50, -1
  %48 = shl nuw i64 1, %47
  %49 = and i64 %48, %26
  %50 = icmp sgt i64 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %.lr.ph34.1
  %indvars.iv.next51 = or disjoint i64 %indvars.iv50, 1
  %52 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %indvars.iv.next51, i64 %22
  store i32 1, ptr %52, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %51, %.lr.ph34.1
  %indvars.iv.next51.1 = add nuw nsw i64 %indvars.iv50, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge35.loopexit.unr-lcssa, label %.lr.ph34, !llvm.loop !17

.preheader:                                       ; preds = %._crit_edge35, %._crit_edge39
  %54 = phi i32 [ %56, %._crit_edge39 ], [ %41, %._crit_edge35 ]
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %._crit_edge39 ], [ 1, %._crit_edge35 ]
  %.not2636 = icmp slt i32 %54, 1
  br i1 %.not2636, label %._crit_edge39, label %.lr.ph38

._crit_edge39:                                    ; preds = %.lr.ph38, %.preheader
  %55 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.6)
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %.not25.not = icmp slt i64 %indvars.iv58, %57
  br i1 %.not25.not, label %.preheader, label %.loopexit, !llvm.loop !18

.lr.ph38:                                         ; preds = %.preheader, %.lr.ph38
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %.lr.ph38 ], [ 1, %.preheader ]
  %58 = getelementptr inbounds [60 x [60 x i32]], ptr @mt, i64 0, i64 %indvars.iv58, i64 %indvars.iv55
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %59)
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %.not26.not = icmp slt i64 %indvars.iv55, %62
  br i1 %.not26.not, label %.lr.ph38, label %._crit_edge39, !llvm.loop !19

.loopexit:                                        ; preds = %._crit_edge39, %._crit_edge35, %9, %10, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret void
}

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

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

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !12, !15, !14}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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