; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/1030_ARC036/C3.ll (Z8zero_oneii)

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

@K = external dso_local global i32, align 4
@dp = external dso_local global [310 x [2 x [310 x i64]]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8zero_oneii(i32 noundef %0, i32 noundef %1) #0 {
  %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
  %11 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  %14 = srem i32 %13, 2
  store i32 %14, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %62, %2
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = load i32, ptr @K, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %65

21:                                               ; preds = %15
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %23
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [2 x [310 x i64]], ptr %24, i64 0, i64 %26
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [310 x i64], ptr %27, i64 0, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !9
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %34
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [2 x [310 x i64]], ptr %35, i64 0, i64 %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  store i32 %40, ptr %8, align 4, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [310 x i64], ptr %38, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = add nsw i64 %45, %31
  store i64 %46, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %49
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [2 x [310 x i64]], ptr %50, i64 0, i64 %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sub nsw i32 %54, 1
  store i32 %55, ptr %10, align 4, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [310 x i64], ptr %53, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = srem i64 %60, 1000000007
  store i64 %61, ptr %59, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %62

62:                                               ; preds = %21
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %6, align 4, !tbaa !5
  br label %15, !llvm.loop !11

65:                                               ; preds = %20
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %67
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [2 x [310 x i64]], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr @K, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [310 x i64], ptr %71, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = sub nsw i64 1000000007, %75
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %79
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [2 x [310 x i64]], ptr %80, i64 0, i64 %82
  %84 = getelementptr inbounds [310 x i64], ptr %83, i64 0, i64 0
  %85 = load i64, ptr %84, align 16, !tbaa !9
  %86 = add nsw i64 %85, %76
  store i64 %86, ptr %84, align 16, !tbaa !9
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %89
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2 x [310 x i64]], ptr %90, i64 0, i64 %92
  %94 = getelementptr inbounds [310 x i64], ptr %93, i64 0, i64 0
  %95 = load i64, ptr %94, align 16, !tbaa !9
  %96 = srem i64 %95, 1000000007
  store i64 %96, ptr %94, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %139, %65
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = load i32, ptr @K, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %142

102:                                              ; preds = %97
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %104
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [2 x [310 x i64]], ptr %105, i64 0, i64 %107
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [310 x i64], ptr %108, i64 0, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = load i32, ptr %4, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %115
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [2 x [310 x i64]], ptr %116, i64 0, i64 %118
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [310 x i64], ptr %119, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = add nsw i64 %124, %112
  store i64 %125, ptr %123, align 8, !tbaa !9
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %128
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [2 x [310 x i64]], ptr %129, i64 0, i64 %131
  %133 = load i32, ptr %11, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [310 x i64], ptr %132, i64 0, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !9
  %138 = srem i64 %137, 1000000007
  store i64 %138, ptr %136, align 8, !tbaa !9
  br label %139

139:                                              ; preds = %102
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %11, align 4, !tbaa !5
  br label %97, !llvm.loop !13

142:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}


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

@K = external dso_local local_unnamed_addr global i32, align 4
@dp = external dso_local local_unnamed_addr global [310 x [2 x [310 x i64]]], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z8zero_oneii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = add nsw i32 %0, 1
  %8 = srem i32 %7, 2
  %9 = load i32, ptr @K, align 4, !tbaa !5
  %.not30 = icmp slt i32 %9, 0
  %.pre = sext i32 %1 to i64
  %.pre44 = add nsw i32 %1, 1
  %.pre46 = sext i32 %.pre44 to i64
  br i1 %.not30, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %2
  %.pre42 = sext i32 %9 to i64
  %.pre48 = sext i32 %0 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %2
  %10 = sext i32 %0 to i64
  br label %20

