; LLVM IR from vczh/herodb :: Kernel/Source/Vlpp.ll (ZN2vl6stream7LzwBaseC2ERA256_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::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::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::Interface" = type { ptr }
%"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" }

@_ZTVN2vl6stream7LzwBaseE = external dso_local unnamed_addr constant { [4 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2vl6stream7LzwBase10CreateCodeEPNS0_3lzw4CodeEh(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef, i8 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(72)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEEC2El(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEEC2El(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl6stream7LzwBaseC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 1 dereferenceable(256) %1) unnamed_addr #3 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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN2vl6stream7LzwBaseE, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %9 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 1
  invoke void @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEEC2El(ptr noundef nonnull align 8 dereferenceable(72) %9, i64 noundef 65536)
          to label %10 unwind label %24

10:                                               ; preds = %2
  %11 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 2
  invoke void @_ZN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEEC2El(ptr noundef nonnull align 8 dereferenceable(72) %11, i64 noundef 65536)
          to label %12 unwind label %28

12:                                               ; preds = %10
  %13 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 4
  store i64 -1, ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 5
  store i64 0, ptr %14, align 8, !tbaa !26
  %15 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 6
  store i64 1, ptr %15, align 8, !tbaa !27
  %16 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 1
  %17 = invoke noundef ptr @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(72) %16)
          to label %18 unwind label %32

18:                                               ; preds = %12
  %19 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 3
  store ptr %17, ptr %19, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !29
  br label %20

20:                                               ; preds = %54, %18
  %21 = load i64, ptr %7, align 8, !tbaa !29
  %22 = icmp slt i64 %21, 256
  br i1 %22, label %36, label %23

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

24:                                               ; preds = %2
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %5, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %6, align 4
  br label %69

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

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

36:                                               ; preds = %20
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load i64, ptr %7, align 8, !tbaa !29
  %39 = getelementptr inbounds [256 x i8], ptr %37, i64 0, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !30, !range !31, !noundef !32
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %53

42:                                               ; preds = %36
  call void @_ZN2vl6stream7LzwBase15UpdateIndexBitsEv(ptr noundef nonnull align 8 dereferenceable(184) %8)
  %43 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 3
  %44 = load ptr, ptr %43, align 8, !tbaa !28
  %45 = load i64, ptr %7, align 8, !tbaa !29
  %46 = trunc i64 %45 to i8
  %47 = invoke noundef ptr @_ZN2vl6stream7LzwBase10CreateCodeEPNS0_3lzw4CodeEh(ptr noundef nonnull align 8 dereferenceable(184) %8, ptr noundef %44, i8 noundef zeroext %46)
          to label %48 unwind label %49

48:                                               ; preds = %42
  br label %53

49:                                               ; preds = %42
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %67

53:                                               ; preds = %48, %36
  br label %54

54:                                               ; preds = %53
  %55 = load i64, ptr %7, align 8, !tbaa !29
  %56 = add nsw i64 %55, 1
  store i64 %56, ptr %7, align 8, !tbaa !29
  br label %20, !llvm.loop !33

57:                                               ; preds = %23
  %58 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 6
  %59 = load i64, ptr %58, align 8, !tbaa !27
  %60 = icmp slt i64 %59, 8
  br i1 %60, label %61, label %66

61:                                               ; preds = %57
  %62 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 5
  %63 = load i64, ptr %62, align 8, !tbaa !26
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %62, align 8, !tbaa !26
  %65 = getelementptr inbounds %"class.vl::stream::LzwBase", ptr %8, i32 0, i32 4
  store i64 %63, ptr %65, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %61, %57
  ret void

67:                                               ; preds = %49, %32
  call void @_ZN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #4
  br label %68

68:                                               ; preds = %67, %28
  call void @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %9) #4
  br label %69

69:                                               ; preds = %68, %24
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %5, align 8
  %72 = load i32, ptr %6, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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, !15, i64 160}
!12 = !{!"_ZTSN2vl6stream7LzwBaseE", !13, i64 0, !14, i64 8, !21, i64 80, !6, i64 152, !15, i64 160, !15, i64 168, !15, i64 176}
!13 = !{!"_ZTSN2vl6ObjectE"}
!14 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEEE", !13, i64 0, !15, i64 8, !15, i64 16, !16, i64 24}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EE", !17, i64 0}
!17 = !{!"_ZTSN2vl11collections8ListBaseIPNS_6stream3lzw4CodeES5_EE", !18, i64 0, !15, i64 24, !20, i64 32}
!18 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_6stream3lzw4CodeEEE", !19, i64 0, !6, i64 8, !15, i64 16}
!19 = !{!"_ZTSN2vl11collections9ListStoreIPNS_6stream3lzw4CodeELb1EEE", !13, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEEE", !13, i64 0, !15, i64 8, !15, i64 16, !22, i64 24}
!22 = !{!"_ZTSN2vl11collections4ListIPNS0_10bom_helper8TreeNodeES4_EE", !23, i64 0}
!23 = !{!"_ZTSN2vl11collections8ListBaseIPNS0_10bom_helper8TreeNodeES4_EE", !24, i64 0, !15, i64 24, !20, i64 32}
!24 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS0_10bom_helper8TreeNodeEEE", !25, i64 0, !6, i64 8, !15, i64 16}
!25 = !{!"_ZTSN2vl11collections9ListStoreIPNS0_10bom_helper8TreeNodeELb1EEE", !13, i64 0}
!26 = !{!12, !15, i64 168}
!27 = !{!12, !15, i64 176}
!28 = !{!12, !6, i64 152}
!29 = !{!15, !15, i64 0}
!30 = !{!20, !20, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !34}
!34 = !{!"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"

@_ZTVN2vl6stream7LzwBaseE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl6stream7LzwBaseC2ERA256_b(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr nocapture noundef nonnull readonly align 1 dereferenceable(256) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #3
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN2vl6stream7LzwBaseE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEEC2El(ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef 65536)
          to label %4 unwind label %16

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEEC2El(ptr noundef nonnull align 8 dereferenceable(72) %5, i64 noundef 65536)
          to label %6 unwind label %18

6:                                                ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 160
  store i64 -1, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 168
  store i64 0, ptr %8, align 8, !tbaa !25
  %9 = getelementptr inbounds i8, ptr %0, i64 176
  store i64 1, ptr %9, align 8, !tbaa !26
  %10 = invoke noundef ptr @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(72) %3)
          to label %11 unwind label %20

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %10, ptr %12, align 8, !tbaa !27
  br label %22

13:                                               ; preds = %32
  %14 = load i64, ptr %9, align 8, !tbaa !26
  %15 = icmp slt i64 %14, 8
  br i1 %15, label %34, label %37

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

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

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

22:                                               ; preds = %11, %32
  %.014 = phi i64 [ 0, %11 ], [ %33, %32 ]
  %23 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 %.014
  %24 = load i8, ptr %23, align 1, !tbaa !28, !range !29, !noundef !30
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %26, label %32

26:                                               ; preds = %22
  tail call void @_ZN2vl6stream7LzwBase15UpdateIndexBitsEv(ptr noundef nonnull align 8 dereferenceable(184) %0)
  %27 = load ptr, ptr %12, align 8, !tbaa !27
  %28 = trunc nuw i64 %.014 to i8
  %29 = invoke noundef ptr @_ZN2vl6stream7LzwBase10CreateCodeEPNS0_3lzw4CodeEh(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef %27, i8 noundef zeroext %28)
          to label %32 unwind label %30

30:                                               ; preds = %26
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %38

32:                                               ; preds = %22, %26
  %33 = add nuw nsw i64 %.014, 1
  %exitcond.not = icmp eq i64 %33, 256
  br i1 %exitcond.not, label %13, label %22, !llvm.loop !31

34:                                               ; preds = %13
  %35 = load i64, ptr %8, align 8, !tbaa !25
  %36 = add nsw i64 %35, 1
  store i64 %36, ptr %8, align 8, !tbaa !25
  store i64 %35, ptr %7, align 8, !tbaa !8
  br label %37

37:                                               ; preds = %34, %13
  ret void

38:                                               ; preds = %30, %20
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %21, %20 ]
  tail call void @_ZN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %5) #3
  br label %39

39:                                               ; preds = %38, %18
  %.pn.pn = phi { ptr, i32 } [ %.pn, %38 ], [ %19, %18 ]
  tail call void @_ZN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %3) #3
  br label %40

40:                                               ; preds = %39, %16
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %39 ], [ %17, %16 ]
  tail call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #3
  resume { ptr, i32 } %.pn.pn.pn
}

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 160}
!9 = !{!"_ZTSN2vl6stream7LzwBaseE", !10, i64 0, !11, i64 8, !20, i64 80, !18, i64 152, !12, i64 160, !12, i64 168, !12, i64 176}
!10 = !{!"_ZTSN2vl6ObjectE"}
!11 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS_6stream3lzw4CodeEEE", !10, i64 0, !12, i64 8, !12, i64 16, !14, i64 24}
!12 = !{!"long", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"_ZTSN2vl11collections4ListIPNS_6stream3lzw4CodeES5_EE", !15, i64 0}
!15 = !{!"_ZTSN2vl11collections8ListBaseIPNS_6stream3lzw4CodeES5_EE", !16, i64 0, !12, i64 24, !19, i64 32}
!16 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_6stream3lzw4CodeEEE", !17, i64 0, !18, i64 8, !12, i64 16}
!17 = !{!"_ZTSN2vl11collections9ListStoreIPNS_6stream3lzw4CodeELb1EEE", !10, i64 0}
!18 = !{!"any pointer", !13, i64 0}
!19 = !{!"bool", !13, i64 0}
!20 = !{!"_ZTSN2vl11collections17PushOnlyAllocatorINS0_10bom_helper8TreeNodeEEE", !10, i64 0, !12, i64 8, !12, i64 16, !21, i64 24}
!21 = !{!"_ZTSN2vl11collections4ListIPNS0_10bom_helper8TreeNodeES4_EE", !22, i64 0}
!22 = !{!"_ZTSN2vl11collections8ListBaseIPNS0_10bom_helper8TreeNodeES4_EE", !23, i64 0, !12, i64 24, !19, i64 32}
!23 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS0_10bom_helper8TreeNodeEEE", !24, i64 0, !18, i64 8, !12, i64 16}
!24 = !{!"_ZTSN2vl11collections9ListStoreIPNS0_10bom_helper8TreeNodeELb1EEE", !10, i64 0}
!25 = !{!9, !12, i64 168}
!26 = !{!9, !12, i64 176}
!27 = !{!9, !18, i64 152}
!28 = !{!19, !19, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


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