; LLVM IR from vczh/herodb :: Kernel/Source/Vlpp.ll (ZN2vl6stream10LzwDecoderC2ERA256_b)

; 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.vl::stream::LzwDecoder" = type { %"class.vl::stream::LzwBase", %"class.vl::stream::IDecoder", ptr, %"class.vl::collections::List.22", ptr, [1024 x i8], i64, i64, %"class.vl::collections::Array.39", i64, i64 }
%"class.vl::stream::LzwBase" = type { %"class.vl::Object", %"class.vl::collections::PushOnlyAllocator", %"class.vl::collections::PushOnlyAllocator.30", ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::PushOnlyAllocator" = type { %"class.vl::Object", i64, i64, %"class.vl::collections::List.22" }
%"class.vl::collections::PushOnlyAllocator.30" = type { %"class.vl::Object", i64, i64, %"class.vl::collections::List.31" }
%"class.vl::collections::List.31" = type { %"class.vl::collections::ListBase.base.37", %"class.vl::collections::IEnumerable.35" }
%"class.vl::collections::ListBase.base.37" = type <{ %"class.vl::collections::ArrayBase.base.36", i64, i8 }>
%"class.vl::collections::ArrayBase.base.36" = type { %"class.vl::collections::ListStore.34", ptr, i64 }
%"class.vl::collections::ListStore.34" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.35" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::stream::IDecoder" = type { %"class.vl::Interface" }
%"class.vl::collections::List.22" = type { %"class.vl::collections::ListBase.base.28", %"class.vl::collections::IEnumerable.26" }
%"class.vl::collections::ListBase.base.28" = type <{ %"class.vl::collections::ArrayBase.base.27", i64, i8 }>
%"class.vl::collections::ArrayBase.base.27" = type { %"class.vl::collections::ListStore.25", ptr, i64 }
%"class.vl::collections::ListStore.25" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.26" = type { %"class.vl::Interface" }
%"class.vl::collections::Array.39" = type { %"class.vl::collections::ArrayBase.base.43", %"class.vl::collections::IEnumerable.42" }
%"class.vl::collections::ArrayBase.base.43" = type { %"class.vl::collections::ListStore.41", ptr, i64 }
%"class.vl::collections::ListStore.41" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.42" = type { %"class.vl::Interface" }
%"struct.vl::stream::lzw::Code" = type { i8, i64, ptr, i64, %"class.vl::collections::ByteObjectMap" }
%"class.vl::collections::ByteObjectMap" = type { %"class.vl::Object", ptr }

@_ZTVN2vl6stream10LzwDecoderE = external dso_local unnamed_addr constant { [7 x ptr], [7 x ptr] }, align 8

; 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 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections5ArrayIhhEC1El(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections5ArrayIhhED1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl6stream8IDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl6stream7LzwBaseC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 1 dereferenceable(256)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl6stream7LzwBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2vl11collections13ByteObjectMapINS_6stream3lzw4CodeEE3GetEh(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl6stream10LzwDecoderC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(1344) %0, ptr noundef nonnull align 1 dereferenceable(256) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN2vl6stream7LzwBaseC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(184) %10, ptr noundef nonnull align 1 dereferenceable(256) %11)
  %12 = getelementptr inbounds i8, ptr %10, i64 184
  invoke void @_ZN2vl6stream8IDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %13 unwind label %29

13:                                               ; preds = %2
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr], [7 x ptr] }, ptr @_ZTVN2vl6stream10LzwDecoderE, i32 0, i32 0, i32 2), ptr %10, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %10, i64 184
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr], [7 x ptr] }, ptr @_ZTVN2vl6stream10LzwDecoderE, i32 0, i32 1, i32 2), ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 2
  store ptr null, ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 3
  invoke void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16)
          to label %17 unwind label %33

17:                                               ; preds = %13
  %18 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 4
  store ptr null, ptr %18, align 8, !tbaa !32
  %19 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 6
  store i64 0, ptr %19, align 8, !tbaa !33
  %20 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 7
  store i64 0, ptr %20, align 8, !tbaa !34
  %21 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 8
  invoke void @_ZN2vl11collections5ArrayIhhEC1El(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0)
          to label %22 unwind label %37

22:                                               ; preds = %17
  %23 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 9
  store i64 0, ptr %23, align 8, !tbaa !35
  %24 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 10
  store i64 0, ptr %24, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !37
  br label %25

25:                                               ; preds = %63, %22
  %26 = load i64, ptr %7, align 8, !tbaa !37
  %27 = icmp slt i64 %26, 256
  br i1 %27, label %41, label %28

28:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %66

29:                                               ; preds = %2
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %5, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %6, align 4
  br label %83

33:                                               ; preds = %13
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %5, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %6, align 4
  br label %81

37:                                               ; preds = %17
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %5, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %6, align 4
  br label %80

41:                                               ; preds = %25
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load i64, ptr %7, align 8, !tbaa !37
  %44 = getelementptr inbounds [256 x i8], ptr %42, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !38, !range !39, !noundef !40
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %62

47:                                               ; preds = %41
  %48 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %49 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %10, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !41
  %51 = getelementptr inbounds %"struct.vl::stream::lzw::Code", ptr %50, i32 0, i32 4
  %52 = load i64, ptr %7, align 8, !tbaa !37
  %53 = trunc i64 %52 to i8
  %54 = invoke noundef ptr @_ZN2vl11collections13ByteObjectMapINS_6stream3lzw4CodeEE3GetEh(ptr noundef nonnull align 8 dereferenceable(16) %51, i8 noundef zeroext %53)
          to label %55 unwind label %58

55:                                               ; preds = %47
  store ptr %54, ptr %8, align 8, !tbaa !5
  %56 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %48, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %57 unwind label %58

57:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %62

58:                                               ; preds = %55, %47
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %79

62:                                               ; preds = %57, %41
  br label %63

63:                                               ; preds = %62
  %64 = load i64, ptr %7, align 8, !tbaa !37
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %7, align 8, !tbaa !37
  br label %25, !llvm.loop !42

66:                                               ; preds = %28
  %67 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %10, i32 0, i32 4
  %68 = load i64, ptr %67, align 8, !tbaa !44
  %69 = icmp ne i64 %68, -1
  br i1 %69, label %70, label %78

70:                                               ; preds = %66
  %71 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %10, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr null, ptr %9, align 8, !tbaa !5
  %72 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %71, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %73 unwind label %74

73:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %78

74:                                               ; preds = %70
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %5, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %79

78:                                               ; preds = %73, %66
  ret void

79:                                               ; preds = %74, %58
  call void @_ZN2vl11collections5ArrayIhhED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  br label %80

80:                                               ; preds = %79, %37
  call void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #4
  br label %81

81:                                               ; preds = %80, %33
  %82 = getelementptr inbounds i8, ptr %10, i64 184
  call void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #4
  br label %83

83:                                               ; preds = %81, %29
  call void @_ZN2vl6stream7LzwBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %10) #4
  br label %84

84:                                               ; preds = %83
  %85 = load ptr, ptr %5, align 8
  %86 = load i32, ptr %6, align 4
  %87 = insertvalue { ptr, i32 } poison, ptr %85, 0
  %88 = insertvalue { ptr, i32 } %87, i32 %86, 1
  resume { ptr, i32 } %88
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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" }
attributes #2 = { 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 #3 = { inlinehint 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 192}
!12 = !{!"_ZTSN2vl6stream10LzwDecoderE", !13, i64 0, !27, i64 184, !6, i64 192, !17, i64 200, !6, i64 248, !7, i64 256, !16, i64 1280, !16, i64 1288, !29, i64 1296, !16, i64 1328, !16, i64 1336}
!13 = !{!"_ZTSN2vl6stream7LzwBaseE", !14, i64 0, !15, i64 8, !22, i64 80, !6, i64 152, !16, i64 160, !16, i64 168, !16, i64 176}
!14 = !{!"_ZTSN2vl6ObjectE"}
!15 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEEE", !14, i64 0, !16, i64 8, !16, i64 16, !17, i64 24}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EE", !18, i64 0}
!18 = !{!"_ZTSN2vl11collections8ListBaseIPNS_6stream3lzw4CodeES5_EE", !19, i64 0, !16, i64 24, !21, i64 32}
!19 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_6stream3lzw4CodeEEE", !20, i64 0, !6, i64 8, !16, i64 16}
!20 = !{!"_ZTSN2vl11collections9ListStoreIPNS_6stream3lzw4CodeELb1EEE", !14, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEEE", !14, i64 0, !16, i64 8, !16, i64 16, !23, i64 24}
!23 = !{!"_ZTSN2vl11collections4ListIPNS0_10bom_helper8TreeNodeES4_EE", !24, i64 0}
!24 = !{!"_ZTSN2vl11collections8ListBaseIPNS0_10bom_helper8TreeNodeES4_EE", !25, i64 0, !16, i64 24, !21, i64 32}
!25 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS0_10bom_helper8TreeNodeEEE", !26, i64 0, !6, i64 8, !16, i64 16}
!26 = !{!"_ZTSN2vl11collections9ListStoreIPNS0_10bom_helper8TreeNodeELb1EEE", !14, i64 0}
!27 = !{!"_ZTSN2vl6stream8IDecoderE", !28, i64 0}
!28 = !{!"_ZTSN2vl9InterfaceE"}
!29 = !{!"_ZTSN2vl11collections5ArrayIhhEE", !30, i64 0}
!30 = !{!"_ZTSN2vl11collections9ArrayBaseIhEE", !31, i64 0, !6, i64 8, !16, i64 16}
!31 = !{!"_ZTSN2vl11collections9ListStoreIhLb1EEE", !14, i64 0}
!32 = !{!12, !6, i64 248}
!33 = !{!12, !16, i64 1280}
!34 = !{!12, !16, i64 1288}
!35 = !{!12, !16, i64 1328}
!36 = !{!12, !16, i64 1336}
!37 = !{!16, !16, i64 0}
!38 = !{!21, !21, i64 0}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!13, !6, i64 152}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = !{!13, !16, i64 160}


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

@_ZTVN2vl6stream10LzwDecoderE = external dso_local unnamed_addr constant { [7 x ptr], [7 x ptr] }, align 8

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections5ArrayIhhEC1El(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections5ArrayIhhED1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl6stream8IDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl6stream7LzwBaseC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 1 dereferenceable(256)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl6stream7LzwBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2vl11collections13ByteObjectMapINS_6stream3lzw4CodeEE3GetEh(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl6stream10LzwDecoderC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(1344) %0, ptr noundef nonnull align 1 dereferenceable(256) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  tail call void @_ZN2vl6stream7LzwBaseC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 1 dereferenceable(256) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZN2vl6stream8IDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN2vl6stream10LzwDecoderE, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN2vl6stream10LzwDecoderE, i64 72), ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 192
  store ptr null, ptr %6, align 8, !tbaa !8
  %7 = getelementptr inbounds i8, ptr %0, i64 200
  invoke void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %8 unwind label %18

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 248
  store ptr null, ptr %9, align 8, !tbaa !31
  %10 = getelementptr inbounds i8, ptr %0, i64 1280
  %11 = getelementptr inbounds i8, ptr %0, i64 1296
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  invoke void @_ZN2vl11collections5ArrayIhhEC1El(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0)
          to label %12 unwind label %20

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 1328
  %14 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  br label %22

15:                                               ; preds = %36
  %16 = getelementptr inbounds i8, ptr %0, i64 160
  %17 = load i64, ptr %16, align 8, !tbaa !32
  %.not = icmp eq i64 %17, -1
  br i1 %.not, label %43, label %38

18:                                               ; preds = %2
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %46

20:                                               ; preds = %8
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %45

22:                                               ; preds = %12, %36
  %.015 = phi i64 [ 0, %12 ], [ %37, %36 ]
  %23 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 %.015
  %24 = load i8, ptr %23, align 1, !tbaa !33, !range !34, !noundef !35
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %26, label %36

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %27 = load ptr, ptr %14, align 8, !tbaa !36
  %28 = getelementptr inbounds i8, ptr %27, i64 32
  %29 = trunc nuw i64 %.015 to i8
  %30 = invoke noundef ptr @_ZN2vl11collections13ByteObjectMapINS_6stream3lzw4CodeEE3GetEh(ptr noundef nonnull align 8 dereferenceable(16) %28, i8 noundef zeroext %29)
          to label %31 unwind label %34

31:                                               ; preds = %26
  store ptr %30, ptr %3, align 8, !tbaa !37
  %32 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %7, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %33 unwind label %34

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %36

34:                                               ; preds = %31, %26
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %44

36:                                               ; preds = %22, %33
  %37 = add nuw nsw i64 %.015, 1
  %exitcond.not = icmp eq i64 %37, 256
  br i1 %exitcond.not, label %15, label %22, !llvm.loop !38

38:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store ptr null, ptr %4, align 8, !tbaa !37
  %39 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %7, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %40 unwind label %41

40:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %43

41:                                               ; preds = %38
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %44

43:                                               ; preds = %40, %15
  ret void

44:                                               ; preds = %41, %34
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %42, %41 ]
  call void @_ZN2vl11collections5ArrayIhhED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %45

45:                                               ; preds = %44, %20
  %.pn.pn = phi { ptr, i32 } [ %.pn, %44 ], [ %21, %20 ]
  call void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #5
  br label %46

46:                                               ; preds = %45, %18
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %45 ], [ %19, %18 ]
  call void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @_ZN2vl6stream7LzwBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %0) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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" }
attributes #2 = { 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 #3 = { inlinehint 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !19, i64 192}
!9 = !{!"_ZTSN2vl6stream10LzwDecoderE", !10, i64 0, !26, i64 184, !19, i64 192, !15, i64 200, !19, i64 248, !14, i64 256, !13, i64 1280, !13, i64 1288, !28, i64 1296, !13, i64 1328, !13, i64 1336}
!10 = !{!"_ZTSN2vl6stream7LzwBaseE", !11, i64 0, !12, i64 8, !21, i64 80, !19, i64 152, !13, i64 160, !13, i64 168, !13, i64 176}
!11 = !{!"_ZTSN2vl6ObjectE"}
!12 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEEE", !11, i64 0, !13, i64 8, !13, i64 16, !15, i64 24}
!13 = !{!"long", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}
!15 = !{!"_ZTSN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EE", !16, i64 0}
!16 = !{!"_ZTSN2vl11collections8ListBaseIPNS_6stream3lzw4CodeES5_EE", !17, i64 0, !13, i64 24, !20, i64 32}
!17 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_6stream3lzw4CodeEEE", !18, i64 0, !19, i64 8, !13, i64 16}
!18 = !{!"_ZTSN2vl11collections9ListStoreIPNS_6stream3lzw4CodeELb1EEE", !11, i64 0}
!19 = !{!"any pointer", !14, i64 0}
!20 = !{!"bool", !14, i64 0}
!21 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEEE", !11, i64 0, !13, i64 8, !13, i64 16, !22, i64 24}
!22 = !{!"_ZTSN2vl11collections4ListIPNS0_10bom_helper8TreeNodeES4_EE", !23, i64 0}
!23 = !{!"_ZTSN2vl11collections8ListBaseIPNS0_10bom_helper8TreeNodeES4_EE", !24, i64 0, !13, i64 24, !20, i64 32}
!24 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS0_10bom_helper8TreeNodeEEE", !25, i64 0, !19, i64 8, !13, i64 16}
!25 = !{!"_ZTSN2vl11collections9ListStoreIPNS0_10bom_helper8TreeNodeELb1EEE", !11, i64 0}
!26 = !{!"_ZTSN2vl6stream8IDecoderE", !27, i64 0}
!27 = !{!"_ZTSN2vl9InterfaceE"}
!28 = !{!"_ZTSN2vl11collections5ArrayIhhEE", !29, i64 0}
!29 = !{!"_ZTSN2vl11collections9ArrayBaseIhEE", !30, i64 0, !19, i64 8, !13, i64 16}
!30 = !{!"_ZTSN2vl11collections9ListStoreIhLb1EEE", !11, i64 0}
!31 = !{!9, !19, i64 248}
!32 = !{!10, !13, i64 160}
!33 = !{!20, !20, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!10, !19, i64 152}
!37 = !{!19, !19, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass