; LLVM IR from eyangch/competitive-programming :: Codeforces/1601/c.ll (Z2dcxxxx)

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

@A = external dso_local global [1000000 x i64], align 16
@B = external dso_local global [1000000 x i64], align 16
@L = external dso_local global [1000000 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z2dcxxxx(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !5
  %16 = load i64, ptr %7, align 8, !tbaa !5
  %17 = load i64, ptr %8, align 8, !tbaa !5
  %18 = icmp sgt i64 %16, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %4
  br label %106

20:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %22 = load i64, ptr %21, align 8, !tbaa !5
  store i64 %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %23 = load i64, ptr %7, align 8, !tbaa !5
  %24 = load i64, ptr %8, align 8, !tbaa !5
  %25 = add nsw i64 %23, %24
  %26 = sdiv i64 %25, 2
  store i64 %26, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %27 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %27, ptr %12, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %45, %20
  %29 = load i64, ptr %12, align 8, !tbaa !5
  %30 = load i64, ptr %6, align 8, !tbaa !5
  %31 = icmp sle i64 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %48

33:                                               ; preds = %28
  %34 = load i64, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %37 = load i64, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds [1000000 x i64], ptr @B, i64 0, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = icmp slt i64 %36, %39
  br i1 %40, label %41, label %44

41:                                               ; preds = %33
  %42 = load i64, ptr %11, align 8, !tbaa !5
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr %11, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %41, %33
  br label %45

45:                                               ; preds = %44
  %46 = load i64, ptr %12, align 8, !tbaa !5
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %12, align 8, !tbaa !5
  br label %28, !llvm.loop !9

48:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %49 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %49, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %50 = load i64, ptr %5, align 8, !tbaa !5
  %51 = sub nsw i64 %50, 1
  store i64 %51, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %52 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %52, ptr %15, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %88, %48
  %54 = load i64, ptr %15, align 8, !tbaa !5
  %55 = load i64, ptr %6, align 8, !tbaa !5
  %56 = icmp sle i64 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %91

58:                                               ; preds = %53
  %59 = load i64, ptr %15, align 8, !tbaa !5
  %60 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = load i64, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds [1000000 x i64], ptr @B, i64 0, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = icmp slt i64 %61, %64
  br i1 %65, label %66, label %69

66:                                               ; preds = %58
  %67 = load i64, ptr %11, align 8, !tbaa !5
  %68 = add nsw i64 %67, -1
  store i64 %68, ptr %11, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %66, %58
  %70 = load i64, ptr %15, align 8, !tbaa !5
  %71 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %73 = load i64, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds [1000000 x i64], ptr @B, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = icmp sgt i64 %72, %75
  br i1 %76, label %77, label %80

77:                                               ; preds = %69
  %78 = load i64, ptr %11, align 8, !tbaa !5
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %11, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %77, %69
  %81 = load i64, ptr %11, align 8, !tbaa !5
  %82 = load i64, ptr %13, align 8, !tbaa !5
  %83 = icmp slt i64 %81, %82
  br i1 %83, label %84, label %87

84:                                               ; preds = %80
  %85 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %85, ptr %13, align 8, !tbaa !5
  %86 = load i64, ptr %15, align 8, !tbaa !5
  store i64 %86, ptr %14, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %84, %80
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %15, align 8, !tbaa !5
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %15, align 8, !tbaa !5
  br label %53, !llvm.loop !11

91:                                               ; preds = %57
  %92 = load i64, ptr %14, align 8, !tbaa !5
  %93 = load i64, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds [1000000 x i64], ptr @L, i64 0, i64 %93
  store i64 %92, ptr %94, align 8, !tbaa !5
  %95 = load i64, ptr %5, align 8, !tbaa !5
  %96 = load i64, ptr %14, align 8, !tbaa !5
  %97 = load i64, ptr %7, align 8, !tbaa !5
  %98 = load i64, ptr %10, align 8, !tbaa !5
  %99 = sub nsw i64 %98, 1
  call void @_Z2dcxxxx(i64 noundef %95, i64 noundef %96, i64 noundef %97, i64 noundef %99)
  %100 = load i64, ptr %14, align 8, !tbaa !5
  %101 = add nsw i64 %100, 1
  %102 = load i64, ptr %6, align 8, !tbaa !5
  %103 = load i64, ptr %10, align 8, !tbaa !5
  %104 = add nsw i64 %103, 1
  %105 = load i64, ptr %8, align 8, !tbaa !5
  call void @_Z2dcxxxx(i64 noundef %101, i64 noundef %102, i64 noundef %104, i64 noundef %105)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %106

106:                                              ; preds = %91, %19
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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


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

@A = external dso_local local_unnamed_addr global [1000000 x i64], align 16
@B = external dso_local local_unnamed_addr global [1000000 x i64], align 16
@L = external dso_local local_unnamed_addr global [1000000 x i64], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z2dcxxxx(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  %7 = icmp sgt i64 %2, %3
  br i1 %7, label %65, label %8

8:                                                ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  store i64 0, ptr %6, align 8, !tbaa !5
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %10 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %10, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %11 = add nsw i64 %3, %2
  %12 = sdiv i64 %11, 2
  %.not44 = icmp sgt i64 %10, %1
  br i1 %.not44, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %8
  %13 = add nsw i64 %10, -1
  br label %._crit_edge54

.lr.ph:                                           ; preds = %8
  %14 = getelementptr inbounds [1000000 x i64], ptr @B, i64 0, i64 %12
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = add i64 %1, 1
  %17 = sub i64 %16, %10
  %min.iters.check = icmp ult i64 %17, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %.03646.ph = phi i64 [ %10, %.lr.ph ], [ %ind.end, %middle.block ]
  %.03745.ph = phi i64 [ 0, %.lr.ph ], [ %27, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %17, -4
  %ind.end = add i64 %10, %n.vec
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %15, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %24, %vector.body ]
  %vec.phi58 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %25, %vector.body ]
  %offset.idx = add i64 %10, %index
  %18 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %offset.idx
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %wide.load = load <2 x i64>, ptr %18, align 8, !tbaa !5
  %wide.load59 = load <2 x i64>, ptr %19, align 8, !tbaa !5
  %20 = icmp slt <2 x i64> %wide.load, %broadcast.splat
  %21 = icmp slt <2 x i64> %wide.load59, %broadcast.splat
  %22 = zext <2 x i1> %20 to <2 x i64>
  %23 = zext <2 x i1> %21 to <2 x i64>
  %24 = add <2 x i64> %vec.phi, %22
  %25 = add <2 x i64> %vec.phi58, %23
  %index.next = add nuw i64 %index, 4
  %26 = icmp eq i64 %index.next, %n.vec
  br i1 %26, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %25, %24
  %27 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %17, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block
  %spec.select.lcssa = phi i64 [ %27, %middle.block ], [ %spec.select, %scalar.ph ]
  %28 = add nsw i64 %10, -1
  br i1 %.not44, label %._crit_edge54, label %.lr.ph53

.lr.ph53:                                         ; preds = %._crit_edge
  %29 = getelementptr inbounds [1000000 x i64], ptr @B, i64 0, i64 %12
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %xtraiter = and i64 %17, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph53
  %31 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %10
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = icmp slt i64 %32, %30
  %34 = sext i1 %33 to i64
  %spec.select43.prol = add nsw i64 %spec.select.lcssa, %34
  %35 = icmp sgt i64 %32, %30
  %36 = zext i1 %35 to i64
  %.4.prol = add nsw i64 %spec.select43.prol, %36
  %37 = icmp slt i64 %.4.prol, %spec.select.lcssa
  %.135.prol = call i64 @llvm.smin.i64(i64 %.4.prol, i64 %spec.select.lcssa)
  %.1.prol = select i1 %37, i64 %10, i64 %28
  %38 = add i64 %10, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph53
  %.1.lcssa.unr = phi i64 [ poison, %.lr.ph53 ], [ %.1.prol, %.prol.loopexit.unr-lcssa ]
  %.051.unr = phi i64 [ %10, %.lr.ph53 ], [ %38, %.prol.loopexit.unr-lcssa ]
  %.03350.unr = phi i64 [ %28, %.lr.ph53 ], [ %.1.prol, %.prol.loopexit.unr-lcssa ]
  %.03449.unr = phi i64 [ %spec.select.lcssa, %.lr.ph53 ], [ %.135.prol, %.prol.loopexit.unr-lcssa ]
  %.248.unr = phi i64 [ %spec.select.lcssa, %.lr.ph53 ], [ %.4.prol, %.prol.loopexit.unr-lcssa ]
  %39 = icmp eq i64 %10, %1
  br i1 %39, label %._crit_edge54, label %.lr.ph53.new

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.03646 = phi i64 [ %44, %scalar.ph ], [ %.03646.ph, %scalar.ph.preheader ]
  %.03745 = phi i64 [ %spec.select, %scalar.ph ], [ %.03745.ph, %scalar.ph.preheader ]
  %40 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %.03646
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = icmp slt i64 %41, %15
  %43 = zext i1 %42 to i64
  %spec.select = add nuw nsw i64 %.03745, %43
  %44 = add i64 %.03646, 1
  %exitcond.not = icmp eq i64 %.03646, %1
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !13

._crit_edge54:                                    ; preds = %.prol.loopexit, %.lr.ph53.new, %._crit_edge.thread, %._crit_edge
  %.033.lcssa = phi i64 [ %28, %._crit_edge ], [ %13, %._crit_edge.thread ], [ %.1.lcssa.unr, %.prol.loopexit ], [ %.1.1, %.lr.ph53.new ]
  %45 = getelementptr inbounds [1000000 x i64], ptr @L, i64 0, i64 %12
  store i64 %.033.lcssa, ptr %45, align 8, !tbaa !5
  %46 = add nsw i64 %12, -1
  call void @_Z2dcxxxx(i64 noundef %10, i64 noundef %.033.lcssa, i64 noundef %2, i64 noundef %46)
  %47 = add nsw i64 %.033.lcssa, 1
  %48 = add nsw i64 %12, 1
  call void @_Z2dcxxxx(i64 noundef %47, i64 noundef %1, i64 noundef %48, i64 noundef %3)
  br label %65

.lr.ph53.new:                                     ; preds = %.prol.loopexit, %.lr.ph53.new
  %.051 = phi i64 [ %64, %.lr.ph53.new ], [ %.051.unr, %.prol.loopexit ]
  %.03350 = phi i64 [ %.1.1, %.lr.ph53.new ], [ %.03350.unr, %.prol.loopexit ]
  %.03449 = phi i64 [ %.135.1, %.lr.ph53.new ], [ %.03449.unr, %.prol.loopexit ]
  %.248 = phi i64 [ %.4.1, %.lr.ph53.new ], [ %.248.unr, %.prol.loopexit ]
  %49 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %.051
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = icmp slt i64 %50, %30
  %52 = sext i1 %51 to i64
  %spec.select43 = add nsw i64 %.248, %52
  %53 = icmp sgt i64 %50, %30
  %54 = zext i1 %53 to i64
  %.4 = add nsw i64 %spec.select43, %54
  %55 = icmp slt i64 %.4, %.03449
  %.135 = call i64 @llvm.smin.i64(i64 %.4, i64 %.03449)
  %.1 = select i1 %55, i64 %.051, i64 %.03350
  %56 = add i64 %.051, 1
  %57 = getelementptr inbounds [1000000 x i64], ptr @A, i64 0, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = icmp slt i64 %58, %30
  %60 = sext i1 %59 to i64
  %spec.select43.1 = add nsw i64 %.4, %60
  %61 = icmp sgt i64 %58, %30
  %62 = zext i1 %61 to i64
  %.4.1 = add nsw i64 %spec.select43.1, %62
  %63 = icmp slt i64 %.4.1, %.135
  %.135.1 = call i64 @llvm.smin.i64(i64 %.4.1, i64 %.135)
  %.1.1 = select i1 %63, i64 %56, i64 %.1
  %64 = add i64 %.051, 2
  %exitcond56.not.1 = icmp eq i64 %56, %1
  br i1 %exitcond56.not.1, label %._crit_edge54, label %.lr.ph53.new, !llvm.loop !14

65:                                               ; preds = %4, %._crit_edge54
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}


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