; LLVM IR from kala13x/libxutils :: src/data (map)

; 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.XMap = type { ptr, ptr, ptr, i64, i64, i32 }
%struct.XMapPair = type { ptr, ptr, i32 }

declare ptr @xalloc(ptr noundef, i64 noundef) #0

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

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

declare void @xfree(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @XMap_Realloc(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %1
  store i32 -4, ptr %2, align 4
  br label %133

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.XMap, ptr %17, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 1, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.XMap, ptr %20, i32 0, i32 3
  %22 = load i64, ptr %21, align 8, !tbaa !14
  %23 = icmp ne i64 %22, 0
  br i1 %23, label %24, label %29

24:                                               ; preds = %16
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.XMap, ptr %25, i32 0, i32 3
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %28 = mul i64 %27, 2
  br label %30

29:                                               ; preds = %16
  br label %30

30:                                               ; preds = %29, %24
  %31 = phi i64 [ %28, %24 ], [ 16, %29 ]
  store i64 %31, ptr %7, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load i64, ptr %7, align 8, !tbaa !15
  %34 = mul i64 %33, 24
  %35 = call ptr @xalloc(ptr noundef %32, i64 noundef %34)
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %30
  store i32 -2, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %132

39:                                               ; preds = %30
  store i64 0, ptr %6, align 8, !tbaa !15
  br label %40

40:                                               ; preds = %57, %39
  %41 = load i64, ptr %6, align 8, !tbaa !15
  %42 = load i64, ptr %7, align 8, !tbaa !15
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %44, label %60

44:                                               ; preds = %40
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load i64, ptr %6, align 8, !tbaa !15
  %47 = getelementptr inbounds %struct.XMapPair, ptr %45, i64 %46
  %48 = getelementptr inbounds %struct.XMapPair, ptr %47, i32 0, i32 2
  store i32 0, ptr %48, align 8, !tbaa !16
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load i64, ptr %6, align 8, !tbaa !15
  %51 = getelementptr inbounds %struct.XMapPair, ptr %49, i64 %50
  %52 = getelementptr inbounds %struct.XMapPair, ptr %51, i32 0, i32 1
  store ptr null, ptr %52, align 8, !tbaa !18
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load i64, ptr %6, align 8, !tbaa !15
  %55 = getelementptr inbounds %struct.XMapPair, ptr %53, i64 %54
  %56 = getelementptr inbounds %struct.XMapPair, ptr %55, i32 0, i32 0
  store ptr null, ptr %56, align 8, !tbaa !19
  br label %57

57:                                               ; preds = %44
  %58 = load i64, ptr %6, align 8, !tbaa !15
  %59 = add i64 %58, 1
  store i64 %59, ptr %6, align 8, !tbaa !15
  br label %40, !llvm.loop !20

60:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.XMap, ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  store ptr %63, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.XMap, ptr %64, i32 0, i32 3
  %66 = load i64, ptr %65, align 8, !tbaa !14
  store i64 %66, ptr %11, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.XMap, ptr %67, i32 0, i32 4
  %69 = load i64, ptr %68, align 8, !tbaa !23
  store i64 %69, ptr %12, align 8, !tbaa !15
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.XMap, ptr %70, i32 0, i32 4
  store i64 0, ptr %71, align 8, !tbaa !23
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.XMap, ptr %73, i32 0, i32 1
  store ptr %72, ptr %74, align 8, !tbaa !22
  %75 = load i64, ptr %7, align 8, !tbaa !15
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.XMap, ptr %76, i32 0, i32 3
  store i64 %75, ptr %77, align 8, !tbaa !14
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %82

80:                                               ; preds = %60
  %81 = load i32, ptr %5, align 4, !tbaa !13
  store i32 %81, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %131

82:                                               ; preds = %60
  store i64 0, ptr %6, align 8, !tbaa !15
  br label %83

83:                                               ; preds = %124, %82
  %84 = load i64, ptr %6, align 8, !tbaa !15
  %85 = load i64, ptr %11, align 8, !tbaa !15
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %87, label %127

87:                                               ; preds = %83
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load i64, ptr %6, align 8, !tbaa !15
  %90 = getelementptr inbounds %struct.XMapPair, ptr %88, i64 %89
  %91 = getelementptr inbounds %struct.XMapPair, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !16
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %87
  br label %124

95:                                               ; preds = %87
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = load i64, ptr %6, align 8, !tbaa !15
  %99 = getelementptr inbounds %struct.XMapPair, ptr %97, i64 %98
  %100 = getelementptr inbounds %struct.XMapPair, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load i64, ptr %6, align 8, !tbaa !15
  %104 = getelementptr inbounds %struct.XMapPair, ptr %102, i64 %103
  %105 = getelementptr inbounds %struct.XMapPair, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  %107 = call i32 @XMap_Put(ptr noundef %96, ptr noundef %101, ptr noundef %106)
  store i32 %107, ptr %5, align 4, !tbaa !13
  %108 = load i32, ptr %5, align 4, !tbaa !13
  %109 = icmp ne i32 %108, 1
  br i1 %109, label %110, label %123

110:                                              ; preds = %95
  %111 = load i64, ptr %11, align 8, !tbaa !15
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.XMap, ptr %112, i32 0, i32 3
  store i64 %111, ptr %113, align 8, !tbaa !14
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.XMap, ptr %115, i32 0, i32 1
  store ptr %114, ptr %116, align 8, !tbaa !22
  %117 = load i64, ptr %12, align 8, !tbaa !15
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.XMap, ptr %118, i32 0, i32 4
  store i64 %117, ptr %119, align 8, !tbaa !23
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  call void @xfree(ptr noundef %120, ptr noundef %121)
  %122 = load i32, ptr %5, align 4, !tbaa !13
  store i32 %122, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %131

123:                                              ; preds = %95
  br label %124

124:                                              ; preds = %123, %94
  %125 = load i64, ptr %6, align 8, !tbaa !15
  %126 = add i64 %125, 1
  store i64 %126, ptr %6, align 8, !tbaa !15
  br label %83, !llvm.loop !24

127:                                              ; preds = %83
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  call void @xfree(ptr noundef %128, ptr noundef %129)
  %130 = load i32, ptr %5, align 4, !tbaa !13
  store i32 %130, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %131

131:                                              ; preds = %127, %110, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #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 %132

132:                                              ; preds = %131, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %133

133:                                              ; preds = %132, %15
  %134 = load i32, ptr %2, align 4
  ret i32 %134
}

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

attributes #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 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 = { 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 = !{!10, !6, i64 16}
!10 = !{!"XMap", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !12, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !11, i64 24}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !12, i64 16}
!17 = !{!"XMapPair", !6, i64 0, !6, i64 8, !12, i64 16}
!18 = !{!17, !6, i64 8}
!19 = !{!17, !6, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !6, i64 8}
!23 = !{!10, !11, i64 32}
!24 = distinct !{!24, !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.XMapPair = type { ptr, ptr, i32 }

declare ptr @xalloc(ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @xfree(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @XMap_Realloc(ptr noundef %0) local_unnamed_addr #1 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %48, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i64, ptr %6, align 8, !tbaa !12
  %.not = icmp eq i64 %7, 0
  %8 = shl i64 %7, 1
  %spec.select = select i1 %.not, i64 16, i64 %8
  %9 = mul i64 %spec.select, 24
  %10 = tail call ptr @xalloc(ptr noundef %5, i64 noundef %9) #3
  %11 = icmp eq ptr %10, null
  br i1 %11, label %48, label %.preheader63

.preheader63:                                     ; preds = %3
  %.not68 = icmp eq i64 %spec.select, 0
  br i1 %.not68, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader63
  %xtraiter = and i64 %spec.select, 6
  %12 = icmp ult i64 %spec.select, 8
  br i1 %12, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %spec.select, -8
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.05164 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %28, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %13 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %.05164
  %14 = or disjoint i64 %.05164, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %13, i8 0, i64 20, i1 false)
  %15 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %14
  %16 = or disjoint i64 %.05164, 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %15, i8 0, i64 20, i1 false)
  %17 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %16
  %18 = or disjoint i64 %.05164, 3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %17, i8 0, i64 20, i1 false)
  %19 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %18
  %20 = or disjoint i64 %.05164, 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %19, i8 0, i64 20, i1 false)
  %21 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %20
  %22 = or disjoint i64 %.05164, 5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %21, i8 0, i64 20, i1 false)
  %23 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %22
  %24 = or disjoint i64 %.05164, 6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %23, i8 0, i64 20, i1 false)
  %25 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %24
  %26 = or disjoint i64 %.05164, 7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %25, i8 0, i64 20, i1 false)
  %27 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %26
  %28 = add nuw i64 %.05164, 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %27, i8 0, i64 20, i1 false)
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !13

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.05164.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %28, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.05164.epil = phi i64 [ %30, %.lr.ph.epil ], [ %.05164.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %29 = getelementptr inbounds %struct.XMapPair, ptr %10, i64 %.05164.epil
  %30 = add nuw i64 %.05164.epil, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %29, i8 0, i64 20, i1 false)
  %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 %._crit_edge, label %.lr.ph.epil, !llvm.loop !15

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader63
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %0, i64 32
  %34 = load <2 x i64>, ptr %6, align 8, !tbaa !18
  store i64 0, ptr %33, align 8, !tbaa !19
  store ptr %10, ptr %31, align 8, !tbaa !17
  store i64 %spec.select, ptr %6, align 8, !tbaa !12
  %35 = icmp eq ptr %32, null
  br i1 %35, label %48, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %36 = extractelement <2 x i64> %34, i64 0
  %.not69 = icmp eq i64 %36, 0
  br i1 %.not69, label %.sink.split, label %.lr.ph66

