; 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] }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct.LARGE_INTEGER }
%struct.LARGE_INTEGER = type { i64 }
%class.CMyComPtr.2 = type { ptr }
%class.CMyComPtr.3 = 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.CMyComPtr.1 = type { ptr }

@__const._ZN12CEncoderInfo4InitEjjP20CBaseRandomGenerator.propIDs = external hidden unnamed_addr constant [2 x i32], align 4
@IID_ICompressSetCoderProperties = external global %struct.GUID, align 4
@IID_ICompressWriteCoderProperties = 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CEncoderInfo4InitEjjP20CBaseRandomGenerator(ptr noundef nonnull align 8 dereferenceable(192) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca [2 x i32], align 4
  %15 = alloca i32, align 4
  %16 = alloca [2 x %struct.tagPROPVARIANT], align 16
  %17 = alloca %class.CMyComPtr.2, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %class.CMyComPtr.3, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8
  %23 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 13
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN21CBenchRandomGenerator3SetEP20CBaseRandomGenerator(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef %24)
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = add i32 %25, 65536
  %27 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 11
  store i32 %26, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %28 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 11
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = udiv i32 %29, 2
  %31 = add i32 %30, 1024
  store i32 %31, ptr %10, align 4, !tbaa !9
  %32 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 13
  %33 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 11
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = call noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %35)
  br i1 %36, label %38, label %37

37:                                               ; preds = %4
  store i32 -2147024882, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %199

38:                                               ; preds = %4
  %39 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 13
  call void @_ZN21CBenchRandomGenerator8GenerateEv(ptr noundef nonnull align 8 dereferenceable(32) %39)
  %40 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 13
  %41 = getelementptr inbounds %class.CBenchBuffer, ptr %40, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !18
  %43 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 13
  %44 = getelementptr inbounds %class.CBenchBuffer, ptr %43, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !19
  %46 = call i32 @CrcCalc(ptr noundef %42, i64 noundef %45)
  %47 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 10
  store i32 %46, ptr %47, align 8, !tbaa !20
  %48 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
  invoke void @_ZN19CBenchmarkOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %48)
          to label %49 unwind label %58

49:                                               ; preds = %38
  %50 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 7
  store ptr %48, ptr %50, align 8, !tbaa !21
  %51 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 7
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = call noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %55)
  br i1 %56, label %62, label %57

57:                                               ; preds = %49
  store i32 -2147024882, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %199

58:                                               ; preds = %38
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %12, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %48, i64 noundef 40) #10
  br label %201

62:                                               ; preds = %49
  %63 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 7
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 8
  %66 = call noundef ptr @_ZN9CMyComPtrI20ISequentialOutStreamEaSEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef %64)
  %67 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 14
  store ptr null, ptr %67, align 8, !tbaa !22
  %68 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 15
  %69 = call noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  br i1 %69, label %70, label %82

70:                                               ; preds = %62
  %71 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
  invoke void @_ZN19CBenchmarkOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %71)
          to label %72 unwind label %78

72:                                               ; preds = %70
  %73 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 14
  store ptr %71, ptr %73, align 8, !tbaa !22
  %74 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 14
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 15
  %77 = call noundef ptr @_ZN9CMyComPtrI20ISequentialOutStreamEaSEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef %75)
  br label %82

78:                                               ; preds = %70
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %12, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %71, i64 noundef 40) #10
  br label %201

82:                                               ; preds = %72, %62
  %83 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 14
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = call noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef 5)
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  store i32 -2147024882, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %199

88:                                               ; preds = %82
  %89 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 14
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  call void @_ZN19CBenchmarkOutStream4InitEv(ptr noundef nonnull align 8 dereferenceable(40) %90)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 @__const._ZN12CEncoderInfo4InitEjjP20CBaseRandomGenerator.propIDs, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 2, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  %91 = getelementptr inbounds [2 x %struct.tagPROPVARIANT], ptr %16, i64 0, i64 0
  %92 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %91, i32 0, i32 0
  store i16 19, ptr %92, align 16, !tbaa !23
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = getelementptr inbounds [2 x %struct.tagPROPVARIANT], ptr %16, i64 0, i64 0
  %95 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %94, i32 0, i32 4
  store i32 %93, ptr %95, align 8, !tbaa !26
  %96 = getelementptr inbounds [2 x %struct.tagPROPVARIANT], ptr %16, i64 0, i64 1
  %97 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %96, i32 0, i32 0
  store i16 11, ptr %97, align 16, !tbaa !23
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = icmp ugt i32 %98, 1
  %100 = zext i1 %99 to i64
  %101 = select i1 %99, i16 -1, i16 0
  %102 = getelementptr inbounds [2 x %struct.tagPROPVARIANT], ptr %16, i64 0, i64 1
  %103 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %102, i32 0, i32 4
  store i16 %101, ptr %103, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @_ZN9CMyComPtrI27ICompressSetCoderPropertiesEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %104 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 0
  %105 = invoke noundef ptr @_ZN9CMyComPtrI27ICompressSetCoderPropertiesEadEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %106 unwind label %113

106:                                              ; preds = %88
  %107 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI27ICompressSetCoderPropertiesEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetCoderProperties, ptr noundef %105)
          to label %108 unwind label %113

108:                                              ; preds = %106
  store i32 %107, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %117

111:                                              ; preds = %108
  %112 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %112, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %118

113:                                              ; preds = %106, %88
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %12, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %197

117:                                              ; preds = %108
  store i32 0, ptr %11, align 4
  br label %118

118:                                              ; preds = %117, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  %119 = load i32, ptr %11, align 4
  switch i32 %119, label %192 [
    i32 0, label %120
  ]

120:                                              ; preds = %118
  %121 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI27ICompressSetCoderPropertiesEntEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %122 unwind label %124

122:                                              ; preds = %120
  br i1 %121, label %123, label %128

123:                                              ; preds = %122
  store i32 -2147467259, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %192

124:                                              ; preds = %120
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %12, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %13, align 4
  br label %197

128:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %129 = invoke noundef ptr @_ZNK9CMyComPtrI27ICompressSetCoderPropertiesEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %130 unwind label %142

130:                                              ; preds = %128
  %131 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %132 = getelementptr inbounds [2 x %struct.tagPROPVARIANT], ptr %16, i64 0, i64 0
  %133 = load ptr, ptr %129, align 8, !tbaa !27
  %134 = getelementptr inbounds ptr, ptr %133, i64 5
  %135 = load ptr, ptr %134, align 8
  %136 = invoke noundef i32 %135(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef %131, ptr noundef %132, i32 noundef 2)
          to label %137 unwind label %142

137:                                              ; preds = %130
  store i32 %136, ptr %19, align 4, !tbaa !9
  %138 = load i32, ptr %19, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %146

140:                                              ; preds = %137
  %141 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %141, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %147

142:                                              ; preds = %130, %128
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %197

146:                                              ; preds = %137
  store i32 0, ptr %11, align 4
  br label %147

147:                                              ; preds = %146, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %148 = load i32, ptr %11, align 4
  switch i32 %148, label %192 [
    i32 0, label %149
  ]

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  invoke void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %150 unwind label %174

150:                                              ; preds = %149
  %151 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 0
  %152 = invoke noundef ptr @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesEadEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %153 unwind label %178

153:                                              ; preds = %150
  %154 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI29ICompressWriteCoderPropertiesEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressWriteCoderProperties, ptr noundef %152)
          to label %155 unwind label %178

155:                                              ; preds = %153
  %156 = invoke noundef ptr @_ZNK9CMyComPtrI29ICompressWriteCoderPropertiesEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %157 unwind label %178

157:                                              ; preds = %155
  %158 = icmp ne ptr %156, null
  br i1 %158, label %159, label %190

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %160 = invoke noundef ptr @_ZNK9CMyComPtrI29ICompressWriteCoderPropertiesEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %161 unwind label %182

161:                                              ; preds = %159
  %162 = getelementptr inbounds %struct.CEncoderInfo, ptr %22, i32 0, i32 15
  %163 = invoke noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %162)
          to label %164 unwind label %182

164:                                              ; preds = %161
  %165 = load ptr, ptr %160, align 8, !tbaa !27
  %166 = getelementptr inbounds ptr, ptr %165, i64 5
  %167 = load ptr, ptr %166, align 8
  %168 = invoke noundef i32 %167(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef %163)
          to label %169 unwind label %182

169:                                              ; preds = %164
  store i32 %168, ptr %21, align 4, !tbaa !9
  %170 = load i32, ptr %21, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %186

172:                                              ; preds = %169
  %173 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %173, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %187

174:                                              ; preds = %149
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %12, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %13, align 4
  br label %196

178:                                              ; preds = %155, %153, %150
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %12, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %13, align 4
  br label %195

182:                                              ; preds = %164, %161, %159
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %12, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %195

186:                                              ; preds = %169
  store i32 0, ptr %11, align 4
  br label %187

187:                                              ; preds = %186, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %188 = load i32, ptr %11, align 4
  switch i32 %188, label %191 [
    i32 0, label %189
  ]

189:                                              ; preds = %187
  br label %190

190:                                              ; preds = %189, %157
  store i32 0, ptr %11, align 4
  br label %191

191:                                              ; preds = %190, %187
  call void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %192

192:                                              ; preds = %191, %147, %123, %118
  call void @_ZN9CMyComPtrI27ICompressSetCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %193 = load i32, ptr %11, align 4
  switch i32 %193, label %198 [
    i32 0, label %194
  ]

194:                                              ; preds = %192
  store i32 0, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %198

195:                                              ; preds = %182, %178
  call void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %196

196:                                              ; preds = %195, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %197

197:                                              ; preds = %196, %142, %124, %113
  call void @_ZN9CMyComPtrI27ICompressSetCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %201

198:                                              ; preds = %194, %192
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %199

199:                                              ; preds = %198, %87, %57, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %200 = load i32, ptr %5, align 4
  ret i32 %200

201:                                              ; preds = %197, %78, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %202

202:                                              ; preds = %201
  %203 = load ptr, ptr %12, align 8
  %204 = load i32, ptr %13, align 4
  %205 = insertvalue { ptr, i32 } poison, ptr %203, 0
  %206 = insertvalue { ptr, i32 } %205, i32 %204, 1
  resume { ptr, i32 } %206
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

declare i32 @CrcCalc(ptr noundef, i64 noundef) #4

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9CMyComPtrI29ICompressWriteCoderPropertiesEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 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: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { 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 #6 = { inlinehint 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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, !10, i64 132}
!12 = !{!"_ZTS12CEncoderInfo", !13, i64 0, !7, i64 8, !7, i64 24, !10, i64 40, !7, i64 48, !7, i64 80, !7, i64 96, !6, i64 104, !14, i64 112, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !15, i64 144, !6, i64 176, !14, i64 184}
!13 = !{!"_ZTS9CMyComPtrI14ICompressCoderE", !6, i64 0}
!14 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !6, i64 0}
!15 = !{!"_ZTS21CBenchRandomGenerator", !16, i64 0, !6, i64 24}
!16 = !{!"_ZTS12CBenchBuffer", !17, i64 8, !6, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !6, i64 16}
!19 = !{!16, !17, i64 8}
!20 = !{!12, !10, i64 128}
!21 = !{!12, !6, i64 104}
!22 = !{!12, !6, i64 176}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS14tagPROPVARIANT", !25, i64 0, !25, i64 2, !25, i64 4, !25, i64 6, !7, i64 8}
!25 = !{!"short", !7, i64 0}
!26 = !{!7, !7, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}


; 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] }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct.LARGE_INTEGER }
%struct.LARGE_INTEGER = type { i64 }
%class.CMyComPtr.2 = type { ptr }
%class.CMyComPtr.3 = type { ptr }

@__const._ZN12CEncoderInfo4InitEjjP20CBaseRandomGenerator.propIDs = external hidden unnamed_addr constant [2 x i32], align 4
@IID_ICompressSetCoderProperties = external global %struct.GUID, align 4
@IID_ICompressWriteCoderProperties = 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: mustprogress uwtable
define dso_local noundef i32 @_ZN12CEncoderInfo4InitEjjP20CBaseRandomGenerator(ptr noundef nonnull align 8 dereferenceable(192) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca [2 x i32], align 8
  %6 = alloca [2 x %struct.tagPROPVARIANT], align 16
  %7 = alloca %class.CMyComPtr.2, align 8
  %8 = alloca %class.CMyComPtr.3, align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN21CBenchRandomGenerator3SetEP20CBaseRandomGenerator(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %3)
  %10 = add i32 %1, 65536
  %11 = getelementptr inbounds i8, ptr %0, i64 132
  store i32 %10, ptr %11, align 4, !tbaa !5
  %12 = lshr i32 %10, 1
  %13 = add nuw i32 %12, 1024
  %14 = zext i32 %10 to i64
  %15 = tail call noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %14)
  br i1 %15, label %16, label %93

16:                                               ; preds = %4
  tail call void @_ZN21CBenchRandomGenerator8GenerateEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %17 = getelementptr inbounds i8, ptr %0, i64 160
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %0, i64 152
  %20 = load i64, ptr %19, align 8, !tbaa !17
  %21 = tail call i32 @CrcCalc(ptr noundef %18, i64 noundef %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %21, ptr %22, align 8, !tbaa !18
  %23 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #7
  invoke void @_ZN19CBenchmarkOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %24 unwind label %29

24:                                               ; preds = %16
  %25 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %23, ptr %25, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %23, i64 8
  %27 = zext i32 %13 to i64
  %28 = tail call noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %27)
  br i1 %28, label %31, label %93

29:                                               ; preds = %16
  %30 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 40) #8
  br label %94

31:                                               ; preds = %24
  %32 = load ptr, ptr %25, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %0, i64 112
  %34 = tail call noundef ptr @_ZN9CMyComPtrI20ISequentialOutStreamEaSEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef %32)
  %35 = getelementptr inbounds i8, ptr %0, i64 176
  store ptr null, ptr %35, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %0, i64 184
  %37 = tail call noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %36)
  br i1 %37, label %38, label %44

38:                                               ; preds = %31
  %39 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #7
  invoke void @_ZN19CBenchmarkOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %39)
          to label %40 unwind label %42

40:                                               ; preds = %38
  store ptr %39, ptr %35, align 8, !tbaa !20
  %41 = tail call noundef ptr @_ZN9CMyComPtrI20ISequentialOutStreamEaSEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull %39)
  br label %44

42:                                               ; preds = %38
  %43 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %39, i64 noundef 40) #8
  br label %94

44:                                               ; preds = %40, %31
  %45 = load ptr, ptr %35, align 8, !tbaa !20
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = tail call noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef 5)
  br i1 %47, label %48, label %93

48:                                               ; preds = %44
  %49 = load ptr, ptr %35, align 8, !tbaa !20
  tail call void @_ZN19CBenchmarkOutStream4InitEv(ptr noundef nonnull align 8 dereferenceable(40) %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %50 = load i64, ptr @__const._ZN12CEncoderInfo4InitEjjP20CBaseRandomGenerator.propIDs, align 4
  store i64 %50, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  store i16 19, ptr %6, align 16, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %1, ptr %51, align 8, !tbaa !24
  %52 = getelementptr inbounds i8, ptr %6, i64 16
  store i16 11, ptr %52, align 16, !tbaa !21
  %53 = icmp ugt i32 %2, 1
  %54 = sext i1 %53 to i16
  %55 = getelementptr inbounds i8, ptr %6, i64 24
  store i16 %54, ptr %55, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  call void @_ZN9CMyComPtrI27ICompressSetCoderPropertiesEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %56 = call noundef ptr @_ZN9CMyComPtrI27ICompressSetCoderPropertiesEadEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %57 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI27ICompressSetCoderPropertiesEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetCoderProperties, ptr noundef %56)
          to label %58 unwind label %59

58:                                               ; preds = %48
  %.not = icmp eq i32 %57, 0
  br i1 %.not, label %61, label %.thread

59:                                               ; preds = %48
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %92

61:                                               ; preds = %58
  %62 = call noundef zeroext i1 @_ZNK9CMyComPtrI27ICompressSetCoderPropertiesEntEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  br i1 %62, label %.thread, label %63

63:                                               ; preds = %61
  %64 = call noundef ptr @_ZNK9CMyComPtrI27ICompressSetCoderPropertiesEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %65 = load ptr, ptr %64, align 8, !tbaa !25
  %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) %64, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 2)
          to label %69 unwind label %70

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

70:                                               ; preds = %63
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %92

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %73 = call noundef ptr @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesEadEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %74 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI29ICompressWriteCoderPropertiesEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressWriteCoderProperties, ptr noundef %73)
          to label %75 unwind label %84

75:                                               ; preds = %72
  %76 = call noundef ptr @_ZNK9CMyComPtrI29ICompressWriteCoderPropertiesEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %.not34 = icmp eq ptr %76, null
  br i1 %.not34, label %88, label %77

77:                                               ; preds = %75
  %78 = call noundef ptr @_ZNK9CMyComPtrI29ICompressWriteCoderPropertiesEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %79 = call noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %80 = load ptr, ptr %78, align 8, !tbaa !25
  %81 = getelementptr inbounds i8, ptr %80, i64 40
  %82 = load ptr, ptr %81, align 8
  %83 = invoke noundef i32 %82(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef %79)
          to label %88 unwind label %86

84:                                               ; preds = %72
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %91

86:                                               ; preds = %77
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %91

.thread:                                          ; preds = %69, %58, %61
  %.5.ph = phi i32 [ -2147467259, %61 ], [ %57, %58 ], [ %68, %69 ]
  call void @_ZN9CMyComPtrI27ICompressSetCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %89

88:                                               ; preds = %77, %75
  %spec.select = phi i32 [ 0, %75 ], [ %83, %77 ]
  call void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @_ZN9CMyComPtrI27ICompressSetCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %89

89:                                               ; preds = %88, %.thread
  %90 = phi i32 [ %.5.ph, %.thread ], [ %spec.select, %88 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %93

91:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %92

92:                                               ; preds = %91, %70, %59
  %.pn.pn = phi { ptr, i32 } [ %.pn, %91 ], [ %71, %70 ], [ %60, %59 ]
  call void @_ZN9CMyComPtrI27ICompressSetCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %94

93:                                               ; preds = %44, %24, %4, %89
  %.7 = phi i32 [ %90, %89 ], [ -2147024882, %4 ], [ -2147024882, %24 ], [ -2147024882, %44 ]
  ret i32 %.7

94:                                               ; preds = %92, %42, %29
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %92 ], [ %43, %42 ], [ %30, %29 ]
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN12CBenchBuffer5AllocEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

declare i32 @CrcCalc(ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI29ICompressWriteCoderPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

attributes #0 = { mustprogress 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 = { 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 #5 = { inlinehint 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 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }
attributes #9 = { 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, !11, i64 132}
!6 = !{!"_ZTS12CEncoderInfo", !7, i64 0, !9, i64 8, !9, i64 24, !11, i64 40, !9, i64 48, !9, i64 80, !9, i64 96, !8, i64 104, !12, i64 112, !8, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !13, i64 144, !8, i64 176, !12, i64 184}
!7 = !{!"_ZTS9CMyComPtrI14ICompressCoderE", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !8, i64 0}
!13 = !{!"_ZTS21CBenchRandomGenerator", !14, i64 0, !8, i64 24}
!14 = !{!"_ZTS12CBenchBuffer", !15, i64 8, !8, i64 16}
!15 = !{!"long", !9, i64 0}
!16 = !{!14, !8, i64 16}
!17 = !{!14, !15, i64 8}
!18 = !{!6, !11, i64 128}
!19 = !{!6, !8, i64 104}
!20 = !{!6, !8, i64 176}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTS14tagPROPVARIANT", !23, i64 0, !23, i64 2, !23, i64 4, !23, i64 6, !9, i64 8}
!23 = !{!"short", !9, i64 0}
!24 = !{!9, !9, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass