; 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.ZSTD_customMem = type { ptr, ptr, ptr }
%struct.ZSTD_CCtx_s = type { i32, i32, i32, %struct.ZSTD_CCtx_params_s, %struct.ZSTD_CCtx_params_s, %struct.ZSTD_CCtx_params_s, i32, i64, %struct.ZSTD_cwksp, i64, i64, i64, i64, %struct.XXH_NAMESPACEXXH64_state_s, %struct.ZSTD_customMem, ptr, i64, %struct.SeqCollector, i32, i32, %struct.seqStore_t, %struct.ldmState_t, ptr, i64, %struct.rawSeqStore_t, %struct.ZSTD_blockState_t, ptr, i32, ptr, i64, i64, i64, i64, ptr, i64, i64, i64, i32, i32, %struct.ZSTD_inBuffer_s, i64, i64, %struct.ZSTD_localDict, ptr, %struct.ZSTD_prefixDict_s, ptr, %struct.ZSTD_blockSplitCtx, ptr, i64 }
%struct.ZSTD_CCtx_params_s = type { i32, %struct.ZSTD_compressionParameters, %struct.ZSTD_frameParameters, i32, i32, i64, i32, i32, i32, i32, i64, i32, i32, %struct.ldmParams_t, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ZSTD_customMem, i32, i32, ptr, ptr, i64, i32 }
%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_cwksp = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32 }
%struct.XXH_NAMESPACEXXH64_state_s = type { i64, [4 x i64], [4 x i64], i32, i32, i64 }
%struct.SeqCollector = type { i32, ptr, i64, i64 }
%struct.seqStore_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, 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 }
%struct.rawSeqStore_t = type { ptr, i64, i64, i64, i64 }
%struct.ZSTD_blockState_t = type { ptr, ptr, %struct.ZSTD_matchState_t }
%struct.ZSTD_matchState_t = type { %struct.ZSTD_window_t, i32, i32, i32, i32, ptr, [8 x i32], i64, i32, ptr, ptr, ptr, i32, i32, %struct.optState_t, ptr, %struct.ZSTD_compressionParameters, ptr, i32, i32 }
%struct.optState_t = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32 }
%struct.ZSTD_inBuffer_s = type { ptr, i64, i64 }
%struct.ZSTD_localDict = type { ptr, ptr, i64, i32, ptr }
%struct.ZSTD_prefixDict_s = type { ptr, i64, i32 }
%struct.ZSTD_blockSplitCtx = type { %struct.seqStore_t, %struct.seqStore_t, %struct.seqStore_t, %struct.seqStore_t, %struct.seqStore_t, [196 x i32], %struct.ZSTD_entropyCTablesMetadata_t }
%struct.ZSTD_entropyCTablesMetadata_t = type { %struct.ZSTD_hufCTablesMetadata_t, %struct.ZSTD_fseCTablesMetadata_t }
%struct.ZSTD_hufCTablesMetadata_t = type { i32, [128 x i8], i64 }
%struct.ZSTD_fseCTablesMetadata_t = type { i32, i32, i32, [133 x i8], i64, i64 }

; 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: inlinehint nounwind uwtable
declare hidden ptr @ZSTD_customMalloc(i64 noundef, ptr noundef byval(%struct.ZSTD_customMem) align 8) #2

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

14:                                               ; preds = %5
  br label %15

15:                                               ; preds = %14
  br label %16

16:                                               ; preds = %15
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %17, i32 0, i32 37
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %30

21:                                               ; preds = %16
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  br label %24

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  store i64 -60, ptr %6, align 8
  br label %115

30:                                               ; preds = %16
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  call void @ZSTD_clearAllDicts(ptr noundef %32)
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %38, label %35

35:                                               ; preds = %31
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %35, %31
  store i64 0, ptr %6, align 8
  br label %115

39:                                               ; preds = %35
  %40 = load i32, ptr %10, align 4, !tbaa !11
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %47

42:                                               ; preds = %39
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %44, i32 0, i32 42
  %46 = getelementptr inbounds %struct.ZSTD_localDict, ptr %45, i32 0, i32 1
  store ptr %43, ptr %46, align 8, !tbaa !38
  br label %106

47:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  br label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %49, i32 0, i32 16
  %51 = load i64, ptr %50, align 8, !tbaa !39
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %53, label %66

53:                                               ; preds = %48
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  store i64 -64, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %103

66:                                               ; preds = %48
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %70, i32 0, i32 14
  %72 = call ptr @ZSTD_customMalloc(i64 noundef %69, ptr noundef byval(%struct.ZSTD_customMem) align 8 %71)
  store ptr %72, ptr %12, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %68
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %89

76:                                               ; preds = %73
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  store i64 -64, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %103

89:                                               ; preds = %73
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %92, ptr align 1 %93, i64 %94, i1 false)
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %96, i32 0, i32 42
  %98 = getelementptr inbounds %struct.ZSTD_localDict, ptr %97, i32 0, i32 0
  store ptr %95, ptr %98, align 8, !tbaa !40
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %100, i32 0, i32 42
  %102 = getelementptr inbounds %struct.ZSTD_localDict, ptr %101, i32 0, i32 1
  store ptr %99, ptr %102, align 8, !tbaa !38
  store i32 0, ptr %13, align 4
  br label %103

103:                                              ; preds = %91, %88, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %104 = load i32, ptr %13, align 4
  switch i32 %104, label %117 [
    i32 0, label %105
    i32 1, label %115
  ]

105:                                              ; preds = %103
  br label %106

106:                                              ; preds = %105, %42
  %107 = load i64, ptr %9, align 8, !tbaa !9
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %108, i32 0, i32 42
  %110 = getelementptr inbounds %struct.ZSTD_localDict, ptr %109, i32 0, i32 2
  store i64 %107, ptr %110, align 8, !tbaa !41
  %111 = load i32, ptr %11, align 4, !tbaa !11
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ZSTD_CCtx_s, ptr %112, i32 0, i32 42
  %114 = getelementptr inbounds %struct.ZSTD_localDict, ptr %113, i32 0, i32 3
  store i32 %111, ptr %114, align 8, !tbaa !42
  store i64 0, ptr %6, align 8
  br label %115

115:                                              ; preds = %106, %103, %38, %29
  %116 = load i64, ptr %6, align 8
  ret i64 %116

117:                                              ; preds = %103
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden void @ZSTD_clearAllDicts(ptr noundef) #3

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

!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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 3608}
!14 = !{!"ZSTD_CCtx_s", !12, i64 0, !12, i64 4, !12, i64 8, !15, i64 16, !15, i64 232, !15, i64 448, !12, i64 664, !10, i64 672, !20, i64 680, !10, i64 752, !21, i64 760, !21, i64 768, !21, i64 776, !22, i64 784, !19, i64 872, !6, i64 896, !10, i64 904, !23, i64 912, !12, i64 944, !12, i64 948, !24, i64 952, !25, i64 1032, !6, i64 3144, !10, i64 3152, !27, i64 3160, !28, i64 3200, !6, i64 3520, !12, i64 3528, !6, i64 3536, !10, i64 3544, !10, i64 3552, !10, i64 3560, !10, i64 3568, !6, i64 3576, !10, i64 3584, !10, i64 3592, !10, i64 3600, !12, i64 3608, !12, i64 3612, !31, i64 3616, !10, i64 3640, !10, i64 3648, !32, i64 3656, !6, i64 3696, !33, i64 3704, !6, i64 3728, !34, i64 3736, !6, i64 5232, !10, i64 5240}
!15 = !{!"ZSTD_CCtx_params_s", !12, i64 0, !16, i64 4, !17, i64 32, !12, i64 44, !12, i64 48, !10, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !10, i64 80, !12, i64 88, !12, i64 92, !18, i64 96, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !19, i64 152, !12, i64 176, !12, i64 180, !6, i64 184, !6, i64 192, !10, i64 200, !12, i64 208}
!16 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24}
!17 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!18 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !12, i64 60, !12, i64 64, !12, i64 68}
!21 = !{!"long long", !7, i64 0}
!22 = !{!"XXH_NAMESPACEXXH64_state_s", !10, i64 0, !7, i64 8, !7, i64 40, !12, i64 72, !12, i64 76, !10, i64 80}
!23 = !{!"", !12, i64 0, !6, i64 8, !10, i64 16, !10, i64 24}
!24 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 64, !12, i64 72, !12, i64 76}
!25 = !{!"", !26, i64 0, !6, i64 40, !12, i64 48, !6, i64 56, !7, i64 64, !7, i64 576}
!26 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32}
!27 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!28 = !{!"", !6, i64 0, !6, i64 8, !29, i64 16}
!29 = !{!"ZSTD_matchState_t", !26, i64 0, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !6, i64 56, !7, i64 64, !10, i64 96, !12, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !12, i64 136, !12, i64 140, !30, i64 144, !6, i64 248, !16, i64 256, !6, i64 288, !12, i64 296, !12, i64 300}
!30 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !6, i64 88, !12, i64 96}
!31 = !{!"ZSTD_inBuffer_s", !6, i64 0, !10, i64 8, !10, i64 16}
!32 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !12, i64 24, !6, i64 32}
!33 = !{!"ZSTD_prefixDict_s", !6, i64 0, !10, i64 8, !12, i64 16}
!34 = !{!"", !24, i64 0, !24, i64 80, !24, i64 160, !24, i64 240, !24, i64 320, !7, i64 400, !35, i64 1184}
!35 = !{!"", !36, i64 0, !37, i64 144}
!36 = !{!"", !12, i64 0, !7, i64 4, !10, i64 136}
!37 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !7, i64 12, !10, i64 152, !10, i64 160}
!38 = !{!14, !6, i64 3664}
!39 = !{!14, !10, i64 904}
!40 = !{!14, !6, i64 3656}
!41 = !{!14, !10, i64 3672}
!42 = !{!14, !12, i64 3680}


; 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_customMem = type { ptr, ptr, ptr }

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ZSTD_customMalloc(i64 noundef, ptr noundef byval(%struct.ZSTD_customMem) align 8) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -64, 1) i64 @ZSTD_CCtx_loadDictionary_advanced(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 3608
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %8, label %.thread

8:                                                ; preds = %5
  tail call void @ZSTD_clearAllDicts(ptr noundef nonnull %0)
  %9 = icmp eq ptr %1, null
  %10 = icmp eq i64 %2, 0
  %or.cond = or i1 %9, %10
  br i1 %or.cond, label %.thread, label %11

11:                                               ; preds = %8
  %12 = icmp eq i32 %3, 1
  br i1 %12, label %22, label %13

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 904
  %15 = load i64, ptr %14, align 8, !tbaa !35
  %.not28 = icmp eq i64 %15, 0
  br i1 %.not28, label %16, label %.thread

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 872
  %18 = tail call ptr @ZSTD_customMalloc(i64 noundef %2, ptr noundef nonnull byval(%struct.ZSTD_customMem) align 8 %17)
  %19 = icmp eq ptr %18, null
  br i1 %19, label %.thread, label %20

20:                                               ; preds = %16
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %18, ptr nonnull align 1 %1, i64 %2, i1 false)
  %21 = getelementptr inbounds i8, ptr %0, i64 3656
  store ptr %18, ptr %21, align 8, !tbaa !36
  br label %22

22:                                               ; preds = %11, %20
  %.sink = phi ptr [ %18, %20 ], [ %1, %11 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 3664
  store ptr %.sink, ptr %23, align 8, !tbaa !37
  %24 = getelementptr inbounds i8, ptr %0, i64 3672
  store i64 %2, ptr %24, align 8, !tbaa !38
  %25 = getelementptr inbounds i8, ptr %0, i64 3680
  store i32 %4, ptr %25, align 8, !tbaa !39
  br label %.thread

.thread:                                          ; preds = %16, %13, %8, %5, %22
  %.1 = phi i64 [ 0, %22 ], [ -60, %5 ], [ 0, %8 ], [ -64, %13 ], [ -64, %16 ]
  ret i64 %.1
}

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

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

!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 3608}
!6 = !{!"ZSTD_CCtx_s", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 232, !10, i64 448, !7, i64 664, !13, i64 672, !17, i64 680, !13, i64 752, !18, i64 760, !18, i64 768, !18, i64 776, !19, i64 784, !15, i64 872, !16, i64 896, !13, i64 904, !20, i64 912, !7, i64 944, !7, i64 948, !21, i64 952, !22, i64 1032, !16, i64 3144, !13, i64 3152, !24, i64 3160, !25, i64 3200, !16, i64 3520, !7, i64 3528, !16, i64 3536, !13, i64 3544, !13, i64 3552, !13, i64 3560, !13, i64 3568, !16, i64 3576, !13, i64 3584, !13, i64 3592, !13, i64 3600, !7, i64 3608, !7, i64 3612, !28, i64 3616, !13, i64 3640, !13, i64 3648, !29, i64 3656, !16, i64 3696, !30, i64 3704, !16, i64 3728, !31, i64 3736, !16, i64 5232, !13, i64 5240}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"ZSTD_CCtx_params_s", !7, i64 0, !11, i64 4, !12, i64 32, !7, i64 44, !7, i64 48, !13, i64 56, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !13, i64 80, !7, i64 88, !7, i64 92, !14, i64 96, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !15, i64 152, !7, i64 176, !7, i64 180, !16, i64 184, !16, i64 192, !13, i64 200, !7, i64 208}
!11 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!12 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!13 = !{!"long", !8, i64 0}
!14 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!15 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !8, i64 56, !7, i64 60, !7, i64 64, !7, i64 68}
!18 = !{!"long long", !8, i64 0}
!19 = !{!"XXH_NAMESPACEXXH64_state_s", !13, i64 0, !8, i64 8, !8, i64 40, !7, i64 72, !7, i64 76, !13, i64 80}
!20 = !{!"", !7, i64 0, !16, i64 8, !13, i64 16, !13, i64 24}
!21 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !13, i64 56, !13, i64 64, !7, i64 72, !7, i64 76}
!22 = !{!"", !23, i64 0, !16, i64 40, !7, i64 48, !16, i64 56, !8, i64 64, !8, i64 576}
!23 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !7, i64 24, !7, i64 28, !7, i64 32}
!24 = !{!"", !16, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!25 = !{!"", !16, i64 0, !16, i64 8, !26, i64 16}
!26 = !{!"ZSTD_matchState_t", !23, i64 0, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !16, i64 56, !8, i64 64, !13, i64 96, !7, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !7, i64 136, !7, i64 140, !27, i64 144, !16, i64 248, !11, i64 256, !16, i64 288, !7, i64 296, !7, i64 300}
!27 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !16, i64 88, !7, i64 96}
!28 = !{!"ZSTD_inBuffer_s", !16, i64 0, !13, i64 8, !13, i64 16}
!29 = !{!"", !16, i64 0, !16, i64 8, !13, i64 16, !7, i64 24, !16, i64 32}
!30 = !{!"ZSTD_prefixDict_s", !16, i64 0, !13, i64 8, !7, i64 16}
!31 = !{!"", !21, i64 0, !21, i64 80, !21, i64 160, !21, i64 240, !21, i64 320, !8, i64 400, !32, i64 1184}
!32 = !{!"", !33, i64 0, !34, i64 144}
!33 = !{!"", !7, i64 0, !8, i64 4, !13, i64 136}
!34 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 12, !13, i64 152, !13, i64 160}
!35 = !{!6, !13, i64 904}
!36 = !{!6, !16, i64 3656}
!37 = !{!6, !16, i64 3664}
!38 = !{!6, !13, i64 3672}
!39 = !{!6, !7, i64 3680}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass