; LLVM IR from intel/x86-simd-sort :: example (object_qsort)

; 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.Point = type { i32, i32, float, i64 }

; Function Attrs: nounwind uwtable
define dso_local void @object_qsort(ptr noundef %0, i64 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.Point, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %13 = load i64, ptr %4, align 8, !tbaa !9
  %14 = mul i64 %13, 8
  %15 = call noalias ptr @malloc(i64 noundef %14) #7
  store ptr %15, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %16 = load i64, ptr %4, align 8, !tbaa !9
  %17 = mul i64 %16, 8
  %18 = call noalias ptr @malloc(i64 noundef %17) #7
  store ptr %18, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %19 = load i64, ptr %4, align 8, !tbaa !9
  %20 = mul i64 %19, 1
  %21 = call noalias ptr @malloc(i64 noundef %20) #7
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %43, %2
  %23 = load i64, ptr %8, align 8, !tbaa !9
  %24 = load i64, ptr %4, align 8, !tbaa !9
  %25 = icmp ult i64 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %46

27:                                               ; preds = %22
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load i64, ptr %8, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.Point, ptr %28, i64 %29
  %31 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 3
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load i64, ptr %8, align 8, !tbaa !9
  %35 = getelementptr inbounds i64, ptr %33, i64 %34
  store i64 %32, ptr %35, align 8, !tbaa !9
  %36 = load i64, ptr %8, align 8, !tbaa !9
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = getelementptr inbounds i64, ptr %37, i64 %38
  store i64 %36, ptr %39, align 8, !tbaa !9
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %40, i64 %41
  store i8 0, ptr %42, align 1, !tbaa !15
  br label %43

43:                                               ; preds = %27
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = add i64 %44, 1
  store i64 %45, ptr %8, align 8, !tbaa !9
  br label %22, !llvm.loop !17

46:                                               ; preds = %26
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load i64, ptr %4, align 8, !tbaa !9
  call void @keyvalue_qsort_sizet_sizet(ptr noundef %47, ptr noundef %48, i64 noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %97, %46
  %51 = load i64, ptr %9, align 8, !tbaa !9
  %52 = load i64, ptr %4, align 8, !tbaa !9
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %100

55:                                               ; preds = %50
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %56, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !15, !range !19, !noundef !20
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  br label %97

62:                                               ; preds = %55
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load i64, ptr %9, align 8, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %63, i64 %64
  store i8 1, ptr %65, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %66 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %66, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = getelementptr inbounds i64, ptr %67, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !9
  store i64 %70, ptr %11, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %75, %62
  %72 = load i64, ptr %9, align 8, !tbaa !9
  %73 = load i64, ptr %11, align 8, !tbaa !9
  %74 = icmp ne i64 %72, %73
  br i1 %74, label %75, label %96

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = load i64, ptr %10, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.Point, ptr %76, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %78, i64 24, i1 false), !tbaa.struct !21
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = load i64, ptr %10, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.Point, ptr %79, i64 %80
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = load i64, ptr %11, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.Point, ptr %82, i64 %83
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 8 %84, i64 24, i1 false), !tbaa.struct !21
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load i64, ptr %11, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.Point, ptr %85, i64 %86
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load i64, ptr %11, align 8, !tbaa !9
  %90 = getelementptr inbounds i8, ptr %88, i64 %89
  store i8 1, ptr %90, align 1, !tbaa !15
  %91 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %91, ptr %10, align 8, !tbaa !9
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = load i64, ptr %11, align 8, !tbaa !9
  %94 = getelementptr inbounds i64, ptr %92, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !9
  store i64 %95, ptr %11, align 8, !tbaa !9
  br label %71, !llvm.loop !24

96:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %97

97:                                               ; preds = %96, %61
  %98 = load i64, ptr %9, align 8, !tbaa !9
  %99 = add i64 %98, 1
  store i64 %99, ptr %9, align 8, !tbaa !9
  br label %50, !llvm.loop !25

100:                                              ; preds = %54
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %101) #6
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %102) #6
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %103) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

declare void @keyvalue_qsort_sizet_sizet(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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, !10, i64 16}
!12 = !{!"Point", !13, i64 0, !13, i64 4, !14, i64 8, !10, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22, i64 8, i64 4, !23, i64 16, i64 8, !9}
!22 = !{!13, !13, i64 0}
!23 = !{!14, !14, i64 0}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}


; 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.Point = type { i32, i32, float, i64 }

; Function Attrs: nounwind uwtable
define dso_local void @object_qsort(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.Point, align 8
  %4 = shl i64 %1, 3
  %5 = tail call noalias ptr @malloc(i64 noundef %4) #7
  %6 = tail call noalias ptr @malloc(i64 noundef %4) #7
  %7 = tail call noalias ptr @malloc(i64 noundef %1) #7
  %.not62 = icmp eq i64 %1, 0
  br i1 %.not62, label %._crit_edge.thread, label %.lr.ph.preheader

._crit_edge.thread:                               ; preds = %2
  tail call void @keyvalue_qsort_sizet_sizet(ptr noundef %5, ptr noundef %6, i64 noundef %1) #8
  br label %._crit_edge61

.lr.ph.preheader:                                 ; preds = %2
  tail call void @llvm.memset.p0.i64(ptr align 1 %7, i8 0, i64 %1, i1 false), !tbaa !5
  %min.iters.check = icmp ult i64 %1, 4
  br i1 %min.iters.check, label %.lr.ph.preheader66, label %vector.ph

.lr.ph.preheader66:                               ; preds = %middle.block, %.lr.ph.preheader
  %.04749.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %1, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i64> [ <i64 0, i64 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i64> %vec.ind, <i64 2, i64 2>
  %8 = or disjoint i64 %index, 1
  %9 = or disjoint i64 %index, 2
  %10 = or disjoint i64 %index, 3
  %11 = getelementptr inbounds %struct.Point, ptr %0, i64 %index, i32 3
  %12 = getelementptr inbounds %struct.Point, ptr %0, i64 %8, i32 3
  %13 = getelementptr inbounds %struct.Point, ptr %0, i64 %9, i32 3
  %14 = getelementptr inbounds %struct.Point, ptr %0, i64 %10, i32 3
  %15 = load i64, ptr %11, align 8, !tbaa !9
  %16 = load i64, ptr %12, align 8, !tbaa !9
  %17 = insertelement <2 x i64> poison, i64 %15, i64 0
  %18 = insertelement <2 x i64> %17, i64 %16, i64 1
  %19 = load i64, ptr %13, align 8, !tbaa !9
  %20 = load i64, ptr %14, align 8, !tbaa !9
  %21 = insertelement <2 x i64> poison, i64 %19, i64 0
  %22 = insertelement <2 x i64> %21, i64 %20, i64 1
  %23 = getelementptr inbounds i64, ptr %5, i64 %index
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  store <2 x i64> %18, ptr %23, align 8, !tbaa !14
  store <2 x i64> %22, ptr %24, align 8, !tbaa !14
  %25 = getelementptr inbounds i64, ptr %6, i64 %index
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <2 x i64> %vec.ind, ptr %25, align 8, !tbaa !14
  store <2 x i64> %step.add, ptr %26, align 8, !tbaa !14
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i64> %vec.ind, <i64 4, i64 4>
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %1
  br i1 %cmp.n, label %.lr.ph60.preheader, label %.lr.ph.preheader66

.lr.ph60.preheader:                               ; preds = %.lr.ph, %middle.block
  tail call void @keyvalue_qsort_sizet_sizet(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %1) #8
  br label %.lr.ph60

.lr.ph:                                           ; preds = %.lr.ph.preheader66, %.lr.ph
  %.04749 = phi i64 [ %32, %.lr.ph ], [ %.04749.ph, %.lr.ph.preheader66 ]
  %28 = getelementptr inbounds %struct.Point, ptr %0, i64 %.04749, i32 3
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds i64, ptr %5, i64 %.04749
  store i64 %29, ptr %30, align 8, !tbaa !14
  %31 = getelementptr inbounds i64, ptr %6, i64 %.04749
  store i64 %.04749, ptr %31, align 8, !tbaa !14
  %32 = add nuw i64 %.04749, 1
  %exitcond.not = icmp eq i64 %32, %1
  br i1 %exitcond.not, label %.lr.ph60.preheader, label %.lr.ph, !llvm.loop !19

._crit_edge61:                                    ; preds = %.loopexit, %._crit_edge.thread
  tail call void @free(ptr noundef %5) #8
  tail call void @free(ptr noundef %6) #8
  tail call void @free(ptr noundef %7) #8
  ret void

.lr.ph60:                                         ; preds = %.lr.ph60.preheader, %.loopexit
  %.04657 = phi i64 [ %40, %.loopexit ], [ 0, %.lr.ph60.preheader ]
  %33 = getelementptr inbounds i8, ptr %7, i64 %.04657
  %34 = load i8, ptr %33, align 1, !tbaa !5, !range !20, !noundef !21
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %.loopexit, label %36

36:                                               ; preds = %.lr.ph60
  store i8 1, ptr %33, align 1, !tbaa !5
  %.0.in50 = getelementptr inbounds i64, ptr %6, i64 %.04657
  %.051 = load i64, ptr %.0.in50, align 8, !tbaa !14
  %.not52 = icmp eq i64 %.04657, %.051
  br i1 %.not52, label %.loopexit, label %.lr.ph56

.lr.ph56:                                         ; preds = %36, %.lr.ph56
  %.054 = phi i64 [ %.0, %.lr.ph56 ], [ %.051, %36 ]
  %.04553 = phi i64 [ %.054, %.lr.ph56 ], [ %.04657, %36 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3)
  %37 = getelementptr inbounds %struct.Point, ptr %0, i64 %.04553
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %37, i64 24, i1 false), !tbaa.struct !22
  %38 = getelementptr inbounds %struct.Point, ptr %0, i64 %.054
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %38, i64 24, i1 false), !tbaa.struct !22
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3)
  %39 = getelementptr inbounds i8, ptr %7, i64 %.054
  store i8 1, ptr %39, align 1, !tbaa !5
  %.0.in = getelementptr inbounds i64, ptr %6, i64 %.054
  %.0 = load i64, ptr %.0.in, align 8, !tbaa !14
  %.not = icmp eq i64 %.04657, %.0
  br i1 %.not, label %.loopexit, label %.lr.ph56, !llvm.loop !25

.loopexit:                                        ; preds = %.lr.ph56, %36, %.lr.ph60
  %40 = add nuw i64 %.04657, 1
  %exitcond64.not = icmp eq i64 %40, %1
  br i1 %exitcond64.not, label %._crit_edge61, label %.lr.ph60, !llvm.loop !26
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) 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

declare void @keyvalue_qsort_sizet_sizet(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 16}
!10 = !{!"Point", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !18, !17}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23, i64 8, i64 4, !24, i64 16, i64 8, !14}
!23 = !{!11, !11, i64 0}
!24 = !{!12, !12, i64 0}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass