; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Common (FilterCoder)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.CFilterCoder = type { %struct.ICompressCoder, %struct.ICompressSetOutStreamSize, %struct.ICompressInitEncoder, %struct.ICompressSetInStream, %struct.ISequentialInStream, %struct.ICompressSetOutStream, %struct.ISequentialOutStream, %struct.IOutStreamFinish, %struct.ICompressSetBufSize, %struct.ICryptoSetPassword, %struct.ICryptoProperties, %struct.ICompressSetCoderProperties, %struct.ICompressWriteCoderProperties, %struct.ICryptoResetInitVector, %struct.ICompressSetDecoderProperties2, %class.CMyUnknownImp, %struct.CAlignedMidBuffer, i32, i32, i32, i8, i8, i64, i64, %class.CMyComPtr, %class.CMyComPtr.0, i32, i32, i32, %class.CMyComPtr.1, %class.CMyComPtr.2, %class.CMyComPtr.3, %class.CMyComPtr.4, %class.CMyComPtr.5, %class.CMyComPtr.6, %class.CMyComPtr.7 }
%struct.ICompressCoder = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.ICompressSetOutStreamSize = type { %struct.IUnknown }
%struct.ICompressInitEncoder = type { %struct.IUnknown }
%struct.ICompressSetInStream = type { %struct.IUnknown }
%struct.ISequentialInStream = type { %struct.IUnknown }
%struct.ICompressSetOutStream = type { %struct.IUnknown }
%struct.ISequentialOutStream = type { %struct.IUnknown }
%struct.IOutStreamFinish = type { %struct.IUnknown }
%struct.ICompressSetBufSize = type { %struct.IUnknown }
%struct.ICryptoSetPassword = type { %struct.IUnknown }
%struct.ICryptoProperties = type { %struct.IUnknown }
%struct.ICompressSetCoderProperties = type { %struct.IUnknown }
%struct.ICompressWriteCoderProperties = type { %struct.IUnknown }
%struct.ICryptoResetInitVector = type { %struct.IUnknown }
%struct.ICompressSetDecoderProperties2 = type { %struct.IUnknown }
%class.CMyUnknownImp = type { i32 }
%struct.CAlignedMidBuffer = type { ptr }
%class.CMyComPtr = type { ptr }
%class.CMyComPtr.0 = type { ptr }
%class.CMyComPtr.1 = type { ptr }
%class.CMyComPtr.2 = type { ptr }
%class.CMyComPtr.3 = type { ptr }
%class.CMyComPtr.4 = type { ptr }
%class.CMyComPtr.5 = type { ptr }
%class.CMyComPtr.6 = type { ptr }
%class.CMyComPtr.7 = type { ptr }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CFilterCoder4CodeEP19ISequentialInStreamP20ISequentialOutStreamPKyS5_P21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) unnamed_addr #1 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %28 = call noundef i32 @_ZN12CFilterCoder14Init_and_AllocEv(ptr noundef nonnull align 8 dereferenceable(256) %27)
  store i32 %28, ptr %14, align 4, !tbaa !9
  %29 = load i32, ptr %14, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %6
  %32 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %32, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %34

33:                                               ; preds = %6
  store i32 0, ptr %15, align 4
  br label %34

34:                                               ; preds = %33, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %35 = load i32, ptr %15, align 4
  switch i32 %35, label %240 [
    i32 0, label %36
    i32 1, label %238
  ]

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  store i8 0, ptr %17, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %235, %36
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %45

40:                                               ; preds = %37
  %41 = load i64, ptr %16, align 8, !tbaa !11
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !11
  %44 = icmp ult i64 %41, %43
  br label %45

45:                                               ; preds = %40, %37
  %46 = phi i1 [ true, %37 ], [ %44, %40 ]
  br i1 %46, label %47, label %236

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %48 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %48, ptr %19, align 4, !tbaa !9
  %49 = load i8, ptr %17, align 1, !tbaa !13, !range !15, !noundef !16
  %50 = trunc i8 %49 to i1
  br i1 %50, label %85, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %52 = getelementptr inbounds %class.CFilterCoder, ptr %27, i32 0, i32 17
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = load i32, ptr %18, align 4, !tbaa !9
  %55 = sub i32 %53, %54
  %56 = zext i32 %55 to i64
  store i64 %56, ptr %20, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %27, i64 128
  %59 = getelementptr inbounds %struct.CAlignedMidBuffer, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !48
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %60, i64 %62
  %64 = call noundef i32 @_Z10ReadStreamP19ISequentialInStreamPvPm(ptr noundef %57, ptr noundef %63, ptr noundef %20) #4
  store i32 %64, ptr %21, align 4, !tbaa !9
  %65 = load i32, ptr %21, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %51
  %68 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %68, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %70