.lr.ph66:                                         ; preds = %.preheader, %46
  %.15265 = phi i64 [ %47, %46 ], [ 0, %.preheader ]
  %37 = getelementptr inbounds %struct.XMapPair, ptr %32, i64 %.15265
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %39 = load i32, ptr %38, align 8, !tbaa !20
  %.not61 = icmp eq i32 %39, 0
  br i1 %.not61, label %46, label %40

40:                                               ; preds = %.lr.ph66
  %41 = load ptr, ptr %37, align 8, !tbaa !22
  %42 = getelementptr inbounds i8, ptr %37, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = tail call i32 @XMap_Put(ptr noundef nonnull %0, ptr noundef %41, ptr noundef %43)
  %.not62 = icmp eq i32 %44, 1
  br i1 %.not62, label %46, label %45

45:                                               ; preds = %40
  store ptr %32, ptr %31, align 8, !tbaa !17
  store <2 x i64> %34, ptr %6, align 8, !tbaa !18
  br label %.sink.split

46:                                               ; preds = %40, %.lr.ph66
  %47 = add nuw i64 %.15265, 1
  %exitcond70.not = icmp eq i64 %47, %36
  br i1 %exitcond70.not, label %.sink.split, label %.lr.ph66, !llvm.loop !24

.sink.split:                                      ; preds = %46, %.preheader, %45
  %.sink = phi ptr [ %10, %45 ], [ %32, %.preheader ], [ %32, %46 ]
  %.2.ph = phi i32 [ %44, %45 ], [ 1, %.preheader ], [ 1, %46 ]
  tail call void @xfree(ptr noundef %5, ptr noundef nonnull %.sink) #3
  br label %48

48:                                               ; preds = %.sink.split, %3, %._crit_edge, %1
  %.2 = phi i32 [ -4, %1 ], [ -2, %3 ], [ 1, %._crit_edge ], [ %.2.ph, %.sink.split ]
  ret i32 %.2
}

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

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

attributes #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 = { 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 nounwind willreturn memory(argmem: write) }
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, !7, i64 16}
!6 = !{!"XMap", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !11, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 24}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = !{!6, !7, i64 8}
!18 = !{!10, !10, i64 0}
!19 = !{!6, !10, i64 32}
!20 = !{!21, !11, i64 16}
!21 = !{!"XMapPair", !7, i64 0, !7, i64 8, !11, i64 16}
!22 = !{!21, !7, i64 0}
!23 = !{!21, !7, i64 8}
!24 = distinct !{!24, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass