; LLVM IR from indygreg/python-zstandard :: zstd (zstd)

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

%struct.ZDICT_cover_params_t = type { i32, i32, i32, i32, double, i32, i32, %struct.ZDICT_params_t }
%struct.ZDICT_params_t = type { i32, i32, i32 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ZSTD_isError(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_compressBound(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @ZSTD_createCCtx() #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_freeCCtx(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_freeCDict(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @ZSTD_createCDict(ptr noundef, i64 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_compress_usingCDict(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @COVER_checkTotalCompressedSize(ptr noundef byval(%struct.ZDICT_cover_params_t) align 8 %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7) #1 {
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i64 %4, ptr %13, align 8, !tbaa !9
  store i64 %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store i64 %7, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 -1, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store i64 0, ptr %23, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %0, i32 0, i32 4
  %27 = load double, ptr %26, align 8, !tbaa !11
  %28 = fcmp olt double %27, 1.000000e+00
  br i1 %28, label %29, label %31

29:                                               ; preds = %8
  %30 = load i64, ptr %13, align 8, !tbaa !9
  br label %32

31:                                               ; preds = %8
  br label %32

32:                                               ; preds = %31, %29
  %33 = phi i64 [ %30, %29 ], [ 0, %31 ]
  store i64 %33, ptr %22, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %54, %32
  %35 = load i64, ptr %22, align 8, !tbaa !9
  %36 = load i64, ptr %14, align 8, !tbaa !9
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %38, label %57

38:                                               ; preds = %34
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = load i64, ptr %22, align 8, !tbaa !9
  %41 = getelementptr inbounds i64, ptr %39, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = load i64, ptr %23, align 8, !tbaa !9
  %44 = icmp ugt i64 %42, %43
  br i1 %44, label %45, label %50

45:                                               ; preds = %38
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load i64, ptr %22, align 8, !tbaa !9
  %48 = getelementptr inbounds i64, ptr %46, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !9
  br label %52

50:                                               ; preds = %38
  %51 = load i64, ptr %23, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %50, %45
  %53 = phi i64 [ %49, %45 ], [ %51, %50 ]
  store i64 %53, ptr %23, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %52
  %55 = load i64, ptr %22, align 8, !tbaa !9
  %56 = add i64 %55, 1
  store i64 %56, ptr %22, align 8, !tbaa !9
  br label %34, !llvm.loop !16

57:                                               ; preds = %34
  %58 = load i64, ptr %23, align 8, !tbaa !9
  %59 = call i64 @ZSTD_compressBound(i64 noundef %58)
  store i64 %59, ptr %21, align 8, !tbaa !9
  %60 = load i64, ptr %21, align 8, !tbaa !9
  %61 = call noalias ptr @malloc(i64 noundef %60) #5
  store ptr %61, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  %62 = call ptr @ZSTD_createCCtx()
  store ptr %62, ptr %18, align 8, !tbaa !5
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = load i64, ptr %16, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %0, i32 0, i32 7
  %66 = getelementptr inbounds %struct.ZDICT_params_t, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 8, !tbaa !18
  %68 = call ptr @ZSTD_createCDict(ptr noundef %63, i64 noundef %64, i32 noundef %67)
  store ptr %68, ptr %19, align 8, !tbaa !5
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %77

71:                                               ; preds = %57
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %77

74:                                               ; preds = %71
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %78, label %77

77:                                               ; preds = %74, %71, %57
  br label %124

78:                                               ; preds = %74
  %79 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %79, ptr %17, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %0, i32 0, i32 4
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fcmp olt double %81, 1.000000e+00
  br i1 %82, label %83, label %85

83:                                               ; preds = %78
  %84 = load i64, ptr %13, align 8, !tbaa !9
  br label %86

85:                                               ; preds = %78
  br label %86

86:                                               ; preds = %85, %83
  %87 = phi i64 [ %84, %83 ], [ 0, %85 ]
  store i64 %87, ptr %22, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %120, %86
  %89 = load i64, ptr %22, align 8, !tbaa !9
  %90 = load i64, ptr %14, align 8, !tbaa !9
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %92, label %123

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = load i64, ptr %21, align 8, !tbaa !9
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = load i64, ptr %22, align 8, !tbaa !9
  %99 = getelementptr inbounds i64, ptr %97, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %96, i64 %100
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load i64, ptr %22, align 8, !tbaa !9
  %104 = getelementptr inbounds i64, ptr %102, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = call i64 @ZSTD_compress_usingCDict(ptr noundef %93, ptr noundef %94, i64 noundef %95, ptr noundef %101, i64 noundef %105, ptr noundef %106)
  store i64 %107, ptr %24, align 8, !tbaa !9
  %108 = load i64, ptr %24, align 8, !tbaa !9
  %109 = call i32 @ZSTD_isError(i64 noundef %108)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %92
  %112 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %112, ptr %17, align 8, !tbaa !9
  store i32 5, ptr %25, align 4
  br label %117

113:                                              ; preds = %92
  %114 = load i64, ptr %24, align 8, !tbaa !9
  %115 = load i64, ptr %17, align 8, !tbaa !9
  %116 = add i64 %115, %114
  store i64 %116, ptr %17, align 8, !tbaa !9
  store i32 0, ptr %25, align 4
  br label %117

117:                                              ; preds = %113, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  %118 = load i32, ptr %25, align 4
  switch i32 %118, label %135 [
    i32 0, label %119
    i32 5, label %124
  ]

119:                                              ; preds = %117
  br label %120

120:                                              ; preds = %119
  %121 = load i64, ptr %22, align 8, !tbaa !9
  %122 = add i64 %121, 1
  store i64 %122, ptr %22, align 8, !tbaa !9
  br label %88, !llvm.loop !19

123:                                              ; preds = %88
  br label %124

124:                                              ; preds = %123, %117, %77
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = call i64 @ZSTD_freeCCtx(ptr noundef %125)
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = call i64 @ZSTD_freeCDict(ptr noundef %127)
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %133

131:                                              ; preds = %124
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %132) #4
  br label %133

133:                                              ; preds = %131, %124
  %134 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %134, ptr %9, align 8
  store i32 1, ptr %25, align 4
  br label %135

135:                                              ; preds = %133, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %136 = load i64, ptr %9, align 8
  ret i64 %136
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind allocsize(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 "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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !14, i64 16}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !13, i64 24, !13, i64 28, !15, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !13, i64 32}
!19 = distinct !{!19, !17}


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

%struct.ZDICT_cover_params_t = type { i32, i32, i32, i32, double, i32, i32, %struct.ZDICT_params_t }
%struct.ZDICT_params_t = type { i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local i32 @ZSTD_isError(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_compressBound(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @ZSTD_createCCtx() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_freeCCtx(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_freeCDict(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @ZSTD_createCDict(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @ZSTD_compress_usingCDict(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i64 @COVER_checkTotalCompressedSize(ptr nocapture noundef readonly byval(%struct.ZDICT_cover_params_t) align 8 %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7) local_unnamed_addr #0 {
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = fcmp olt double %10, 1.000000e+00
  %12 = select i1 %11, i64 %4, i64 0
  %13 = icmp uge i64 %12, %5
  br i1 %13, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %8
  %14 = sub i64 %5, %12
  %min.iters.check = icmp ult i64 %14, 4
  br i1 %min.iters.check, label %.lr.ph.preheader69, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %14, -4
  %ind.end = add i64 %12, %n.vec
  %15 = getelementptr i64, ptr %1, i64 %12
  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 ], [ %18, %vector.body ]
  %vec.phi67 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %19, %vector.body ]
  %16 = getelementptr i64, ptr %15, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %wide.load = load <2 x i64>, ptr %16, align 8, !tbaa !12
  %wide.load68 = load <2 x i64>, ptr %17, align 8, !tbaa !12
  %18 = tail call <2 x i64> @llvm.umax.v2i64(<2 x i64> %wide.load, <2 x i64> %vec.phi)
  %19 = tail call <2 x i64> @llvm.umax.v2i64(<2 x i64> %wide.load68, <2 x i64> %vec.phi67)
  %index.next = add nuw i64 %index, 4
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %rdx.minmax = tail call <2 x i64> @llvm.umax.v2i64(<2 x i64> %18, <2 x i64> %19)
  %21 = tail call i64 @llvm.vector.reduce.umax.v2i64(<2 x i64> %rdx.minmax)
  %cmp.n = icmp eq i64 %14, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader69

.lr.ph.preheader69:                               ; preds = %middle.block, %.lr.ph.preheader
  %.04556.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %21, %middle.block ]
  %.04655.ph = phi i64 [ %12, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader69, %.lr.ph
  %.04556 = phi i64 [ %..045, %.lr.ph ], [ %.04556.ph, %.lr.ph.preheader69 ]
  %.04655 = phi i64 [ %24, %.lr.ph ], [ %.04655.ph, %.lr.ph.preheader69 ]
  %22 = getelementptr inbounds i64, ptr %1, i64 %.04655
  %23 = load i64, ptr %22, align 8, !tbaa !12
  %..045 = tail call i64 @llvm.umax.i64(i64 %23, i64 %.04556)
  %24 = add nuw i64 %.04655, 1
  %exitcond.not = icmp eq i64 %24, %5
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %8
  %.045.lcssa = phi i64 [ 0, %8 ], [ %21, %middle.block ], [ %..045, %.lr.ph ]
  %25 = tail call i64 @ZSTD_compressBound(i64 noundef %.045.lcssa)
  %26 = tail call noalias ptr @malloc(i64 noundef %25) #4
  %27 = tail call ptr @ZSTD_createCCtx()
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = load i32, ptr %28, align 8, !tbaa !19
  %30 = tail call ptr @ZSTD_createCDict(ptr noundef %6, i64 noundef %7, i32 noundef %29)
  %31 = icmp eq ptr %26, null
  %32 = icmp eq ptr %27, null
  %or.cond.not = select i1 %31, i1 true, i1 %32
  %33 = icmp eq ptr %30, null
  %or.cond3 = select i1 %or.cond.not, i1 true, i1 %33
  %brmerge = or i1 %or.cond3, %13
  %.mux = select i1 %or.cond3, i64 -1, i64 %7
  br i1 %brmerge, label %.loopexit, label %.lr.ph59

.lr.ph59:                                         ; preds = %._crit_edge, %41
  %.158 = phi i64 [ %43, %41 ], [ %12, %._crit_edge ]
  %.04757 = phi i64 [ %42, %41 ], [ %7, %._crit_edge ]
  %34 = getelementptr inbounds i64, ptr %3, i64 %.158
  %35 = load i64, ptr %34, align 8, !tbaa !12
  %36 = getelementptr inbounds i8, ptr %2, i64 %35
  %37 = getelementptr inbounds i64, ptr %1, i64 %.158
  %38 = load i64, ptr %37, align 8, !tbaa !12
  %39 = tail call i64 @ZSTD_compress_usingCDict(ptr noundef nonnull %27, ptr noundef nonnull %26, i64 noundef %25, ptr noundef %36, i64 noundef %38, ptr noundef nonnull %30)
  %40 = tail call i32 @ZSTD_isError(i64 noundef %39)
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %41, label %.loopexit

41:                                               ; preds = %.lr.ph59
  %42 = add i64 %39, %.04757
  %43 = add i64 %.158, 1
  %exitcond63.not = icmp eq i64 %43, %5
  br i1 %exitcond63.not, label %.loopexit, label %.lr.ph59, !llvm.loop !20

.loopexit:                                        ; preds = %41, %.lr.ph59, %._crit_edge
  %.2 = phi i64 [ %.mux, %._crit_edge ], [ %42, %41 ], [ %39, %.lr.ph59 ]
  %44 = tail call i64 @ZSTD_freeCCtx(ptr noundef %27)
  %45 = tail call i64 @ZSTD_freeCDict(ptr noundef %30)
  br i1 %31, label %47, label %46

46:                                               ; preds = %.loopexit
  tail call void @free(ptr noundef nonnull %26) #5
  br label %47

47:                                               ; preds = %.loopexit, %46
  ret i64 %.2
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.umax.v2i64(<2 x i64>, <2 x i64>) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.umax.v2i64(<2 x i64>) #3

attributes #0 = { 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0) }
attributes #5 = { 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, !10, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24, !7, i64 28, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!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, !17, !16}
!19 = !{!6, !7, i64 32}
!20 = distinct !{!20, !15}


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