._crit_edge:                                      ; preds = %20, %.._crit_edge_crit_edge
  %.pre-phi49 = phi i64 [ %.pre48, %.._crit_edge_crit_edge ], [ %10, %20 ]
  %.pre-phi43 = phi i64 [ %.pre42, %.._crit_edge_crit_edge ], [ %38, %20 ]
  %.lcssa = phi i32 [ %9, %.._crit_edge_crit_edge ], [ %37, %20 ]
  %11 = sext i32 %8 to i64
  %12 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre, i64 %11, i64 %.pre-phi43
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre46, i64 %.pre-phi49
  %15 = load i64, ptr %14, align 16, !tbaa !9
  %reass.sub36 = sub i64 %15, %13
  %16 = add i64 %reass.sub36, 1000000007
  %17 = srem i64 %16, 1000000007
  store i64 %17, ptr %14, align 16, !tbaa !9
  %18 = icmp sgt i32 %.lcssa, 0
  br i1 %18, label %.lr.ph34.preheader, label %._crit_edge35

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

.lr.ph34.preheader.new:                           ; preds = %.lr.ph34.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph34

20:                                               ; preds = %.lr.ph, %20
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %20 ]
  %21 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre, i64 %10, i64 %indvars.iv
  %22 = load i64, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %23 = trunc i64 %indvars.iv to i32
  %24 = add i32 %23, -1
  store i32 %24, ptr %4, align 4, !tbaa !5
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre46, i64 %10, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = add nsw i64 %29, %22
  store i64 %30, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store i32 %24, ptr %6, align 4, !tbaa !5
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre46, i64 %10, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !9
  %36 = srem i64 %35, 1000000007
  store i64 %36, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr @K, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %.not.not = icmp slt i64 %indvars.iv, %38
  br i1 %.not.not, label %20, label %._crit_edge, !llvm.loop !11

._crit_edge35.loopexit.unr-lcssa:                 ; preds = %.lr.ph34, %.lr.ph34.preheader
  %indvars.iv39.unr = phi i64 [ 0, %.lr.ph34.preheader ], [ %indvars.iv.next40.1, %.lr.ph34 ]
  %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
  %39 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre, i64 %11, i64 %indvars.iv39.unr
  %40 = load i64, ptr %39, align 8, !tbaa !9
  %indvars.iv.next40.epil = add nuw nsw i64 %indvars.iv39.unr, 1
  %41 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre46, i64 %11, i64 %indvars.iv.next40.epil
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = add nsw i64 %42, %40
  %44 = srem i64 %43, 1000000007
  store i64 %44, ptr %41, align 8, !tbaa !9
  br label %._crit_edge35

._crit_edge35:                                    ; preds = %.lr.ph34.epil, %._crit_edge35.loopexit.unr-lcssa, %._crit_edge
  ret void

.lr.ph34:                                         ; preds = %.lr.ph34, %.lr.ph34.preheader.new
  %indvars.iv39 = phi i64 [ 0, %.lr.ph34.preheader.new ], [ %indvars.iv.next40.1, %.lr.ph34 ]
  %niter = phi i64 [ 0, %.lr.ph34.preheader.new ], [ %niter.next.1, %.lr.ph34 ]
  %45 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre, i64 %11, i64 %indvars.iv39
  %46 = load i64, ptr %45, align 16, !tbaa !9
  %indvars.iv.next40 = or disjoint i64 %indvars.iv39, 1
  %47 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre46, i64 %11, i64 %indvars.iv.next40
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = add nsw i64 %48, %46
  %50 = srem i64 %49, 1000000007
  store i64 %50, ptr %47, align 8, !tbaa !9
  %51 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre, i64 %11, i64 %indvars.iv.next40
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %indvars.iv.next40.1 = add nuw nsw i64 %indvars.iv39, 2
  %53 = getelementptr inbounds [310 x [2 x [310 x i64]]], ptr @dp, i64 0, i64 %.pre46, i64 %11, i64 %indvars.iv.next40.1
  %54 = load i64, ptr %53, align 16, !tbaa !9
  %55 = add nsw i64 %54, %52
  %56 = srem i64 %55, 1000000007
  store i64 %56, ptr %53, align 16, !tbaa !9
  %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 !13
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}


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