; LLVM IR from viveakrt/Competitive-programing :: SPOJ/larmy.ll (Z7computeiiiiii)

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

@dp = external dso_local global [2 x [5001 x i32]], align 16
@in = external dso_local global [5001 x [5001 x i32]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7computeiiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
  %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
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !5
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = load i32, ptr %8, align 4, !tbaa !5
  %21 = icmp sgt i32 %19, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %6
  br label %154

23:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %26 = add nsw i32 %24, %25
  %27 = sdiv i32 %26, 2
  store i32 %27, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 1000000000, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %28 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %28, ptr %16, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %129, %23
  %30 = load i32, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %31 = load i32, ptr %13, align 4, !tbaa !5
  %32 = sub nsw i32 %31, 1
  store i32 %32, ptr %17, align 4, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp sle i32 %30, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br i1 %35, label %37, label %36

36:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %132

37:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %38 = load i32, ptr %12, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 1
  br i1 %39, label %40, label %81

40:                                               ; preds = %37
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %42 = xor i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [2 x [5001 x i32]], ptr @dp, i64 0, i64 %43
  %45 = load i32, ptr %16, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [5001 x i32], ptr %44, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = load i32, ptr %13, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %50
  %52 = load i32, ptr %13, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [5001 x i32], ptr %51, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %48, %55
  %57 = load i32, ptr %16, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %58
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [5001 x i32], ptr %59, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sub nsw i32 %56, %63
  %65 = load i32, ptr %13, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %66
  %68 = load i32, ptr %16, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [5001 x i32], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = sub nsw i32 %64, %71
  %73 = load i32, ptr %16, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %74
  %76 = load i32, ptr %16, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [5001 x i32], ptr %75, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = add nsw i32 %72, %79
  store i32 %80, ptr %18, align 4, !tbaa !5
  br label %121

81:                                               ; preds = %37
  %82 = load i32, ptr %16, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %83
  %85 = load i32, ptr %16, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [5001 x i32], ptr %84, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = load i32, ptr %13, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %90
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [5001 x i32], ptr %91, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %88, %95
  %97 = load i32, ptr %16, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %98
  %100 = load i32, ptr %13, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [5001 x i32], ptr %99, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = sub nsw i32 %96, %103
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %106
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [5001 x i32], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = sub nsw i32 %104, %111
  %113 = load i32, ptr %16, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %114
  %116 = load i32, ptr %16, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [5001 x i32], ptr %115, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = add nsw i32 %112, %119
  store i32 %120, ptr %18, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %81, %40
  %122 = load i32, ptr %18, align 4, !tbaa !5
  %123 = load i32, ptr %14, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %128

125:                                              ; preds = %121
  %126 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %126, ptr %14, align 4, !tbaa !5
  %127 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %127, ptr %15, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %125, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %16, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %16, align 4, !tbaa !5
  br label %29, !llvm.loop !9

132:                                              ; preds = %36
  %133 = load i32, ptr %14, align 4, !tbaa !5
  %134 = load i32, ptr %11, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [2 x [5001 x i32]], ptr @dp, i64 0, i64 %135
  %137 = load i32, ptr %13, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [5001 x i32], ptr %136, i64 0, i64 %138
  store i32 %133, ptr %139, align 4, !tbaa !5
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = sub nsw i32 %141, 1
  %143 = load i32, ptr %9, align 4, !tbaa !5
  %144 = load i32, ptr %15, align 4, !tbaa !5
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = load i32, ptr %12, align 4, !tbaa !5
  call void @_Z7computeiiiiii(i32 noundef %140, i32 noundef %142, i32 noundef %143, i32 noundef %144, i32 noundef %145, i32 noundef %146)
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  %149 = load i32, ptr %8, align 4, !tbaa !5
  %150 = load i32, ptr %15, align 4, !tbaa !5
  %151 = load i32, ptr %10, align 4, !tbaa !5
  %152 = load i32, ptr %11, align 4, !tbaa !5
  %153 = load i32, ptr %12, align 4, !tbaa !5
  call void @_Z7computeiiiiii(i32 noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %154

154:                                              ; preds = %132, %22
  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 @_ZSt3minIiERKT_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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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

@dp = external dso_local local_unnamed_addr global [2 x [5001 x i32]], align 16
@in = external dso_local local_unnamed_addr global [5001 x [5001 x i32]], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z7computeiiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 %3, ptr %7, align 4, !tbaa !5
  %9 = icmp sgt i32 %0, %1
  br i1 %9, label %58, label %10

10:                                               ; preds = %6
  %11 = add nsw i32 %1, %0
  %12 = sdiv i32 %11, 2
  %13 = add nsw i32 %12, -1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  store i32 %13, ptr %8, align 4, !tbaa !5
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %.not59 = icmp slt i32 %15, %2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br i1 %.not59, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %10
  %.pre = sext i32 %12 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %10
  %16 = icmp sgt i32 %5, 1
  %17 = sext i32 %12 to i64
  %18 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %17, i64 %17
  %19 = xor i32 %4, 1
  %20 = sext i32 %19 to i64
  %21 = sext i32 %2 to i64
  br i1 %16, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %.lr.ph.split.us ], [ %21, %.lr.ph ]
  %.04861.us = phi i32 [ %spec.select53.us, %.lr.ph.split.us ], [ 1, %.lr.ph ]
  %.04960.us = phi i32 [ %spec.select.us, %.lr.ph.split.us ], [ 1000000000, %.lr.ph ]
  %22 = getelementptr inbounds [2 x [5001 x i32]], ptr @dp, i64 0, i64 %20, i64 %indvars.iv69
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = load i32, ptr %18, align 4, !tbaa !5
  %25 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %indvars.iv69, i64 %17
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %17, i64 %indvars.iv69
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %indvars.iv69, i64 %indvars.iv69
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %.neg58.us = add i32 %24, %23
  %31 = add i32 %26, %28
  %32 = sub i32 %.neg58.us, %31
  %33 = add nsw i32 %32, %30
  %34 = icmp slt i32 %33, %.04960.us
  %spec.select.us = call i32 @llvm.smin.i32(i32 %33, i32 %.04960.us)
  %35 = trunc nsw i64 %indvars.iv69 to i32
  %spec.select53.us = select i1 %34, i32 %35, i32 %.04861.us
  %indvars.iv.next70 = add nsw i64 %indvars.iv69, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  store i32 %13, ptr %8, align 4, !tbaa !5
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %.not.us.not = icmp slt i64 %indvars.iv69, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br i1 %.not.us.not, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %17, %.lr.ph.split.us ], [ %17, %.lr.ph.split ]
  %.049.lcssa = phi i32 [ 1000000000, %.._crit_edge_crit_edge ], [ %spec.select.us, %.lr.ph.split.us ], [ %spec.select, %.lr.ph.split ]
  %.048.lcssa = phi i32 [ 1, %.._crit_edge_crit_edge ], [ %spec.select53.us, %.lr.ph.split.us ], [ %spec.select53, %.lr.ph.split ]
  %39 = sext i32 %4 to i64
  %40 = getelementptr inbounds [2 x [5001 x i32]], ptr @dp, i64 0, i64 %39, i64 %.pre-phi
  store i32 %.049.lcssa, ptr %40, align 4, !tbaa !5
  call void @_Z7computeiiiiii(i32 noundef %0, i32 noundef %13, i32 noundef %2, i32 noundef %.048.lcssa, i32 noundef %4, i32 noundef %5)
  %41 = add nsw i32 %12, 1
  %42 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z7computeiiiiii(i32 noundef %41, i32 noundef %1, i32 noundef %.048.lcssa, i32 noundef %42, i32 noundef %4, i32 noundef %5)
  br label %58

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split ], [ %21, %.lr.ph ]
  %.04861 = phi i32 [ %spec.select53, %.lr.ph.split ], [ 1, %.lr.ph ]
  %.04960 = phi i32 [ %spec.select, %.lr.ph.split ], [ 1000000000, %.lr.ph ]
  %43 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %indvars.iv, i64 %indvars.iv
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = load i32, ptr %18, align 4, !tbaa !5
  %46 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %indvars.iv, i64 %17
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = getelementptr inbounds [5001 x [5001 x i32]], ptr @in, i64 0, i64 %17, i64 %indvars.iv
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %factor = shl i32 %44, 1
  %50 = add i32 %factor, %45
  %51 = add i32 %47, %49
  %52 = sub i32 %50, %51
  %53 = icmp slt i32 %52, %.04960
  %spec.select = call i32 @llvm.smin.i32(i32 %52, i32 %.04960)
  %54 = trunc nsw i64 %indvars.iv to i32
  %spec.select53 = select i1 %53, i32 %54, i32 %.04861
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  store i32 %13, ptr %8, align 4, !tbaa !5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %.not.not = icmp slt i64 %indvars.iv, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br i1 %.not.not, label %.lr.ph.split, label %._crit_edge, !llvm.loop !9

58:                                               ; preds = %6, %._crit_edge
  ret void
}

; 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 @_ZSt3minIiERKT_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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}


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