; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.2/lzma465/CPP/7zip/Compress/LZMA_Alone (LzmaBench)

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

%struct.GUID = type { i32, i16, i16, [8 x i8] }
%class.CMyComPtr.4 = type { ptr }
%class.CMyComPtr.5 = type { ptr }
%class.CMyComPtr.1 = type { ptr }
%struct.CEncoderInfo = type { %class.CMyComPtr, [2 x ptr], [2 x %class.CMyComPtr.0], i32, [2 x %"struct.CEncoderInfo::CDecoderInfo"], [2 x %class.CMyComPtr], [2 x i32], ptr, %class.CMyComPtr.1, ptr, i32, i32, i32, %class.CBenchRandomGenerator, ptr, %class.CMyComPtr.1 }
%class.CMyComPtr = type { ptr }
%class.CMyComPtr.0 = type { ptr }
%"struct.CEncoderInfo::CDecoderInfo" = type { ptr, i32, i8 }
%class.CBenchRandomGenerator = type { %class.CBenchBuffer, ptr }
%class.CBenchBuffer = type { ptr, i64, ptr }
%class.CBenchProgressInfo = type { %struct.ICompressProgressInfo, %class.CMyUnknownImp, ptr, %struct.CBenchInfo, i32, ptr }
%struct.ICompressProgressInfo = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%class.CMyUnknownImp = type { i32 }
%struct.CBenchInfo = type <{ i64, i64, i64, i64, i64, i64, i32, [4 x i8] }>
%class.CBenchmarkOutStream = type { %struct.ISequentialOutStream, %class.CBenchBuffer, %class.CMyUnknownImp, i32 }
%struct.ISequentialOutStream = type { %struct.IUnknown }
%class.CCrcOutStream = type { %struct.ISequentialOutStream, %class.CMyUnknownImp, i32 }

@IID_ICompressSetDecoderProperties2 = external global %struct.GUID, align 4

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN18CBenchmarkInStream4InitEPKhm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef) #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CEncoderInfo6DecodeEj(ptr noundef nonnull align 8 dereferenceable(192) %0, i32 noundef %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.CMyComPtr.4, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.CMyComPtr.5, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %class.CMyComPtr.1, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %20 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %21 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  invoke void @_ZN18CBenchmarkInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %22 unwind label %37

22:                                               ; preds = %2
  store ptr %21, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN9CMyComPtrI19ISequentialInStreamEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %24 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 5
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds [2 x %class.CMyComPtr], ptr %24, i64 0, i64 %26
  store ptr %27, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  invoke void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %28 unwind label %41

28:                                               ; preds = %22
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = invoke noundef ptr @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EadEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %31 unwind label %45

31:                                               ; preds = %28
  %32 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetDecoderProperties2, ptr noundef %30)
          to label %33 unwind label %45

33:                                               ; preds = %31
  %34 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EntEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %35 unwind label %45

35:                                               ; preds = %33
  br i1 %34, label %36, label %49

36:                                               ; preds = %35
  store i32 -2147467259, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %207

37:                                               ; preds = %2
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %7, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %21, i64 noundef 40) #8
  br label %211

41:                                               ; preds = %22
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %210

45:                                               ; preds = %33, %31, %28
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %7, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %8, align 4
  br label %209

49:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %50 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
          to label %51 unwind label %72

51:                                               ; preds = %49
  invoke void @_ZN13CCrcOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %52 unwind label %76

52:                                               ; preds = %51
  store ptr %50, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN9CMyComPtrI20ISequentialOutStreamEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %53)
          to label %54 unwind label %80

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %55 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 1
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [2 x ptr], ptr %55, i64 0, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  store ptr %59, ptr %15, align 8, !tbaa !5
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.CBenchProgressInfo, ptr %60, i32 0, i32 3
  %62 = getelementptr inbounds %struct.CBenchInfo, ptr %61, i32 0, i32 4
  store i64 0, ptr %62, align 8, !tbaa !11
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = getelementptr inbounds %class.CBenchProgressInfo, ptr %63, i32 0, i32 3
  %65 = getelementptr inbounds %struct.CBenchInfo, ptr %64, i32 0, i32 5
  store i64 0, ptr %65, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %190, %54
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 3
  %69 = load i32, ptr %68, align 8, !tbaa !19
  %70 = icmp ult i32 %67, %69
  br i1 %70, label %84, label %71

71:                                               ; preds = %66
  store i32 2, ptr %12, align 4
  br label %193

72:                                               ; preds = %49
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  br label %206

76:                                               ; preds = %51
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %50, i64 noundef 16) #8
  br label %206

80:                                               ; preds = %52
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %205

84:                                               ; preds = %66
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 7
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  %89 = getelementptr inbounds %class.CBenchBuffer, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !27
  %91 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 12
  %92 = load i32, ptr %91, align 8, !tbaa !28
  %93 = zext i32 %92 to i64
  invoke void @_ZN18CBenchmarkInStream4InitEPKhm(ptr noundef nonnull align 8 dereferenceable(40) %85, ptr noundef %90, i64 noundef %93)
          to label %94 unwind label %117

94:                                               ; preds = %84
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN13CCrcOutStream4InitEv(ptr noundef nonnull align 8 dereferenceable(16) %95)
          to label %96 unwind label %117

96:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %97 = invoke noundef ptr @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %98 unwind label %121

98:                                               ; preds = %96
  %99 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 14
  %100 = load ptr, ptr %99, align 8, !tbaa !29
  %101 = getelementptr inbounds i8, ptr %100, i64 8
  %102 = getelementptr inbounds %class.CBenchBuffer, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !27
  %104 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 14
  %105 = load ptr, ptr %104, align 8, !tbaa !29
  %106 = getelementptr inbounds %class.CBenchmarkOutStream, ptr %105, i32 0, i32 3
  %107 = load i32, ptr %106, align 4, !tbaa !30
  %108 = load ptr, ptr %97, align 8, !tbaa !33
  %109 = getelementptr inbounds ptr, ptr %108, i64 5
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef i32 %110(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef %103, i32 noundef %107)
          to label %112 unwind label %121

112:                                              ; preds = %98
  store i32 %111, ptr %17, align 4, !tbaa !9
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %125

115:                                              ; preds = %112
  %116 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %116, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %126

117:                                              ; preds = %94, %84
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %195

121:                                              ; preds = %98, %96
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %195

125:                                              ; preds = %112
  store i32 0, ptr %12, align 4
  br label %126

126:                                              ; preds = %125, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %127 = load i32, ptr %12, align 4
  switch i32 %127, label %193 [
    i32 0, label %128
  ]

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %129 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 11
  %130 = load i32, ptr %129, align 4, !tbaa !35
  %131 = zext i32 %130 to i64
  store i64 %131, ptr %18, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = invoke noundef ptr @_ZNK9CMyComPtrI14ICompressCoderEptEv(ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %134 unwind label %154

134:                                              ; preds = %128
  %135 = invoke noundef ptr @_ZNK9CMyComPtrI19ISequentialInStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %136 unwind label %154

136:                                              ; preds = %134
  %137 = invoke noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %138 unwind label %154

138:                                              ; preds = %136
  %139 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 2
  %140 = load i32, ptr %5, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [2 x %class.CMyComPtr.0], ptr %139, i64 0, i64 %141
  %143 = invoke noundef ptr @_ZNK9CMyComPtrI21ICompressProgressInfoEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %142)
          to label %144 unwind label %154

144:                                              ; preds = %138
  %145 = load ptr, ptr %133, align 8, !tbaa !33
  %146 = getelementptr inbounds ptr, ptr %145, i64 5
  %147 = load ptr, ptr %146, align 8
  %148 = invoke noundef i32 %147(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef %135, ptr noundef %137, ptr noundef null, ptr noundef %18, ptr noundef %143)
          to label %149 unwind label %154

149:                                              ; preds = %144
  store i32 %148, ptr %19, align 4, !tbaa !9
  %150 = load i32, ptr %19, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %158

152:                                              ; preds = %149
  %153 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %153, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %159

154:                                              ; preds = %144, %138, %136, %134, %128
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %7, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %195

158:                                              ; preds = %149
  store i32 0, ptr %12, align 4
  br label %159

159:                                              ; preds = %158, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %160 = load i32, ptr %12, align 4
  switch i32 %160, label %187 [
    i32 0, label %161
  ]

161:                                              ; preds = %159
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = getelementptr inbounds %class.CCrcOutStream, ptr %162, i32 0, i32 2
  %164 = load i32, ptr %163, align 4, !tbaa !37
  %165 = xor i32 %164, -1
  %166 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 10
  %167 = load i32, ptr %166, align 8, !tbaa !39
  %168 = icmp ne i32 %165, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %161
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %187

170:                                              ; preds = %161
  %171 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 11
  %172 = load i32, ptr %171, align 4, !tbaa !35
  %173 = zext i32 %172 to i64
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds %class.CBenchProgressInfo, ptr %174, i32 0, i32 3
  %176 = getelementptr inbounds %struct.CBenchInfo, ptr %175, i32 0, i32 4
  %177 = load i64, ptr %176, align 8, !tbaa !11
  %178 = add i64 %177, %173
  store i64 %178, ptr %176, align 8, !tbaa !11
  %179 = getelementptr inbounds %struct.CEncoderInfo, ptr %20, i32 0, i32 12
  %180 = load i32, ptr %179, align 8, !tbaa !28
  %181 = zext i32 %180 to i64
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.CBenchProgressInfo, ptr %182, i32 0, i32 3
  %184 = getelementptr inbounds %struct.CBenchInfo, ptr %183, i32 0, i32 5
  %185 = load i64, ptr %184, align 8, !tbaa !18
  %186 = add i64 %185, %181
  store i64 %186, ptr %184, align 8, !tbaa !18
  store i32 0, ptr %12, align 4
  br label %187

187:                                              ; preds = %170, %169, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %188 = load i32, ptr %12, align 4
  switch i32 %188, label %193 [
    i32 0, label %189
  ]

189:                                              ; preds = %187
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %16, align 4, !tbaa !9
  %192 = add i32 %191, 1
  store i32 %192, ptr %16, align 4, !tbaa !9
  br label %66, !llvm.loop !40

193:                                              ; preds = %187, %126, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %194 = load i32, ptr %12, align 4
  switch i32 %194, label %203 [
    i32 2, label %196
  ]

195:                                              ; preds = %154, %121, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %204

196:                                              ; preds = %193
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN9CMyComPtrI14ICompressCoderE7ReleaseEv(ptr noundef nonnull align 8 dereferenceable(8) %197)
          to label %198 unwind label %199

198:                                              ; preds = %196
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %203

199:                                              ; preds = %196
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %7, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %8, align 4
  br label %204

203:                                              ; preds = %198, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZN9CMyComPtrI20ISequentialOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %207

204:                                              ; preds = %199, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZN9CMyComPtrI20ISequentialOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %205

205:                                              ; preds = %204, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %206

206:                                              ; preds = %205, %76, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %209

207:                                              ; preds = %203, %36
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN9CMyComPtrI19ISequentialInStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %208 = load i32, ptr %3, align 4
  ret i32 %208

209:                                              ; preds = %206, %45
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %210

210:                                              ; preds = %209, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN9CMyComPtrI19ISequentialInStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %211

211:                                              ; preds = %210, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %212

212:                                              ; preds = %211
  %213 = load ptr, ptr %7, align 8
  %214 = load i32, ptr %8, align 4
  %215 = insertvalue { ptr, i32 } poison, ptr %213, 0
  %216 = insertvalue { ptr, i32 } %215, i32 %214, 1
  resume { ptr, i32 } %216
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EntEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !17, i64 56}
!12 = !{!"_ZTS18CBenchProgressInfo", !13, i64 0, !15, i64 8, !6, i64 16, !16, i64 24, !10, i64 80, !6, i64 88}
!13 = !{!"_ZTS21ICompressProgressInfo", !14, i64 0}
!14 = !{!"_ZTS8IUnknown"}
!15 = !{!"_ZTS13CMyUnknownImp", !10, i64 0}
!16 = !{!"_ZTS10CBenchInfo", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !10, i64 48}
!17 = !{!"long long", !7, i64 0}
!18 = !{!12, !17, i64 64}
!19 = !{!20, !10, i64 40}
!20 = !{!"_ZTS12CEncoderInfo", !21, i64 0, !7, i64 8, !7, i64 24, !10, i64 40, !7, i64 48, !7, i64 80, !7, i64 96, !6, i64 104, !22, i64 112, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !23, i64 144, !6, i64 176, !22, i64 184}
!21 = !{!"_ZTS9CMyComPtrI14ICompressCoderE", !6, i64 0}
!22 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !6, i64 0}
!23 = !{!"_ZTS21CBenchRandomGenerator", !24, i64 0, !6, i64 24}
!24 = !{!"_ZTS12CBenchBuffer", !25, i64 8, !6, i64 16}
!25 = !{!"long", !7, i64 0}
!26 = !{!20, !6, i64 104}
!27 = !{!24, !6, i64 16}
!28 = !{!20, !10, i64 136}
!29 = !{!20, !6, i64 176}
!30 = !{!31, !10, i64 36}
!31 = !{!"_ZTS19CBenchmarkOutStream", !32, i64 0, !24, i64 8, !15, i64 32, !10, i64 36}
!32 = !{!"_ZTS20ISequentialOutStream", !14, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !8, i64 0}
!35 = !{!20, !10, i64 132}
!36 = !{!17, !17, i64 0}
!37 = !{!38, !10, i64 12}
!38 = !{!"_ZTS13CCrcOutStream", !32, i64 0, !15, i64 8, !10, i64 12}
!39 = !{!20, !10, i64 128}
!40 = distinct !{!40, !41}
!41 = !{!"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"

%struct.GUID = type { i32, i16, i16, [8 x i8] }
%class.CMyComPtr.4 = type { ptr }
%class.CMyComPtr.5 = type { ptr }
%class.CMyComPtr.1 = type { ptr }
%class.CMyComPtr = type { ptr }
%class.CMyComPtr.0 = type { ptr }

@IID_ICompressSetDecoderProperties2 = external global %struct.GUID, align 4

; 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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN18CBenchmarkInStream4InitEPKhm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CEncoderInfo6DecodeEj(ptr noundef nonnull align 8 dereferenceable(192) %0, i32 noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.CMyComPtr.4, align 8
  %4 = alloca %class.CMyComPtr.5, align 8
  %5 = alloca %class.CMyComPtr.1, align 8
  %6 = alloca i64, align 8
  %7 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #6
  tail call void @_ZN18CBenchmarkInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN9CMyComPtrI19ISequentialInStreamEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 80
  %9 = zext i32 %1 to i64
  %10 = getelementptr inbounds [2 x %class.CMyComPtr], ptr %8, i64 0, i64 %9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %11 = call noundef ptr @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EadEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %12 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetDecoderProperties2, ptr noundef %11)
          to label %13 unwind label %15

13:                                               ; preds = %2
  %14 = call noundef zeroext i1 @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EntEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  br i1 %14, label %88, label %17

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

17:                                               ; preds = %13
  %18 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #6
          to label %19 unwind label %35

19:                                               ; preds = %17
  call void @_ZN13CCrcOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  invoke void @_ZN9CMyComPtrI20ISequentialOutStreamEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %18)
          to label %20 unwind label %37

20:                                               ; preds = %19
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %9
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 56
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  %26 = load i32, ptr %25, align 8, !tbaa !9
  %.not5164.not = icmp eq i32 %26, 0
  br i1 %.not5164.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %20
  %27 = getelementptr inbounds i8, ptr %0, i64 104
  %28 = getelementptr inbounds i8, ptr %0, i64 136
  %29 = getelementptr inbounds i8, ptr %0, i64 176
  %30 = getelementptr inbounds i8, ptr %0, i64 132
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  %32 = getelementptr inbounds [2 x %class.CMyComPtr.0], ptr %31, i64 0, i64 %9
  %33 = getelementptr inbounds i8, ptr %18, i64 12
  %34 = getelementptr inbounds i8, ptr %0, i64 128
  %.pre = load i32, ptr %28, align 8, !tbaa !17
  br label %39

35:                                               ; preds = %17
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %89

37:                                               ; preds = %19
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %87

39:                                               ; preds = %.lr.ph, %76
  %40 = phi i32 [ %.pre, %.lr.ph ], [ %83, %76 ]
  %.03665 = phi i32 [ 0, %.lr.ph ], [ %81, %76 ]
  %41 = load ptr, ptr %27, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %41, i64 24
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = zext i32 %40 to i64
  call void @_ZN18CBenchmarkInStream4InitEPKhm(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %43, i64 noundef %44)
  call void @_ZN13CCrcOutStream4InitEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %45 = call noundef ptr @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %46 = load ptr, ptr %29, align 8, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %46, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds i8, ptr %46, i64 36
  %50 = load i32, ptr %49, align 4, !tbaa !21
  %51 = load ptr, ptr %45, align 8, !tbaa !26
  %52 = getelementptr inbounds i8, ptr %51, i64 40
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef i32 %53(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef %48, i32 noundef %50)
          to label %55 unwind label %56

55:                                               ; preds = %39
  %.not = icmp eq i32 %54, 0
  br i1 %.not, label %58, label %.thread60

56:                                               ; preds = %39
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %86

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %59 = load i32, ptr %30, align 4, !tbaa !28
  %60 = zext i32 %59 to i64
  store i64 %60, ptr %6, align 8, !tbaa !29
  %61 = call noundef ptr @_ZNK9CMyComPtrI14ICompressCoderEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %62 = call noundef ptr @_ZNK9CMyComPtrI19ISequentialInStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %63 = call noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %64 = call noundef ptr @_ZNK9CMyComPtrI21ICompressProgressInfoEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %32)
  %65 = load ptr, ptr %61, align 8, !tbaa !26
  %66 = getelementptr inbounds i8, ptr %65, i64 40
  %67 = load ptr, ptr %66, align 8
  %68 = invoke noundef i32 %67(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef %62, ptr noundef %63, ptr noundef null, ptr noundef nonnull %6, ptr noundef %64)
          to label %69 unwind label %70

69:                                               ; preds = %58
  %.not49 = icmp eq i32 %68, 0
  br i1 %.not49, label %72, label %.thread

70:                                               ; preds = %58
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %86

72:                                               ; preds = %69
  %73 = load i32, ptr %33, align 4, !tbaa !31
  %74 = load i32, ptr %34, align 8, !tbaa !33
  %75 = xor i32 %74, %73
  %.not50 = icmp eq i32 %75, -1
  br i1 %.not50, label %76, label %.thread

.thread:                                          ; preds = %69, %72
  %.3.ph = phi i32 [ 1, %72 ], [ %68, %69 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %.thread60

76:                                               ; preds = %72
  %77 = load <2 x i32>, ptr %30, align 4, !tbaa !34
  %78 = zext <2 x i32> %77 to <2 x i64>
  %79 = load <2 x i64>, ptr %24, align 8, !tbaa !29
  %80 = add <2 x i64> %79, %78
  store <2 x i64> %80, ptr %24, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %81 = add nuw i32 %.03665, 1
  %82 = load i32, ptr %25, align 8, !tbaa !9
  %.not51 = icmp ult i32 %81, %82
  %83 = extractelement <2 x i32> %77, i64 1
  br i1 %.not51, label %39, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %76, %20
  invoke void @_ZN9CMyComPtrI14ICompressCoderE7ReleaseEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %.thread60 unwind label %84

84:                                               ; preds = %._crit_edge
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %86

.thread60:                                        ; preds = %55, %.thread, %._crit_edge
  %.5 = phi i32 [ 0, %._crit_edge ], [ %.3.ph, %.thread ], [ %54, %55 ]
  call void @_ZN9CMyComPtrI20ISequentialOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %88

86:                                               ; preds = %56, %70, %84
  %.pn52 = phi { ptr, i32 } [ %85, %84 ], [ %71, %70 ], [ %57, %56 ]
  call void @_ZN9CMyComPtrI20ISequentialOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %87

87:                                               ; preds = %86, %37
  %.pn52.pn = phi { ptr, i32 } [ %.pn52, %86 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %89

88:                                               ; preds = %13, %.thread60
  %.6 = phi i32 [ %.5, %.thread60 ], [ -2147467259, %13 ]
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN9CMyComPtrI19ISequentialInStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i32 %.6

89:                                               ; preds = %35, %87, %15
  %.pn52.pn.pn.pn = phi { ptr, i32 } [ %16, %15 ], [ %.pn52.pn, %87 ], [ %36, %35 ]
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN9CMyComPtrI19ISequentialInStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn52.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(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) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { 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, !12, i64 40}
!10 = !{!"_ZTS12CEncoderInfo", !11, i64 0, !7, i64 8, !7, i64 24, !12, i64 40, !7, i64 48, !7, i64 80, !7, i64 96, !6, i64 104, !13, i64 112, !6, i64 120, !12, i64 128, !12, i64 132, !12, i64 136, !14, i64 144, !6, i64 176, !13, i64 184}
!11 = !{!"_ZTS9CMyComPtrI14ICompressCoderE", !6, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !6, i64 0}
!14 = !{!"_ZTS21CBenchRandomGenerator", !15, i64 0, !6, i64 24}
!15 = !{!"_ZTS12CBenchBuffer", !16, i64 8, !6, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!10, !12, i64 136}
!18 = !{!10, !6, i64 104}
!19 = !{!15, !6, i64 16}
!20 = !{!10, !6, i64 176}
!21 = !{!22, !12, i64 36}
!22 = !{!"_ZTS19CBenchmarkOutStream", !23, i64 0, !15, i64 8, !25, i64 32, !12, i64 36}
!23 = !{!"_ZTS20ISequentialOutStream", !24, i64 0}
!24 = !{!"_ZTS8IUnknown"}
!25 = !{!"_ZTS13CMyUnknownImp", !12, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}
!28 = !{!10, !12, i64 132}
!29 = !{!30, !30, i64 0}
!30 = !{!"long long", !7, i64 0}
!31 = !{!32, !12, i64 12}
!32 = !{!"_ZTS13CCrcOutStream", !23, i64 0, !25, i64 8, !12, i64 12}
!33 = !{!10, !12, i64 128}
!34 = !{!12, !12, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


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