; 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.ldmRollingHashState_t = type { i64, i64 }
%struct.ldmEntry_t = type { i32, i32 }
%struct.ldmParams_t = type { i32, i32, i32, i32, i32, i32 }
%struct.ldmState_t = type { %struct.ZSTD_window_t, ptr, i32, ptr, [64 x i64], [64 x %struct.ldmMatchCandidate_t] }
%struct.ZSTD_window_t = type { ptr, ptr, ptr, i32, i32, i32 }
%struct.ldmMatchCandidate_t = type { ptr, i32, i32, ptr }

; 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: 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) #1

; Function Attrs: nounwind uwtable
define dso_local void @ZSTD_ldm_fillHashTable(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.ldmRollingHashState_t, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.ldmEntry_t, align 4
  %22 = alloca %struct.ldmParams_t, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ldmParams_t, ptr %23, i32 0, i32 3
  %25 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %25, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ldmParams_t, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ldmParams_t, ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 4, !tbaa !14
  %32 = sub i32 %28, %31
  store i32 %32, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ldmState_t, ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds %struct.ZSTD_window_t, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  store ptr %36, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %37, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ldmState_t, ptr %38, i32 0, i32 4
  %40 = getelementptr inbounds [64 x i64], ptr %39, i64 0, i64 0
  store ptr %40, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  br label %41

41:                                               ; preds = %4
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @ZSTD_ldm_gear_init(ptr noundef %13, ptr noundef %44)
  br label %45

45:                                               ; preds = %118, %43
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = icmp ult ptr %46, %47
  br i1 %48, label %49, label %122

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %15, align 4, !tbaa !12
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = ptrtoint ptr %51 to i64
  %54 = ptrtoint ptr %52 to i64
  %55 = sub i64 %53, %54
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = call i64 @ZSTD_ldm_gear_feed(ptr noundef %13, ptr noundef %50, i64 noundef %55, ptr noundef %56, ptr noundef %15)
  store i64 %57, ptr %16, align 8, !tbaa !18
  store i32 0, ptr %17, align 4, !tbaa !12
  br label %58

58:                                               ; preds = %115, %49
  %59 = load i32, ptr %17, align 4, !tbaa !12
  %60 = load i32, ptr %15, align 4, !tbaa !12
  %61 = icmp ult i32 %59, %60
  br i1 %61, label %62, label %118

62:                                               ; preds = %58
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = load i32, ptr %17, align 4, !tbaa !12
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i64, ptr %64, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !18
  %69 = getelementptr inbounds i8, ptr %63, i64 %68
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load i32, ptr %9, align 4, !tbaa !12
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds i8, ptr %70, i64 %72
  %74 = icmp uge ptr %69, %73
  br i1 %74, label %75, label %114

75:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load i32, ptr %17, align 4, !tbaa !12
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds i64, ptr %77, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !18
  %82 = getelementptr inbounds i8, ptr %76, i64 %81
  %83 = load i32, ptr %9, align 4, !tbaa !12
  %84 = zext i32 %83 to i64
  %85 = sub i64 0, %84
  %86 = getelementptr inbounds i8, ptr %82, i64 %85
  store ptr %86, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !12
  %89 = zext i32 %88 to i64
  %90 = call i64 @XXH_INLINE_XXH64(ptr nocapture noundef %87, i64 noundef %89, i64 noundef 0) #5
  store i64 %90, ptr %19, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %91 = load i64, ptr %19, align 8, !tbaa !18
  %92 = load i32, ptr %10, align 4, !tbaa !12
  %93 = shl i32 1, %92
  %94 = sub i32 %93, 1
  %95 = zext i32 %94 to i64
  %96 = and i64 %91, %95
  %97 = trunc i64 %96 to i32
  store i32 %97, ptr %20, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %98 = load ptr, ptr %18, align 8, !tbaa !5
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = ptrtoint ptr %98 to i64
  %101 = ptrtoint ptr %99 to i64
  %102 = sub i64 %100, %101
  %103 = trunc i64 %102 to i32
  %104 = getelementptr inbounds %struct.ldmEntry_t, ptr %21, i32 0, i32 0
  store i32 %103, ptr %104, align 4, !tbaa !20
  %105 = load i64, ptr %19, align 8, !tbaa !18
  %106 = lshr i64 %105, 32
  %107 = trunc i64 %106 to i32
  %108 = getelementptr inbounds %struct.ldmEntry_t, ptr %21, i32 0, i32 1
  store i32 %107, ptr %108, align 4, !tbaa !22
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i32, ptr %20, align 4, !tbaa !12
  %111 = zext i32 %110 to i64
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load i64, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 4 %112, i64 24, i1 false), !tbaa.struct !23
  call void @ZSTD_ldm_insertEntry(ptr noundef %109, i64 noundef %111, i64 %113, ptr noundef byval(%struct.ldmParams_t) align 8 %22)
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %114

114:                                              ; preds = %75, %62
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %17, align 4, !tbaa !12
  %117 = add i32 %116, 1
  store i32 %117, ptr %17, align 4, !tbaa !12
  br label %58, !llvm.loop !24

118:                                              ; preds = %58
  %119 = load i64, ptr %16, align 8, !tbaa !18
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i64 %119
  store ptr %121, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %45, !llvm.loop !26

122:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden i64 @ZSTD_ldm_gear_feed(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @XXH_INLINE_XXH64(ptr nocapture noundef, i64 noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @ZSTD_ldm_insertEntry(ptr noundef, i64 noundef, i64, ptr noundef byval(%struct.ldmParams_t) align 8) #2

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

!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, !11, i64 12}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 8}
!15 = !{!16, !6, i64 8}
!16 = !{!"", !17, i64 0, !6, i64 40, !11, i64 48, !6, i64 56, !7, i64 64, !7, i64 576}
!17 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !11, i64 0}
!21 = !{!"", !11, i64 0, !11, i64 4}
!22 = !{!21, !11, i64 4}
!23 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12, i64 16, i64 4, !12, i64 20, i64 4, !12}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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.ldmRollingHashState_t = type { i64, i64 }
%struct.ldmParams_t = type { i32, i32, i32, i32, i32, i32 }

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; 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) #1

; Function Attrs: nounwind uwtable
define dso_local void @ZSTD_ldm_fillHashTable(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca %struct.ldmRollingHashState_t, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.ldmParams_t, align 8
  %8 = getelementptr inbounds i8, ptr %3, i64 12
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %3, i64 8
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @ZSTD_ldm_gear_init(ptr noundef nonnull %5, ptr noundef %3)
  %17 = icmp ult ptr %1, %2
  br i1 %17, label %.lr.ph41, label %._crit_edge42

.lr.ph41:                                         ; preds = %4
  %18 = sub i32 %11, %13
  %19 = ptrtoint ptr %2 to i64
  %20 = zext i32 %9 to i64
  %21 = getelementptr inbounds i8, ptr %1, i64 %20
  %22 = sub nsw i64 0, %20
  %notmask = shl nsw i32 -1, %18
  %23 = xor i32 %notmask, -1
  %24 = ptrtoint ptr %15 to i64
  br label %25

25:                                               ; preds = %.lr.ph41, %._crit_edge
  %.039 = phi ptr [ %1, %.lr.ph41 ], [ %46, %._crit_edge ]
  store i32 0, ptr %6, align 4, !tbaa !16
  %26 = ptrtoint ptr %.039 to i64
  %27 = sub i64 %19, %26
  %28 = call i64 @ZSTD_ldm_gear_feed(ptr noundef nonnull %5, ptr noundef %.039, i64 noundef %27, ptr noundef nonnull %16, ptr noundef nonnull %6)
  %29 = load i32, ptr %6, align 4, !tbaa !16
  %.not43 = icmp eq i32 %29, 0
  br i1 %.not43, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %25, %42
  %30 = phi i32 [ %43, %42 ], [ %29, %25 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %42 ], [ 0, %25 ]
  %31 = getelementptr inbounds i64, ptr %16, i64 %indvars.iv
  %32 = load i64, ptr %31, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %.039, i64 %32
  %.not = icmp ult ptr %33, %21
  br i1 %.not, label %42, label %34

34:                                               ; preds = %.lr.ph
  %35 = getelementptr inbounds i8, ptr %33, i64 %22
  %36 = call i64 @XXH_INLINE_XXH64(ptr nocapture noundef %35, i64 noundef %20, i64 noundef 0) #5
  %37 = trunc i64 %36 to i32
  %38 = and i32 %37, %23
  %39 = ptrtoint ptr %35 to i64
  %40 = sub i64 %39, %24
  %.sroa.4.0.insert.shift = and i64 %36, -4294967296
  %41 = zext nneg i32 %38 to i64
  %.sroa.0.0.insert.ext = and i64 %40, 4294967295
  %.sroa.0.0.insert.insert = or disjoint i64 %.sroa.4.0.insert.shift, %.sroa.0.0.insert.ext
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !19
  call void @ZSTD_ldm_insertEntry(ptr noundef nonnull %0, i64 noundef %41, i64 %.sroa.0.0.insert.insert, ptr noundef nonnull byval(%struct.ldmParams_t) align 8 %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  %.pre = load i32, ptr %6, align 4, !tbaa !16
  br label %42

42:                                               ; preds = %.lr.ph, %34
  %43 = phi i32 [ %30, %.lr.ph ], [ %.pre, %34 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = zext i32 %43 to i64
  %45 = icmp ult i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %42, %25
  %46 = getelementptr inbounds i8, ptr %.039, i64 %28
  %47 = icmp ult ptr %46, %2
  br i1 %47, label %25, label %._crit_edge42, !llvm.loop !22

._crit_edge42:                                    ; preds = %._crit_edge, %4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden i64 @ZSTD_ldm_gear_feed(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @XXH_INLINE_XXH64(ptr nocapture noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @ZSTD_ldm_insertEntry(ptr noundef, i64 noundef, i64, ptr noundef byval(%struct.ldmParams_t) align 8) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 willreturn memory(read) }

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


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