; LLVM IR from tum-i4/obfuscation-benchmarks :: basic-algorithms (minmaxarray)

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

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [10 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp slt i32 %10, 11
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  br label %87

13:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %31, %13
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %34

18:                                               ; preds = %14
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds ptr, ptr %19, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 0
  %25 = load i8, ptr %24, align 1, !tbaa !11
  %26 = sext i8 %25 to i32
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = sub nsw i32 %27, 1
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %29
  store i32 %26, ptr %30, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %18
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %7, align 4, !tbaa !5
  br label %14, !llvm.loop !12

34:                                               ; preds = %14
  %35 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %36 = load i32, ptr %35, align 16, !tbaa !5
  store i32 %36, ptr %8, align 4, !tbaa !5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %55, %34
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %42, label %58

42:                                               ; preds = %37
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = icmp slt i32 %43, %47
  br i1 %48, label %49, label %54

49:                                               ; preds = %42
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  store i32 %53, ptr %8, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %49, %42
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %7, align 4, !tbaa !5
  br label %37, !llvm.loop !14

58:                                               ; preds = %37
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %59)
  %61 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %62 = load i32, ptr %61, align 16, !tbaa !5
  store i32 %62, ptr %9, align 4, !tbaa !5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %81, %58
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sub nsw i32 %65, 1
  %67 = icmp slt i32 %64, %66
  br i1 %67, label %68, label %84

68:                                               ; preds = %63
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp sgt i32 %69, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %68
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  store i32 %79, ptr %9, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %75, %68
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %7, align 4, !tbaa !5
  br label %63, !llvm.loop !15

84:                                               ; preds = %63
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %85)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #3
  br label %87

87:                                               ; preds = %84, %12
  %88 = load i32, ptr %3, align 4
  ret i32 %88
}

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

declare i32 @printf(ptr noundef, ...) #2

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [10 x i32], align 16
  %4 = icmp slt i32 %0, 11
  br i1 %4, label %58, label %5

5:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #4
  %wide.trip.count = zext nneg i32 %0 to i64
  %6 = add nsw i64 %wide.trip.count, -1
  %7 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %6, 3
  %8 = icmp ult i64 %7, 3
  br i1 %8, label %.lr.ph.preheader.unr-lcssa, label %.new

.new:                                             ; preds = %5
  %unroll_iter = and i64 %6, -4
  %invariant.gep = getelementptr inbounds i8, ptr %1, i64 8
  %invariant.gep87 = getelementptr inbounds i8, ptr %1, i64 16
  %invariant.gep89 = getelementptr inbounds i8, ptr %1, i64 24
  br label %9

9:                                                ; preds = %9, %.new
  %indvars.iv = phi i64 [ 1, %.new ], [ %indvars.iv.next.3, %9 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.3, %9 ]
  %10 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = load i8, ptr %11, align 1, !tbaa !9
  %13 = sext i8 %12 to i32
  %14 = add nsw i64 %indvars.iv, -1
  %15 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %14
  store i32 %13, ptr %15, align 4, !tbaa !10
  %gep = getelementptr inbounds ptr, ptr %invariant.gep, i64 %indvars.iv
  %16 = load ptr, ptr %gep, align 8, !tbaa !5
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = sext i8 %17 to i32
  %19 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv
  store i32 %18, ptr %19, align 4, !tbaa !10
  %gep88 = getelementptr inbounds ptr, ptr %invariant.gep87, i64 %indvars.iv
  %20 = load ptr, ptr %gep88, align 8, !tbaa !5
  %21 = load i8, ptr %20, align 1, !tbaa !9
  %22 = sext i8 %21 to i32
  %23 = add nuw nsw i64 %indvars.iv, 1
  %24 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %23
  store i32 %22, ptr %24, align 4, !tbaa !10
  %gep90 = getelementptr inbounds ptr, ptr %invariant.gep89, i64 %indvars.iv
  %25 = load ptr, ptr %gep90, align 8, !tbaa !5
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = sext i8 %26 to i32
  %28 = add nuw nsw i64 %indvars.iv, 2
  %29 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %28
  store i32 %27, ptr %29, align 4, !tbaa !10
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add nuw nsw i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.lr.ph.preheader.unr-lcssa, label %9, !llvm.loop !12

.lr.ph.preheader.unr-lcssa:                       ; preds = %9, %5
  %indvars.iv.unr = phi i64 [ 1, %5 ], [ %indvars.iv.next.3, %9 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.lr.ph.preheader.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.lr.ph.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.lr.ph.preheader.unr-lcssa ]
  %30 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv.epil
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = sext i8 %32 to i32
  %34 = add nsw i64 %indvars.iv.epil, -1
  %35 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %34
  store i32 %33, ptr %35, align 4, !tbaa !10
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.lr.ph.preheader, label %.epil.preheader, !llvm.loop !14

.lr.ph.preheader:                                 ; preds = %.epil.preheader, %.lr.ph.preheader.unr-lcssa
  %36 = load i32, ptr %3, align 16, !tbaa !10
  %37 = add nsw i32 %0, -1
  %wide.trip.count45 = zext i32 %37 to i64
  %38 = add nsw i64 %wide.trip.count45, -1
  %min.iters.check = icmp ult i64 %38, 8
  br i1 %min.iters.check, label %.lr.ph.preheader78, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %38, -8
  %ind.end = or disjoint i64 %n.vec, 1
  %minmax.ident.splatinsert = insertelement <4 x i32> poison, i32 %36, i64 0
  %minmax.ident.splat = shufflevector <4 x i32> %minmax.ident.splatinsert, <4 x i32> poison, <4 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 <4 x i32> [ %minmax.ident.splat, %vector.ph ], [ %41, %vector.body ]
  %vec.phi52 = phi <4 x i32> [ %minmax.ident.splat, %vector.ph ], [ %42, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %39 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %wide.load = load <4 x i32>, ptr %39, align 4, !tbaa !10
  %wide.load53 = load <4 x i32>, ptr %40, align 4, !tbaa !10
  %41 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %vec.phi, <4 x i32> %wide.load)
  %42 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %vec.phi52, <4 x i32> %wide.load53)
  %index.next = add nuw i64 %index, 8
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %rdx.minmax = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %41, <4 x i32> %42)
  %44 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax)
  %cmp.n = icmp eq i64 %38, %n.vec
  br i1 %cmp.n, label %.lr.ph38.preheader, label %.lr.ph.preheader78

.lr.ph.preheader78:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv42.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.02133.ph = phi i32 [ %36, %.lr.ph.preheader ], [ %44, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader78, %.lr.ph
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %.lr.ph ], [ %indvars.iv42.ph, %.lr.ph.preheader78 ]
  %.02133 = phi i32 [ %spec.select, %.lr.ph ], [ %.02133.ph, %.lr.ph.preheader78 ]
  %45 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv42
  %46 = load i32, ptr %45, align 4, !tbaa !10
  %spec.select = tail call i32 @llvm.smax.i32(i32 %.02133, i32 %46)
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %exitcond46.not = icmp eq i64 %indvars.iv.next43, %wide.trip.count45
  br i1 %exitcond46.not, label %.lr.ph38.preheader, label %.lr.ph, !llvm.loop !19

.lr.ph38.preheader:                               ; preds = %.lr.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %44, %middle.block ], [ %spec.select, %.lr.ph ]
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %spec.select.lcssa)
  %smax = tail call i32 @llvm.smax.i32(i32 %37, i32 2)
  %wide.trip.count50 = zext nneg i32 %smax to i64
  %48 = add nsw i64 %wide.trip.count50, -1
  %n.vec59 = and i64 %48, -8
  %ind.end60 = or disjoint i64 %n.vec59, 1
  %minmax.ident.splatinsert66 = insertelement <4 x i32> poison, i32 %36, i64 0
  %minmax.ident.splat67 = shufflevector <4 x i32> %minmax.ident.splatinsert66, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body62

vector.body62:                                    ; preds = %vector.body62, %.lr.ph38.preheader
  %index63 = phi i64 [ 0, %.lr.ph38.preheader ], [ %index.next71, %vector.body62 ]
  %vec.phi64 = phi <4 x i32> [ %minmax.ident.splat67, %.lr.ph38.preheader ], [ %51, %vector.body62 ]
  %vec.phi65 = phi <4 x i32> [ %minmax.ident.splat67, %.lr.ph38.preheader ], [ %52, %vector.body62 ]
  %offset.idx68 = or disjoint i64 %index63, 1
  %49 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx68
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %wide.load69 = load <4 x i32>, ptr %49, align 4, !tbaa !10
  %wide.load70 = load <4 x i32>, ptr %50, align 4, !tbaa !10
  %51 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %vec.phi64, <4 x i32> %wide.load69)
  %52 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %vec.phi65, <4 x i32> %wide.load70)
  %index.next71 = add nuw i64 %index63, 8
  %53 = icmp eq i64 %index.next71, %n.vec59
  br i1 %53, label %middle.block54, label %vector.body62, !llvm.loop !20

middle.block54:                                   ; preds = %vector.body62
  %rdx.minmax72 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %51, <4 x i32> %52)
  %54 = tail call i32 @llvm.vector.reduce.smin.v4i32(<4 x i32> %rdx.minmax72)
  %cmp.n73 = icmp eq i64 %48, %n.vec59
  br i1 %cmp.n73, label %._crit_edge39, label %.lr.ph38

.lr.ph38:                                         ; preds = %middle.block54, %.lr.ph38
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %.lr.ph38 ], [ %ind.end60, %middle.block54 ]
  %.036 = phi i32 [ %spec.select30, %.lr.ph38 ], [ %54, %middle.block54 ]
  %55 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv47
  %56 = load i32, ptr %55, align 4, !tbaa !10
  %spec.select30 = tail call i32 @llvm.smin.i32(i32 %.036, i32 %56)
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next48, %wide.trip.count50
  br i1 %exitcond51.not, label %._crit_edge39, label %.lr.ph38, !llvm.loop !21

._crit_edge39:                                    ; preds = %.lr.ph38, %middle.block54
  %spec.select30.lcssa = phi i32 [ %54, %middle.block54 ], [ %spec.select30, %.lr.ph38 ]
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %spec.select30.lcssa)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #4
  br label %58

58:                                               ; preds = %2, %._crit_edge39
  %.025 = phi i32 [ 0, %._crit_edge39 ], [ 1, %2 ]
  ret i32 %.025
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smax.v4i32(<4 x i32>, <4 x i32>) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v4i32(<4 x i32>) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v4i32(<4 x i32>) #3

attributes #0 = { nofree 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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !13, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !13, !18, !17}
!20 = distinct !{!20, !13, !17, !18}
!21 = distinct !{!21, !13, !18, !17}


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