; LLVM IR from tangjz/acm-icpc :: self_training/2015-02-16 (I)

; 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
@t = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@f = external dso_local global [101 x [101 x i32]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 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
  %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
  store i32 0, ptr %1, align 4
  br label %11

11:                                               ; preds = %126, %0
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @t, ptr noundef @s)
  %13 = icmp eq i32 %12, 4
  br i1 %13, label %14, label %129

14:                                               ; preds = %11
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 40804, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  br label %15

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

19:                                               ; preds = %15
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %86

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

23:                                               ; preds = %79, %20
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = load i32, ptr @m, align 4, !tbaa !5
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %28, label %27

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

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %75, %28
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = load i32, ptr @s, align 4, !tbaa !5
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %29
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %36
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [101 x i32], ptr %37, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = sub nsw i32 %42, %43
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %45
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = sub nsw i32 %47, 1
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [101 x i32], ptr %46, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = add nsw i32 %51, %52
  %54 = icmp slt i32 %41, %53
  br i1 %54, label %55, label %74

55:                                               ; preds = %34
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sub nsw i32 %56, %57
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %59
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [101 x i32], ptr %60, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = add nsw i32 %65, %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %69
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [101 x i32], ptr %70, i64 0, i64 %72
  store i32 %67, ptr %73, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %55, %34
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %7, align 4, !tbaa !5
  br label %29, !llvm.loop !9

78:                                               ; preds = %33
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %6, align 4, !tbaa !5
  br label %23, !llvm.loop !11

82:                                               ; preds = %27
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !12

86:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 -1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %123, %86
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = load i32, ptr @m, align 4, !tbaa !5
  %90 = icmp sle i32 %88, %89
  br i1 %90, label %91, label %94

91:                                               ; preds = %87
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = icmp eq i32 %92, -1
  br label %94

94:                                               ; preds = %91, %87
  %95 = phi i1 [ false, %87 ], [ %93, %91 ]
  br i1 %95, label %97, label %96

96:                                               ; preds = %94
  store i32 13, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %126

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

98:                                               ; preds = %118, %97
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = load i32, ptr @s, align 4, !tbaa !5
  %101 = icmp sle i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 16, ptr %5, align 4
  br label %121

103:                                              ; preds = %98
  %104 = load i32, ptr %9, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %105
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [101 x i32], ptr %106, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = load i32, ptr @n, align 4, !tbaa !5
  %112 = icmp sge i32 %110, %111
  br i1 %112, label %113, label %117

113:                                              ; preds = %103
  %114 = load i32, ptr @m, align 4, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = sub nsw i32 %114, %115
  store i32 %116, ptr %8, align 4, !tbaa !5
  store i32 16, ptr %5, align 4
  br label %121

117:                                              ; preds = %103
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %10, align 4, !tbaa !5
  br label %98, !llvm.loop !13

121:                                              ; preds = %113, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %9, align 4, !tbaa !5
  br label %87, !llvm.loop !14

126:                                              ; preds = %96
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %127)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %11, !llvm.loop !15

129:                                              ; preds = %11
  ret i32 0
}

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) #2

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

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

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 nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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}
!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
@t = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@f = external dso_local local_unnamed_addr global [101 x [101 x i32]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @t, ptr noundef nonnull @s)
  %4 = icmp eq i32 %3, 4
  br i1 %4, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %0, %._crit_edge46
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40804) @f, i8 0, i64 40804, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.lr.ph48.._crit_edge40_crit_edge

.lr.ph48.._crit_edge40_crit_edge:                 ; preds = %.lr.ph48
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %._crit_edge40

._crit_edge40:                                    ; preds = %._crit_edge37, %.lr.ph48.._crit_edge40_crit_edge
  %7 = phi i32 [ %.pre, %.lr.ph48.._crit_edge40_crit_edge ], [ %15, %._crit_edge37 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %8 = icmp sgt i32 %7, -1
  br i1 %8, label %.preheader32.lr.ph, label %._crit_edge46

.preheader32.lr.ph:                               ; preds = %._crit_edge40
  %9 = load i32, ptr @s, align 4, !tbaa !5
  %.not41 = icmp slt i32 %9, 0
  %10 = load i32, ptr @n, align 4
  br i1 %.not41, label %._crit_edge46, label %.preheader32.preheader

.preheader32.preheader:                           ; preds = %.preheader32.lr.ph
  %11 = add nuw i32 %9, 1
  %12 = zext nneg i32 %7 to i64
  %wide.trip.count61 = zext i32 %11 to i64
  br label %.preheader32

.lr.ph:                                           ; preds = %.lr.ph48, %._crit_edge37
  %.02738 = phi i32 [ %82, %._crit_edge37 ], [ 0, %.lr.ph48 ]
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @m, align 4, !tbaa !5
  %.not3035 = icmp sgt i32 %14, %15
  br i1 %.not3035, label %._crit_edge37, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.lr.ph
  %16 = load i32, ptr @s, align 4, !tbaa !5
  %.not3133 = icmp slt i32 %16, 1
  %17 = load i32, ptr %1, align 4
  br i1 %.not3133, label %._crit_edge37, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %18 = add nuw i32 %16, 1
  %19 = sext i32 %14 to i64
  %20 = add i32 %15, 1
  %wide.trip.count = zext i32 %18 to i64
  %21 = mul nsw i64 %19, 404
  %scevgep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @f, i64 4), i64 %21
  %22 = sub i32 %15, %14
  %23 = zext i32 %22 to i64
  %24 = mul nuw nsw i64 %23, 404
  %25 = shl nuw nsw i64 %wide.trip.count, 2
  %26 = getelementptr i8, ptr @f, i64 %21
  %27 = getelementptr i8, ptr %26, i64 %24
  %scevgep66 = getelementptr i8, ptr %27, i64 %25
  %28 = getelementptr i8, ptr getelementptr (i8, ptr @f, i64 -4), i64 %24
  %scevgep67 = getelementptr i8, ptr %28, i64 %25
  %29 = zext nneg i32 %16 to i64
  %30 = zext nneg i32 %16 to i64
  %min.iters.check = icmp ult i32 %16, 8
  %bound0 = icmp ult ptr %scevgep, %scevgep67
  %bound1 = icmp ugt ptr %scevgep66, @f
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %29, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %17, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %29
  %31 = and i32 %16, 1
  %lcmp.mod.not = icmp eq i32 %31, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %indvars.iv54 = phi i64 [ %19, %.preheader.preheader ], [ %indvars.iv.next55, %._crit_edge ]
  %32 = sub nsw i64 %indvars.iv54, %19
  %brmerge = select i1 %min.iters.check, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %.preheader, %middle.block
  %indvars.iv.ph = phi i64 [ 1, %.preheader ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %33 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %indvars.iv.ph
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i64 %indvars.iv.ph, -1
  %36 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %32, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = add nsw i32 %17, %37
  %39 = icmp slt i32 %34, %38
  br i1 %39, label %40, label %scalar.ph.prol.loopexit.unr-lcssa

40:                                               ; preds = %scalar.ph.prol
  store i32 %38, ptr %33, align 4, !tbaa !5
  br label %scalar.ph.prol.loopexit.unr-lcssa

scalar.ph.prol.loopexit.unr-lcssa:                ; preds = %40, %scalar.ph.prol
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol.loopexit.unr-lcssa, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol.loopexit.unr-lcssa ]
  %41 = icmp eq i64 %indvars.iv.ph, %30
  br i1 %41, label %._crit_edge, label %scalar.ph

vector.body:                                      ; preds = %.preheader, %pred.store.continue84
  %index = phi i64 [ %index.next, %pred.store.continue84 ], [ 0, %.preheader ]
  %offset.idx = or disjoint i64 %index, 1
  %42 = or disjoint i64 %index, 5
  %43 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %offset.idx
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load = load <4 x i32>, ptr %43, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  %wide.load68 = load <4 x i32>, ptr %44, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  %45 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %32, i64 %index
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load69 = load <4 x i32>, ptr %45, align 4, !tbaa !5, !alias.scope !12
  %wide.load70 = load <4 x i32>, ptr %46, align 4, !tbaa !5, !alias.scope !12
  %47 = add nsw <4 x i32> %broadcast.splat, %wide.load69
  %48 = add nsw <4 x i32> %broadcast.splat, %wide.load70
  %49 = icmp slt <4 x i32> %wide.load, %47
  %50 = icmp slt <4 x i32> %wide.load68, %48
  %51 = extractelement <4 x i1> %49, i64 0
  br i1 %51, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %52 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %offset.idx
  %53 = extractelement <4 x i32> %47, i64 0
  store i32 %53, ptr %52, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %54 = extractelement <4 x i1> %49, i64 1
  br i1 %54, label %pred.store.if71, label %pred.store.continue72

pred.store.if71:                                  ; preds = %pred.store.continue
  %55 = or disjoint i64 %index, 2
  %56 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %55
  %57 = extractelement <4 x i32> %47, i64 1
  store i32 %57, ptr %56, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue72

pred.store.continue72:                            ; preds = %pred.store.if71, %pred.store.continue
  %58 = extractelement <4 x i1> %49, i64 2
  br i1 %58, label %pred.store.if73, label %pred.store.continue74

pred.store.if73:                                  ; preds = %pred.store.continue72
  %59 = or disjoint i64 %index, 3
  %60 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %59
  %61 = extractelement <4 x i32> %47, i64 2
  store i32 %61, ptr %60, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue74

pred.store.continue74:                            ; preds = %pred.store.if73, %pred.store.continue72
  %62 = extractelement <4 x i1> %49, i64 3
  br i1 %62, label %pred.store.if75, label %pred.store.continue76

pred.store.if75:                                  ; preds = %pred.store.continue74
  %63 = or disjoint i64 %index, 4
  %64 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %63
  %65 = extractelement <4 x i32> %47, i64 3
  store i32 %65, ptr %64, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue76

pred.store.continue76:                            ; preds = %pred.store.if75, %pred.store.continue74
  %66 = extractelement <4 x i1> %50, i64 0
  br i1 %66, label %pred.store.if77, label %pred.store.continue78

pred.store.if77:                                  ; preds = %pred.store.continue76
  %67 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %42
  %68 = extractelement <4 x i32> %48, i64 0
  store i32 %68, ptr %67, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue78

pred.store.continue78:                            ; preds = %pred.store.if77, %pred.store.continue76
  %69 = extractelement <4 x i1> %50, i64 1
  br i1 %69, label %pred.store.if79, label %pred.store.continue80

pred.store.if79:                                  ; preds = %pred.store.continue78
  %70 = or disjoint i64 %index, 6
  %71 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %70
  %72 = extractelement <4 x i32> %48, i64 1
  store i32 %72, ptr %71, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue80

pred.store.continue80:                            ; preds = %pred.store.if79, %pred.store.continue78
  %73 = extractelement <4 x i1> %50, i64 2
  br i1 %73, label %pred.store.if81, label %pred.store.continue82

pred.store.if81:                                  ; preds = %pred.store.continue80
  %74 = or disjoint i64 %index, 7
  %75 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %74
  %76 = extractelement <4 x i32> %48, i64 2
  store i32 %76, ptr %75, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue82

pred.store.continue82:                            ; preds = %pred.store.if81, %pred.store.continue80
  %77 = extractelement <4 x i1> %50, i64 3
  br i1 %77, label %pred.store.if83, label %pred.store.continue84

pred.store.if83:                                  ; preds = %pred.store.continue82
  %78 = add i64 %index, 8
  %79 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %78
  %80 = extractelement <4 x i32> %48, i64 3
  store i32 %80, ptr %79, align 4, !tbaa !5, !alias.scope !9, !noalias !12
  br label %pred.store.continue84

pred.store.continue84:                            ; preds = %pred.store.if83, %pred.store.continue82
  %index.next = add nuw i64 %index, 8
  %81 = icmp eq i64 %index.next, %n.vec
  br i1 %81, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %pred.store.continue84
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge37:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %.lr.ph
  %82 = add nuw nsw i32 %.02738, 1
  %83 = load i32, ptr @t, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %.lr.ph, label %._crit_edge40, !llvm.loop !18

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %100, %middle.block
  %indvars.iv.next55 = add nsw i64 %indvars.iv54, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next55 to i32
  %exitcond57.not = icmp eq i32 %20, %lftr.wideiv
  br i1 %exitcond57.not, label %._crit_edge37, label %.preheader, !llvm.loop !19

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %100
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %100 ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %85 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %indvars.iv
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i64 %indvars.iv, -1
  %88 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %32, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add nsw i32 %17, %89
  %91 = icmp slt i32 %86, %90
  br i1 %91, label %92, label %scalar.ph.1

92:                                               ; preds = %scalar.ph
  store i32 %90, ptr %85, align 4, !tbaa !5
  br label %scalar.ph.1

scalar.ph.1:                                      ; preds = %scalar.ph, %92
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %93 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv54, i64 %indvars.iv.next
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %32, i64 %indvars.iv
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = add nsw i32 %17, %96
  %98 = icmp slt i32 %94, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %scalar.ph.1
  store i32 %97, ptr %93, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %99, %scalar.ph.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %scalar.ph, !llvm.loop !20

.preheader32:                                     ; preds = %.preheader32.preheader, %..loopexit_crit_edge
  %indvars.iv63 = phi i64 [ 0, %.preheader32.preheader ], [ %indvars.iv.next64, %..loopexit_crit_edge ]
  br label %105

._crit_edge46:                                    ; preds = %..loopexit_crit_edge, %.preheader32.lr.ph, %._crit_edge40
  %.024.lcssa = phi i32 [ -1, %._crit_edge40 ], [ -1, %.preheader32.lr.ph ], [ %.1, %..loopexit_crit_edge ]
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.024.lcssa)
  %102 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @t, ptr noundef nonnull @s)
  %103 = icmp eq i32 %102, 4
  br i1 %103, label %.lr.ph48, label %._crit_edge49, !llvm.loop !21

104:                                              ; preds = %105
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next59, %wide.trip.count61
  br i1 %exitcond62.not, label %..loopexit_crit_edge, label %105, !llvm.loop !22

105:                                              ; preds = %.preheader32, %104
  %indvars.iv58 = phi i64 [ 0, %.preheader32 ], [ %indvars.iv.next59, %104 ]
  %106 = getelementptr inbounds [101 x [101 x i32]], ptr @f, i64 0, i64 %indvars.iv63, i64 %indvars.iv58
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %.not29 = icmp slt i32 %107, %10
  br i1 %.not29, label %104, label %108

108:                                              ; preds = %105
  %109 = trunc i64 %indvars.iv63 to i32
  %110 = sub i32 %7, %109
  br label %..loopexit_crit_edge

..loopexit_crit_edge:                             ; preds = %104, %108
  %.1 = phi i32 [ %110, %108 ], [ -1, %104 ]
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %111 = icmp ult i64 %indvars.iv63, %12
  %112 = icmp eq i32 %.1, -1
  %113 = and i1 %111, %112
  br i1 %113, label %.preheader32, label %._crit_edge46, !llvm.loop !23

._crit_edge49:                                    ; preds = %._crit_edge46, %0
  ret i32 0
}

; 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) #2

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

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

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

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


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