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

; 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 @_ZN2vl6stream7LzwBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(184)) 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
define dso_local void @_ZN2vl6stream10LzwDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(1344) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @_ZN2vl6stream7LzwBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(184) %7)
  %8 = getelementptr inbounds i8, ptr %7, i64 184
  invoke void @_ZN2vl6stream8IDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %9 unwind label %25

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

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

18:                                               ; preds = %13
  %19 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %7, i32 0, i32 9
  store i64 0, ptr %19, align 8, !tbaa !35
  %20 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %7, i32 0, i32 10
  store i64 0, ptr %20, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !37
  br label %21

21:                                               ; preds = %48, %18
  %22 = load i64, ptr %5, align 8, !tbaa !37
  %23 = icmp slt i64 %22, 256
  br i1 %23, label %37, label %24

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

25:                                               ; preds = %1
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %3, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %4, align 4
  br label %59

29:                                               ; preds = %9
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %3, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %4, align 4
  br label %57

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

37:                                               ; preds = %21
  %38 = getelementptr inbounds %"class.vl::stream::LzwDecoder", ptr %7, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %39 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %7, i32 0, i32 3
  %40 = load ptr, ptr %39, align 8, !tbaa !38
  %41 = getelementptr inbounds %"struct.vl::stream::lzw::Code", ptr %40, i32 0, i32 4
  %42 = load i64, ptr %5, align 8, !tbaa !37
  %43 = trunc i64 %42 to i8
  %44 = invoke noundef ptr @_ZN2vl11collections13ByteObjectMapINS_6stream3lzw4CodeEE3GetEh(ptr noundef nonnull align 8 dereferenceable(16) %41, i8 noundef zeroext %43)
          to label %45 unwind label %51

45:                                               ; preds = %37
  store ptr %44, ptr %6, align 8, !tbaa !5
  %46 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %38, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %47 unwind label %51

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

48:                                               ; preds = %47
  %49 = load i64, ptr %5, align 8, !tbaa !37
  %50 = add nsw i64 %49, 1
  store i64 %50, ptr %5, align 8, !tbaa !37
  br label %21, !llvm.loop !39

51:                                               ; preds = %45, %37
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %3, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @_ZN2vl11collections5ArrayIhhED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  br label %56

55:                                               ; preds = %24
  ret void

56:                                               ; preds = %51, %33
  call void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #4
  br label %57

57:                                               ; preds = %56, %29
  %58 = getelementptr inbounds i8, ptr %7, i64 184
  call void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #4
  br label %59

59:                                               ; preds = %57, %25
  call void @_ZN2vl6stream7LzwBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %7) #4
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr %3, align 8
  %62 = load i32, ptr %4, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

; 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 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 = !{!13, !6, i64 152}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@_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 @_ZN2vl6stream7LzwBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(184)) 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
define dso_local void @_ZN2vl6stream10LzwDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(1344) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  tail call void @_ZN2vl6stream7LzwBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(184) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZN2vl6stream8IDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  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 %3, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 192
  store ptr null, ptr %4, align 8, !tbaa !8
  %5 = getelementptr inbounds i8, ptr %0, i64 200
  invoke void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5)
          to label %6 unwind label %14

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

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

13:                                               ; preds = %25
  ret void

14:                                               ; preds = %1
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %30

16:                                               ; preds = %6
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %29

18:                                               ; preds = %10, %25
  %.010 = phi i64 [ 0, %10 ], [ %26, %25 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %19 = load ptr, ptr %12, align 8, !tbaa !32
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  %21 = trunc nuw i64 %.010 to i8
  %22 = invoke noundef ptr @_ZN2vl11collections13ByteObjectMapINS_6stream3lzw4CodeEE3GetEh(ptr noundef nonnull align 8 dereferenceable(16) %20, i8 noundef zeroext %21)
          to label %23 unwind label %27

23:                                               ; preds = %18
  store ptr %22, ptr %2, align 8, !tbaa !33
  %24 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %25 unwind label %27

25:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %26 = add nuw nsw i64 %.010, 1
  %exitcond.not = icmp eq i64 %26, 256
  br i1 %exitcond.not, label %13, label %18, !llvm.loop !34

27:                                               ; preds = %23, %18
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN2vl11collections5ArrayIhhED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %29

29:                                               ; preds = %27, %16
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %17, %16 ]
  call void @_ZN2vl11collections4ListIPNS_6stream3lzw4CodeES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #5
  br label %30

30:                                               ; preds = %29, %14
  %.pn.pn = phi { ptr, i32 } [ %.pn, %29 ], [ %15, %14 ]
  call void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @_ZN2vl6stream7LzwBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %0) #5
  resume { ptr, i32 } %.pn.pn
}

; 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 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, !19, i64 152}
!33 = !{!19, !19, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


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