69:                                               ; preds = %51
  store i32 0, ptr %15, align 4
  br label %70

70:                                               ; preds = %69, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  %71 = load i32, ptr %15, align 4
  switch i32 %71, label %82 [
    i32 0, label %72
  ]

72:                                               ; preds = %70
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = load i64, ptr %20, align 8, !tbaa !46
  %75 = trunc i64 %74 to i32
  %76 = add i32 %73, %75
  store i32 %76, ptr %19, align 4, !tbaa !9
  %77 = load i32, ptr %19, align 4, !tbaa !9
  %78 = getelementptr inbounds %class.CFilterCoder, ptr %27, i32 0, i32 17
  %79 = load i32, ptr %78, align 8, !tbaa !17
  %80 = icmp ne i32 %77, %79
  %81 = zext i1 %80 to i8
  store i8 %81, ptr %17, align 1, !tbaa !13
  store i32 0, ptr %15, align 4
  br label %82

82:                                               ; preds = %72, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %83 = load i32, ptr %15, align 4
  switch i32 %83, label %233 [
    i32 0, label %84
  ]

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84, %47
  %86 = getelementptr inbounds %class.CFilterCoder, ptr %27, i32 0, i32 35
  %87 = call noundef ptr @_ZNK9CMyComPtrI15ICompressFilterEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86)
  %88 = getelementptr inbounds i8, ptr %27, i64 128
  %89 = getelementptr inbounds %struct.CAlignedMidBuffer, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !48
  %91 = load i32, ptr %19, align 4, !tbaa !9
  %92 = load ptr, ptr %87, align 8, !tbaa !49
  %93 = getelementptr inbounds ptr, ptr %92, i64 6
  %94 = load ptr, ptr %93, align 8
  %95 = call noundef i32 %94(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef %90, i32 noundef %91)
  store i32 %95, ptr %18, align 4, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = icmp ugt i32 %96, %97
  br i1 %98, label %99, label %141

99:                                               ; preds = %85
  %100 = load i8, ptr %17, align 1, !tbaa !13, !range !15, !noundef !16
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %107

102:                                              ; preds = %99
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = getelementptr inbounds %class.CFilterCoder, ptr %27, i32 0, i32 17
  %105 = load i32, ptr %104, align 8, !tbaa !17
  %106 = icmp ugt i32 %103, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %102, %99
  store i32 -2147467259, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %233

108:                                              ; preds = %102
  %109 = getelementptr inbounds %class.CFilterCoder, ptr %27, i32 0, i32 20
  %110 = load i8, ptr %109, align 4, !tbaa !51, !range !15, !noundef !16
  %111 = trunc i8 %110 to i1
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  store i32 1, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %233

113:                                              ; preds = %108
  br label %114

114:                                              ; preds = %121, %113
  %115 = getelementptr inbounds i8, ptr %27, i64 128
  %116 = getelementptr inbounds %struct.CAlignedMidBuffer, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !48
  %118 = load i32, ptr %19, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds i8, ptr %117, i64 %119
  store i8 0, ptr %120, align 1, !tbaa !52
  br label %121

121:                                              ; preds = %114
  %122 = load i32, ptr %19, align 4, !tbaa !9
  %123 = add i32 %122, 1
  store i32 %123, ptr %19, align 4, !tbaa !9
  %124 = load i32, ptr %18, align 4, !tbaa !9
  %125 = icmp ne i32 %123, %124
  br i1 %125, label %114, label %126, !llvm.loop !53

126:                                              ; preds = %121
  %127 = load i32, ptr %18, align 4, !tbaa !9
  %128 = getelementptr inbounds %class.CFilterCoder, ptr %27, i32 0, i32 35
  %129 = call noundef ptr @_ZNK9CMyComPtrI15ICompressFilterEptEv(ptr noundef nonnull align 8 dereferenceable(8) %128)
  %130 = getelementptr inbounds i8, ptr %27, i64 128
  %131 = getelementptr inbounds %struct.CAlignedMidBuffer, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !48
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = load ptr, ptr %129, align 8, !tbaa !49
  %135 = getelementptr inbounds ptr, ptr %134, i64 6
  %136 = load ptr, ptr %135, align 8
  %137 = call noundef i32 %136(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef %132, i32 noundef %133)
  %138 = icmp ne i32 %127, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %126
  store i32 -2147467259, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %233

140:                                              ; preds = %126
  br label %141

141:                                              ; preds = %140, %85
  %142 = load i32, ptr %19, align 4, !tbaa !9
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  store i32 0, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %233

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %150

148:                                              ; preds = %145
  %149 = load i32, ptr %18, align 4, !tbaa !9
  br label %152

150:                                              ; preds = %145
  %151 = load i32, ptr %19, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %150, %148
  %153 = phi i32 [ %149, %148 ], [ %151, %150 ]
  store i32 %153, ptr %22, align 4, !tbaa !9
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %169

156:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = load i64, ptr %157, align 8, !tbaa !11
  %159 = load i64, ptr %16, align 8, !tbaa !11
  %160 = sub i64 %158, %159
  store i64 %160, ptr %23, align 8, !tbaa !11
  %161 = load i32, ptr %22, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = load i64, ptr %23, align 8, !tbaa !11
  %164 = icmp ugt i64 %162, %163
  br i1 %164, label %165, label %168

165:                                              ; preds = %156
  %166 = load i64, ptr %23, align 8, !tbaa !11
  %167 = trunc i64 %166 to i32
  store i32 %167, ptr %22, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %165, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %169

169:                                              ; preds = %168, %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %27, i64 128
  %172 = getelementptr inbounds %struct.CAlignedMidBuffer, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !48
  %174 = load i32, ptr %22, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = call noundef i32 @_Z11WriteStreamP20ISequentialOutStreamPKvm(ptr noundef %170, ptr noundef %173, i64 noundef %175) #4
  store i32 %176, ptr %24, align 4, !tbaa !9
  %177 = load i32, ptr %24, align 4, !tbaa !9
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %181

179:                                              ; preds = %169
  %180 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %180, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %182

181:                                              ; preds = %169
  store i32 0, ptr %15, align 4
  br label %182

182:                                              ; preds = %181, %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  %183 = load i32, ptr %15, align 4
  switch i32 %183, label %232 [
    i32 0, label %184
  ]

184:                                              ; preds = %182
  %185 = load i32, ptr %22, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = load i64, ptr %16, align 8, !tbaa !11
  %188 = add i64 %187, %186
  store i64 %188, ptr %16, align 8, !tbaa !11
  %189 = load i32, ptr %18, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %191, label %192

191:                                              ; preds = %184
  store i32 0, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %232

192:                                              ; preds = %184
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %209

195:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = load ptr, ptr %196, align 8, !tbaa !49
  %198 = getelementptr inbounds ptr, ptr %197, i64 5
  %199 = load ptr, ptr %198, align 8
  %200 = call noundef i32 %199(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef %16, ptr noundef %16)
  store i32 %200, ptr %25, align 4, !tbaa !9
  %201 = load i32, ptr %25, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %205

203:                                              ; preds = %195
  %204 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %204, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %206

205:                                              ; preds = %195
  store i32 0, ptr %15, align 4
  br label %206

206:                                              ; preds = %205, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  %207 = load i32, ptr %15, align 4
  switch i32 %207, label %232 [
    i32 0, label %208
  ]

208:                                              ; preds = %206
  br label %209

209:                                              ; preds = %208, %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %210

210:                                              ; preds = %214, %209
  %211 = load i32, ptr %18, align 4, !tbaa !9
  %212 = load i32, ptr %19, align 4, !tbaa !9
  %213 = icmp ult i32 %211, %212
  br i1 %213, label %214, label %230

214:                                              ; preds = %210
  %215 = getelementptr inbounds i8, ptr %27, i64 128
  %216 = getelementptr inbounds %struct.CAlignedMidBuffer, ptr %215, i32 0, i32 0
  %217 = load ptr, ptr %216, align 8, !tbaa !48
  %218 = load i32, ptr %18, align 4, !tbaa !9
  %219 = add i32 %218, 1
  store i32 %219, ptr %18, align 4, !tbaa !9
  %220 = zext i32 %218 to i64
  %221 = getelementptr inbounds i8, ptr %217, i64 %220
  %222 = load i8, ptr %221, align 1, !tbaa !52
  %223 = getelementptr inbounds i8, ptr %27, i64 128
  %224 = getelementptr inbounds %struct.CAlignedMidBuffer, ptr %223, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8, !tbaa !48
  %226 = load i32, ptr %26, align 4, !tbaa !9
  %227 = add i32 %226, 1
  store i32 %227, ptr %26, align 4, !tbaa !9
  %228 = zext i32 %226 to i64
  %229 = getelementptr inbounds i8, ptr %225, i64 %228
  store i8 %222, ptr %229, align 1, !tbaa !52
  br label %210, !llvm.loop !55

230:                                              ; preds = %210
  %231 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %231, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  store i32 0, ptr %15, align 4
  br label %232

232:                                              ; preds = %230, %206, %191, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %233

233:                                              ; preds = %232, %144, %139, %112, %107, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %234 = load i32, ptr %15, align 4
  switch i32 %234, label %237 [
    i32 0, label %235
  ]

235:                                              ; preds = %233
  br label %37, !llvm.loop !56

236:                                              ; preds = %45
  store i32 0, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %237

237:                                              ; preds = %236, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %238

238:                                              ; preds = %237, %34
  %239 = load i32, ptr %7, align 4
  ret i32 %239

240:                                              ; preds = %34
  unreachable
}

; Function Attrs: nounwind
declare noundef i32 @_Z10ReadStreamP19ISequentialInStreamPvPm(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare noundef i32 @_Z11WriteStreamP20ISequentialOutStreamPKvm(ptr noundef, ptr noundef, i64 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !10, i64 136}
!18 = !{!"_ZTS12CFilterCoder", !19, i64 0, !21, i64 8, !22, i64 16, !23, i64 24, !24, i64 32, !25, i64 40, !26, i64 48, !27, i64 56, !28, i64 64, !29, i64 72, !30, i64 80, !31, i64 88, !32, i64 96, !33, i64 104, !34, i64 112, !35, i64 120, !36, i64 128, !10, i64 136, !10, i64 140, !10, i64 144, !14, i64 148, !14, i64 149, !12, i64 152, !12, i64 160, !37, i64 168, !38, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !39, i64 200, !40, i64 208, !41, i64 216, !42, i64 224, !43, i64 232, !44, i64 240, !45, i64 248}
!19 = !{!"_ZTS14ICompressCoder", !20, i64 0}
!20 = !{!"_ZTS8IUnknown"}
!21 = !{!"_ZTS25ICompressSetOutStreamSize", !20, i64 0}
!22 = !{!"_ZTS20ICompressInitEncoder", !20, i64 0}
!23 = !{!"_ZTS20ICompressSetInStream", !20, i64 0}
!24 = !{!"_ZTS19ISequentialInStream", !20, i64 0}
!25 = !{!"_ZTS21ICompressSetOutStream", !20, i64 0}
!26 = !{!"_ZTS20ISequentialOutStream", !20, i64 0}
!27 = !{!"_ZTS16IOutStreamFinish", !20, i64 0}
!28 = !{!"_ZTS19ICompressSetBufSize", !20, i64 0}
!29 = !{!"_ZTS18ICryptoSetPassword", !20, i64 0}
!30 = !{!"_ZTS17ICryptoProperties", !20, i64 0}
!31 = !{!"_ZTS27ICompressSetCoderProperties", !20, i64 0}
!32 = !{!"_ZTS29ICompressWriteCoderProperties", !20, i64 0}
!33 = !{!"_ZTS22ICryptoResetInitVector", !20, i64 0}
!34 = !{!"_ZTS30ICompressSetDecoderProperties2", !20, i64 0}
!35 = !{!"_ZTS13CMyUnknownImp", !10, i64 0}
!36 = !{!"_ZTS17CAlignedMidBuffer", !6, i64 0}
!37 = !{!"_ZTS9CMyComPtrI19ISequentialInStreamE", !6, i64 0}
!38 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !6, i64 0}
!39 = !{!"_ZTS9CMyComPtrI18ICryptoSetPasswordE", !6, i64 0}
!40 = !{!"_ZTS9CMyComPtrI17ICryptoPropertiesE", !6, i64 0}
!41 = !{!"_ZTS9CMyComPtrI27ICompressSetCoderPropertiesE", !6, i64 0}
!42 = !{!"_ZTS9CMyComPtrI29ICompressWriteCoderPropertiesE", !6, i64 0}
!43 = !{!"_ZTS9CMyComPtrI22ICryptoResetInitVectorE", !6, i64 0}
!44 = !{!"_ZTS9CMyComPtrI30ICompressSetDecoderProperties2E", !6, i64 0}
!45 = !{!"_ZTS9CMyComPtrI15ICompressFilterE", !6, i64 0}
!46 = !{!47, !47, i64 0}
!47 = !{!"long", !7, i64 0}
!48 = !{!36, !6, i64 0}
!49 = !{!50, !50, i64 0}
!50 = !{!"vtable pointer", !8, i64 0}
!51 = !{!18, !14, i64 148}
!52 = !{!7, !7, i64 0}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}
!55 = distinct !{!55, !54}
!56 = distinct !{!56, !54}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress 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
declare dso_local noundef i32 @_ZN12CFilterCoder14Init_and_AllocEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CFilterCoder4CodeEP19ISequentialInStreamP20ISequentialOutStreamPKyS5_P21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readnone %3, ptr noundef readonly %4, ptr noundef %5) unnamed_addr #1 align 2 {
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = tail call noundef i32 @_ZN12CFilterCoder14Init_and_AllocEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %.not.not = icmp eq i32 %9, 0
  br i1 %.not.not, label %10, label %134

10:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store i64 0, ptr %7, align 8, !tbaa !5
  %.not91 = icmp eq ptr %4, null
  %11 = getelementptr inbounds i8, ptr %0, i64 136
  %12 = getelementptr inbounds i8, ptr %0, i64 128
  %13 = getelementptr inbounds i8, ptr %0, i64 248
  %14 = getelementptr inbounds i8, ptr %0, i64 148
  %.not97 = icmp eq ptr %5, null
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv115.unr = phi i64 [ %110, %.lr.ph.preheader ], [ %indvars.iv.next116.3, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod121.not = icmp eq i64 %xtraiter120, 0
  br i1 %lcmp.mod121.not, label %.loopexit.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv115.epil = phi i64 [ %indvars.iv.next116.epil, %.lr.ph.epil ], [ %indvars.iv115.unr, %.loopexit.loopexit.unr-lcssa ]
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %15 = load ptr, ptr %12, align 8, !tbaa !9
  %indvars.iv.next116.epil = add nuw nsw i64 %indvars.iv115.epil, 1
  %16 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv115.epil
  %17 = load i8, ptr %16, align 1, !tbaa !12
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %18 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.epil
  store i8 %17, ptr %18, align 1, !tbaa !12
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter120
  br i1 %epil.iter.cmp.not, label %.loopexit.loopexit, label %.lr.ph.epil, !llvm.loop !13

.loopexit.loopexit:                               ; preds = %.lr.ph.epil, %.loopexit.loopexit.unr-lcssa
  %19 = sub i32 %.379, %46
  br label %.loopexit.backedge

.loopexit.backedge:                               ; preds = %.loopexit.loopexit, %108
  %.072.be = phi i32 [ 0, %108 ], [ %19, %.loopexit.loopexit ]
  br label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.loopexit.backedge, %10
  %.072 = phi i32 [ 0, %10 ], [ %.072.be, %.loopexit.backedge ]
  %.066 = phi i8 [ 0, %10 ], [ %.268, %.loopexit.backedge ]
  br i1 %.not91, label %.critedge, label %20

20:                                               ; preds = %.loopexit
  %21 = load i64, ptr %7, align 8, !tbaa !5
  %22 = load i64, ptr %4, align 8, !tbaa !5
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %.critedge, label %.thread104

.critedge:                                        ; preds = %.loopexit, %20
  %24 = trunc nuw i8 %.066 to i1
  br i1 %24, label %40, label %25

25:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %26 = load i32, ptr %11, align 8, !tbaa !17
  %27 = sub i32 %26, %.072
  %28 = zext i32 %27 to i64
  store i64 %28, ptr %8, align 8, !tbaa !47
  %29 = load ptr, ptr %12, align 8, !tbaa !9
  %30 = zext i32 %.072 to i64
  %31 = getelementptr inbounds i8, ptr %29, i64 %30
  %32 = call noundef i32 @_Z10ReadStreamP19ISequentialInStreamPvPm(ptr noundef %1, ptr noundef %31, ptr noundef nonnull %8) #4
  %.not92 = icmp eq i32 %32, 0
  br i1 %.not92, label %.thread, label %39

.thread:                                          ; preds = %25
  %33 = load i64, ptr %8, align 8, !tbaa !47
  %34 = trunc i64 %33 to i32
  %35 = add i32 %.072, %34
  %36 = load i32, ptr %11, align 8, !tbaa !17
  %37 = icmp ne i32 %35, %36
  %38 = zext i1 %37 to i8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %40

39:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %.thread104

40:                                               ; preds = %.thread, %.critedge
  %.177 = phi i32 [ %.072, %.critedge ], [ %35, %.thread ]
  %.268 = phi i8 [ %.066, %.critedge ], [ %38, %.thread ]
  %41 = call noundef ptr @_ZNK9CMyComPtrI15ICompressFilterEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %42 = load ptr, ptr %12, align 8, !tbaa !9
  %43 = load ptr, ptr %41, align 8, !tbaa !49
  %44 = getelementptr inbounds i8, ptr %43, i64 48
  %45 = load ptr, ptr %44, align 8
  %46 = call noundef i32 %45(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef %42, i32 noundef %.177)
  %47 = icmp ugt i32 %46, %.177
  br i1 %47, label %48, label %84

48:                                               ; preds = %40
  %49 = trunc nuw i8 %.268 to i1
  %50 = load i32, ptr %11, align 8
  %51 = icmp ule i32 %46, %50
  %or.cond.not = select i1 %49, i1 %51, i1 false
  br i1 %or.cond.not, label %52, label %.thread104

52:                                               ; preds = %48
  %53 = load i8, ptr %14, align 4, !tbaa !51, !range !52, !noundef !53
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %.preheader.preheader, label %.thread104

.preheader.preheader:                             ; preds = %52
  %55 = sub i32 %46, %.177
  %xtraiter = and i32 %55, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader.prol.loopexit, label %.preheader.prol

.preheader.prol:                                  ; preds = %.preheader.preheader, %.preheader.prol
  %.278.prol = phi i32 [ %59, %.preheader.prol ], [ %.177, %.preheader.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.preheader.prol ], [ 0, %.preheader.preheader ]
  %56 = load ptr, ptr %12, align 8, !tbaa !9
  %57 = zext i32 %.278.prol to i64
  %58 = getelementptr inbounds i8, ptr %56, i64 %57
  store i8 0, ptr %58, align 1, !tbaa !12
  %59 = add i32 %.278.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.preheader.prol.loopexit, label %.preheader.prol, !llvm.loop !54

.preheader.prol.loopexit:                         ; preds = %.preheader.prol, %.preheader.preheader
  %.278.unr = phi i32 [ %.177, %.preheader.preheader ], [ %59, %.preheader.prol ]
  %60 = sub i32 %.177, %46
  %61 = icmp ugt i32 %60, -4
  br i1 %61, label %.unr-lcssa, label %.preheader

.preheader:                                       ; preds = %.preheader.prol.loopexit, %.preheader
  %.278 = phi i32 [ %77, %.preheader ], [ %.278.unr, %.preheader.prol.loopexit ]
  %62 = load ptr, ptr %12, align 8, !tbaa !9
  %63 = zext i32 %.278 to i64
  %64 = getelementptr inbounds i8, ptr %62, i64 %63
  store i8 0, ptr %64, align 1, !tbaa !12
  %65 = add i32 %.278, 1
  %66 = load ptr, ptr %12, align 8, !tbaa !9
  %67 = zext i32 %65 to i64
  %68 = getelementptr inbounds i8, ptr %66, i64 %67
  store i8 0, ptr %68, align 1, !tbaa !12
  %69 = add i32 %.278, 2
  %70 = load ptr, ptr %12, align 8, !tbaa !9
  %71 = zext i32 %69 to i64
  %72 = getelementptr inbounds i8, ptr %70, i64 %71
  store i8 0, ptr %72, align 1, !tbaa !12
  %73 = add i32 %.278, 3
  %74 = load ptr, ptr %12, align 8, !tbaa !9
  %75 = zext i32 %73 to i64
  %76 = getelementptr inbounds i8, ptr %74, i64 %75
  store i8 0, ptr %76, align 1, !tbaa !12
  %77 = add i32 %.278, 4
  %.not93.3 = icmp eq i32 %77, %46
  br i1 %.not93.3, label %.unr-lcssa, label %.preheader, !llvm.loop !55

.unr-lcssa:                                       ; preds = %.preheader, %.preheader.prol.loopexit
  %78 = call noundef ptr @_ZNK9CMyComPtrI15ICompressFilterEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %79 = load ptr, ptr %12, align 8, !tbaa !9
  %80 = load ptr, ptr %78, align 8, !tbaa !49
  %81 = getelementptr inbounds i8, ptr %80, i64 48
  %82 = load ptr, ptr %81, align 8
  %83 = call noundef i32 %82(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef %79, i32 noundef %46)
  %.not94 = icmp eq i32 %46, %83
  br i1 %.not94, label %84, label %.thread104

84:                                               ; preds = %.unr-lcssa, %40
  %.379 = phi i32 [ %46, %.unr-lcssa ], [ %.177, %40 ]
  %85 = icmp eq i32 %.379, 0
  br i1 %85, label %.thread104, label %86

86:                                               ; preds = %84
  %.not95 = icmp eq i32 %46, 0
  %87 = select i1 %.not95, i32 %.379, i32 %46
  br i1 %.not91, label %95, label %88

88:                                               ; preds = %86
  %89 = load i64, ptr %4, align 8, !tbaa !5
  %90 = load i64, ptr %7, align 8, !tbaa !5
  %91 = sub i64 %89, %90
  %92 = zext i32 %87 to i64
  %93 = icmp ult i64 %91, %92
  %94 = trunc nuw i64 %91 to i32
  %spec.select = select i1 %93, i32 %94, i32 %87
  br label %95

95:                                               ; preds = %88, %86
  %.171 = phi i32 [ %spec.select, %88 ], [ %87, %86 ]
  %96 = load ptr, ptr %12, align 8, !tbaa !9
  %97 = zext i32 %.171 to i64
  %98 = call noundef i32 @_Z11WriteStreamP20ISequentialOutStreamPKvm(ptr noundef %2, ptr noundef %96, i64 noundef %97) #4
  %.not96 = icmp eq i32 %98, 0
  br i1 %.not96, label %99, label %.thread104

99:                                               ; preds = %95
  %100 = load i64, ptr %7, align 8, !tbaa !5
  %101 = add i64 %100, %97
  store i64 %101, ptr %7, align 8, !tbaa !5
  br i1 %.not95, label %.thread104, label %102

102:                                              ; preds = %99
  br i1 %.not97, label %108, label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr %5, align 8, !tbaa !49
  %105 = getelementptr inbounds i8, ptr %104, i64 40
  %106 = load ptr, ptr %105, align 8
  %107 = call noundef i32 %106(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %7, ptr noundef nonnull %7)
  %.not98 = icmp eq i32 %107, 0
  br i1 %.not98, label %108, label %.thread104

108:                                              ; preds = %103, %102
  %109 = icmp ult i32 %46, %.379
  br i1 %109, label %.lr.ph.preheader, label %.loopexit.backedge

.lr.ph.preheader:                                 ; preds = %108
  %110 = zext i32 %46 to i64
  %111 = zext i32 %.379 to i64
  %112 = sub nsw i64 %111, %110
  %xtraiter120 = and i64 %112, 3
  %113 = sub nsw i64 %110, %111
  %114 = icmp ugt i64 %113, -4
  br i1 %114, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %112, -4
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv115 = phi i64 [ %110, %.lr.ph.preheader.new ], [ %indvars.iv.next116.3, %.lr.ph ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %115 = load ptr, ptr %12, align 8, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %115, i64 %indvars.iv115
  %117 = load i8, ptr %116, align 1, !tbaa !12
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %118 = getelementptr inbounds i8, ptr %115, i64 %indvars.iv
  store i8 %117, ptr %118, align 1, !tbaa !12
  %119 = load ptr, ptr %12, align 8, !tbaa !9
  %120 = getelementptr inbounds i8, ptr %119, i64 %indvars.iv115
  %121 = getelementptr inbounds i8, ptr %120, i64 1
  %122 = load i8, ptr %121, align 1, !tbaa !12
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %123 = getelementptr inbounds i8, ptr %119, i64 %indvars.iv.next
  store i8 %122, ptr %123, align 1, !tbaa !12
  %124 = load ptr, ptr %12, align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %124, i64 %indvars.iv115
  %126 = getelementptr inbounds i8, ptr %125, i64 2
  %127 = load i8, ptr %126, align 1, !tbaa !12
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %128 = getelementptr inbounds i8, ptr %124, i64 %indvars.iv.next.1
  store i8 %127, ptr %128, align 1, !tbaa !12
  %129 = load ptr, ptr %12, align 8, !tbaa !9
  %indvars.iv.next116.3 = add nuw nsw i64 %indvars.iv115, 4
  %130 = getelementptr inbounds i8, ptr %129, i64 %indvars.iv115
  %131 = getelementptr inbounds i8, ptr %130, i64 3
  %132 = load i8, ptr %131, align 1, !tbaa !12
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %133 = getelementptr inbounds i8, ptr %129, i64 %indvars.iv.next.2
  store i8 %132, ptr %133, align 1, !tbaa !12
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !56

.thread104:                                       ; preds = %99, %95, %103, %84, %.unr-lcssa, %52, %48, %20, %39
  %.9 = phi i32 [ %32, %39 ], [ -2147467259, %48 ], [ 1, %52 ], [ -2147467259, %.unr-lcssa ], [ 0, %84 ], [ %107, %103 ], [ %98, %95 ], [ 0, %99 ], [ 0, %20 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %134

134:                                              ; preds = %6, %.thread104
  %.10 = phi i32 [ %9, %6 ], [ %.9, %.thread104 ]
  ret i32 %.10
}

; Function Attrs: nounwind
declare noundef i32 @_Z10ReadStreamP19ISequentialInStreamPvPm(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare noundef i32 @_Z11WriteStreamP20ISequentialOutStreamPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS17CAlignedMidBuffer", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !36, i64 136}
!18 = !{!"_ZTS12CFilterCoder", !19, i64 0, !21, i64 8, !22, i64 16, !23, i64 24, !24, i64 32, !25, i64 40, !26, i64 48, !27, i64 56, !28, i64 64, !29, i64 72, !30, i64 80, !31, i64 88, !32, i64 96, !33, i64 104, !34, i64 112, !35, i64 120, !10, i64 128, !36, i64 136, !36, i64 140, !36, i64 144, !37, i64 148, !37, i64 149, !6, i64 152, !6, i64 160, !38, i64 168, !39, i64 176, !36, i64 184, !36, i64 188, !36, i64 192, !40, i64 200, !41, i64 208, !42, i64 216, !43, i64 224, !44, i64 232, !45, i64 240, !46, i64 248}
!19 = !{!"_ZTS14ICompressCoder", !20, i64 0}
!20 = !{!"_ZTS8IUnknown"}
!21 = !{!"_ZTS25ICompressSetOutStreamSize", !20, i64 0}
!22 = !{!"_ZTS20ICompressInitEncoder", !20, i64 0}
!23 = !{!"_ZTS20ICompressSetInStream", !20, i64 0}
!24 = !{!"_ZTS19ISequentialInStream", !20, i64 0}
!25 = !{!"_ZTS21ICompressSetOutStream", !20, i64 0}
!26 = !{!"_ZTS20ISequentialOutStream", !20, i64 0}
!27 = !{!"_ZTS16IOutStreamFinish", !20, i64 0}
!28 = !{!"_ZTS19ICompressSetBufSize", !20, i64 0}
!29 = !{!"_ZTS18ICryptoSetPassword", !20, i64 0}
!30 = !{!"_ZTS17ICryptoProperties", !20, i64 0}
!31 = !{!"_ZTS27ICompressSetCoderProperties", !20, i64 0}
!32 = !{!"_ZTS29ICompressWriteCoderProperties", !20, i64 0}
!33 = !{!"_ZTS22ICryptoResetInitVector", !20, i64 0}
!34 = !{!"_ZTS30ICompressSetDecoderProperties2", !20, i64 0}
!35 = !{!"_ZTS13CMyUnknownImp", !36, i64 0}
!36 = !{!"int", !7, i64 0}
!37 = !{!"bool", !7, i64 0}
!38 = !{!"_ZTS9CMyComPtrI19ISequentialInStreamE", !11, i64 0}
!39 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !11, i64 0}
!40 = !{!"_ZTS9CMyComPtrI18ICryptoSetPasswordE", !11, i64 0}
!41 = !{!"_ZTS9CMyComPtrI17ICryptoPropertiesE", !11, i64 0}
!42 = !{!"_ZTS9CMyComPtrI27ICompressSetCoderPropertiesE", !11, i64 0}
!43 = !{!"_ZTS9CMyComPtrI29ICompressWriteCoderPropertiesE", !11, i64 0}
!44 = !{!"_ZTS9CMyComPtrI22ICryptoResetInitVectorE", !11, i64 0}
!45 = !{!"_ZTS9CMyComPtrI30ICompressSetDecoderProperties2E", !11, i64 0}
!46 = !{!"_ZTS9CMyComPtrI15ICompressFilterE", !11, i64 0}
!47 = !{!48, !48, i64 0}
!48 = !{!"long", !7, i64 0}
!49 = !{!50, !50, i64 0}
!50 = !{!"vtable pointer", !8, i64 0}
!51 = !{!18, !37, i64 148}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = distinct !{!54, !14}
!55 = distinct !{!55, !16}
!56 = distinct !{!56, !16}


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