; LLVM IR from intel/qpl :: sources/middle-layer/compression/deflate/containers (huffman_table)

; 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.std::array" = type { [21 x %struct.huff_code] }
%struct.huff_code = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { i32 }
%struct.hufftables_icf = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { [31 x %struct.huff_code], [513 x %struct.huff_code] }
%struct.anon.2 = type { i16, i8, i8 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK3qpl2ml11compression17huffman_table_icf21expand_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.std::array", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %16 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #3
  %17 = getelementptr inbounds %struct.hufftables_icf, ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %struct.anon, ptr %17, i32 0, i32 1
  %19 = getelementptr inbounds [513 x %struct.huff_code], ptr %18, i64 0, i64 0
  store ptr %19, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %20 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #3
  %21 = getelementptr inbounds %struct.hufftables_icf, ptr %20, i32 0, i32 0
  %22 = getelementptr inbounds %struct.anon, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds [31 x %struct.huff_code], ptr %22, i64 0, i64 0
  store ptr %23, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 84, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %39, %1
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = icmp ult i32 %25, 21
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %42

28:                                               ; preds = %24
  %29 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #3
  %30 = getelementptr inbounds %struct.hufftables_icf, ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds %struct.anon, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = add i32 %32, 265
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds [513 x %struct.huff_code], ptr %31, i64 0, i64 %34
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %9, i64 noundef %37) #3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %35, i64 4, i1 false), !tbaa.struct !11
  br label %39

39:                                               ; preds = %28
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = add i32 %40, 1
  store i32 %41, ptr %10, align 4, !tbaa !9
  br label %24, !llvm.loop !13

42:                                               ; preds = %27
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.huff_code, ptr %43, i64 265
  store ptr %44, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %105, %42
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = icmp ult i32 %46, 6
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %108

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %101, %49
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = icmp ult i32 %51, 4
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %104

54:                                               ; preds = %50
  %55 = load i32, ptr %3, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %9, i64 noundef %56) #3
  %58 = getelementptr inbounds %struct.huff_code, ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %struct.anon.2, ptr %58, i32 0, i32 2
  %60 = load i8, ptr %59, align 1, !tbaa !12
  %61 = zext i8 %60 to i32
  store i32 %61, ptr %4, align 4, !tbaa !9
  %62 = load i32, ptr %3, align 4, !tbaa !9
  %63 = add i32 %62, 1
  store i32 %63, ptr %3, align 4, !tbaa !9
  %64 = zext i32 %62 to i64
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %9, i64 noundef %64) #3
  %66 = getelementptr inbounds %struct.huff_code, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.anon.2, ptr %66, i32 0, i32 0
  %68 = load i16, ptr %67, align 4, !tbaa !12
  %69 = zext i16 %68 to i32
  store i32 %69, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %97, %54
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = shl i32 1, %72
  %74 = icmp ult i32 %71, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %70
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %100

76:                                               ; preds = %70
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %4, align 4, !tbaa !9
  %80 = shl i32 %78, %79
  %81 = or i32 %77, %80
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.huff_code, ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 4
  %85 = and i32 %81, 16777215
  %86 = and i32 %84, -16777216
  %87 = or i32 %86, %85
  store i32 %87, ptr %83, align 4
  %88 = load i32, ptr %4, align 4, !tbaa !9
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = add i32 %88, %89
  %91 = trunc i32 %90 to i8
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.huff_code, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.anon.2, ptr %93, i32 0, i32 2
  store i8 %91, ptr %94, align 1, !tbaa !12
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.huff_code, ptr %95, i32 1
  store ptr %96, ptr %6, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %76
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = add i32 %98, 1
  store i32 %99, ptr %14, align 4, !tbaa !9
  br label %70, !llvm.loop !15

100:                                              ; preds = %75
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = add i32 %102, 1
  store i32 %103, ptr %13, align 4, !tbaa !9
  br label %50, !llvm.loop !16

104:                                              ; preds = %53
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = add i32 %106, 1
  store i32 %107, ptr %11, align 4, !tbaa !9
  br label %45, !llvm.loop !17

108:                                              ; preds = %48
  %109 = load i32, ptr %3, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %9, i64 noundef %110) #3
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.huff_code, ptr %112, i64 -1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 4 %111, i64 4, i1 false), !tbaa.struct !11
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.huff_code, ptr %114, i64 30
  %116 = getelementptr inbounds %struct.huff_code, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 4
  %118 = and i32 %117, -16777216
  %119 = or i32 %118, 0
  store i32 %119, ptr %116, align 4
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.huff_code, ptr %120, i64 30
  %122 = getelementptr inbounds %struct.huff_code, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %struct.anon.2, ptr %122, i32 0, i32 2
  store i8 0, ptr %123, align 1, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 84, ptr %9) #3
  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 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84), i64 noundef) #0 align 2

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

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

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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.std::array" = type { [21 x %struct.huff_code] }
%struct.huff_code = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK3qpl2ml11compression17huffman_table_icf21expand_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %"struct.std::array", align 4
  %3 = tail call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %4 = tail call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %2) #2
  %5 = tail call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %6 = getelementptr inbounds i8, ptr %5, i64 1184
  %7 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 0) #2
  %8 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %8, ptr %7, align 4, !tbaa !5
  %9 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %10 = getelementptr inbounds i8, ptr %9, i64 1188
  %11 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 1) #2
  %12 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %12, ptr %11, align 4, !tbaa !5
  %13 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %14 = getelementptr inbounds i8, ptr %13, i64 1192
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 2) #2
  %16 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %16, ptr %15, align 4, !tbaa !5
  %17 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %18 = getelementptr inbounds i8, ptr %17, i64 1196
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 3) #2
  %20 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %20, ptr %19, align 4, !tbaa !5
  %21 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %22 = getelementptr inbounds i8, ptr %21, i64 1200
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 4) #2
  %24 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %24, ptr %23, align 4, !tbaa !5
  %25 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %26 = getelementptr inbounds i8, ptr %25, i64 1204
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 5) #2
  %28 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %28, ptr %27, align 4, !tbaa !5
  %29 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %30 = getelementptr inbounds i8, ptr %29, i64 1208
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 6) #2
  %32 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %32, ptr %31, align 4, !tbaa !5
  %33 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %34 = getelementptr inbounds i8, ptr %33, i64 1212
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 7) #2
  %36 = load i32, ptr %34, align 4, !tbaa !5
  store i32 %36, ptr %35, align 4, !tbaa !5
  %37 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %38 = getelementptr inbounds i8, ptr %37, i64 1216
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 8) #2
  %40 = load i32, ptr %38, align 4, !tbaa !5
  store i32 %40, ptr %39, align 4, !tbaa !5
  %41 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %42 = getelementptr inbounds i8, ptr %41, i64 1220
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 9) #2
  %44 = load i32, ptr %42, align 4, !tbaa !5
  store i32 %44, ptr %43, align 4, !tbaa !5
  %45 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %46 = getelementptr inbounds i8, ptr %45, i64 1224
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 10) #2
  %48 = load i32, ptr %46, align 4, !tbaa !5
  store i32 %48, ptr %47, align 4, !tbaa !5
  %49 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %50 = getelementptr inbounds i8, ptr %49, i64 1228
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 11) #2
  %52 = load i32, ptr %50, align 4, !tbaa !5
  store i32 %52, ptr %51, align 4, !tbaa !5
  %53 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %54 = getelementptr inbounds i8, ptr %53, i64 1232
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 12) #2
  %56 = load i32, ptr %54, align 4, !tbaa !5
  store i32 %56, ptr %55, align 4, !tbaa !5
  %57 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %58 = getelementptr inbounds i8, ptr %57, i64 1236
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 13) #2
  %60 = load i32, ptr %58, align 4, !tbaa !5
  store i32 %60, ptr %59, align 4, !tbaa !5
  %61 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %62 = getelementptr inbounds i8, ptr %61, i64 1240
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 14) #2
  %64 = load i32, ptr %62, align 4, !tbaa !5
  store i32 %64, ptr %63, align 4, !tbaa !5
  %65 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %66 = getelementptr inbounds i8, ptr %65, i64 1244
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 15) #2
  %68 = load i32, ptr %66, align 4, !tbaa !5
  store i32 %68, ptr %67, align 4, !tbaa !5
  %69 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %70 = getelementptr inbounds i8, ptr %69, i64 1248
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 16) #2
  %72 = load i32, ptr %70, align 4, !tbaa !5
  store i32 %72, ptr %71, align 4, !tbaa !5
  %73 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %74 = getelementptr inbounds i8, ptr %73, i64 1252
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 17) #2
  %76 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %76, ptr %75, align 4, !tbaa !5
  %77 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %78 = getelementptr inbounds i8, ptr %77, i64 1256
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 18) #2
  %80 = load i32, ptr %78, align 4, !tbaa !5
  store i32 %80, ptr %79, align 4, !tbaa !5
  %81 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %82 = getelementptr inbounds i8, ptr %81, i64 1260
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 19) #2
  %84 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %84, ptr %83, align 4, !tbaa !5
  %85 = call noundef ptr @_ZNK3qpl2ml11compression17huffman_table_icf23get_isal_huffman_tablesEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2
  %86 = getelementptr inbounds i8, ptr %85, i64 1264
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 20) #2
  %88 = load i32, ptr %86, align 4, !tbaa !5
  store i32 %88, ptr %87, align 4, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %3, i64 1184
  br label %.preheader

.preheader:                                       ; preds = %1, %166
  %indvars.iv = phi i64 [ 0, %1 ], [ %indvars.iv.next, %166 ]
  %.02740 = phi i32 [ 1, %1 ], [ %167, %166 ]
  %.03038 = phi ptr [ %89, %1 ], [ %163, %166 ]
  %90 = trunc nuw i32 %.02740 to i8
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %indvars.iv) #2
  %92 = getelementptr inbounds i8, ptr %91, i64 3
  %93 = load i8, ptr %92, align 1, !tbaa !5
  %94 = zext nneg i8 %93 to i32
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %indvars.iv) #2
  %96 = load i16, ptr %95, align 4, !tbaa !5
  %97 = zext i16 %96 to i32
  %98 = add i8 %93, %90
  br label %168

99:                                               ; preds = %166
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef 20) #2
  %101 = load i32, ptr %100, align 4, !tbaa !5
  store i32 %101, ptr %.233.3, align 4, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %4, i64 120
  %103 = load i32, ptr %102, align 4
  %104 = and i32 %103, -16777216
  store i32 %104, ptr %102, align 4
  %105 = getelementptr inbounds i8, ptr %4, i64 123
  store i8 0, ptr %105, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 84, ptr nonnull %2) #2
  ret void

106:                                              ; preds = %168
  %107 = or disjoint i64 %indvars.iv, 1
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %107) #2
  %109 = getelementptr inbounds i8, ptr %108, i64 3
  %110 = load i8, ptr %109, align 1, !tbaa !5
  %111 = zext nneg i8 %110 to i32
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %107) #2
  %113 = load i16, ptr %112, align 4, !tbaa !5
  %114 = zext i16 %113 to i32
  %115 = add i8 %110, %90
  br label %116

116:                                              ; preds = %116, %106
  %.034.1 = phi i32 [ 0, %106 ], [ %124, %116 ]
  %.233.1 = phi ptr [ %175, %106 ], [ %123, %116 ]
  %117 = shl i32 %.034.1, %111
  %118 = load i32, ptr %.233.1, align 4
  %.masked.1 = and i32 %117, 16777215
  %119 = or i32 %.masked.1, %114
  %120 = and i32 %118, -16777216
  %121 = or disjoint i32 %119, %120
  store i32 %121, ptr %.233.1, align 4
  %122 = getelementptr inbounds i8, ptr %.233.1, i64 3
  store i8 %115, ptr %122, align 1, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %.233.1, i64 4
  %124 = add nuw nsw i32 %.034.1, 1
  %.0.highbits.1 = lshr i32 %124, %.02740
  %125 = icmp eq i32 %.0.highbits.1, 0
  br i1 %125, label %116, label %126, !llvm.loop !8

126:                                              ; preds = %116
  %127 = or disjoint i64 %indvars.iv, 2
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %127) #2
  %129 = getelementptr inbounds i8, ptr %128, i64 3
  %130 = load i8, ptr %129, align 1, !tbaa !5
  %131 = zext nneg i8 %130 to i32
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %127) #2
  %133 = load i16, ptr %132, align 4, !tbaa !5
  %134 = zext i16 %133 to i32
  %135 = add i8 %130, %90
  br label %136

136:                                              ; preds = %136, %126
  %.034.2 = phi i32 [ 0, %126 ], [ %144, %136 ]
  %.233.2 = phi ptr [ %123, %126 ], [ %143, %136 ]
  %137 = shl i32 %.034.2, %131
  %138 = load i32, ptr %.233.2, align 4
  %.masked.2 = and i32 %137, 16777215
  %139 = or i32 %.masked.2, %134
  %140 = and i32 %138, -16777216
  %141 = or disjoint i32 %139, %140
  store i32 %141, ptr %.233.2, align 4
  %142 = getelementptr inbounds i8, ptr %.233.2, i64 3
  store i8 %135, ptr %142, align 1, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %.233.2, i64 4
  %144 = add nuw nsw i32 %.034.2, 1
  %.0.highbits.2 = lshr i32 %144, %.02740
  %145 = icmp eq i32 %.0.highbits.2, 0
  br i1 %145, label %136, label %146, !llvm.loop !8

146:                                              ; preds = %136
  %147 = or disjoint i64 %indvars.iv, 3
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %147) #2
  %149 = getelementptr inbounds i8, ptr %148, i64 3
  %150 = load i8, ptr %149, align 1, !tbaa !5
  %151 = zext nneg i8 %150 to i32
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84) %2, i64 noundef %147) #2
  %153 = load i16, ptr %152, align 4, !tbaa !5
  %154 = zext i16 %153 to i32
  %155 = add i8 %150, %90
  br label %156

156:                                              ; preds = %156, %146
  %.034.3 = phi i32 [ 0, %146 ], [ %164, %156 ]
  %.233.3 = phi ptr [ %143, %146 ], [ %163, %156 ]
  %157 = shl i32 %.034.3, %151
  %158 = load i32, ptr %.233.3, align 4
  %.masked.3 = and i32 %157, 16777215
  %159 = or i32 %.masked.3, %154
  %160 = and i32 %158, -16777216
  %161 = or disjoint i32 %159, %160
  store i32 %161, ptr %.233.3, align 4
  %162 = getelementptr inbounds i8, ptr %.233.3, i64 3
  store i8 %155, ptr %162, align 1, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %.233.3, i64 4
  %164 = add nuw nsw i32 %.034.3, 1
  %.0.highbits.3 = lshr i32 %164, %.02740
  %165 = icmp eq i32 %.0.highbits.3, 0
  br i1 %165, label %156, label %166, !llvm.loop !8

166:                                              ; preds = %156
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 4
  %167 = add nuw nsw i32 %.02740, 1
  %exitcond.not = icmp eq i32 %167, 6
  br i1 %exitcond.not, label %99, label %.preheader, !llvm.loop !10

168:                                              ; preds = %.preheader, %168
  %.034 = phi i32 [ 0, %.preheader ], [ %176, %168 ]
  %.233 = phi ptr [ %.03038, %.preheader ], [ %175, %168 ]
  %169 = shl i32 %.034, %94
  %170 = load i32, ptr %.233, align 4
  %.masked = and i32 %169, 16777215
  %171 = or i32 %.masked, %97
  %172 = and i32 %170, -16777216
  %173 = or disjoint i32 %171, %172
  store i32 %173, ptr %.233, align 4
  %174 = getelementptr inbounds i8, ptr %.233, i64 3
  store i8 %98, ptr %174, align 1, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %.233, i64 4
  %176 = add nuw nsw i32 %.034, 1
  %.0.highbits = lshr i32 %176, %.02740
  %177 = icmp eq i32 %.0.highbits, 0
  br i1 %177, label %168, label %106, !llvm.loop !8
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI9huff_codeLm21EEixEm(ptr noundef nonnull align 4 dereferenceable(84), i64 noundef) local_unnamed_addr #0 align 2

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

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


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