; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Compress/Bcj2Coder.ll (ZN9NCompress5NBcj28CDecoderC2Ev)

; 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.NCompress::NBcj2::CDecoder" = type { %struct.ICompressCoder2, %struct.ICompressSetFinishMode, %struct.ICompressGetInStreamProcessedSize2, %struct.ICompressSetInStream2, %struct.ISequentialInStream, %struct.ICompressSetOutStreamSize, %struct.ICompressSetBufSize, %class.CMyUnknownImp, %"class.NCompress::NBcj2::CBaseCoder", [4 x i32], [4 x i64], [4 x i32], [4 x %class.CMyComPtr.0], i8, i8, i64, i64, %struct.CBcj2Dec }
%struct.ICompressCoder2 = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.ICompressSetFinishMode = type { %struct.IUnknown }
%struct.ICompressGetInStreamProcessedSize2 = type { %struct.IUnknown }
%struct.ICompressSetInStream2 = type { %struct.IUnknown }
%struct.ISequentialInStream = type { %struct.IUnknown }
%struct.ICompressSetOutStreamSize = type { %struct.IUnknown }
%struct.ICompressSetBufSize = type { %struct.IUnknown }
%class.CMyUnknownImp = type { i32 }
%"class.NCompress::NBcj2::CBaseCoder" = type { [5 x ptr], [5 x i32], [5 x i32] }
%class.CMyComPtr.0 = type { ptr }
%struct.CBcj2Dec = type { [4 x ptr], [4 x ptr], ptr, ptr, i32, i32, [4 x i8], i32, i32, [258 x i16] }

@_ZTVN9NCompress5NBcj28CDecoderE = external dso_local unnamed_addr constant { [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, align 8

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NCompress5NBcj28CDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(880) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @_ZN15ICompressCoder2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN22ICompressSetFinishModeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %7 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN34ICompressGetInStreamProcessedSize2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %8 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN21ICompressSetInStream2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  %9 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN19ISequentialInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %10 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZN25ICompressSetOutStreamSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  %11 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZN19ICompressSetBufSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #3
  %12 = getelementptr inbounds i8, ptr %5, i64 56
  invoke void @_ZN13CMyUnknownImpC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %13 unwind label %34

13:                                               ; preds = %1
  %14 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN9NCompress5NBcj210CBaseCoderC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14)
  store ptr getelementptr inbounds inrange(-16, 112) ({ [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i32 0, i32 0, i32 2), ptr %5, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr getelementptr inbounds inrange(-16, 48) ({ [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i32 0, i32 1, i32 2), ptr %15, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr getelementptr inbounds inrange(-16, 48) ({ [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i32 0, i32 2, i32 2), ptr %16, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr getelementptr inbounds inrange(-16, 56) ({ [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i32 0, i32 3, i32 2), ptr %17, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr getelementptr inbounds inrange(-16, 48) ({ [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i32 0, i32 4, i32 2), ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr getelementptr inbounds inrange(-16, 48) ({ [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i32 0, i32 5, i32 2), ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr getelementptr inbounds inrange(-16, 56) ({ [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i32 0, i32 6, i32 2), ptr %20, align 8, !tbaa !9
  %21 = getelementptr inbounds %"class.NCompress::NBcj2::CDecoder", ptr %5, i32 0, i32 12
  %22 = getelementptr inbounds [4 x %class.CMyComPtr.0], ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %class.CMyComPtr.0, ptr %22, i64 4
  br label %24

24:                                               ; preds = %26, %13
  %25 = phi ptr [ %22, %13 ], [ %27, %26 ]
  invoke void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %26 unwind label %38

26:                                               ; preds = %24
  %27 = getelementptr inbounds %class.CMyComPtr.0, ptr %25, i64 1
  %28 = icmp eq ptr %27, %23
  br i1 %28, label %29, label %24

29:                                               ; preds = %26
  %30 = getelementptr inbounds %"class.NCompress::NBcj2::CDecoder", ptr %5, i32 0, i32 13
  store i8 0, ptr %30, align 8, !tbaa !11
  %31 = getelementptr inbounds %"class.NCompress::NBcj2::CDecoder", ptr %5, i32 0, i32 14
  store i8 0, ptr %31, align 1, !tbaa !27
  %32 = getelementptr inbounds %"class.NCompress::NBcj2::CDecoder", ptr %5, i32 0, i32 15
  store i64 0, ptr %32, align 8, !tbaa !28
  %33 = getelementptr inbounds %"class.NCompress::NBcj2::CDecoder", ptr %5, i32 0, i32 17
  ret void

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

38:                                               ; preds = %24
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %3, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %4, align 4
  %42 = icmp eq ptr %22, %25
  br i1 %42, label %47, label %43

43:                                               ; preds = %43, %38
  %44 = phi ptr [ %25, %38 ], [ %45, %43 ]
  %45 = getelementptr inbounds %class.CMyComPtr.0, ptr %44, i64 -1
  call void @_ZN9CMyComPtrI19ISequentialInStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #3
  %46 = icmp eq ptr %45, %22
  br i1 %46, label %47, label %43

47:                                               ; preds = %43, %38
  %48 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN9NCompress5NBcj210CBaseCoderD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %48) #3
  %49 = getelementptr inbounds i8, ptr %5, i64 56
  call void @_ZN13CMyUnknownImpD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %49) #3
  br label %50

50:                                               ; preds = %47, %34
  %51 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #3
  %52 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #3
  %53 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #3
  %54 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #3
  %55 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #3
  %56 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #3
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br label %57

57:                                               ; preds = %50
  %58 = load ptr, ptr %3, align 8
  %59 = load i32, ptr %4, align 4
  %60 = insertvalue { ptr, i32 } poison, ptr %58, 0
  %61 = insertvalue { ptr, i32 } %60, i32 %59, 1
  resume { ptr, i32 } %61
}

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 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 = !{!"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, !24, i64 240}
!12 = !{!"_ZTSN9NCompress5NBcj28CDecoderE", !13, i64 0, !15, i64 8, !16, i64 16, !17, i64 24, !18, i64 32, !19, i64 40, !20, i64 48, !21, i64 56, !23, i64 64, !7, i64 144, !7, i64 160, !7, i64 192, !7, i64 208, !24, i64 240, !24, i64 241, !25, i64 248, !25, i64 256, !26, i64 264}
!13 = !{!"_ZTS15ICompressCoder2", !14, i64 0}
!14 = !{!"_ZTS8IUnknown"}
!15 = !{!"_ZTS22ICompressSetFinishMode", !14, i64 0}
!16 = !{!"_ZTS34ICompressGetInStreamProcessedSize2", !14, i64 0}
!17 = !{!"_ZTS21ICompressSetInStream2", !14, i64 0}
!18 = !{!"_ZTS19ISequentialInStream", !14, i64 0}
!19 = !{!"_ZTS25ICompressSetOutStreamSize", !14, i64 0}
!20 = !{!"_ZTS19ICompressSetBufSize", !14, i64 0}
!21 = !{!"_ZTS13CMyUnknownImp", !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSN9NCompress5NBcj210CBaseCoderE", !7, i64 0, !7, i64 40, !7, i64 60}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"long long", !7, i64 0}
!26 = !{!"_ZTS8CBcj2Dec", !7, i64 0, !7, i64 32, !6, i64 64, !6, i64 72, !22, i64 80, !22, i64 84, !7, i64 88, !22, i64 92, !22, i64 96, !7, i64 100}
!27 = !{!12, !24, i64 241}
!28 = !{!12, !25, i64 248}


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

@_ZTVN9NCompress5NBcj28CDecoderE = external dso_local unnamed_addr constant { [16 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [9 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN9NCompress5NBcj28CDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(880) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN15ICompressCoder2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #2
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN22ICompressSetFinishModeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #2
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN34ICompressGetInStreamProcessedSize2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #2
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN21ICompressSetInStream2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #2
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN19ISequentialInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #2
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN25ICompressSetOutStreamSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #2
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN19ICompressSetBufSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #2
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN13CMyUnknownImpC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN9NCompress5NBcj210CBaseCoderC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9)
  store ptr getelementptr inbounds inrange(-16, 112) (i8, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i64 144), ptr %2, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i64 208), ptr %3, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i64 272), ptr %4, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i64 344), ptr %5, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i64 408), ptr %6, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN9NCompress5NBcj28CDecoderE, i64 472), ptr %7, align 8, !tbaa !5
  %.ptr = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 216
  tail call void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3)
  %10 = getelementptr inbounds i8, ptr %0, i64 240
  store i8 0, ptr %10, align 8, !tbaa !8
  %11 = getelementptr inbounds i8, ptr %0, i64 241
  store i8 0, ptr %11, align 1, !tbaa !26
  %12 = getelementptr inbounds i8, ptr %0, i64 248
  store i64 0, ptr %12, align 8, !tbaa !27
  ret void
}

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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, !22, i64 240}
!9 = !{!"_ZTSN9NCompress5NBcj28CDecoderE", !10, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !15, i64 32, !16, i64 40, !17, i64 48, !18, i64 56, !21, i64 64, !20, i64 144, !20, i64 160, !20, i64 192, !20, i64 208, !22, i64 240, !22, i64 241, !23, i64 248, !23, i64 256, !24, i64 264}
!10 = !{!"_ZTS15ICompressCoder2", !11, i64 0}
!11 = !{!"_ZTS8IUnknown"}
!12 = !{!"_ZTS22ICompressSetFinishMode", !11, i64 0}
!13 = !{!"_ZTS34ICompressGetInStreamProcessedSize2", !11, i64 0}
!14 = !{!"_ZTS21ICompressSetInStream2", !11, i64 0}
!15 = !{!"_ZTS19ISequentialInStream", !11, i64 0}
!16 = !{!"_ZTS25ICompressSetOutStreamSize", !11, i64 0}
!17 = !{!"_ZTS19ICompressSetBufSize", !11, i64 0}
!18 = !{!"_ZTS13CMyUnknownImp", !19, i64 0}
!19 = !{!"int", !20, i64 0}
!20 = !{!"omnipotent char", !7, i64 0}
!21 = !{!"_ZTSN9NCompress5NBcj210CBaseCoderE", !20, i64 0, !20, i64 40, !20, i64 60}
!22 = !{!"bool", !20, i64 0}
!23 = !{!"long long", !20, i64 0}
!24 = !{!"_ZTS8CBcj2Dec", !20, i64 0, !20, i64 32, !25, i64 64, !25, i64 72, !19, i64 80, !19, i64 84, !20, i64 88, !19, i64 92, !19, i64 96, !20, i64 100}
!25 = !{!"any pointer", !20, i64 0}
!26 = !{!9, !22, i64 241}
!27 = !{!9, !23, i64 248}


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