; LLVM IR from catid/Zpng :: zstd (zstdmt_compress)

; 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.ZSTD_frameProgression = type { i64, i64, i64 }
%struct.ZSTDMT_CCtx_s = type { ptr, ptr, ptr, ptr, ptr, %struct.ZSTD_CCtx_params_s, i64, i64, %struct.roundBuff_t, %struct.inBuff_t, i32, %struct.serialState_t, i32, i32, i32, i32, i32, i32, i64, i64, i64, %struct.ZSTD_customMem, ptr, ptr }
%struct.ZSTD_CCtx_params_s = type { i32, %struct.ZSTD_compressionParameters, %struct.ZSTD_frameParameters, i32, i32, i32, i32, i32, i32, %struct.ldmParams_t, %struct.ZSTD_customMem }
%struct.ZSTD_compressionParameters = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.ZSTD_frameParameters = type { i32, i32, i32 }
%struct.ldmParams_t = type { i32, i32, i32, i32, i32, i32 }
%struct.roundBuff_t = type { ptr, i64, i64 }
%struct.inBuff_t = type { %struct.range_t, %struct.buffer_s, i64 }
%struct.range_t = type { ptr, i64 }
%struct.buffer_s = type { ptr, i64 }
%struct.serialState_t = type { i32, i32, %struct.ZSTD_CCtx_params_s, %struct.ldmState_t, %struct.XXH64_state_s, i32, i32, i32, %struct.ZSTD_window_t }
%struct.ldmState_t = type { %struct.ZSTD_window_t, ptr, ptr, i64 }
%struct.XXH64_state_s = type { i64, i64, i64, i64, i64, [4 x i64], i32, [2 x i32] }
%struct.ZSTD_window_t = type { ptr, ptr, ptr, i32, i32 }
%struct.ZSTD_customMem = type { ptr, ptr, ptr }
%struct.ZSTDMT_jobDescription = type { i64, i64, i32, i32, ptr, ptr, ptr, ptr, %struct.buffer_s, %struct.range_t, %struct.range_t, i32, i32, i32, %struct.ZSTD_CCtx_params_s, ptr, i64, i64, i32 }

; 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

declare i32 @ZSTD_isError(i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @ZSTDMT_getFrameProgression(ptr dead_on_unwind noalias writable sret(%struct.ZSTD_frameProgression) align 8 %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %9, i32 0, i32 19
  %11 = load i64, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds %struct.ZSTD_frameProgression, ptr %0, i32 0, i32 1
  store i64 %11, ptr %12, align 8, !tbaa !27
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %13, i32 0, i32 20
  %15 = load i64, ptr %14, align 8, !tbaa !29
  %16 = getelementptr inbounds %struct.ZSTD_frameProgression, ptr %0, i32 0, i32 2
  store i64 %15, ptr %16, align 8, !tbaa !30
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %17, i32 0, i32 19
  %19 = load i64, ptr %18, align 8, !tbaa !9
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %20, i32 0, i32 9
  %22 = getelementptr inbounds %struct.inBuff_t, ptr %21, i32 0, i32 2
  %23 = load i64, ptr %22, align 8, !tbaa !31
  %24 = add i64 %19, %23
  %25 = getelementptr inbounds %struct.ZSTD_frameProgression, ptr %0, i32 0, i32 0
  store i64 %24, ptr %25, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %26, i32 0, i32 15
  %28 = load i32, ptr %27, align 4, !tbaa !33
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %29, i32 0, i32 10
  %31 = load i32, ptr %30, align 8, !tbaa !34
  %32 = add i32 %28, %31
  store i32 %32, ptr %5, align 4, !tbaa !35
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %33, i32 0, i32 14
  %35 = load i32, ptr %34, align 8, !tbaa !36
  store i32 %35, ptr %4, align 4, !tbaa !35
  br label %36

36:                                               ; preds = %103, %2
  %37 = load i32, ptr %4, align 4, !tbaa !35
  %38 = load i32, ptr %5, align 4, !tbaa !35
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %106

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %41 = load i32, ptr %4, align 4, !tbaa !35
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %42, i32 0, i32 13
  %44 = load i32, ptr %43, align 4, !tbaa !37
  %45 = and i32 %41, %44
  store i32 %45, ptr %6, align 4, !tbaa !35
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !38
  %49 = load i32, ptr %6, align 4, !tbaa !35
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %48, i64 %50
  %52 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %51, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !38
  %56 = load i32, ptr %6, align 4, !tbaa !35
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %55, i64 %57
  %59 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %58, i32 0, i32 1
  %60 = load i64, ptr %59, align 8, !tbaa !39
  store i64 %60, ptr %7, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %61 = load i64, ptr %7, align 8, !tbaa !41
  %62 = call i32 @ZSTD_isError(i64 noundef %61)
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %40
  br label %67

65:                                               ; preds = %40
  %66 = load i64, ptr %7, align 8, !tbaa !41
  br label %67

67:                                               ; preds = %65, %64
  %68 = phi i64 [ 0, %64 ], [ %66, %65 ]
  store i64 %68, ptr %8, align 8, !tbaa !41
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !38
  %72 = load i32, ptr %6, align 4, !tbaa !35
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %71, i64 %73
  %75 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %74, i32 0, i32 0
  %76 = load i64, ptr %75, align 8, !tbaa !42
  %77 = getelementptr inbounds %struct.ZSTD_frameProgression, ptr %0, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !27
  %79 = add i64 %78, %76
  store i64 %79, ptr %77, align 8, !tbaa !27
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !38
  %83 = load i32, ptr %6, align 4, !tbaa !35
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %85, i32 0, i32 10
  %87 = getelementptr inbounds %struct.range_t, ptr %86, i32 0, i32 1
  %88 = load i64, ptr %87, align 8, !tbaa !43
  %89 = getelementptr inbounds %struct.ZSTD_frameProgression, ptr %0, i32 0, i32 0
  %90 = load i64, ptr %89, align 8, !tbaa !32
  %91 = add i64 %90, %88
  store i64 %91, ptr %89, align 8, !tbaa !32
  %92 = load i64, ptr %8, align 8, !tbaa !41
  %93 = getelementptr inbounds %struct.ZSTD_frameProgression, ptr %0, i32 0, i32 2
  %94 = load i64, ptr %93, align 8, !tbaa !30
  %95 = add i64 %94, %92
  store i64 %95, ptr %93, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ZSTDMT_CCtx_s, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !38
  %99 = load i32, ptr %6, align 4, !tbaa !35
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %98, i64 %100
  %102 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %101, i32 0, i32 2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %103

103:                                              ; preds = %67
  %104 = load i32, ptr %4, align 4, !tbaa !35
  %105 = add i32 %104, 1
  store i32 %105, ptr %4, align 4, !tbaa !35
  br label %36, !llvm.loop !44

106:                                              ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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, !26, i64 600}
!10 = !{!"ZSTDMT_CCtx_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !17, i64 160, !17, i64 168, !18, i64 176, !19, i64 200, !12, i64 240, !22, i64 248, !12, i64 568, !12, i64 572, !12, i64 576, !12, i64 580, !12, i64 584, !12, i64 588, !26, i64 592, !26, i64 600, !26, i64 608, !16, i64 616, !6, i64 640, !6, i64 648}
!11 = !{!"ZSTD_CCtx_params_s", !12, i64 0, !13, i64 4, !14, i64 32, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !15, i64 68, !16, i64 96}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24}
!14 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!15 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!16 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!"", !6, i64 0, !17, i64 8, !17, i64 16}
!19 = !{!"", !20, i64 0, !21, i64 16, !17, i64 32}
!20 = !{!"", !6, i64 0, !17, i64 8}
!21 = !{!"buffer_s", !6, i64 0, !17, i64 8}
!22 = !{!"", !12, i64 0, !12, i64 4, !11, i64 8, !23, i64 128, !25, i64 184, !12, i64 272, !12, i64 276, !12, i64 280, !24, i64 288}
!23 = !{!"", !24, i64 0, !6, i64 32, !6, i64 40, !17, i64 48}
!24 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28}
!25 = !{!"XXH64_state_s", !26, i64 0, !26, i64 8, !26, i64 16, !26, i64 24, !26, i64 32, !7, i64 40, !12, i64 72, !7, i64 76}
!26 = !{!"long long", !7, i64 0}
!27 = !{!28, !26, i64 8}
!28 = !{!"", !26, i64 0, !26, i64 8, !26, i64 16}
!29 = !{!10, !26, i64 608}
!30 = !{!28, !26, i64 16}
!31 = !{!10, !17, i64 232}
!32 = !{!28, !26, i64 0}
!33 = !{!10, !12, i64 580}
!34 = !{!10, !12, i64 240}
!35 = !{!12, !12, i64 0}
!36 = !{!10, !12, i64 576}
!37 = !{!10, !12, i64 572}
!38 = !{!10, !6, i64 8}
!39 = !{!40, !17, i64 8}
!40 = !{!"", !17, i64 0, !17, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !21, i64 56, !20, i64 72, !20, i64 88, !12, i64 104, !12, i64 108, !12, i64 112, !11, i64 120, !6, i64 240, !26, i64 248, !17, i64 256, !12, i64 264}
!41 = !{!17, !17, i64 0}
!42 = !{!40, !17, i64 0}
!43 = !{!40, !17, i64 96}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}


; 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.ZSTD_frameProgression = type { i64, i64, i64 }
%struct.ZSTDMT_jobDescription = type { i64, i64, i32, i32, ptr, ptr, ptr, ptr, %struct.buffer_s, %struct.range_t, %struct.range_t, i32, i32, i32, %struct.ZSTD_CCtx_params_s, ptr, i64, i64, i32 }
%struct.buffer_s = type { ptr, i64 }
%struct.range_t = type { ptr, i64 }
%struct.ZSTD_CCtx_params_s = type { i32, %struct.ZSTD_compressionParameters, %struct.ZSTD_frameParameters, i32, i32, i32, i32, i32, i32, %struct.ldmParams_t, %struct.ZSTD_customMem }
%struct.ZSTD_compressionParameters = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.ZSTD_frameParameters = type { i32, i32, i32 }
%struct.ldmParams_t = type { i32, i32, i32, i32, i32, i32 }
%struct.ZSTD_customMem = type { ptr, ptr, ptr }

declare i32 @ZSTD_isError(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @ZSTDMT_getFrameProgression(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.ZSTD_frameProgression) align 8 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %1, i64 600
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 608
  %6 = load i64, ptr %5, align 8, !tbaa !26
  %7 = getelementptr inbounds i8, ptr %1, i64 232
  %8 = load i64, ptr %7, align 8, !tbaa !27
  %9 = add i64 %8, %4
  %10 = getelementptr inbounds i8, ptr %1, i64 580
  %11 = load i32, ptr %10, align 4, !tbaa !28
  %12 = getelementptr inbounds i8, ptr %1, i64 240
  %13 = load i32, ptr %12, align 8, !tbaa !29
  %14 = add i32 %13, %11
  %15 = getelementptr inbounds i8, ptr %1, i64 576
  %16 = load i32, ptr %15, align 8, !tbaa !30
  %17 = icmp ult i32 %16, %14
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %18 = getelementptr inbounds i8, ptr %1, i64 572
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %.pre = load ptr, ptr %19, align 8, !tbaa !31
  br label %20

20:                                               ; preds = %.lr.ph, %20
  %21 = phi ptr [ %.pre, %.lr.ph ], [ %32, %20 ]
  %.028 = phi i32 [ %16, %.lr.ph ], [ %40, %20 ]
  %22 = phi i64 [ %4, %.lr.ph ], [ %35, %20 ]
  %23 = phi i64 [ %9, %.lr.ph ], [ %38, %20 ]
  %24 = phi i64 [ %6, %.lr.ph ], [ %39, %20 ]
  %25 = load i32, ptr %18, align 4, !tbaa !32
  %26 = and i32 %25, %.028
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %21, i64 %27, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !33
  %30 = tail call i32 @ZSTD_isError(i64 noundef %29) #2
  %.not = icmp eq i32 %30, 0
  %31 = select i1 %.not, i64 %29, i64 0
  %32 = load ptr, ptr %19, align 8, !tbaa !31
  %33 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %32, i64 %27
  %34 = load i64, ptr %33, align 8, !tbaa !35
  %35 = add i64 %22, %34
  %36 = getelementptr inbounds %struct.ZSTDMT_jobDescription, ptr %32, i64 %27, i32 10, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !36
  %38 = add i64 %23, %37
  %39 = add i64 %24, %31
  %40 = add i32 %.028, 1
  %exitcond.not = icmp eq i32 %40, %14
  br i1 %exitcond.not, label %._crit_edge, label %20, !llvm.loop !37

._crit_edge:                                      ; preds = %20, %2
  %.lcssa27 = phi i64 [ %6, %2 ], [ %39, %20 ]
  %.lcssa25 = phi i64 [ %9, %2 ], [ %38, %20 ]
  %.lcssa = phi i64 [ %4, %2 ], [ %35, %20 ]
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %.lcssa, ptr %42, align 8, !tbaa !39
  store i64 %.lcssa25, ptr %0, align 8, !tbaa !41
  store i64 %.lcssa27, ptr %41, align 8, !tbaa !42
  ret void
}

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 = { 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, !25, i64 600}
!6 = !{!"ZSTDMT_CCtx_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !16, i64 160, !16, i64 168, !17, i64 176, !18, i64 200, !11, i64 240, !21, i64 248, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !25, i64 592, !25, i64 600, !25, i64 608, !15, i64 616, !7, i64 640, !7, i64 648}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"ZSTD_CCtx_params_s", !11, i64 0, !12, i64 4, !13, i64 32, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !14, i64 68, !15, i64 96}
!11 = !{!"int", !8, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!13 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!15 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!"long", !8, i64 0}
!17 = !{!"", !7, i64 0, !16, i64 8, !16, i64 16}
!18 = !{!"", !19, i64 0, !20, i64 16, !16, i64 32}
!19 = !{!"", !7, i64 0, !16, i64 8}
!20 = !{!"buffer_s", !7, i64 0, !16, i64 8}
!21 = !{!"", !11, i64 0, !11, i64 4, !10, i64 8, !22, i64 128, !24, i64 184, !11, i64 272, !11, i64 276, !11, i64 280, !23, i64 288}
!22 = !{!"", !23, i64 0, !7, i64 32, !7, i64 40, !16, i64 48}
!23 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 28}
!24 = !{!"XXH64_state_s", !25, i64 0, !25, i64 8, !25, i64 16, !25, i64 24, !25, i64 32, !8, i64 40, !11, i64 72, !8, i64 76}
!25 = !{!"long long", !8, i64 0}
!26 = !{!6, !25, i64 608}
!27 = !{!6, !16, i64 232}
!28 = !{!6, !11, i64 580}
!29 = !{!6, !11, i64 240}
!30 = !{!6, !11, i64 576}
!31 = !{!6, !7, i64 8}
!32 = !{!6, !11, i64 572}
!33 = !{!34, !16, i64 8}
!34 = !{!"", !16, i64 0, !16, i64 8, !11, i64 16, !11, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !20, i64 56, !19, i64 72, !19, i64 88, !11, i64 104, !11, i64 108, !11, i64 112, !10, i64 120, !7, i64 240, !25, i64 248, !16, i64 256, !11, i64 264}
!35 = !{!34, !16, i64 0}
!36 = !{!34, !16, i64 96}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!40, !25, i64 8}
!40 = !{!"", !25, i64 0, !25, i64 8, !25, i64 16}
!41 = !{!40, !25, i64 0}
!42 = !{!40, !25, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass