; LLVM IR from intel/qpl :: tools/utils/generators/deflate_generator (gen)

; 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"

%"class.gz_generator::gen_c" = type { %struct.anon, i8, %"class.gz_generator::huffman_c", %"class.gz_generator::grammar_c", %"class.gz_generator::BitBuffer", ptr, i32, [286 x i32], i32, [32 x i32], i32, [19 x i32], i32, [19 x i32], i32, [1024 x i32], i32, [1024 x i32], i32, [19 x i32], i32, i32, i32, i8, [32768 x i8], i32, i32, [3 x i8], i32 }
%struct.anon = type { i8, i8, i8, i8 }
%"class.gz_generator::huffman_c" = type { %class.symbol_list, %class.histogram, [288 x i32], [32 x i32], i8, i8, i8, i32, %"class.std::vector" }
%class.symbol_list = type { ptr, ptr, i32, i32 }
%class.histogram = type { [32768 x i32], [513 x i32], [32 x i32], [286 x i32] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.gz_generator::grammar_c" = type { %class.token_parser_c, ptr }
%class.token_parser_c = type { ptr, %class.token_c, i8, i32 }
%class.token_c = type { i8, i32 }
%"class.gz_generator::BitBuffer" = type { i8, i32, %struct.anon.0, ptr }
%struct.anon.0 = type { i64, i32 }

@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336), ptr noundef, ...) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12gz_generator5gen_c9proc_lensENS_10len_type_tEj(ptr noundef nonnull align 8 dereferenceable(178336) %0, i8 noundef zeroext %1, i32 noundef %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i8 %1, ptr %5, align 1, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %7 = load ptr, ptr %4, align 8
  %8 = load i8, ptr %5, align 1, !tbaa !9
  %9 = zext i8 %8 to i32
  switch i32 %9, label %111 [
    i32 0, label %10
    i32 1, label %23
    i32 2, label %36
    i32 3, label %54
    i32 4, label %72
    i32 5, label %85
    i32 6, label %98
  ]

10:                                               ; preds = %3
  %11 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 8
  %12 = load i32, ptr %11, align 4, !tbaa !13
  %13 = icmp uge i32 %12, 286
  br i1 %13, label %14, label %15

14:                                               ; preds = %10
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.6)
  br label %15

15:                                               ; preds = %14, %10
  %16 = load i32, ptr %6, align 4, !tbaa !11
  %17 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 7
  %18 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 8
  %19 = load i32, ptr %18, align 4, !tbaa !13
  %20 = add i32 %19, 1
  store i32 %20, ptr %18, align 4, !tbaa !13
  %21 = zext i32 %19 to i64
  %22 = getelementptr inbounds [286 x i32], ptr %17, i64 0, i64 %21
  store i32 %16, ptr %22, align 4, !tbaa !11
  br label %111

23:                                               ; preds = %3
  %24 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 10
  %25 = load i32, ptr %24, align 8, !tbaa !32
  %26 = icmp uge i32 %25, 32
  br i1 %26, label %27, label %28

27:                                               ; preds = %23
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.7)
  br label %28

28:                                               ; preds = %27, %23
  %29 = load i32, ptr %6, align 4, !tbaa !11
  %30 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 9
  %31 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 10
  %32 = load i32, ptr %31, align 8, !tbaa !32
  %33 = add i32 %32, 1
  store i32 %33, ptr %31, align 8, !tbaa !32
  %34 = zext i32 %32 to i64
  %35 = getelementptr inbounds [32 x i32], ptr %30, i64 0, i64 %34
  store i32 %29, ptr %35, align 4, !tbaa !11
  br label %111

36:                                               ; preds = %3
  %37 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 14
  %38 = load i32, ptr %37, align 8, !tbaa !33
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.8)
  br label %41

41:                                               ; preds = %40, %36
  %42 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 12
  %43 = load i32, ptr %42, align 8, !tbaa !34
  %44 = icmp uge i32 %43, 19
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.9)
  br label %46

46:                                               ; preds = %45, %41
  %47 = load i32, ptr %6, align 4, !tbaa !11
  %48 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 11
  %49 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 12
  %50 = load i32, ptr %49, align 8, !tbaa !34
  %51 = add i32 %50, 1
  store i32 %51, ptr %49, align 8, !tbaa !34
  %52 = zext i32 %50 to i64
  %53 = getelementptr inbounds [19 x i32], ptr %48, i64 0, i64 %52
  store i32 %47, ptr %53, align 4, !tbaa !11
  br label %111

54:                                               ; preds = %3
  %55 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 12
  %56 = load i32, ptr %55, align 8, !tbaa !34
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.10)
  br label %59

59:                                               ; preds = %58, %54
  %60 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 14
  %61 = load i32, ptr %60, align 8, !tbaa !33
  %62 = icmp uge i32 %61, 19
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.11)
  br label %64

64:                                               ; preds = %63, %59
  %65 = load i32, ptr %6, align 4, !tbaa !11
  %66 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 13
  %67 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 14
  %68 = load i32, ptr %67, align 8, !tbaa !33
  %69 = add i32 %68, 1
  store i32 %69, ptr %67, align 8, !tbaa !33
  %70 = zext i32 %68 to i64
  %71 = getelementptr inbounds [19 x i32], ptr %66, i64 0, i64 %70
  store i32 %65, ptr %71, align 4, !tbaa !11
  br label %111

72:                                               ; preds = %3
  %73 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 16
  %74 = load i32, ptr %73, align 4, !tbaa !35
  %75 = icmp uge i32 %74, 1024
  br i1 %75, label %76, label %77

76:                                               ; preds = %72
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.12)
  br label %77

77:                                               ; preds = %76, %72
  %78 = load i32, ptr %6, align 4, !tbaa !11
  %79 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 15
  %80 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 16
  %81 = load i32, ptr %80, align 4, !tbaa !35
  %82 = add i32 %81, 1
  store i32 %82, ptr %80, align 4, !tbaa !35
  %83 = zext i32 %81 to i64
  %84 = getelementptr inbounds [1024 x i32], ptr %79, i64 0, i64 %83
  store i32 %78, ptr %84, align 4, !tbaa !11
  br label %111

85:                                               ; preds = %3
  %86 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 18
  %87 = load i32, ptr %86, align 8, !tbaa !36
  %88 = icmp uge i32 %87, 1024
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.13)
  br label %90

90:                                               ; preds = %89, %85
  %91 = load i32, ptr %6, align 4, !tbaa !11
  %92 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 17
  %93 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 18
  %94 = load i32, ptr %93, align 8, !tbaa !36
  %95 = add i32 %94, 1
  store i32 %95, ptr %93, align 8, !tbaa !36
  %96 = zext i32 %94 to i64
  %97 = getelementptr inbounds [1024 x i32], ptr %92, i64 0, i64 %96
  store i32 %91, ptr %97, align 4, !tbaa !11
  br label %111

98:                                               ; preds = %3
  %99 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 20
  %100 = load i32, ptr %99, align 8, !tbaa !37
  %101 = icmp uge i32 %100, 19
  br i1 %101, label %102, label %103

102:                                              ; preds = %98
  call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %7, ptr noundef @.str.14)
  br label %103

103:                                              ; preds = %102, %98
  %104 = load i32, ptr %6, align 4, !tbaa !11
  %105 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 19
  %106 = getelementptr inbounds %"class.gz_generator::gen_c", ptr %7, i32 0, i32 20
  %107 = load i32, ptr %106, align 8, !tbaa !37
  %108 = add i32 %107, 1
  store i32 %108, ptr %106, align 8, !tbaa !37
  %109 = zext i32 %107 to i64
  %110 = getelementptr inbounds [19 x i32], ptr %105, i64 0, i64 %109
  store i32 %104, ptr %110, align 4, !tbaa !11
  br label %111

111:                                              ; preds = %103, %90, %77, %64, %46, %28, %15, %3
  ret void
}

attributes #0 = { mustprogress 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, !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 = !{!"_ZTSN12gz_generator10len_type_tE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 136964}
!14 = !{!"_ZTSN12gz_generator5gen_cE", !15, i64 0, !17, i64 4, !18, i64 8, !25, i64 135744, !29, i64 135776, !6, i64 135808, !12, i64 135816, !7, i64 135820, !12, i64 136964, !7, i64 136968, !12, i64 137096, !7, i64 137100, !12, i64 137176, !7, i64 137180, !12, i64 137256, !7, i64 137260, !12, i64 141356, !7, i64 141360, !12, i64 145456, !7, i64 145460, !12, i64 145536, !12, i64 145540, !12, i64 145544, !16, i64 145548, !7, i64 145549, !12, i64 178320, !12, i64 178324, !7, i64 178328, !12, i64 178332}
!15 = !{!"_ZTSN12gz_generator5gen_cUt_E", !16, i64 0, !16, i64 1, !16, i64 2, !16, i64 3}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN12gz_generator5gen_cUt0_E", !7, i64 0}
!18 = !{!"_ZTSN12gz_generator9huffman_cE", !19, i64 0, !20, i64 24, !7, i64 134420, !7, i64 135572, !16, i64 135700, !16, i64 135701, !16, i64 135702, !12, i64 135704, !21, i64 135712}
!19 = !{!"_ZTS11symbol_list", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20}
!20 = !{!"_ZTS9histogram", !7, i64 0, !7, i64 131072, !7, i64 133124, !7, i64 133252}
!21 = !{!"_ZTSSt6vectorIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN12gz_generator9grammar_cE", !26, i64 0, !6, i64 24}
!26 = !{!"_ZTS14token_parser_c", !6, i64 0, !27, i64 8, !16, i64 16, !12, i64 20}
!27 = !{!"_ZTS7token_c", !28, i64 0, !12, i64 4}
!28 = !{!"_ZTS12token_type_t", !7, i64 0}
!29 = !{!"_ZTSN12gz_generator9BitBufferE", !16, i64 0, !12, i64 4, !30, i64 8, !6, i64 24}
!30 = !{!"_ZTSN12gz_generator9BitBufferUt_E", !31, i64 0, !12, i64 8}
!31 = !{!"long", !7, i64 0}
!32 = !{!14, !12, i64 137096}
!33 = !{!14, !12, i64 137256}
!34 = !{!14, !12, i64 137176}
!35 = !{!14, !12, i64 141356}
!36 = !{!14, !12, i64 145456}
!37 = !{!14, !12, i64 145536}


; 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"

@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336), ptr noundef, ...) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12gz_generator5gen_c9proc_lensENS_10len_type_tEj(ptr noundef nonnull align 8 dereferenceable(178336) %0, i8 noundef zeroext %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  switch i8 %1, label %89 [
    i8 0, label %4
    i8 1, label %15
    i8 2, label %26
    i8 3, label %41
    i8 4, label %56
    i8 5, label %67
    i8 6, label %78
  ]

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 136964
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp ugt i32 %6, 285
  br i1 %7, label %8, label %9

8:                                                ; preds = %4
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.6)
  %.pre14 = load i32, ptr %5, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %8, %4
  %10 = phi i32 [ %.pre14, %8 ], [ %6, %4 ]
  %11 = getelementptr inbounds i8, ptr %0, i64 135820
  %12 = add i32 %10, 1
  store i32 %12, ptr %5, align 4, !tbaa !5
  %13 = zext i32 %10 to i64
  %14 = getelementptr inbounds [286 x i32], ptr %11, i64 0, i64 %13
  br label %.sink.split

15:                                               ; preds = %3
  %16 = getelementptr inbounds i8, ptr %0, i64 137096
  %17 = load i32, ptr %16, align 8, !tbaa !28
  %18 = icmp ugt i32 %17, 31
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.7)
  %.pre13 = load i32, ptr %16, align 8, !tbaa !28
  br label %20

20:                                               ; preds = %19, %15
  %21 = phi i32 [ %.pre13, %19 ], [ %17, %15 ]
  %22 = getelementptr inbounds i8, ptr %0, i64 136968
  %23 = add i32 %21, 1
  store i32 %23, ptr %16, align 8, !tbaa !28
  %24 = zext i32 %21 to i64
  %25 = getelementptr inbounds [32 x i32], ptr %22, i64 0, i64 %24
  br label %.sink.split

26:                                               ; preds = %3
  %27 = getelementptr inbounds i8, ptr %0, i64 137256
  %28 = load i32, ptr %27, align 8, !tbaa !29
  %.not8 = icmp eq i32 %28, 0
  br i1 %.not8, label %30, label %29

29:                                               ; preds = %26
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.8)
  br label %30

30:                                               ; preds = %29, %26
  %31 = getelementptr inbounds i8, ptr %0, i64 137176
  %32 = load i32, ptr %31, align 8, !tbaa !30
  %33 = icmp ugt i32 %32, 18
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.9)
  %.pre12 = load i32, ptr %31, align 8, !tbaa !30
  br label %35

35:                                               ; preds = %34, %30
  %36 = phi i32 [ %.pre12, %34 ], [ %32, %30 ]
  %37 = getelementptr inbounds i8, ptr %0, i64 137100
  %38 = add i32 %36, 1
  store i32 %38, ptr %31, align 8, !tbaa !30
  %39 = zext i32 %36 to i64
  %40 = getelementptr inbounds [19 x i32], ptr %37, i64 0, i64 %39
  br label %.sink.split

41:                                               ; preds = %3
  %42 = getelementptr inbounds i8, ptr %0, i64 137176
  %43 = load i32, ptr %42, align 8, !tbaa !30
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %45, label %44

44:                                               ; preds = %41
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.10)
  br label %45

45:                                               ; preds = %44, %41
  %46 = getelementptr inbounds i8, ptr %0, i64 137256
  %47 = load i32, ptr %46, align 8, !tbaa !29
  %48 = icmp ugt i32 %47, 18
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.11)
  %.pre11 = load i32, ptr %46, align 8, !tbaa !29
  br label %50

50:                                               ; preds = %49, %45
  %51 = phi i32 [ %.pre11, %49 ], [ %47, %45 ]
  %52 = getelementptr inbounds i8, ptr %0, i64 137180
  %53 = add i32 %51, 1
  store i32 %53, ptr %46, align 8, !tbaa !29
  %54 = zext i32 %51 to i64
  %55 = getelementptr inbounds [19 x i32], ptr %52, i64 0, i64 %54
  br label %.sink.split

56:                                               ; preds = %3
  %57 = getelementptr inbounds i8, ptr %0, i64 141356
  %58 = load i32, ptr %57, align 4, !tbaa !31
  %59 = icmp ugt i32 %58, 1023
  br i1 %59, label %60, label %61

60:                                               ; preds = %56
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.12)
  %.pre10 = load i32, ptr %57, align 4, !tbaa !31
  br label %61

61:                                               ; preds = %60, %56
  %62 = phi i32 [ %.pre10, %60 ], [ %58, %56 ]
  %63 = getelementptr inbounds i8, ptr %0, i64 137260
  %64 = add i32 %62, 1
  store i32 %64, ptr %57, align 4, !tbaa !31
  %65 = zext i32 %62 to i64
  %66 = getelementptr inbounds [1024 x i32], ptr %63, i64 0, i64 %65
  br label %.sink.split

67:                                               ; preds = %3
  %68 = getelementptr inbounds i8, ptr %0, i64 145456
  %69 = load i32, ptr %68, align 8, !tbaa !32
  %70 = icmp ugt i32 %69, 1023
  br i1 %70, label %71, label %72

71:                                               ; preds = %67
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.13)
  %.pre9 = load i32, ptr %68, align 8, !tbaa !32
  br label %72

72:                                               ; preds = %71, %67
  %73 = phi i32 [ %.pre9, %71 ], [ %69, %67 ]
  %74 = getelementptr inbounds i8, ptr %0, i64 141360
  %75 = add i32 %73, 1
  store i32 %75, ptr %68, align 8, !tbaa !32
  %76 = zext i32 %73 to i64
  %77 = getelementptr inbounds [1024 x i32], ptr %74, i64 0, i64 %76
  br label %.sink.split

78:                                               ; preds = %3
  %79 = getelementptr inbounds i8, ptr %0, i64 145536
  %80 = load i32, ptr %79, align 8, !tbaa !33
  %81 = icmp ugt i32 %80, 18
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  tail call void (ptr, ptr, ...) @_ZN12gz_generator5gen_c3dieEPKcz(ptr noundef nonnull align 8 dereferenceable(178336) %0, ptr noundef nonnull @.str.14)
  %.pre = load i32, ptr %79, align 8, !tbaa !33
  br label %83

83:                                               ; preds = %82, %78
  %84 = phi i32 [ %.pre, %82 ], [ %80, %78 ]
  %85 = getelementptr inbounds i8, ptr %0, i64 145460
  %86 = add i32 %84, 1
  store i32 %86, ptr %79, align 8, !tbaa !33
  %87 = zext i32 %84 to i64
  %88 = getelementptr inbounds [19 x i32], ptr %85, i64 0, i64 %87
  br label %.sink.split

.sink.split:                                      ; preds = %9, %20, %35, %50, %61, %72, %83
  %.sink = phi ptr [ %88, %83 ], [ %77, %72 ], [ %66, %61 ], [ %55, %50 ], [ %40, %35 ], [ %25, %20 ], [ %14, %9 ]
  store i32 %2, ptr %.sink, align 4, !tbaa !34
  br label %89

89:                                               ; preds = %.sink.split, %3
  ret void
}

attributes #0 = { mustprogress 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, !15, i64 136964}
!6 = !{!"_ZTSN12gz_generator5gen_cE", !7, i64 0, !11, i64 4, !12, i64 8, !21, i64 135744, !25, i64 135776, !14, i64 135808, !15, i64 135816, !9, i64 135820, !15, i64 136964, !9, i64 136968, !15, i64 137096, !9, i64 137100, !15, i64 137176, !9, i64 137180, !15, i64 137256, !9, i64 137260, !15, i64 141356, !9, i64 141360, !15, i64 145456, !9, i64 145460, !15, i64 145536, !15, i64 145540, !15, i64 145544, !8, i64 145548, !9, i64 145549, !15, i64 178320, !15, i64 178324, !9, i64 178328, !15, i64 178332}
!7 = !{!"_ZTSN12gz_generator5gen_cUt_E", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN12gz_generator5gen_cUt0_E", !9, i64 0}
!12 = !{!"_ZTSN12gz_generator9huffman_cE", !13, i64 0, !16, i64 24, !9, i64 134420, !9, i64 135572, !8, i64 135700, !8, i64 135701, !8, i64 135702, !15, i64 135704, !17, i64 135712}
!13 = !{!"_ZTS11symbol_list", !14, i64 0, !14, i64 8, !15, i64 16, !15, i64 20}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTS9histogram", !9, i64 0, !9, i64 131072, !9, i64 133124, !9, i64 133252}
!17 = !{!"_ZTSSt6vectorIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!"_ZTSN12gz_generator9grammar_cE", !22, i64 0, !14, i64 24}
!22 = !{!"_ZTS14token_parser_c", !14, i64 0, !23, i64 8, !8, i64 16, !15, i64 20}
!23 = !{!"_ZTS7token_c", !24, i64 0, !15, i64 4}
!24 = !{!"_ZTS12token_type_t", !9, i64 0}
!25 = !{!"_ZTSN12gz_generator9BitBufferE", !8, i64 0, !15, i64 4, !26, i64 8, !14, i64 24}
!26 = !{!"_ZTSN12gz_generator9BitBufferUt_E", !27, i64 0, !15, i64 8}
!27 = !{!"long", !9, i64 0}
!28 = !{!6, !15, i64 137096}
!29 = !{!6, !15, i64 137256}
!30 = !{!6, !15, i64 137176}
!31 = !{!6, !15, i64 141356}
!32 = !{!6, !15, i64 145456}
!33 = !{!6, !15, i64 145536}
!34 = !{!15, !15, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass