; LLVM IR from MRPT/mrpt :: 3rdparty/xspublic/xstypes (xsarray)

; 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.XsArray = type { ptr, i64, i64, i64, ptr }
%struct.XsArrayDescriptor = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

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

; 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 void @XsArray_destruct(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @XsArray_reserve(ptr noundef %0, i64 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.XsArray, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  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) #4
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %9, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #4
  %10 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 0
  store ptr null, ptr %10, align 8, !tbaa !11
  %11 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 1
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.XsArray, ptr %12, i32 0, i32 1
  %14 = load i64, ptr %13, align 8, !tbaa !13
  store i64 %14, ptr %11, align 8, !tbaa !13
  %15 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 2
  store i64 0, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 3
  store i64 1, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.XsArray, ptr %18, i32 0, i32 4
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  store ptr %20, ptr %17, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %21 = load i64, ptr %4, align 8, !tbaa !9
  %22 = icmp ne i64 %21, 0
  br i1 %22, label %23, label %30

23:                                               ; preds = %2
  %24 = load i64, ptr %4, align 8, !tbaa !9
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.XsArray, ptr %25, i32 0, i32 2
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %28 = icmp ule i64 %24, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %23
  store i32 1, ptr %8, align 4
  br label %150

30:                                               ; preds = %23, %2
  %31 = load i64, ptr %4, align 8, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.XsArray, ptr %32, i32 0, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !13
  %35 = icmp ult i64 %31, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %30
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.XsArray, ptr %37, i32 0, i32 1
  %39 = load i64, ptr %38, align 8, !tbaa !13
  store i64 %39, ptr %4, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %36, %30
  %41 = load i64, ptr %4, align 8, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.XsArray, ptr %42, i32 0, i32 2
  %44 = load i64, ptr %43, align 8, !tbaa !14
  %45 = icmp eq i64 %41, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %40
  store i32 1, ptr %8, align 4
  br label %150

47:                                               ; preds = %40
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.XsArray, ptr %48, i32 0, i32 3
  %50 = load i64, ptr %49, align 8, !tbaa !15
  %51 = and i64 %50, 1
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %47
  store i32 1, ptr %8, align 4
  br label %150

54:                                               ; preds = %47
  %55 = load i64, ptr %4, align 8, !tbaa !9
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %59, label %57

57:                                               ; preds = %54
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @XsArray_destruct(ptr noundef %58)
  store i32 1, ptr %8, align 4
  br label %150

59:                                               ; preds = %54
  %60 = load i64, ptr %4, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 2
  store i64 %60, ptr %61, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 2
  %63 = load i64, ptr %62, align 8, !tbaa !14
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.XsArray, ptr %64, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %67 = getelementptr inbounds %struct.XsArrayDescriptor, ptr %66, i32 0, i32 0
  %68 = load i64, ptr %67, align 8, !tbaa !17
  %69 = mul i64 %63, %68
  %70 = call noalias ptr @malloc(i64 noundef %69) #5
  %71 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 0
  store ptr %70, ptr %71, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = icmp ne ptr %73, null
  br i1 %74, label %76, label %75

75:                                               ; preds = %59
  store i32 1, ptr %8, align 4
  br label %150

76:                                               ; preds = %59
  %77 = call i32 @XsArray_incAllocCount()
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.XsArray, ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = getelementptr inbounds %struct.XsArrayDescriptor, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %110

84:                                               ; preds = %76
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %106, %84
  %86 = load i64, ptr %7, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 2
  %88 = load i64, ptr %87, align 8, !tbaa !14
  %89 = icmp ult i64 %86, %88
  br i1 %89, label %90, label %109

90:                                               ; preds = %85
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.XsArray, ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  %94 = getelementptr inbounds %struct.XsArrayDescriptor, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load i64, ptr %7, align 8, !tbaa !9
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.XsArray, ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !16
  %102 = getelementptr inbounds %struct.XsArrayDescriptor, ptr %101, i32 0, i32 0
  %103 = load i64, ptr %102, align 8, !tbaa !17
  %104 = mul i64 %98, %103
  %105 = getelementptr inbounds i8, ptr %97, i64 %104
  call void %95(ptr noundef %105)
  br label %106

106:                                              ; preds = %90
  %107 = load i64, ptr %7, align 8, !tbaa !9
  %108 = add i64 %107, 1
  store i64 %108, ptr %7, align 8, !tbaa !9
  br label %85, !llvm.loop !20

109:                                              ; preds = %85
  br label %110

110:                                              ; preds = %109, %76
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %144, %110
  %112 = load i64, ptr %7, align 8, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.XsArray, ptr %113, i32 0, i32 1
  %115 = load i64, ptr %114, align 8, !tbaa !13
  %116 = icmp ult i64 %112, %115
  br i1 %116, label %117, label %147

117:                                              ; preds = %111
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.XsArray, ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  %121 = getelementptr inbounds %struct.XsArrayDescriptor, ptr %120, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8, !tbaa !22
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.XsArray, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = load i64, ptr %7, align 8, !tbaa !9
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.XsArray, ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !16
  %130 = getelementptr inbounds %struct.XsArrayDescriptor, ptr %129, i32 0, i32 0
  %131 = load i64, ptr %130, align 8, !tbaa !17
  %132 = mul i64 %126, %131
  %133 = getelementptr inbounds i8, ptr %125, i64 %132
  %134 = getelementptr inbounds %struct.XsArray, ptr %6, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = load i64, ptr %7, align 8, !tbaa !9
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.XsArray, ptr %137, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !16
  %140 = getelementptr inbounds %struct.XsArrayDescriptor, ptr %139, i32 0, i32 0
  %141 = load i64, ptr %140, align 8, !tbaa !17
  %142 = mul i64 %136, %141
  %143 = getelementptr inbounds i8, ptr %135, i64 %142
  call void %122(ptr noundef %133, ptr noundef %143)
  br label %144

144:                                              ; preds = %117
  %145 = load i64, ptr %7, align 8, !tbaa !9
  %146 = add i64 %145, 1
  store i64 %146, ptr %7, align 8, !tbaa !9
  br label %111, !llvm.loop !23

147:                                              ; preds = %111
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  call void @XsArray_destruct(ptr noundef %148)
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  call void @XsArray_swap(ptr noundef %149, ptr noundef %6)
  store i32 0, ptr %8, align 4
  br label %150

150:                                              ; preds = %147, %75, %57, %53, %46, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %151 = load i32, ptr %8, align 4
  switch i32 %151, label %153 [
    i32 0, label %152
    i32 1, label %152
  ]

152:                                              ; preds = %150, %150
  ret void

153:                                              ; preds = %150
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local void @XsArray_swap(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @XsArray_incAllocCount() #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { inlinehint 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 #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, !6, i64 0}
!12 = !{!"XsArray", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !6, i64 32}
!17 = !{!18, !10, i64 0}
!18 = !{!"XsArrayDescriptor", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!19 = !{!18, !6, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!18, !6, i64 8}
!23 = distinct !{!23, !21}


; 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.XsArray = type { ptr, i64, i64, i64, ptr }

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

; 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 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 void @XsArray_destruct(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @XsArray_reserve(ptr noundef %0, i64 noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.XsArray, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %3, i64 16
  %8 = getelementptr inbounds i8, ptr %3, i64 24
  store i64 1, ptr %8, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %3, i64 32
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  store ptr %11, ptr %9, align 8, !tbaa !12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 16
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !13
  %12 = freeze i64 %.pre
  %13 = add i64 %1, -1
  %or.cond.not = icmp ult i64 %13, %12
  br i1 %or.cond.not, label %49, label %._crit_edge46

._crit_edge46:                                    ; preds = %2
  %spec.select = tail call i64 @llvm.umax.i64(i64 %6, i64 %1)
  %14 = icmp eq i64 %spec.select, %12
  br i1 %14, label %49, label %15

15:                                               ; preds = %._crit_edge46
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %18 = and i64 %17, 1
  %.not37 = icmp eq i64 %18, 0
  br i1 %.not37, label %49, label %19

19:                                               ; preds = %15
  %.not38 = icmp eq i64 %spec.select, 0
  br i1 %.not38, label %20, label %21

20:                                               ; preds = %19
  tail call void @XsArray_destruct(ptr noundef nonnull %0)
  br label %49

21:                                               ; preds = %19
  store i64 %spec.select, ptr %7, align 8, !tbaa !14
  %22 = load i64, ptr %11, align 8, !tbaa !15
  %23 = mul i64 %22, %spec.select
  %24 = tail call noalias ptr @malloc(i64 noundef %23) #6
  store ptr %24, ptr %3, align 8, !tbaa !17
  %.not39 = icmp eq ptr %24, null
  br i1 %.not39, label %49, label %25

25:                                               ; preds = %21
  %26 = tail call i32 @XsArray_incAllocCount()
  %27 = load ptr, ptr %10, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  %.not40 = icmp eq ptr %29, null
  br i1 %.not40, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %25, %.lr.ph
  %.041 = phi i64 [ %36, %.lr.ph ], [ 0, %25 ]
  %30 = load ptr, ptr %10, align 8, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = load i64, ptr %30, align 8, !tbaa !15
  %34 = mul i64 %33, %.041
  %35 = getelementptr inbounds i8, ptr %24, i64 %34
  tail call void %32(ptr noundef nonnull %35) #5
  %36 = add nuw i64 %.041, 1
  %exitcond.not = icmp eq i64 %36, %spec.select
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph, %25
  %37 = load i64, ptr %5, align 8, !tbaa !5
  %.not45 = icmp eq i64 %37, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph43

.lr.ph43:                                         ; preds = %.loopexit, %.lr.ph43
  %.142 = phi i64 [ %46, %.lr.ph43 ], [ 0, %.loopexit ]
  %38 = load ptr, ptr %10, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !21
  %41 = load ptr, ptr %0, align 8, !tbaa !22
  %42 = load i64, ptr %38, align 8, !tbaa !15
  %43 = mul i64 %42, %.142
  %44 = getelementptr inbounds i8, ptr %41, i64 %43
  %45 = getelementptr inbounds i8, ptr %24, i64 %43
  tail call void %40(ptr noundef %44, ptr noundef nonnull %45) #5
  %46 = add nuw i64 %.142, 1
  %47 = load i64, ptr %5, align 8, !tbaa !5
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %.lr.ph43, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph43, %.loopexit
  tail call void @XsArray_destruct(ptr noundef nonnull %0)
  call void @XsArray_swap(ptr noundef nonnull %0, ptr noundef nonnull %3)
  br label %49

49:                                               ; preds = %2, %21, %15, %._crit_edge46, %._crit_edge, %20
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @XsArray_swap(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @XsArray_incAllocCount() local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { inlinehint 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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, !10, i64 8}
!6 = !{!"XsArray", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 24}
!12 = !{!6, !7, i64 32}
!13 = !{!6, !10, i64 16}
!14 = !{!10, !10, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"XsArrayDescriptor", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!17 = !{!7, !7, i64 0}
!18 = !{!16, !7, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!16, !7, i64 8}
!22 = !{!6, !7, i64 0}
!23 = distinct !{!23, !20}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass