; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.2/lzma465/CPP/7zip/Archive/Common (MultiStream)

; 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.CMultiStream = type { %struct.IInStream, %class.CMyUnknownImp, i32, i64, i64, i64, %class.CObjectVector }
%struct.IInStream = type { %struct.ISequentialInStream }
%struct.ISequentialInStream = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%class.CMyUnknownImp = type { i32 }
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { %class.CBaseRecordVector }
%class.CBaseRecordVector = type { ptr, i32, i32, ptr, i64 }
%"struct.CMultiStream::CSubStreamInfo" = type { %class.CMyComPtr, i64, i64 }
%class.CMyComPtr = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CMultiStream4ReadEPvjPj(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %22

20:                                               ; preds = %4
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %20, %4
  br label %23

23:                                               ; preds = %126, %22
  %24 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 2
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 6
  %27 = call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %26)
  %28 = icmp slt i32 %25, %27
  br i1 %28, label %29, label %32

29:                                               ; preds = %23
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = icmp ugt i32 %30, 0
  br label %32

32:                                               ; preds = %29, %23
  %33 = phi i1 [ false, %23 ], [ %31, %29 ]
  br i1 %33, label %34, label %128

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %35 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 6
  %36 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 2
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN13CObjectVectorIN12CMultiStream14CSubStreamInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef %37)
  store ptr %38, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 3
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.CMultiStream::CSubStreamInfo", ptr %41, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !23
  %44 = icmp eq i64 %40, %43
  br i1 %44, label %45, label %50

45:                                               ; preds = %34
  %46 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 2
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !11
  %49 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 3
  store i64 0, ptr %49, align 8, !tbaa !22
  store i32 2, ptr %11, align 4
  br label %126, !llvm.loop !26

50:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.CMultiStream::CSubStreamInfo", ptr %51, i32 0, i32 0
  %53 = call noundef ptr @_ZNK9CMyComPtrI9IInStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %52)
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.CMultiStream::CSubStreamInfo", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !28
  %57 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 3
  %58 = load i64, ptr %57, align 8, !tbaa !22
  %59 = add i64 %56, %58
  %60 = load ptr, ptr %53, align 8, !tbaa !29
  %61 = getelementptr inbounds ptr, ptr %60, i64 6
  %62 = load ptr, ptr %61, align 8
  %63 = call noundef i32 %62(ptr noundef nonnull align 8 dereferenceable(8) %53, i64 noundef %59, i32 noundef 0, ptr noundef null)
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %50
  %67 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %67, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %69

68:                                               ; preds = %50
  store i32 0, ptr %11, align 4
  br label %69

69:                                               ; preds = %68, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %70 = load i32, ptr %11, align 4
  switch i32 %70, label %126 [
    i32 0, label %71
  ]

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.CMultiStream::CSubStreamInfo", ptr %74, i32 0, i32 2
  %76 = load i64, ptr %75, align 8, !tbaa !23
  %77 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 3
  %78 = load i64, ptr %77, align 8, !tbaa !22
  %79 = sub i64 %76, %78
  %80 = call noundef i64 @_Z5MyMinIyET_S0_S0_(i64 noundef %73, i64 noundef %79)
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.CMultiStream::CSubStreamInfo", ptr %82, i32 0, i32 0
  %84 = call noundef ptr @_ZNK9CMyComPtrI9IInStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %83)
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = load ptr, ptr %84, align 8, !tbaa !29
  %88 = getelementptr inbounds ptr, ptr %87, i64 5
  %89 = load ptr, ptr %88, align 8
  %90 = call noundef i32 %89(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef %85, i32 noundef %86, ptr noundef %14)
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds i8, ptr %91, i64 %93
  store ptr %94, ptr %7, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = sub i32 %96, %95
  store i32 %97, ptr %8, align 4, !tbaa !9
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %105

100:                                              ; preds = %71
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = add i32 %103, %101
  store i32 %104, ptr %102, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %100, %71
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 3
  %109 = load i64, ptr %108, align 8, !tbaa !22
  %110 = add i64 %109, %107
  store i64 %110, ptr %108, align 8, !tbaa !22
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds %class.CMultiStream, ptr %17, i32 0, i32 4
  %114 = load i64, ptr %113, align 8, !tbaa !31
  %115 = add i64 %114, %112
  store i64 %115, ptr %113, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %116 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %116, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %121

119:                                              ; preds = %105
  %120 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %120, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %122

121:                                              ; preds = %105
  store i32 0, ptr %11, align 4
  br label %122

122:                                              ; preds = %121, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %123 = load i32, ptr %11, align 4
  switch i32 %123, label %125 [
    i32 0, label %124
  ]

124:                                              ; preds = %122
  store i32 3, ptr %11, align 4
  br label %125

125:                                              ; preds = %124, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %126

126:                                              ; preds = %125, %69, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %127 = load i32, ptr %11, align 4
  switch i32 %127, label %131 [
    i32 2, label %23
    i32 1, label %129
    i32 3, label %128
  ]

128:                                              ; preds = %126, %32
  store i32 0, ptr %5, align 4
  br label %129

129:                                              ; preds = %128, %126
  %130 = load i32, ptr %5, align 4
  ret i32 %130

131:                                              ; preds = %126
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN13CObjectVectorIN12CMultiStream14CSubStreamInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5MyMinIyET_S0_S0_(i64 noundef, i64 noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"_ZTS12CMultiStream", !13, i64 0, !16, i64 8, !10, i64 12, !17, i64 16, !17, i64 24, !17, i64 32, !18, i64 40}
!13 = !{!"_ZTS9IInStream", !14, i64 0}
!14 = !{!"_ZTS19ISequentialInStream", !15, i64 0}
!15 = !{!"_ZTS8IUnknown"}
!16 = !{!"_ZTS13CMyUnknownImp", !10, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!"_ZTS13CObjectVectorIN12CMultiStream14CSubStreamInfoEE", !19, i64 0}
!19 = !{!"_ZTS13CRecordVectorIPvE", !20, i64 0}
!20 = !{!"_ZTS17CBaseRecordVector", !10, i64 8, !10, i64 12, !6, i64 16, !21, i64 24}
!21 = !{!"long", !7, i64 0}
!22 = !{!12, !17, i64 16}
!23 = !{!24, !17, i64 16}
!24 = !{!"_ZTSN12CMultiStream14CSubStreamInfoE", !25, i64 0, !17, i64 8, !17, i64 16}
!25 = !{!"_ZTS9CMyComPtrI9IInStreamE", !6, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!24, !17, i64 8}
!29 = !{!30, !30, i64 0}
!30 = !{!"vtable pointer", !8, i64 0}
!31 = !{!12, !17, i64 24}


; 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 @_ZN12CMultiStream4ReadEPvjPj(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = alloca i32, align 4
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %7, label %6

6:                                                ; preds = %4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %6, %4
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load i32, ptr %8, align 4, !tbaa !9
  %11 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %12 = icmp slt i32 %10, %11
  %13 = icmp ne i32 %2, 0
  %14 = and i1 %13, %12
  br i1 %14, label %.lr.ph, label %.thread42

.lr.ph:                                           ; preds = %7
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  br label %16

16:                                               ; preds = %.lr.ph, %55
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN13CObjectVectorIN12CMultiStream14CSubStreamInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef %17)
  %19 = load i64, ptr %15, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %18, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !22
  %22 = icmp eq i64 %19, %21
  br i1 %22, label %55, label %.split

.split:                                           ; preds = %16
  %23 = tail call noundef ptr @_ZNK9CMyComPtrI9IInStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %24 = getelementptr inbounds i8, ptr %18, i64 8
  %25 = load i64, ptr %24, align 8, !tbaa !25
  %26 = load i64, ptr %15, align 8, !tbaa !21
  %27 = add i64 %26, %25
  %28 = load ptr, ptr %23, align 8, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %28, i64 48
  %30 = load ptr, ptr %29, align 8
  %31 = tail call noundef i32 %30(ptr noundef nonnull align 8 dereferenceable(8) %23, i64 noundef %27, i32 noundef 0, ptr noundef null)
  %.not36 = icmp eq i32 %31, 0
  br i1 %.not36, label %32, label %.thread42

32:                                               ; preds = %.split
  %33 = getelementptr inbounds i8, ptr %18, i64 16
  %34 = zext i32 %2 to i64
  %35 = load i64, ptr %33, align 8, !tbaa !22
  %36 = load i64, ptr %15, align 8, !tbaa !21
  %37 = sub i64 %35, %36
  %38 = tail call noundef i64 @_Z5MyMinIyET_S0_S0_(i64 noundef %34, i64 noundef %37)
  %39 = trunc i64 %38 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %40 = tail call noundef ptr @_ZNK9CMyComPtrI9IInStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %41 = load ptr, ptr %40, align 8, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %41, i64 40
  %43 = load ptr, ptr %42, align 8
  %44 = call noundef i32 %43(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef %1, i32 noundef %39, ptr noundef nonnull %5)
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  br i1 %.not, label %50, label %47

47:                                               ; preds = %32
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = add i32 %48, %45
  store i32 %49, ptr %3, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %47, %32
  %51 = load <2 x i64>, ptr %15, align 8, !tbaa !28
  %52 = insertelement <2 x i64> poison, i64 %46, i64 0
  %53 = shufflevector <2 x i64> %52, <2 x i64> poison, <2 x i32> zeroinitializer
  %54 = add <2 x i64> %51, %53
  store <2 x i64> %54, ptr %15, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %.thread42

55:                                               ; preds = %16
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !21
  %58 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %16, label %.thread42

.thread42:                                        ; preds = %55, %7, %50, %.split
  %.4 = phi i32 [ %31, %.split ], [ %44, %50 ], [ 0, %7 ], [ 0, %55 ]
  ret i32 %.4
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN13CObjectVectorIN12CMultiStream14CSubStreamInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5MyMinIyET_S0_S0_(i64 noundef, i64 noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 12}
!10 = !{!"_ZTS12CMultiStream", !11, i64 0, !14, i64 8, !6, i64 12, !15, i64 16, !15, i64 24, !15, i64 32, !16, i64 40}
!11 = !{!"_ZTS9IInStream", !12, i64 0}
!12 = !{!"_ZTS19ISequentialInStream", !13, i64 0}
!13 = !{!"_ZTS8IUnknown"}
!14 = !{!"_ZTS13CMyUnknownImp", !6, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"_ZTS13CObjectVectorIN12CMultiStream14CSubStreamInfoEE", !17, i64 0}
!17 = !{!"_ZTS13CRecordVectorIPvE", !18, i64 0}
!18 = !{!"_ZTS17CBaseRecordVector", !6, i64 8, !6, i64 12, !19, i64 16, !20, i64 24}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!10, !15, i64 16}
!22 = !{!23, !15, i64 16}
!23 = !{!"_ZTSN12CMultiStream14CSubStreamInfoE", !24, i64 0, !15, i64 8, !15, i64 16}
!24 = !{!"_ZTS9CMyComPtrI9IInStreamE", !19, i64 0}
!25 = !{!23, !15, i64 8}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}
!28 = !{!15, !15, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass