; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Compress (PpmdDecoder)

; 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::NPpmd::CDecoder" = type { %struct.ICompressCoder, %struct.ICompressSetDecoderProperties2, %struct.ICompressGetInStreamProcessedSize, %struct.ICompressSetInStream, %struct.ICompressSetOutStreamSize, %struct.ISequentialInStream, %class.CMyUnknownImp, ptr, %struct.CPpmd7z_RangeDec, %struct.CByteInBufWrap, %struct.CPpmd7, i8, i8, i32, i64, i64, %class.CMyComPtr }
%struct.ICompressCoder = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.ICompressSetDecoderProperties2 = type { %struct.IUnknown }
%struct.ICompressGetInStreamProcessedSize = type { %struct.IUnknown }
%struct.ICompressSetInStream = type { %struct.IUnknown }
%struct.ICompressSetOutStreamSize = type { %struct.IUnknown }
%struct.ISequentialInStream = type { %struct.IUnknown }
%class.CMyUnknownImp = type { i32 }
%struct.CPpmd7z_RangeDec = type { %struct.IPpmd7_RangeDec, i32, i32, ptr }
%struct.IPpmd7_RangeDec = type { ptr, ptr, ptr }
%struct.CByteInBufWrap = type { %struct.IByteIn, ptr, ptr, ptr, i32, ptr, i64, i8, i32 }
%struct.IByteIn = type { ptr }
%struct.CPpmd7 = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, [38 x i8], [128 x i8], [38 x i32], [256 x i8], [256 x i8], [256 x i8], %struct.CPpmd_See, [25 x [16 x %struct.CPpmd_See]], [128 x [64 x i16]] }
%struct.CPpmd_See = type { i16, i8, i8 }
%class.CMyComPtr = type { ptr }

; 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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9NCompress5NPpmd8CDecoder8CodeSpecEPhj(ptr noundef nonnull align 8 dereferenceable(19384) %0, ptr noundef %1, i32 noundef %2) #1 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %12 = load ptr, ptr %5, align 8
  %13 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 13
  %14 = load i32, ptr %13, align 4, !tbaa !11
  switch i32 %14, label %30 [
    i32 2, label %15
    i32 3, label %16
    i32 0, label %17
  ]

15:                                               ; preds = %3
  store i32 0, ptr %4, align 4
  br label %102

16:                                               ; preds = %3
  store i32 1, ptr %4, align 4
  br label %102

17:                                               ; preds = %3
  %18 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 9
  call void @_ZN14CByteInBufWrap4InitEv(ptr noundef nonnull align 8 dereferenceable(64) %18)
  %19 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 8
  %20 = call i32 @Ppmd7z_RangeDec_Init(ptr noundef %19)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %24, label %22

22:                                               ; preds = %17
  %23 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 13
  store i32 3, ptr %23, align 4, !tbaa !11
  store i32 1, ptr %4, align 4
  br label %102

24:                                               ; preds = %17
  %25 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 13
  store i32 1, ptr %25, align 4, !tbaa !11
  %26 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 10
  %27 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 11
  %28 = load i8, ptr %27, align 8, !tbaa !31
  %29 = zext i8 %28 to i32
  call void @Ppmd7_Init(ptr noundef %26, i32 noundef %29)
  br label %30

30:                                               ; preds = %24, %3
  %31 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 12
  %32 = load i8, ptr %31, align 1, !tbaa !32, !range !33, !noundef !34
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %48

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %35 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 14
  %36 = load i64, ptr %35, align 8, !tbaa !35
  %37 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 15
  %38 = load i64, ptr %37, align 8, !tbaa !36
  %39 = sub i64 %36, %38
  store i64 %39, ptr %8, align 8, !tbaa !37
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = load i64, ptr %8, align 8, !tbaa !37
  %43 = icmp ugt i64 %41, %42
  br i1 %43, label %44, label %47

44:                                               ; preds = %34
  %45 = load i64, ptr %8, align 8, !tbaa !37
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %7, align 4, !tbaa !9
  br label %47

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

48:                                               ; preds = %47, %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %73, %48
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = icmp ne i32 %50, %51
  br i1 %52, label %53, label %76

53:                                               ; preds = %49
  %54 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 10
  %55 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 8
  %56 = getelementptr inbounds %struct.CPpmd7z_RangeDec, ptr %55, i32 0, i32 0
  %57 = call i32 @Ppmd7_DecodeSymbol(ptr noundef %54, ptr noundef %56)
  store i32 %57, ptr %10, align 4, !tbaa !9
  %58 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 9
  %59 = getelementptr inbounds %struct.CByteInBufWrap, ptr %58, i32 0, i32 7
  %60 = load i8, ptr %59, align 8, !tbaa !38, !range !33, !noundef !34
  %61 = trunc i8 %60 to i1
  br i1 %61, label %65, label %62

62:                                               ; preds = %53
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = icmp slt i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %62, %53
  br label %76

66:                                               ; preds = %62
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = trunc i32 %67 to i8
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds i8, ptr %69, i64 %71
  store i8 %68, ptr %72, align 1, !tbaa !39
  br label %73

73:                                               ; preds = %66
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %9, align 4, !tbaa !9
  br label %49, !llvm.loop !40

76:                                               ; preds = %65, %49
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 15
  %80 = load i64, ptr %79, align 8, !tbaa !36
  %81 = add i64 %80, %78
  store i64 %81, ptr %79, align 8, !tbaa !36
  %82 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 9
  %83 = getelementptr inbounds %struct.CByteInBufWrap, ptr %82, i32 0, i32 7
  %84 = load i8, ptr %83, align 8, !tbaa !38, !range !33, !noundef !34
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %91

86:                                               ; preds = %76
  %87 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 13
  store i32 3, ptr %87, align 4, !tbaa !11
  %88 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 9
  %89 = getelementptr inbounds %struct.CByteInBufWrap, ptr %88, i32 0, i32 8
  %90 = load i32, ptr %89, align 4, !tbaa !42
  store i32 %90, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %101

91:                                               ; preds = %76
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = icmp slt i32 %92, 0
  br i1 %93, label %94, label %100

94:                                               ; preds = %91
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = icmp slt i32 %95, -1
  %97 = zext i1 %96 to i64
  %98 = select i1 %96, i32 3, i32 2
  %99 = getelementptr inbounds %"class.NCompress::NPpmd::CDecoder", ptr %12, i32 0, i32 13
  store i32 %98, ptr %99, align 4, !tbaa !11
  br label %100

100:                                              ; preds = %94, %91
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %101

101:                                              ; preds = %100, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %102

102:                                              ; preds = %101, %22, %16, %15
  %103 = load i32, ptr %4, align 4
  ret i32 %103
}

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

declare i32 @Ppmd7z_RangeDec_Init(ptr noundef) #3

declare void @Ppmd7_Init(ptr noundef, i32 noundef) #3

declare i32 @Ppmd7_DecodeSymbol(ptr noundef, ptr noundef) #3

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 = { "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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 19356}
!12 = !{!"_ZTSN9NCompress5NPpmd8CDecoderE", !13, i64 0, !15, i64 8, !16, i64 16, !17, i64 24, !18, i64 32, !19, i64 40, !20, i64 48, !6, i64 56, !21, i64 64, !23, i64 104, !27, i64 168, !7, i64 19352, !26, i64 19353, !10, i64 19356, !25, i64 19360, !25, i64 19368, !30, i64 19376}
!13 = !{!"_ZTS14ICompressCoder", !14, i64 0}
!14 = !{!"_ZTS8IUnknown"}
!15 = !{!"_ZTS30ICompressSetDecoderProperties2", !14, i64 0}
!16 = !{!"_ZTS33ICompressGetInStreamProcessedSize", !14, i64 0}
!17 = !{!"_ZTS20ICompressSetInStream", !14, i64 0}
!18 = !{!"_ZTS25ICompressSetOutStreamSize", !14, i64 0}
!19 = !{!"_ZTS19ISequentialInStream", !14, i64 0}
!20 = !{!"_ZTS13CMyUnknownImp", !10, i64 0}
!21 = !{!"_ZTS16CPpmd7z_RangeDec", !22, i64 0, !10, i64 24, !10, i64 28, !6, i64 32}
!22 = !{!"_ZTS15IPpmd7_RangeDec", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTS14CByteInBufWrap", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !25, i64 48, !26, i64 56, !10, i64 60}
!24 = !{!"_ZTS7IByteIn", !6, i64 0}
!25 = !{!"long long", !7, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTS6CPpmd7", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !7, i64 108, !7, i64 146, !7, i64 276, !7, i64 428, !7, i64 684, !7, i64 940, !28, i64 1196, !7, i64 1200, !7, i64 2800}
!28 = !{!"_ZTS9CPpmd_See", !29, i64 0, !7, i64 2, !7, i64 3}
!29 = !{!"short", !7, i64 0}
!30 = !{!"_ZTS9CMyComPtrI19ISequentialInStreamE", !6, i64 0}
!31 = !{!12, !7, i64 19352}
!32 = !{!12, !26, i64 19353}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!12, !25, i64 19360}
!36 = !{!12, !25, i64 19368}
!37 = !{!25, !25, i64 0}
!38 = !{!12, !26, i64 160}
!39 = !{!7, !7, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!12, !10, i64 164}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9NCompress5NPpmd8CDecoder8CodeSpecEPhj(ptr noundef nonnull align 8 dereferenceable(19384) %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 19356
  %5 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %5, label %17 [
    i32 2, label %.thread
    i32 3, label %6
    i32 0, label %7
  ]

6:                                                ; preds = %3
  br label %.thread

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZN14CByteInBufWrap4InitEv(ptr noundef nonnull align 8 dereferenceable(64) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = tail call i32 @Ppmd7z_RangeDec_Init(ptr noundef nonnull %9)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %11, label %12

11:                                               ; preds = %7
  store i32 3, ptr %4, align 4, !tbaa !5
  br label %.thread

12:                                               ; preds = %7
  store i32 1, ptr %4, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 168
  %14 = getelementptr inbounds i8, ptr %0, i64 19352
  %15 = load i8, ptr %14, align 8, !tbaa !29
  %16 = zext i8 %15 to i32
  tail call void @Ppmd7_Init(ptr noundef nonnull %13, i32 noundef %16)
  br label %17

17:                                               ; preds = %12, %3
  %18 = getelementptr inbounds i8, ptr %0, i64 19353
  %19 = load i8, ptr %18, align 1, !tbaa !30, !range !31, !noundef !32
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %21, label %30

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 19360
  %23 = load i64, ptr %22, align 8, !tbaa !33
  %24 = getelementptr inbounds i8, ptr %0, i64 19368
  %25 = load i64, ptr %24, align 8, !tbaa !34
  %26 = sub i64 %23, %25
  %27 = zext i32 %2 to i64
  %28 = icmp ult i64 %26, %27
  %29 = trunc nuw i64 %26 to i32
  %spec.select = select i1 %28, i32 %29, i32 %2
  br label %30

30:                                               ; preds = %21, %17
  %.119 = phi i32 [ %spec.select, %21 ], [ %2, %17 ]
  %.not2224 = icmp eq i32 %.119, 0
  br i1 %.not2224, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %31 = getelementptr inbounds i8, ptr %0, i64 168
  %32 = getelementptr inbounds i8, ptr %0, i64 64
  %33 = getelementptr inbounds i8, ptr %0, i64 160
  %34 = zext i32 %.119 to i64
  br label %35

35:                                               ; preds = %.lr.ph, %40
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %40 ]
  %36 = tail call i32 @Ppmd7_DecodeSymbol(ptr noundef nonnull %31, ptr noundef nonnull %32)
  %37 = load i8, ptr %33, align 8, !tbaa !35, !range !31, !noundef !32
  %38 = trunc nuw i8 %37 to i1
  %39 = icmp slt i32 %36, 0
  %or.cond = select i1 %38, i1 true, i1 %39
  br i1 %or.cond, label %._crit_edge.split.loop.exit35, label %40

40:                                               ; preds = %35
  %41 = trunc i32 %36 to i8
  %42 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  store i8 %41, ptr %42, align 1, !tbaa !36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not22 = icmp eq i64 %indvars.iv.next, %34
  br i1 %.not22, label %._crit_edge, label %35, !llvm.loop !37

._crit_edge.split.loop.exit35:                    ; preds = %35
  %43 = trunc nuw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %40, %._crit_edge.split.loop.exit35
  %.015.lcssa.ph = phi i32 [ %43, %._crit_edge.split.loop.exit35 ], [ %.119, %40 ]
  %44 = zext i32 %.015.lcssa.ph to i64
  %45 = getelementptr inbounds i8, ptr %0, i64 19368
  %46 = load i64, ptr %45, align 8, !tbaa !34
  %47 = add i64 %46, %44
  store i64 %47, ptr %45, align 8, !tbaa !34
  %48 = getelementptr inbounds i8, ptr %0, i64 160
  %49 = load i8, ptr %48, align 8, !tbaa !35, !range !31, !noundef !32
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %54, label %57

._crit_edge.thread:                               ; preds = %30
  %51 = getelementptr inbounds i8, ptr %0, i64 160
  %52 = load i8, ptr %51, align 8, !tbaa !35, !range !31, !noundef !32
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %54, label %.thread

54:                                               ; preds = %._crit_edge.thread, %._crit_edge
  store i32 3, ptr %4, align 4, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %0, i64 164
  %56 = load i32, ptr %55, align 4, !tbaa !39
  br label %.thread

57:                                               ; preds = %._crit_edge
  %58 = icmp slt i32 %36, 0
  br i1 %58, label %59, label %.thread

59:                                               ; preds = %57
  %.not23 = icmp eq i32 %36, -1
  %60 = select i1 %.not23, i32 2, i32 3
  store i32 %60, ptr %4, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %._crit_edge.thread, %54, %59, %57, %3, %11, %6
  %.117 = phi i32 [ 1, %11 ], [ 1, %6 ], [ 0, %3 ], [ %56, %54 ], [ 0, %59 ], [ 0, %57 ], [ 0, %._crit_edge.thread ]
  ret i32 %.117
}

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

declare i32 @Ppmd7z_RangeDec_Init(ptr noundef) local_unnamed_addr #2

declare void @Ppmd7_Init(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @Ppmd7_DecodeSymbol(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !15, i64 19356}
!6 = !{!"_ZTSN9NCompress5NPpmd8CDecoderE", !7, i64 0, !9, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !14, i64 48, !18, i64 56, !19, i64 64, !21, i64 104, !25, i64 168, !16, i64 19352, !24, i64 19353, !15, i64 19356, !23, i64 19360, !23, i64 19368, !28, i64 19376}
!7 = !{!"_ZTS14ICompressCoder", !8, i64 0}
!8 = !{!"_ZTS8IUnknown"}
!9 = !{!"_ZTS30ICompressSetDecoderProperties2", !8, i64 0}
!10 = !{!"_ZTS33ICompressGetInStreamProcessedSize", !8, i64 0}
!11 = !{!"_ZTS20ICompressSetInStream", !8, i64 0}
!12 = !{!"_ZTS25ICompressSetOutStreamSize", !8, i64 0}
!13 = !{!"_ZTS19ISequentialInStream", !8, i64 0}
!14 = !{!"_ZTS13CMyUnknownImp", !15, i64 0}
!15 = !{!"int", !16, i64 0}
!16 = !{!"omnipotent char", !17, i64 0}
!17 = !{!"Simple C++ TBAA"}
!18 = !{!"any pointer", !16, i64 0}
!19 = !{!"_ZTS16CPpmd7z_RangeDec", !20, i64 0, !15, i64 24, !15, i64 28, !18, i64 32}
!20 = !{!"_ZTS15IPpmd7_RangeDec", !18, i64 0, !18, i64 8, !18, i64 16}
!21 = !{!"_ZTS14CByteInBufWrap", !22, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !15, i64 32, !18, i64 40, !23, i64 48, !24, i64 56, !15, i64 60}
!22 = !{!"_ZTS7IByteIn", !18, i64 0}
!23 = !{!"long long", !16, i64 0}
!24 = !{!"bool", !16, i64 0}
!25 = !{!"_ZTS6CPpmd7", !18, i64 0, !18, i64 8, !18, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !15, i64 104, !16, i64 108, !16, i64 146, !16, i64 276, !16, i64 428, !16, i64 684, !16, i64 940, !26, i64 1196, !16, i64 1200, !16, i64 2800}
!26 = !{!"_ZTS9CPpmd_See", !27, i64 0, !16, i64 2, !16, i64 3}
!27 = !{!"short", !16, i64 0}
!28 = !{!"_ZTS9CMyComPtrI19ISequentialInStreamE", !18, i64 0}
!29 = !{!6, !16, i64 19352}
!30 = !{!6, !24, i64 19353}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!6, !23, i64 19360}
!34 = !{!6, !23, i64 19368}
!35 = !{!6, !24, i64 160}
!36 = !{!16, !16, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!6, !15, i64 164}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass