; LLVM IR from IlyaGrebnov/libbsc :: libbsc/coder/qlfc/qlfc.ll (Z24bsc_qlfc_adaptive_encodePKhPhS1_iiP21QlfcStatisticalModel1)

; 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.RangeCoder = type { %"union.RangeCoder::ari", i32, i32, i32, i32, ptr, ptr, ptr, ptr }
%"union.RangeCoder::ari" = type { i64 }
%struct.QlfcStatisticalModel1 = type { %"struct.QlfcStatisticalModel1::Rank", %"struct.QlfcStatisticalModel1::Run", [256 x %struct.ProbabilityMixer], [8 x [8 x %struct.ProbabilityMixer]], [8 x %struct.ProbabilityMixer], [256 x %struct.ProbabilityMixer], [256 x %struct.ProbabilityMixer], [32 x [32 x %struct.ProbabilityMixer]], [32 x %struct.ProbabilityMixer] }
%"struct.QlfcStatisticalModel1::Rank" = type { i16, [256 x i16], [256 x i16], %"struct.QlfcStatisticalModel1::Rank::Exponent", [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], %"struct.QlfcStatisticalModel1::Rank::Escape" }
%"struct.QlfcStatisticalModel1::Rank::Exponent" = type { [8 x i16], [256 x [8 x i16]], [256 x [8 x i16]] }
%"struct.QlfcStatisticalModel1::Rank::Mantissa" = type { [256 x i16], [256 x [256 x i16]], [256 x [256 x i16]] }
%"struct.QlfcStatisticalModel1::Rank::Escape" = type { [256 x i16], [256 x [256 x i16]], [256 x [256 x i16]] }
%"struct.QlfcStatisticalModel1::Run" = type { i16, [256 x i16], [256 x i16], %"struct.QlfcStatisticalModel1::Run::Exponent", [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"] }
%"struct.QlfcStatisticalModel1::Run::Exponent" = type { [32 x i16], [256 x [32 x i16]], [256 x [32 x i16]] }
%"struct.QlfcStatisticalModel1::Run::Mantissa" = type { [32 x i16], [256 x [32 x i16]], [256 x [32 x i16]] }
%struct.ProbabilityMixer = type { i16, i16, i16, i32, i32, [17 x i16], i32, i32, i32 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18bsc_qlfc_transformPKhPhiS1_(ptr noalias noundef, ptr noalias noundef, i32 noundef, ptr noalias noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z24bsc_qlfc_adaptive_encodePKhPhS1_iiP21QlfcStatisticalModel1(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca [256 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [256 x i8], align 16
  %21 = alloca [256 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %class.RangeCoder, align 8
  %25 = alloca [256 x i8], align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i8, align 1
  %33 = alloca i8, align 1
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca <2 x i64>, align 16
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca i32, align 4
  %66 = alloca i32, align 4
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca i32, align 4
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  %75 = alloca i32, align 4
  %76 = alloca i32, align 4
  %77 = alloca i32, align 4
  %78 = alloca i32, align 4
  %79 = alloca i32, align 4
  %80 = alloca i32, align 4
  %81 = alloca i32, align 4
  %82 = alloca i32, align 4
  %83 = alloca i32, align 4
  %84 = alloca i32, align 4
  %85 = alloca i32, align 4
  %86 = alloca i32, align 4
  %87 = alloca i32, align 4
  %88 = alloca i32, align 4
  %89 = alloca i32, align 4
  %90 = alloca i32, align 4
  %91 = alloca i32, align 4
  %92 = alloca i32, align 4
  %93 = alloca i32, align 4
  %94 = alloca i32, align 4
  %95 = alloca i32, align 4
  %96 = alloca i32, align 4
  %97 = alloca i32, align 4
  %98 = alloca i32, align 4
  %99 = alloca i32, align 4
  %100 = 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 i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %14) #9
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_Z19bsc_qlfc_init_modelP21QlfcStatisticalModel1(ptr noundef %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 7, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 256, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %113, %6
  %103 = load i32, ptr %22, align 4, !tbaa !9
  %104 = icmp slt i32 %103, 256
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %116

106:                                              ; preds = %102
  %107 = load i32, ptr %22, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 %108
  store i8 0, ptr %109, align 1, !tbaa !11
  %110 = load i32, ptr %22, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 %111
  store i8 0, ptr %112, align 1, !tbaa !11
  br label %113

113:                                              ; preds = %106
  %114 = load i32, ptr %22, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %22, align 4, !tbaa !9
  br label %102, !llvm.loop !12

116:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 0
  %121 = call noundef ptr @_Z18bsc_qlfc_transformPKhPhiS1_(ptr noundef %117, ptr noundef %118, i32 noundef %119, ptr noundef %120)
  store ptr %121, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #9
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZN10RangeCoder11InitEncoderEPhi(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef %122, i32 noundef %123)
  %124 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN10RangeCoder10EncodeWordEj(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %124)
  call void @llvm.lifetime.start.p0(i64 256, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %133, %116
  %126 = load i32, ptr %26, align 4, !tbaa !9
  %127 = icmp slt i32 %126, 256
  br i1 %127, label %129, label %128

128:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %136

129:                                              ; preds = %125
  %130 = load i32, ptr %26, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [256 x i8], ptr %25, i64 0, i64 %131
  store i8 0, ptr %132, align 1, !tbaa !11
  br label %133

133:                                              ; preds = %129
  %134 = load i32, ptr %26, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %26, align 4, !tbaa !9
  br label %125, !llvm.loop !14

136:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 -1, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %231, %136
  %138 = load i32, ptr %28, align 4, !tbaa !9
  %139 = icmp slt i32 %138, 256
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 8, ptr %29, align 4
  br label %234

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %142 = load i32, ptr %28, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !11
  %146 = zext i8 %145 to i32
  store i32 %146, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 7, ptr %31, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %211, %141
  %148 = load i32, ptr %31, align 4, !tbaa !9
  %149 = icmp sge i32 %148, 0
  br i1 %149, label %151, label %150

150:                                              ; preds = %147
  store i32 11, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %214

151:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #9
  store i8 0, ptr %32, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #9
  store i8 0, ptr %33, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %195, %151
  %153 = load i32, ptr %34, align 4, !tbaa !9
  %154 = icmp slt i32 %153, 256
  br i1 %154, label %156, label %155

155:                                              ; preds = %152
  store i32 14, ptr %29, align 4
  br label %198

156:                                              ; preds = %152
  %157 = load i32, ptr %34, align 4, !tbaa !9
  %158 = load i32, ptr %27, align 4, !tbaa !9
  %159 = icmp eq i32 %157, %158
  br i1 %159, label %167, label %160

160:                                              ; preds = %156
  %161 = load i32, ptr %34, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [256 x i8], ptr %25, i64 0, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !11
  %165 = zext i8 %164 to i32
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %194

167:                                              ; preds = %160, %156
  %168 = load i32, ptr %30, align 4, !tbaa !9
  %169 = load i32, ptr %31, align 4, !tbaa !9
  %170 = add nsw i32 %169, 1
  %171 = ashr i32 %168, %170
  %172 = load i32, ptr %34, align 4, !tbaa !9
  %173 = load i32, ptr %31, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  %175 = ashr i32 %172, %174
  %176 = icmp eq i32 %171, %175
  br i1 %176, label %177, label %193

177:                                              ; preds = %167
  %178 = load i32, ptr %34, align 4, !tbaa !9
  %179 = load i32, ptr %31, align 4, !tbaa !9
  %180 = shl i32 1, %179
  %181 = and i32 %178, %180
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %184

183:                                              ; preds = %177
  store i8 1, ptr %33, align 1, !tbaa !15
  br label %185

184:                                              ; preds = %177
  store i8 1, ptr %32, align 1, !tbaa !15
  br label %185

185:                                              ; preds = %184, %183
  %186 = load i8, ptr %32, align 1, !tbaa !15, !range !17, !noundef !18
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %192

188:                                              ; preds = %185
  %189 = load i8, ptr %33, align 1, !tbaa !15, !range !17, !noundef !18
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %192

191:                                              ; preds = %188
  store i32 14, ptr %29, align 4
  br label %198

192:                                              ; preds = %188, %185
  br label %193

193:                                              ; preds = %192, %167
  br label %194

194:                                              ; preds = %193, %160
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %34, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %34, align 4, !tbaa !9
  br label %152, !llvm.loop !19

198:                                              ; preds = %191, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %199

199:                                              ; preds = %198
  %200 = load i8, ptr %32, align 1, !tbaa !15, !range !17, !noundef !18
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %210

202:                                              ; preds = %199
  %203 = load i8, ptr %33, align 1, !tbaa !15, !range !17, !noundef !18
  %204 = trunc i8 %203 to i1
  br i1 %204, label %205, label %210

205:                                              ; preds = %202
  %206 = load i32, ptr %30, align 4, !tbaa !9
  %207 = load i32, ptr %31, align 4, !tbaa !9
  %208 = shl i32 1, %207
  %209 = and i32 %206, %208
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %209)
  br label %210

210:                                              ; preds = %205, %202, %199
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #9
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %31, align 4, !tbaa !9
  %213 = add nsw i32 %212, -1
  store i32 %213, ptr %31, align 4, !tbaa !9
  br label %147, !llvm.loop !20

214:                                              ; preds = %150
  %215 = load i32, ptr %30, align 4, !tbaa !9
  %216 = load i32, ptr %27, align 4, !tbaa !9
  %217 = icmp eq i32 %215, %216
  br i1 %217, label %218, label %223

218:                                              ; preds = %214
  %219 = load i32, ptr %28, align 4, !tbaa !9
  %220 = sub nsw i32 %219, 1
  %221 = call i32 @llvm.ctlz.i32(i32 %220, i1 true)
  %222 = xor i32 %221, 31
  store i32 %222, ptr %18, align 4, !tbaa !9
  store i32 8, ptr %29, align 4
  br label %228

223:                                              ; preds = %214
  %224 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %224, ptr %27, align 4, !tbaa !9
  %225 = load i32, ptr %30, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [256 x i8], ptr %25, i64 0, i64 %226
  store i8 1, ptr %227, align 1, !tbaa !11
  store i32 0, ptr %29, align 4
  br label %228

228:                                              ; preds = %223, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  %229 = load i32, ptr %29, align 4
  switch i32 %229, label %234 [
    i32 0, label %230
  ]

230:                                              ; preds = %228
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %28, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %28, align 4, !tbaa !9
  br label %137, !llvm.loop !21

234:                                              ; preds = %228, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %235

235:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = load i32, ptr %11, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds i8, ptr %236, i64 %238
  store ptr %239, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %240 = load ptr, ptr %10, align 8, !tbaa !5
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds i8, ptr %240, i64 %242
  store ptr %243, ptr %36, align 8, !tbaa !5
  br label %244

244:                                              ; preds = %1132, %235
  %245 = load ptr, ptr %23, align 8, !tbaa !5
  %246 = load ptr, ptr %36, align 8, !tbaa !5
  %247 = icmp ult ptr %245, %246
  br i1 %247, label %248, label %1144

248:                                              ; preds = %244
  %249 = call noundef zeroext i1 @_ZN10RangeCoder8CheckEOBEv(ptr noundef nonnull align 8 dereferenceable(56) %24)
  br i1 %249, label %250, label %251

250:                                              ; preds = %248
  store i32 -3, ptr %7, align 4
  store i32 1, ptr %29, align 4
  br label %1146

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = load i8, ptr %252, align 1, !tbaa !11
  %254 = zext i8 %253 to i32
  store i32 %254, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds i8, ptr %255, i32 1
  store ptr %256, ptr %8, align 8, !tbaa !5
  store ptr %255, ptr %39, align 8, !tbaa !5
  %257 = load ptr, ptr %23, align 8, !tbaa !5
  %258 = load ptr, ptr %36, align 8, !tbaa !5
  %259 = getelementptr inbounds i8, ptr %258, i64 -16
  %260 = icmp uge ptr %257, %259
  br i1 %260, label %261, label %278

261:                                              ; preds = %251
  br label %262

262:                                              ; preds = %274, %261
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = load ptr, ptr %35, align 8, !tbaa !5
  %265 = icmp ult ptr %263, %264
  br i1 %265, label %266, label %272

266:                                              ; preds = %262
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = load i8, ptr %267, align 1, !tbaa !11
  %269 = zext i8 %268 to i32
  %270 = load i32, ptr %37, align 4, !tbaa !9
  %271 = icmp eq i32 %269, %270
  br label %272

272:                                              ; preds = %266, %262
  %273 = phi i1 [ false, %262 ], [ %271, %266 ]
  br i1 %273, label %274, label %277

274:                                              ; preds = %272
  %275 = load ptr, ptr %8, align 8, !tbaa !5
  %276 = getelementptr inbounds i8, ptr %275, i32 1
  store ptr %276, ptr %8, align 8, !tbaa !5
  br label %262, !llvm.loop !22

277:                                              ; preds = %272
  br label %305

278:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #9
  %279 = load i32, ptr %37, align 4, !tbaa !9
  %280 = trunc i32 %279 to i8
  %281 = call noundef <2 x i64> @_ZL13_mm_set1_epi8c(i8 noundef signext %280)
  store <2 x i64> %281, ptr %40, align 16, !tbaa !11
  br label %282

282:                                              ; preds = %303, %278
  br label %283

283:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  %284 = load ptr, ptr %8, align 8, !tbaa !5
  %285 = call noundef <2 x i64> @_ZL15_mm_loadu_si128PKDv2_x(ptr noundef %284)
  %286 = load <2 x i64>, ptr %40, align 16, !tbaa !11
  %287 = call noundef <2 x i64> @_ZL14_mm_cmpeq_epi8Dv2_xS_(<2 x i64> noundef %285, <2 x i64> noundef %286)
  %288 = call noundef i32 @_ZL17_mm_movemask_epi8Dv2_x(<2 x i64> noundef %287)
  store i32 %288, ptr %41, align 4, !tbaa !9
  %289 = load i32, ptr %41, align 4, !tbaa !9
  %290 = icmp ne i32 %289, 65535
  br i1 %290, label %291, label %298

291:                                              ; preds = %283
  %292 = load i32, ptr %41, align 4, !tbaa !9
  %293 = xor i32 %292, -1
  %294 = call i32 @llvm.cttz.i32(i32 %293, i1 true)
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  %296 = sext i32 %294 to i64
  %297 = getelementptr inbounds i8, ptr %295, i64 %296
  store ptr %297, ptr %8, align 8, !tbaa !5
  store i32 22, ptr %29, align 4
  br label %301

298:                                              ; preds = %283
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  %300 = getelementptr inbounds i8, ptr %299, i64 16
  store ptr %300, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %29, align 4
  br label %301

301:                                              ; preds = %298, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  %302 = load i32, ptr %29, align 4
  switch i32 %302, label %1148 [
    i32 0, label %303
    i32 22, label %304
  ]

303:                                              ; preds = %301
  br label %282, !llvm.loop !23

304:                                              ; preds = %301
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #9
  br label %305

305:                                              ; preds = %304, %277
  %306 = load ptr, ptr %8, align 8, !tbaa !5
  %307 = load ptr, ptr %39, align 8, !tbaa !5
  %308 = ptrtoint ptr %306 to i64
  %309 = ptrtoint ptr %307 to i64
  %310 = sub i64 %308, %309
  %311 = trunc i64 %310 to i32
  store i32 %311, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  %312 = load ptr, ptr %23, align 8, !tbaa !5
  %313 = getelementptr inbounds i8, ptr %312, i32 1
  store ptr %313, ptr %23, align 8, !tbaa !5
  %314 = load i8, ptr %312, align 1, !tbaa !11
  %315 = zext i8 %314 to i32
  store i32 %315, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  %316 = load i32, ptr %37, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 %317
  %319 = load i8, ptr %318, align 1, !tbaa !11
  %320 = zext i8 %319 to i32
  store i32 %320, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  %321 = load i32, ptr %16, align 4, !tbaa !9
  %322 = load i32, ptr %17, align 4, !tbaa !9
  %323 = load i32, ptr %43, align 4, !tbaa !9
  %324 = call noundef i32 @_ZL16model_rank_stateiii(i32 noundef %321, i32 noundef %322, i32 noundef %323)
  store i32 %324, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %325 = load ptr, ptr %13, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %325, i32 0, i32 0
  %327 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %326, i32 0, i32 1
  %328 = load i32, ptr %44, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [256 x i16], ptr %327, i64 0, i64 %329
  store ptr %330, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %331 = load ptr, ptr %13, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %331, i32 0, i32 0
  %333 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %332, i32 0, i32 2
  %334 = load i32, ptr %37, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [256 x i16], ptr %333, i64 0, i64 %335
  store ptr %336, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %337 = load ptr, ptr %13, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %337, i32 0, i32 0
  %339 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %338, i32 0, i32 0
  store ptr %339, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  %340 = load ptr, ptr %13, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %340, i32 0, i32 2
  %342 = load i32, ptr %37, align 4, !tbaa !9
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %341, i64 0, i64 %343
  store ptr %344, ptr %48, align 8, !tbaa !5
  %345 = load i32, ptr %19, align 4, !tbaa !9
  %346 = icmp slt i32 %345, 32
  br i1 %346, label %347, label %635

347:                                              ; preds = %305
  %348 = load i32, ptr %42, align 4, !tbaa !9
  %349 = icmp eq i32 %348, 1
  br i1 %349, label %350, label %371

350:                                              ; preds = %347
  %351 = load i32, ptr %37, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 %352
  store i8 0, ptr %353, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #9
  %354 = load ptr, ptr %46, align 8, !tbaa !5
  %355 = load i16, ptr %354, align 2, !tbaa !24
  %356 = sext i16 %355 to i32
  store i32 %356, ptr %49, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #9
  %357 = load ptr, ptr %45, align 8, !tbaa !5
  %358 = load i16, ptr %357, align 2, !tbaa !24
  %359 = sext i16 %358 to i32
  store i32 %359, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  %360 = load ptr, ptr %47, align 8, !tbaa !5
  %361 = load i16, ptr %360, align 2, !tbaa !24
  %362 = sext i16 %361 to i32
  store i32 %362, ptr %51, align 4, !tbaa !9
  %363 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %363, i32 noundef 1, i32 noundef 57)
  %364 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %364, i32 noundef 291, i32 noundef 250)
  %365 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %365, i32 noundef 375, i32 noundef 163)
  %366 = load ptr, ptr %48, align 8, !tbaa !5
  %367 = load i32, ptr %49, align 4, !tbaa !9
  %368 = load i32, ptr %50, align 4, !tbaa !9
  %369 = load i32, ptr %51, align 4, !tbaa !9
  %370 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %366, i32 noundef %367, i32 noundef %368, i32 noundef %369, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef -41, i32 noundef 96)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %370)
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  br label %634

371:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #9
  %372 = load ptr, ptr %46, align 8, !tbaa !5
  %373 = load i16, ptr %372, align 2, !tbaa !24
  %374 = sext i16 %373 to i32
  store i32 %374, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #9
  %375 = load ptr, ptr %45, align 8, !tbaa !5
  %376 = load i16, ptr %375, align 2, !tbaa !24
  %377 = sext i16 %376 to i32
  store i32 %377, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #9
  %378 = load ptr, ptr %47, align 8, !tbaa !5
  %379 = load i16, ptr %378, align 2, !tbaa !24
  %380 = sext i16 %379 to i32
  store i32 %380, ptr %54, align 4, !tbaa !9
  %381 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %381, i32 noundef -111, i32 noundef 31)
  %382 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %382, i32 noundef 154, i32 noundef 528)
  %383 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %383, i32 noundef 313, i32 noundef 639)
  %384 = load ptr, ptr %48, align 8, !tbaa !5
  %385 = load i32, ptr %52, align 4, !tbaa !9
  %386 = load i32, ptr %53, align 4, !tbaa !9
  %387 = load i32, ptr %54, align 4, !tbaa !9
  %388 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %384, i32 noundef %385, i32 noundef %386, i32 noundef %387, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef 53, i32 noundef 49)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %388)
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #9
  %389 = load i32, ptr %42, align 4, !tbaa !9
  %390 = call i32 @llvm.ctlz.i32(i32 %389, i1 true)
  %391 = xor i32 %390, 31
  store i32 %391, ptr %55, align 4, !tbaa !9
  %392 = load i32, ptr %55, align 4, !tbaa !9
  %393 = trunc i32 %392 to i8
  %394 = load i32, ptr %37, align 4, !tbaa !9
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 %395
  store i8 %393, ptr %396, align 1, !tbaa !11
  %397 = load ptr, ptr %13, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %397, i32 0, i32 0
  %399 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %398, i32 0, i32 3
  %400 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Exponent", ptr %399, i32 0, i32 1
  %401 = load i32, ptr %44, align 4, !tbaa !9
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [256 x [8 x i16]], ptr %400, i64 0, i64 %402
  %404 = getelementptr inbounds [8 x i16], ptr %403, i64 0, i64 0
  store ptr %404, ptr %45, align 8, !tbaa !5
  %405 = load ptr, ptr %13, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %405, i32 0, i32 0
  %407 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %406, i32 0, i32 3
  %408 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Exponent", ptr %407, i32 0, i32 2
  %409 = load i32, ptr %37, align 4, !tbaa !9
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [256 x [8 x i16]], ptr %408, i64 0, i64 %410
  %412 = getelementptr inbounds [8 x i16], ptr %411, i64 0, i64 0
  store ptr %412, ptr %46, align 8, !tbaa !5
  %413 = load ptr, ptr %13, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %413, i32 0, i32 0
  %415 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %414, i32 0, i32 3
  %416 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Exponent", ptr %415, i32 0, i32 0
  %417 = getelementptr inbounds [8 x i16], ptr %416, i64 0, i64 0
  store ptr %417, ptr %47, align 8, !tbaa !5
  %418 = load ptr, ptr %13, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %418, i32 0, i32 3
  %420 = load i32, ptr %43, align 4, !tbaa !9
  %421 = icmp slt i32 %420, 1
  br i1 %421, label %422, label %423

422:                                              ; preds = %371
  br label %425

423:                                              ; preds = %371
  %424 = load i32, ptr %43, align 4, !tbaa !9
  br label %425

425:                                              ; preds = %423, %422
  %426 = phi i32 [ 1, %422 ], [ %424, %423 ]
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %419, i64 0, i64 %427
  %429 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %428, i64 0, i64 1
  store ptr %429, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #9
  store i32 1, ptr %56, align 4, !tbaa !9
  br label %430

430:                                              ; preds = %471, %425
  %431 = load i32, ptr %56, align 4, !tbaa !9
  %432 = load i32, ptr %55, align 4, !tbaa !9
  %433 = icmp slt i32 %431, %432
  br i1 %433, label %435, label %434

434:                                              ; preds = %430
  store i32 23, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  br label %480

435:                                              ; preds = %430
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #9
  %436 = load ptr, ptr %46, align 8, !tbaa !5
  %437 = load i16, ptr %436, align 2, !tbaa !24
  %438 = sext i16 %437 to i32
  store i32 %438, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #9
  %439 = load ptr, ptr %45, align 8, !tbaa !5
  %440 = load i16, ptr %439, align 2, !tbaa !24
  %441 = sext i16 %440 to i32
  store i32 %441, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  %442 = load ptr, ptr %47, align 8, !tbaa !5
  %443 = load i16, ptr %442, align 2, !tbaa !24
  %444 = sext i16 %443 to i32
  store i32 %444, ptr %59, align 4, !tbaa !9
  %445 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %445, i32 noundef 482, i32 noundef 40)
  %446 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %446, i32 noundef 200, i32 noundef 133)
  %447 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %447, i32 noundef 578, i32 noundef 1067)
  %448 = load ptr, ptr %48, align 8, !tbaa !5
  %449 = load i32, ptr %57, align 4, !tbaa !9
  %450 = load i32, ptr %58, align 4, !tbaa !9
  %451 = load i32, ptr %59, align 4, !tbaa !9
  %452 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %448, i32 noundef %449, i32 noundef %450, i32 noundef %451, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef 144, i32 noundef 848)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %452)
  %453 = load ptr, ptr %13, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %453, i32 0, i32 3
  %455 = load i32, ptr %43, align 4, !tbaa !9
  %456 = load i32, ptr %56, align 4, !tbaa !9
  %457 = icmp sle i32 %455, %456
  br i1 %457, label %458, label %461

458:                                              ; preds = %435
  %459 = load i32, ptr %56, align 4, !tbaa !9
  %460 = add nsw i32 %459, 1
  br label %463

461:                                              ; preds = %435
  %462 = load i32, ptr %43, align 4, !tbaa !9
  br label %463

463:                                              ; preds = %461, %458
  %464 = phi i32 [ %460, %458 ], [ %462, %461 ]
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %454, i64 0, i64 %465
  %467 = load i32, ptr %56, align 4, !tbaa !9
  %468 = add nsw i32 %467, 1
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %466, i64 0, i64 %469
  store ptr %470, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  br label %471

471:                                              ; preds = %463
  %472 = load i32, ptr %56, align 4, !tbaa !9
  %473 = add nsw i32 %472, 1
  store i32 %473, ptr %56, align 4, !tbaa !9
  %474 = load ptr, ptr %45, align 8, !tbaa !5
  %475 = getelementptr inbounds i16, ptr %474, i32 1
  store ptr %475, ptr %45, align 8, !tbaa !5
  %476 = load ptr, ptr %46, align 8, !tbaa !5
  %477 = getelementptr inbounds i16, ptr %476, i32 1
  store ptr %477, ptr %46, align 8, !tbaa !5
  %478 = load ptr, ptr %47, align 8, !tbaa !5
  %479 = getelementptr inbounds i16, ptr %478, i32 1
  store ptr %479, ptr %47, align 8, !tbaa !5
  br label %430, !llvm.loop !26

480:                                              ; preds = %434
  %481 = load i32, ptr %55, align 4, !tbaa !9
  %482 = load i32, ptr %18, align 4, !tbaa !9
  %483 = icmp slt i32 %481, %482
  br i1 %483, label %484, label %502

484:                                              ; preds = %480
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #9
  %485 = load ptr, ptr %46, align 8, !tbaa !5
  %486 = load i16, ptr %485, align 2, !tbaa !24
  %487 = sext i16 %486 to i32
  store i32 %487, ptr %60, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #9
  %488 = load ptr, ptr %45, align 8, !tbaa !5
  %489 = load i16, ptr %488, align 2, !tbaa !24
  %490 = sext i16 %489 to i32
  store i32 %490, ptr %61, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #9
  %491 = load ptr, ptr %47, align 8, !tbaa !5
  %492 = load i16, ptr %491, align 2, !tbaa !24
  %493 = sext i16 %492 to i32
  store i32 %493, ptr %62, align 4, !tbaa !9
  %494 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %494, i32 noundef -137, i32 noundef 17)
  %495 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %495, i32 noundef 61, i32 noundef 192)
  %496 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %496, i32 noundef 54, i32 noundef 1342)
  %497 = load ptr, ptr %48, align 8, !tbaa !5
  %498 = load i32, ptr %60, align 4, !tbaa !9
  %499 = load i32, ptr %61, align 4, !tbaa !9
  %500 = load i32, ptr %62, align 4, !tbaa !9
  %501 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %497, i32 noundef %498, i32 noundef %499, i32 noundef %500, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef -11, i32 noundef 318)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %501)
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  br label %502

502:                                              ; preds = %484, %480
  %503 = load ptr, ptr %13, align 8, !tbaa !5
  %504 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %503, i32 0, i32 0
  %505 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %504, i32 0, i32 4
  %506 = load i32, ptr %55, align 4, !tbaa !9
  %507 = sext i32 %506 to i64
  %508 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %505, i64 0, i64 %507
  %509 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Mantissa", ptr %508, i32 0, i32 1
  %510 = load i32, ptr %44, align 4, !tbaa !9
  %511 = sext i32 %510 to i64
  %512 = getelementptr inbounds [256 x [256 x i16]], ptr %509, i64 0, i64 %511
  %513 = getelementptr inbounds [256 x i16], ptr %512, i64 0, i64 0
  store ptr %513, ptr %45, align 8, !tbaa !5
  %514 = load ptr, ptr %13, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %514, i32 0, i32 0
  %516 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %515, i32 0, i32 4
  %517 = load i32, ptr %55, align 4, !tbaa !9
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %516, i64 0, i64 %518
  %520 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Mantissa", ptr %519, i32 0, i32 2
  %521 = load i32, ptr %37, align 4, !tbaa !9
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds [256 x [256 x i16]], ptr %520, i64 0, i64 %522
  %524 = getelementptr inbounds [256 x i16], ptr %523, i64 0, i64 0
  store ptr %524, ptr %46, align 8, !tbaa !5
  %525 = load ptr, ptr %13, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %525, i32 0, i32 0
  %527 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %526, i32 0, i32 4
  %528 = load i32, ptr %55, align 4, !tbaa !9
  %529 = sext i32 %528 to i64
  %530 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %527, i64 0, i64 %529
  %531 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Mantissa", ptr %530, i32 0, i32 0
  %532 = getelementptr inbounds [256 x i16], ptr %531, i64 0, i64 0
  store ptr %532, ptr %47, align 8, !tbaa !5
  %533 = load ptr, ptr %13, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %533, i32 0, i32 4
  %535 = load i32, ptr %55, align 4, !tbaa !9
  %536 = sext i32 %535 to i64
  %537 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %534, i64 0, i64 %536
  store ptr %537, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #9
  store i32 1, ptr %63, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #9
  %538 = load i32, ptr %55, align 4, !tbaa !9
  %539 = sub nsw i32 %538, 1
  store i32 %539, ptr %64, align 4, !tbaa !9
  br label %540

540:                                              ; preds = %630, %502
  %541 = load i32, ptr %64, align 4, !tbaa !9
  %542 = icmp sge i32 %541, 0
  br i1 %542, label %544, label %543

543:                                              ; preds = %540
  store i32 26, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #9
  br label %633

544:                                              ; preds = %540
  %545 = load i32, ptr %42, align 4, !tbaa !9
  %546 = load i32, ptr %64, align 4, !tbaa !9
  %547 = shl i32 1, %546
  %548 = and i32 %545, %547
  %549 = icmp ne i32 %548, 0
  br i1 %549, label %550, label %590

550:                                              ; preds = %544
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #9
  %551 = load ptr, ptr %46, align 8, !tbaa !5
  %552 = load i32, ptr %63, align 4, !tbaa !9
  %553 = sext i32 %552 to i64
  %554 = getelementptr inbounds i16, ptr %551, i64 %553
  %555 = load i16, ptr %554, align 2, !tbaa !24
  %556 = sext i16 %555 to i32
  store i32 %556, ptr %65, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #9
  %557 = load ptr, ptr %45, align 8, !tbaa !5
  %558 = load i32, ptr %63, align 4, !tbaa !9
  %559 = sext i32 %558 to i64
  %560 = getelementptr inbounds i16, ptr %557, i64 %559
  %561 = load i16, ptr %560, align 2, !tbaa !24
  %562 = sext i16 %561 to i32
  store i32 %562, ptr %66, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #9
  %563 = load ptr, ptr %47, align 8, !tbaa !5
  %564 = load i32, ptr %63, align 4, !tbaa !9
  %565 = sext i32 %564 to i64
  %566 = getelementptr inbounds i16, ptr %563, i64 %565
  %567 = load i16, ptr %566, align 2, !tbaa !24
  %568 = sext i16 %567 to i32
  store i32 %568, ptr %67, align 4, !tbaa !9
  %569 = load ptr, ptr %45, align 8, !tbaa !5
  %570 = load i32, ptr %63, align 4, !tbaa !9
  %571 = sext i32 %570 to i64
  %572 = getelementptr inbounds i16, ptr %569, i64 %571
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %572, i32 noundef 114, i32 noundef 24)
  %573 = load ptr, ptr %46, align 8, !tbaa !5
  %574 = load i32, ptr %63, align 4, !tbaa !9
  %575 = sext i32 %574 to i64
  %576 = getelementptr inbounds i16, ptr %573, i64 %575
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %576, i32 noundef -36, i32 noundef 78)
  %577 = load ptr, ptr %47, align 8, !tbaa !5
  %578 = load i32, ptr %63, align 4, !tbaa !9
  %579 = sext i32 %578 to i64
  %580 = getelementptr inbounds i16, ptr %577, i64 %579
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %580, i32 noundef 11, i32 noundef 1181)
  %581 = load ptr, ptr %48, align 8, !tbaa !5
  %582 = load i32, ptr %65, align 4, !tbaa !9
  %583 = load i32, ptr %66, align 4, !tbaa !9
  %584 = load i32, ptr %67, align 4, !tbaa !9
  %585 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %581, i32 noundef %582, i32 noundef %583, i32 noundef %584, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -271, i32 noundef 15)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %585)
  %586 = load i32, ptr %63, align 4, !tbaa !9
  %587 = add nsw i32 %586, 1
  %588 = load i32, ptr %63, align 4, !tbaa !9
  %589 = add nsw i32 %588, %587
  store i32 %589, ptr %63, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #9
  br label %629

590:                                              ; preds = %544
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #9
  %591 = load ptr, ptr %46, align 8, !tbaa !5
  %592 = load i32, ptr %63, align 4, !tbaa !9
  %593 = sext i32 %592 to i64
  %594 = getelementptr inbounds i16, ptr %591, i64 %593
  %595 = load i16, ptr %594, align 2, !tbaa !24
  %596 = sext i16 %595 to i32
  store i32 %596, ptr %68, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #9
  %597 = load ptr, ptr %45, align 8, !tbaa !5
  %598 = load i32, ptr %63, align 4, !tbaa !9
  %599 = sext i32 %598 to i64
  %600 = getelementptr inbounds i16, ptr %597, i64 %599
  %601 = load i16, ptr %600, align 2, !tbaa !24
  %602 = sext i16 %601 to i32
  store i32 %602, ptr %69, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #9
  %603 = load ptr, ptr %47, align 8, !tbaa !5
  %604 = load i32, ptr %63, align 4, !tbaa !9
  %605 = sext i32 %604 to i64
  %606 = getelementptr inbounds i16, ptr %603, i64 %605
  %607 = load i16, ptr %606, align 2, !tbaa !24
  %608 = sext i16 %607 to i32
  store i32 %608, ptr %70, align 4, !tbaa !9
  %609 = load ptr, ptr %45, align 8, !tbaa !5
  %610 = load i32, ptr %63, align 4, !tbaa !9
  %611 = sext i32 %610 to i64
  %612 = getelementptr inbounds i16, ptr %609, i64 %611
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %612, i32 noundef -145, i32 noundef 18)
  %613 = load ptr, ptr %46, align 8, !tbaa !5
  %614 = load i32, ptr %63, align 4, !tbaa !9
  %615 = sext i32 %614 to i64
  %616 = getelementptr inbounds i16, ptr %613, i64 %615
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %616, i32 noundef -43, i32 noundef 69)
  %617 = load ptr, ptr %47, align 8, !tbaa !5
  %618 = load i32, ptr %63, align 4, !tbaa !9
  %619 = sext i32 %618 to i64
  %620 = getelementptr inbounds i16, ptr %617, i64 %619
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %620, i32 noundef -2, i32 noundef 1119)
  %621 = load ptr, ptr %48, align 8, !tbaa !5
  %622 = load i32, ptr %68, align 4, !tbaa !9
  %623 = load i32, ptr %69, align 4, !tbaa !9
  %624 = load i32, ptr %70, align 4, !tbaa !9
  %625 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %621, i32 noundef %622, i32 noundef %623, i32 noundef %624, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -203, i32 noundef 20)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %625)
  %626 = load i32, ptr %63, align 4, !tbaa !9
  %627 = load i32, ptr %63, align 4, !tbaa !9
  %628 = add nsw i32 %627, %626
  store i32 %628, ptr %63, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #9
  br label %629

629:                                              ; preds = %590, %550
  br label %630

630:                                              ; preds = %629
  %631 = load i32, ptr %64, align 4, !tbaa !9
  %632 = add nsw i32 %631, -1
  store i32 %632, ptr %64, align 4, !tbaa !9
  br label %540, !llvm.loop !27

633:                                              ; preds = %543
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  br label %634

634:                                              ; preds = %633, %350
  br label %764

635:                                              ; preds = %305
  %636 = load i32, ptr %42, align 4, !tbaa !9
  %637 = call i32 @llvm.ctlz.i32(i32 %636, i1 true)
  %638 = xor i32 %637, 31
  %639 = trunc i32 %638 to i8
  %640 = load i32, ptr %37, align 4, !tbaa !9
  %641 = sext i32 %640 to i64
  %642 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 %641
  store i8 %639, ptr %642, align 1, !tbaa !11
  %643 = load ptr, ptr %13, align 8, !tbaa !5
  %644 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %643, i32 0, i32 0
  %645 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %644, i32 0, i32 5
  %646 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Escape", ptr %645, i32 0, i32 1
  %647 = load i32, ptr %44, align 4, !tbaa !9
  %648 = sext i32 %647 to i64
  %649 = getelementptr inbounds [256 x [256 x i16]], ptr %646, i64 0, i64 %648
  %650 = getelementptr inbounds [256 x i16], ptr %649, i64 0, i64 0
  store ptr %650, ptr %45, align 8, !tbaa !5
  %651 = load ptr, ptr %13, align 8, !tbaa !5
  %652 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %651, i32 0, i32 0
  %653 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %652, i32 0, i32 5
  %654 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Escape", ptr %653, i32 0, i32 2
  %655 = load i32, ptr %37, align 4, !tbaa !9
  %656 = sext i32 %655 to i64
  %657 = getelementptr inbounds [256 x [256 x i16]], ptr %654, i64 0, i64 %656
  %658 = getelementptr inbounds [256 x i16], ptr %657, i64 0, i64 0
  store ptr %658, ptr %46, align 8, !tbaa !5
  %659 = load ptr, ptr %13, align 8, !tbaa !5
  %660 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %659, i32 0, i32 0
  %661 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %660, i32 0, i32 5
  %662 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Escape", ptr %661, i32 0, i32 0
  %663 = getelementptr inbounds [256 x i16], ptr %662, i64 0, i64 0
  store ptr %663, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #9
  store i32 1, ptr %71, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #9
  %664 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %664, ptr %72, align 4, !tbaa !9
  br label %665

665:                                              ; preds = %760, %635
  %666 = load i32, ptr %72, align 4, !tbaa !9
  %667 = icmp sge i32 %666, 0
  br i1 %667, label %669, label %668

668:                                              ; preds = %665
  store i32 29, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  br label %763

669:                                              ; preds = %665
  %670 = load ptr, ptr %13, align 8, !tbaa !5
  %671 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %670, i32 0, i32 5
  %672 = load i32, ptr %71, align 4, !tbaa !9
  %673 = sext i32 %672 to i64
  %674 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %671, i64 0, i64 %673
  store ptr %674, ptr %48, align 8, !tbaa !5
  %675 = load i32, ptr %42, align 4, !tbaa !9
  %676 = load i32, ptr %72, align 4, !tbaa !9
  %677 = shl i32 1, %676
  %678 = and i32 %675, %677
  %679 = icmp ne i32 %678, 0
  br i1 %679, label %680, label %720

680:                                              ; preds = %669
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #9
  %681 = load ptr, ptr %46, align 8, !tbaa !5
  %682 = load i32, ptr %71, align 4, !tbaa !9
  %683 = sext i32 %682 to i64
  %684 = getelementptr inbounds i16, ptr %681, i64 %683
  %685 = load i16, ptr %684, align 2, !tbaa !24
  %686 = sext i16 %685 to i32
  store i32 %686, ptr %73, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #9
  %687 = load ptr, ptr %45, align 8, !tbaa !5
  %688 = load i32, ptr %71, align 4, !tbaa !9
  %689 = sext i32 %688 to i64
  %690 = getelementptr inbounds i16, ptr %687, i64 %689
  %691 = load i16, ptr %690, align 2, !tbaa !24
  %692 = sext i16 %691 to i32
  store i32 %692, ptr %74, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #9
  %693 = load ptr, ptr %47, align 8, !tbaa !5
  %694 = load i32, ptr %71, align 4, !tbaa !9
  %695 = sext i32 %694 to i64
  %696 = getelementptr inbounds i16, ptr %693, i64 %695
  %697 = load i16, ptr %696, align 2, !tbaa !24
  %698 = sext i16 %697 to i32
  store i32 %698, ptr %75, align 4, !tbaa !9
  %699 = load ptr, ptr %45, align 8, !tbaa !5
  %700 = load i32, ptr %71, align 4, !tbaa !9
  %701 = sext i32 %700 to i64
  %702 = getelementptr inbounds i16, ptr %699, i64 %701
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %702, i32 noundef 318, i32 noundef 42)
  %703 = load ptr, ptr %46, align 8, !tbaa !5
  %704 = load i32, ptr %71, align 4, !tbaa !9
  %705 = sext i32 %704 to i64
  %706 = getelementptr inbounds i16, ptr %703, i64 %705
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %706, i32 noundef 1116, i32 noundef 246)
  %707 = load ptr, ptr %47, align 8, !tbaa !5
  %708 = load i32, ptr %71, align 4, !tbaa !9
  %709 = sext i32 %708 to i64
  %710 = getelementptr inbounds i16, ptr %707, i64 %709
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %710, i32 noundef -2, i32 noundef 1110)
  %711 = load ptr, ptr %48, align 8, !tbaa !5
  %712 = load i32, ptr %73, align 4, !tbaa !9
  %713 = load i32, ptr %74, align 4, !tbaa !9
  %714 = load i32, ptr %75, align 4, !tbaa !9
  %715 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %711, i32 noundef %712, i32 noundef %713, i32 noundef %714, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -129, i32 noundef 20)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %715)
  %716 = load i32, ptr %71, align 4, !tbaa !9
  %717 = add nsw i32 %716, 1
  %718 = load i32, ptr %71, align 4, !tbaa !9
  %719 = add nsw i32 %718, %717
  store i32 %719, ptr %71, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #9
  br label %759

720:                                              ; preds = %669
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #9
  %721 = load ptr, ptr %46, align 8, !tbaa !5
  %722 = load i32, ptr %71, align 4, !tbaa !9
  %723 = sext i32 %722 to i64
  %724 = getelementptr inbounds i16, ptr %721, i64 %723
  %725 = load i16, ptr %724, align 2, !tbaa !24
  %726 = sext i16 %725 to i32
  store i32 %726, ptr %76, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %77) #9
  %727 = load ptr, ptr %45, align 8, !tbaa !5
  %728 = load i32, ptr %71, align 4, !tbaa !9
  %729 = sext i32 %728 to i64
  %730 = getelementptr inbounds i16, ptr %727, i64 %729
  %731 = load i16, ptr %730, align 2, !tbaa !24
  %732 = sext i16 %731 to i32
  store i32 %732, ptr %77, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #9
  %733 = load ptr, ptr %47, align 8, !tbaa !5
  %734 = load i32, ptr %71, align 4, !tbaa !9
  %735 = sext i32 %734 to i64
  %736 = getelementptr inbounds i16, ptr %733, i64 %735
  %737 = load i16, ptr %736, align 2, !tbaa !24
  %738 = sext i16 %737 to i32
  store i32 %738, ptr %78, align 4, !tbaa !9
  %739 = load ptr, ptr %45, align 8, !tbaa !5
  %740 = load i32, ptr %71, align 4, !tbaa !9
  %741 = sext i32 %740 to i64
  %742 = getelementptr inbounds i16, ptr %739, i64 %741
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %742, i32 noundef -99, i32 noundef 32)
  %743 = load ptr, ptr %46, align 8, !tbaa !5
  %744 = load i32, ptr %71, align 4, !tbaa !9
  %745 = sext i32 %744 to i64
  %746 = getelementptr inbounds i16, ptr %743, i64 %745
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %746, i32 noundef 17, i32 noundef 101)
  %747 = load ptr, ptr %47, align 8, !tbaa !5
  %748 = load i32, ptr %71, align 4, !tbaa !9
  %749 = sext i32 %748 to i64
  %750 = getelementptr inbounds i16, ptr %747, i64 %749
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %750, i32 noundef 22, i32 noundef 964)
  %751 = load ptr, ptr %48, align 8, !tbaa !5
  %752 = load i32, ptr %76, align 4, !tbaa !9
  %753 = load i32, ptr %77, align 4, !tbaa !9
  %754 = load i32, ptr %78, align 4, !tbaa !9
  %755 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %751, i32 noundef %752, i32 noundef %753, i32 noundef %754, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -194, i32 noundef 21)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %755)
  %756 = load i32, ptr %71, align 4, !tbaa !9
  %757 = load i32, ptr %71, align 4, !tbaa !9
  %758 = add nsw i32 %757, %756
  store i32 %758, ptr %71, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #9
  br label %759

759:                                              ; preds = %720, %680
  br label %760

760:                                              ; preds = %759
  %761 = load i32, ptr %72, align 4, !tbaa !9
  %762 = add nsw i32 %761, -1
  store i32 %762, ptr %72, align 4, !tbaa !9
  br label %665, !llvm.loop !28

763:                                              ; preds = %668
  br label %764

764:                                              ; preds = %763, %634
  %765 = load i32, ptr %19, align 4, !tbaa !9
  %766 = mul nsw i32 %765, 124
  %767 = load i32, ptr %42, align 4, !tbaa !9
  %768 = mul nsw i32 %767, 4
  %769 = add nsw i32 %766, %768
  %770 = ashr i32 %769, 7
  store i32 %770, ptr %19, align 4, !tbaa !9
  %771 = load i32, ptr %42, align 4, !tbaa !9
  %772 = sub nsw i32 %771, 1
  store i32 %772, ptr %42, align 4, !tbaa !9
  %773 = load i32, ptr %37, align 4, !tbaa !9
  %774 = sext i32 %773 to i64
  %775 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 %774
  %776 = load i8, ptr %775, align 1, !tbaa !11
  %777 = zext i8 %776 to i32
  store i32 %777, ptr %43, align 4, !tbaa !9
  %778 = load i32, ptr %15, align 4, !tbaa !9
  %779 = load i32, ptr %17, align 4, !tbaa !9
  %780 = load i32, ptr %42, align 4, !tbaa !9
  %781 = load i32, ptr %43, align 4, !tbaa !9
  %782 = call noundef i32 @_ZL15model_run_stateiiii(i32 noundef %778, i32 noundef %779, i32 noundef %780, i32 noundef %781)
  store i32 %782, ptr %44, align 4, !tbaa !9
  %783 = load ptr, ptr %13, align 8, !tbaa !5
  %784 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %783, i32 0, i32 1
  %785 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %784, i32 0, i32 1
  %786 = load i32, ptr %44, align 4, !tbaa !9
  %787 = sext i32 %786 to i64
  %788 = getelementptr inbounds [256 x i16], ptr %785, i64 0, i64 %787
  store ptr %788, ptr %45, align 8, !tbaa !5
  %789 = load ptr, ptr %13, align 8, !tbaa !5
  %790 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %789, i32 0, i32 1
  %791 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %790, i32 0, i32 2
  %792 = load i32, ptr %37, align 4, !tbaa !9
  %793 = sext i32 %792 to i64
  %794 = getelementptr inbounds [256 x i16], ptr %791, i64 0, i64 %793
  store ptr %794, ptr %46, align 8, !tbaa !5
  %795 = load ptr, ptr %13, align 8, !tbaa !5
  %796 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %795, i32 0, i32 1
  %797 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %796, i32 0, i32 0
  store ptr %797, ptr %47, align 8, !tbaa !5
  %798 = load ptr, ptr %13, align 8, !tbaa !5
  %799 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %798, i32 0, i32 6
  %800 = load i32, ptr %37, align 4, !tbaa !9
  %801 = sext i32 %800 to i64
  %802 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %799, i64 0, i64 %801
  store ptr %802, ptr %48, align 8, !tbaa !5
  %803 = load i32, ptr %38, align 4, !tbaa !9
  %804 = icmp eq i32 %803, 1
  br i1 %804, label %805, label %834

805:                                              ; preds = %764
  %806 = load i32, ptr %37, align 4, !tbaa !9
  %807 = sext i32 %806 to i64
  %808 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 %807
  %809 = load i8, ptr %808, align 1, !tbaa !11
  %810 = zext i8 %809 to i32
  %811 = add nsw i32 %810, 2
  %812 = ashr i32 %811, 2
  %813 = trunc i32 %812 to i8
  %814 = load i32, ptr %37, align 4, !tbaa !9
  %815 = sext i32 %814 to i64
  %816 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 %815
  store i8 %813, ptr %816, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #9
  %817 = load ptr, ptr %46, align 8, !tbaa !5
  %818 = load i16, ptr %817, align 2, !tbaa !24
  %819 = sext i16 %818 to i32
  store i32 %819, ptr %79, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #9
  %820 = load ptr, ptr %45, align 8, !tbaa !5
  %821 = load i16, ptr %820, align 2, !tbaa !24
  %822 = sext i16 %821 to i32
  store i32 %822, ptr %80, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #9
  %823 = load ptr, ptr %47, align 8, !tbaa !5
  %824 = load i16, ptr %823, align 2, !tbaa !24
  %825 = sext i16 %824 to i32
  store i32 %825, ptr %81, align 4, !tbaa !9
  %826 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %826, i32 noundef -93, i32 noundef 34)
  %827 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %827, i32 noundef 139, i32 noundef 423)
  %828 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %828, i32 noundef 275, i32 noundef 450)
  %829 = load ptr, ptr %48, align 8, !tbaa !5
  %830 = load i32, ptr %79, align 4, !tbaa !9
  %831 = load i32, ptr %80, align 4, !tbaa !9
  %832 = load i32, ptr %81, align 4, !tbaa !9
  %833 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %829, i32 noundef %830, i32 noundef %831, i32 noundef %832, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef -68, i32 noundef 25)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %833)
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #9
  br label %1116

834:                                              ; preds = %764
  call void @llvm.lifetime.start.p0(i64 4, ptr %82) #9
  %835 = load ptr, ptr %46, align 8, !tbaa !5
  %836 = load i16, ptr %835, align 2, !tbaa !24
  %837 = sext i16 %836 to i32
  store i32 %837, ptr %82, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #9
  %838 = load ptr, ptr %45, align 8, !tbaa !5
  %839 = load i16, ptr %838, align 2, !tbaa !24
  %840 = sext i16 %839 to i32
  store i32 %840, ptr %83, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #9
  %841 = load ptr, ptr %47, align 8, !tbaa !5
  %842 = load i16, ptr %841, align 2, !tbaa !24
  %843 = sext i16 %842 to i32
  store i32 %843, ptr %84, align 4, !tbaa !9
  %844 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %844, i32 noundef -4, i32 noundef 51)
  %845 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %845, i32 noundef 244, i32 noundef 162)
  %846 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %846, i32 noundef -6, i32 noundef 579)
  %847 = load ptr, ptr %48, align 8, !tbaa !5
  %848 = load i32, ptr %82, align 4, !tbaa !9
  %849 = load i32, ptr %83, align 4, !tbaa !9
  %850 = load i32, ptr %84, align 4, !tbaa !9
  %851 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %847, i32 noundef %848, i32 noundef %849, i32 noundef %850, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef 1, i32 noundef 64)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %851)
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #9
  %852 = load i32, ptr %38, align 4, !tbaa !9
  %853 = call i32 @llvm.ctlz.i32(i32 %852, i1 true)
  %854 = xor i32 %853, 31
  store i32 %854, ptr %85, align 4, !tbaa !9
  %855 = load i32, ptr %37, align 4, !tbaa !9
  %856 = sext i32 %855 to i64
  %857 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 %856
  %858 = load i8, ptr %857, align 1, !tbaa !11
  %859 = zext i8 %858 to i32
  %860 = load i32, ptr %85, align 4, !tbaa !9
  %861 = mul nsw i32 3, %860
  %862 = add nsw i32 %859, %861
  %863 = add nsw i32 %862, 3
  %864 = ashr i32 %863, 2
  %865 = trunc i32 %864 to i8
  %866 = load i32, ptr %37, align 4, !tbaa !9
  %867 = sext i32 %866 to i64
  %868 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 %867
  store i8 %865, ptr %868, align 1, !tbaa !11
  %869 = load ptr, ptr %13, align 8, !tbaa !5
  %870 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %869, i32 0, i32 1
  %871 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %870, i32 0, i32 3
  %872 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Exponent", ptr %871, i32 0, i32 1
  %873 = load i32, ptr %44, align 4, !tbaa !9
  %874 = sext i32 %873 to i64
  %875 = getelementptr inbounds [256 x [32 x i16]], ptr %872, i64 0, i64 %874
  %876 = getelementptr inbounds [32 x i16], ptr %875, i64 0, i64 0
  store ptr %876, ptr %45, align 8, !tbaa !5
  %877 = load ptr, ptr %13, align 8, !tbaa !5
  %878 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %877, i32 0, i32 1
  %879 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %878, i32 0, i32 3
  %880 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Exponent", ptr %879, i32 0, i32 2
  %881 = load i32, ptr %37, align 4, !tbaa !9
  %882 = sext i32 %881 to i64
  %883 = getelementptr inbounds [256 x [32 x i16]], ptr %880, i64 0, i64 %882
  %884 = getelementptr inbounds [32 x i16], ptr %883, i64 0, i64 0
  store ptr %884, ptr %46, align 8, !tbaa !5
  %885 = load ptr, ptr %13, align 8, !tbaa !5
  %886 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %885, i32 0, i32 1
  %887 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %886, i32 0, i32 3
  %888 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Exponent", ptr %887, i32 0, i32 0
  %889 = getelementptr inbounds [32 x i16], ptr %888, i64 0, i64 0
  store ptr %889, ptr %47, align 8, !tbaa !5
  %890 = load ptr, ptr %13, align 8, !tbaa !5
  %891 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %890, i32 0, i32 7
  %892 = load i32, ptr %43, align 4, !tbaa !9
  %893 = icmp slt i32 %892, 1
  br i1 %893, label %894, label %895

894:                                              ; preds = %834
  br label %897

895:                                              ; preds = %834
  %896 = load i32, ptr %43, align 4, !tbaa !9
  br label %897

897:                                              ; preds = %895, %894
  %898 = phi i32 [ 1, %894 ], [ %896, %895 ]
  %899 = sext i32 %898 to i64
  %900 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %891, i64 0, i64 %899
  %901 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %900, i64 0, i64 1
  store ptr %901, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %86) #9
  store i32 1, ptr %86, align 4, !tbaa !9
  br label %902

902:                                              ; preds = %943, %897
  %903 = load i32, ptr %86, align 4, !tbaa !9
  %904 = load i32, ptr %85, align 4, !tbaa !9
  %905 = icmp slt i32 %903, %904
  br i1 %905, label %907, label %906

906:                                              ; preds = %902
  store i32 32, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #9
  br label %952

907:                                              ; preds = %902
  call void @llvm.lifetime.start.p0(i64 4, ptr %87) #9
  %908 = load ptr, ptr %46, align 8, !tbaa !5
  %909 = load i16, ptr %908, align 2, !tbaa !24
  %910 = sext i16 %909 to i32
  store i32 %910, ptr %87, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %88) #9
  %911 = load ptr, ptr %45, align 8, !tbaa !5
  %912 = load i16, ptr %911, align 2, !tbaa !24
  %913 = sext i16 %912 to i32
  store i32 %913, ptr %88, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #9
  %914 = load ptr, ptr %47, align 8, !tbaa !5
  %915 = load i16, ptr %914, align 2, !tbaa !24
  %916 = sext i16 %915 to i32
  store i32 %916, ptr %89, align 4, !tbaa !9
  %917 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %917, i32 noundef 43, i32 noundef 45)
  %918 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %918, i32 noundef 30, i32 noundef 324)
  %919 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %919, i32 noundef 109, i32 noundef 867)
  %920 = load ptr, ptr %48, align 8, !tbaa !5
  %921 = load i32, ptr %87, align 4, !tbaa !9
  %922 = load i32, ptr %88, align 4, !tbaa !9
  %923 = load i32, ptr %89, align 4, !tbaa !9
  %924 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %920, i32 noundef %921, i32 noundef %922, i32 noundef %923, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef 61, i32 noundef 73)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %924)
  %925 = load ptr, ptr %13, align 8, !tbaa !5
  %926 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %925, i32 0, i32 7
  %927 = load i32, ptr %43, align 4, !tbaa !9
  %928 = load i32, ptr %86, align 4, !tbaa !9
  %929 = icmp sle i32 %927, %928
  br i1 %929, label %930, label %933

930:                                              ; preds = %907
  %931 = load i32, ptr %86, align 4, !tbaa !9
  %932 = add nsw i32 %931, 1
  br label %935

933:                                              ; preds = %907
  %934 = load i32, ptr %43, align 4, !tbaa !9
  br label %935

935:                                              ; preds = %933, %930
  %936 = phi i32 [ %932, %930 ], [ %934, %933 ]
  %937 = sext i32 %936 to i64
  %938 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %926, i64 0, i64 %937
  %939 = load i32, ptr %86, align 4, !tbaa !9
  %940 = add nsw i32 %939, 1
  %941 = sext i32 %940 to i64
  %942 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %938, i64 0, i64 %941
  store ptr %942, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #9
  br label %943

943:                                              ; preds = %935
  %944 = load i32, ptr %86, align 4, !tbaa !9
  %945 = add nsw i32 %944, 1
  store i32 %945, ptr %86, align 4, !tbaa !9
  %946 = load ptr, ptr %45, align 8, !tbaa !5
  %947 = getelementptr inbounds i16, ptr %946, i32 1
  store ptr %947, ptr %45, align 8, !tbaa !5
  %948 = load ptr, ptr %46, align 8, !tbaa !5
  %949 = getelementptr inbounds i16, ptr %948, i32 1
  store ptr %949, ptr %46, align 8, !tbaa !5
  %950 = load ptr, ptr %47, align 8, !tbaa !5
  %951 = getelementptr inbounds i16, ptr %950, i32 1
  store ptr %951, ptr %47, align 8, !tbaa !5
  br label %902, !llvm.loop !29

952:                                              ; preds = %906
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #9
  %953 = load ptr, ptr %46, align 8, !tbaa !5
  %954 = load i16, ptr %953, align 2, !tbaa !24
  %955 = sext i16 %954 to i32
  store i32 %955, ptr %90, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #9
  %956 = load ptr, ptr %45, align 8, !tbaa !5
  %957 = load i16, ptr %956, align 2, !tbaa !24
  %958 = sext i16 %957 to i32
  store i32 %958, ptr %91, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #9
  %959 = load ptr, ptr %47, align 8, !tbaa !5
  %960 = load i16, ptr %959, align 2, !tbaa !24
  %961 = sext i16 %960 to i32
  store i32 %961, ptr %92, align 4, !tbaa !9
  %962 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %962, i32 noundef -116, i32 noundef 31)
  %963 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %963, i32 noundef 165, i32 noundef 222)
  %964 = load ptr, ptr %47, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %964, i32 noundef 315, i32 noundef 857)
  %965 = load ptr, ptr %48, align 8, !tbaa !5
  %966 = load i32, ptr %90, align 4, !tbaa !9
  %967 = load i32, ptr %91, align 4, !tbaa !9
  %968 = load i32, ptr %92, align 4, !tbaa !9
  %969 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %965, i32 noundef %966, i32 noundef %967, i32 noundef %968, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef -14, i32 noundef 215)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %969)
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #9
  %970 = load ptr, ptr %13, align 8, !tbaa !5
  %971 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %970, i32 0, i32 1
  %972 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %971, i32 0, i32 4
  %973 = load i32, ptr %85, align 4, !tbaa !9
  %974 = sext i32 %973 to i64
  %975 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %972, i64 0, i64 %974
  %976 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Mantissa", ptr %975, i32 0, i32 1
  %977 = load i32, ptr %44, align 4, !tbaa !9
  %978 = sext i32 %977 to i64
  %979 = getelementptr inbounds [256 x [32 x i16]], ptr %976, i64 0, i64 %978
  %980 = getelementptr inbounds [32 x i16], ptr %979, i64 0, i64 0
  store ptr %980, ptr %45, align 8, !tbaa !5
  %981 = load ptr, ptr %13, align 8, !tbaa !5
  %982 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %981, i32 0, i32 1
  %983 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %982, i32 0, i32 4
  %984 = load i32, ptr %85, align 4, !tbaa !9
  %985 = sext i32 %984 to i64
  %986 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %983, i64 0, i64 %985
  %987 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Mantissa", ptr %986, i32 0, i32 2
  %988 = load i32, ptr %37, align 4, !tbaa !9
  %989 = sext i32 %988 to i64
  %990 = getelementptr inbounds [256 x [32 x i16]], ptr %987, i64 0, i64 %989
  %991 = getelementptr inbounds [32 x i16], ptr %990, i64 0, i64 0
  store ptr %991, ptr %46, align 8, !tbaa !5
  %992 = load ptr, ptr %13, align 8, !tbaa !5
  %993 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %992, i32 0, i32 1
  %994 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %993, i32 0, i32 4
  %995 = load i32, ptr %85, align 4, !tbaa !9
  %996 = sext i32 %995 to i64
  %997 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %994, i64 0, i64 %996
  %998 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Mantissa", ptr %997, i32 0, i32 0
  %999 = getelementptr inbounds [32 x i16], ptr %998, i64 0, i64 0
  store ptr %999, ptr %47, align 8, !tbaa !5
  %1000 = load ptr, ptr %13, align 8, !tbaa !5
  %1001 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %1000, i32 0, i32 8
  %1002 = load i32, ptr %85, align 4, !tbaa !9
  %1003 = sext i32 %1002 to i64
  %1004 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %1001, i64 0, i64 %1003
  store ptr %1004, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %93) #9
  store i32 1, ptr %93, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %94) #9
  %1005 = load i32, ptr %85, align 4, !tbaa !9
  %1006 = sub nsw i32 %1005, 1
  store i32 %1006, ptr %94, align 4, !tbaa !9
  br label %1007

1007:                                             ; preds = %1112, %952
  %1008 = load i32, ptr %94, align 4, !tbaa !9
  %1009 = icmp sge i32 %1008, 0
  br i1 %1009, label %1011, label %1010

1010:                                             ; preds = %1007
  store i32 35, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %94) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #9
  br label %1115

1011:                                             ; preds = %1007
  %1012 = load i32, ptr %38, align 4, !tbaa !9
  %1013 = load i32, ptr %94, align 4, !tbaa !9
  %1014 = shl i32 1, %1013
  %1015 = and i32 %1012, %1014
  %1016 = icmp ne i32 %1015, 0
  br i1 %1016, label %1017, label %1064

1017:                                             ; preds = %1011
  call void @llvm.lifetime.start.p0(i64 4, ptr %95) #9
  %1018 = load ptr, ptr %46, align 8, !tbaa !5
  %1019 = load i32, ptr %93, align 4, !tbaa !9
  %1020 = sext i32 %1019 to i64
  %1021 = getelementptr inbounds i16, ptr %1018, i64 %1020
  %1022 = load i16, ptr %1021, align 2, !tbaa !24
  %1023 = sext i16 %1022 to i32
  store i32 %1023, ptr %95, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %96) #9
  %1024 = load ptr, ptr %45, align 8, !tbaa !5
  %1025 = load i32, ptr %93, align 4, !tbaa !9
  %1026 = sext i32 %1025 to i64
  %1027 = getelementptr inbounds i16, ptr %1024, i64 %1026
  %1028 = load i16, ptr %1027, align 2, !tbaa !24
  %1029 = sext i16 %1028 to i32
  store i32 %1029, ptr %96, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #9
  %1030 = load ptr, ptr %47, align 8, !tbaa !5
  %1031 = load i32, ptr %93, align 4, !tbaa !9
  %1032 = sext i32 %1031 to i64
  %1033 = getelementptr inbounds i16, ptr %1030, i64 %1032
  %1034 = load i16, ptr %1033, align 2, !tbaa !24
  %1035 = sext i16 %1034 to i32
  store i32 %1035, ptr %97, align 4, !tbaa !9
  %1036 = load ptr, ptr %45, align 8, !tbaa !5
  %1037 = load i32, ptr %93, align 4, !tbaa !9
  %1038 = sext i32 %1037 to i64
  %1039 = getelementptr inbounds i16, ptr %1036, i64 %1038
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %1039, i32 noundef -141, i32 noundef 21)
  %1040 = load ptr, ptr %46, align 8, !tbaa !5
  %1041 = load i32, ptr %93, align 4, !tbaa !9
  %1042 = sext i32 %1041 to i64
  %1043 = getelementptr inbounds i16, ptr %1040, i64 %1042
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %1043, i32 noundef 37, i32 noundef 263)
  %1044 = load ptr, ptr %47, align 8, !tbaa !5
  %1045 = load i32, ptr %93, align 4, !tbaa !9
  %1046 = sext i32 %1045 to i64
  %1047 = getelementptr inbounds i16, ptr %1044, i64 %1046
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %1047, i32 noundef -197, i32 noundef 20)
  %1048 = load ptr, ptr %48, align 8, !tbaa !5
  %1049 = load i32, ptr %95, align 4, !tbaa !9
  %1050 = load i32, ptr %96, align 4, !tbaa !9
  %1051 = load i32, ptr %97, align 4, !tbaa !9
  %1052 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %1048, i32 noundef %1049, i32 noundef %1050, i32 noundef %1051, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -146, i32 noundef 27)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %1052)
  %1053 = load i32, ptr %85, align 4, !tbaa !9
  %1054 = icmp sle i32 %1053, 5
  br i1 %1054, label %1055, label %1060

1055:                                             ; preds = %1017
  %1056 = load i32, ptr %93, align 4, !tbaa !9
  %1057 = add nsw i32 %1056, 1
  %1058 = load i32, ptr %93, align 4, !tbaa !9
  %1059 = add nsw i32 %1058, %1057
  store i32 %1059, ptr %93, align 4, !tbaa !9
  br label %1063

1060:                                             ; preds = %1017
  %1061 = load i32, ptr %93, align 4, !tbaa !9
  %1062 = add nsw i32 %1061, 1
  store i32 %1062, ptr %93, align 4, !tbaa !9
  br label %1063

1063:                                             ; preds = %1060, %1055
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #9
  br label %1111

1064:                                             ; preds = %1011
  call void @llvm.lifetime.start.p0(i64 4, ptr %98) #9
  %1065 = load ptr, ptr %46, align 8, !tbaa !5
  %1066 = load i32, ptr %93, align 4, !tbaa !9
  %1067 = sext i32 %1066 to i64
  %1068 = getelementptr inbounds i16, ptr %1065, i64 %1067
  %1069 = load i16, ptr %1068, align 2, !tbaa !24
  %1070 = sext i16 %1069 to i32
  store i32 %1070, ptr %98, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #9
  %1071 = load ptr, ptr %45, align 8, !tbaa !5
  %1072 = load i32, ptr %93, align 4, !tbaa !9
  %1073 = sext i32 %1072 to i64
  %1074 = getelementptr inbounds i16, ptr %1071, i64 %1073
  %1075 = load i16, ptr %1074, align 2, !tbaa !24
  %1076 = sext i16 %1075 to i32
  store i32 %1076, ptr %99, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %100) #9
  %1077 = load ptr, ptr %47, align 8, !tbaa !5
  %1078 = load i32, ptr %93, align 4, !tbaa !9
  %1079 = sext i32 %1078 to i64
  %1080 = getelementptr inbounds i16, ptr %1077, i64 %1079
  %1081 = load i16, ptr %1080, align 2, !tbaa !24
  %1082 = sext i16 %1081 to i32
  store i32 %1082, ptr %100, align 4, !tbaa !9
  %1083 = load ptr, ptr %45, align 8, !tbaa !5
  %1084 = load i32, ptr %93, align 4, !tbaa !9
  %1085 = sext i32 %1084 to i64
  %1086 = getelementptr inbounds i16, ptr %1083, i64 %1085
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %1086, i32 noundef -176, i32 noundef 14)
  %1087 = load ptr, ptr %46, align 8, !tbaa !5
  %1088 = load i32, ptr %93, align 4, !tbaa !9
  %1089 = sext i32 %1088 to i64
  %1090 = getelementptr inbounds i16, ptr %1087, i64 %1089
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %1090, i32 noundef 84, i32 noundef 172)
  %1091 = load ptr, ptr %47, align 8, !tbaa !5
  %1092 = load i32, ptr %93, align 4, !tbaa !9
  %1093 = sext i32 %1092 to i64
  %1094 = getelementptr inbounds i16, ptr %1091, i64 %1093
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %1094, i32 noundef 2, i32 noundef 15)
  %1095 = load ptr, ptr %48, align 8, !tbaa !5
  %1096 = load i32, ptr %98, align 4, !tbaa !9
  %1097 = load i32, ptr %99, align 4, !tbaa !9
  %1098 = load i32, ptr %100, align 4, !tbaa !9
  %1099 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %1095, i32 noundef %1096, i32 noundef %1097, i32 noundef %1098, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -27, i32 noundef 142)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %24, i32 noundef %1099)
  %1100 = load i32, ptr %85, align 4, !tbaa !9
  %1101 = icmp sle i32 %1100, 5
  br i1 %1101, label %1102, label %1107

1102:                                             ; preds = %1064
  %1103 = load i32, ptr %93, align 4, !tbaa !9
  %1104 = add nsw i32 %1103, 0
  %1105 = load i32, ptr %93, align 4, !tbaa !9
  %1106 = add nsw i32 %1105, %1104
  store i32 %1106, ptr %93, align 4, !tbaa !9
  br label %1110

1107:                                             ; preds = %1064
  %1108 = load i32, ptr %93, align 4, !tbaa !9
  %1109 = add nsw i32 %1108, 1
  store i32 %1109, ptr %93, align 4, !tbaa !9
  br label %1110

1110:                                             ; preds = %1107, %1102
  call void @llvm.lifetime.end.p0(i64 4, ptr %100) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %98) #9
  br label %1111

1111:                                             ; preds = %1110, %1063
  br label %1112

1112:                                             ; preds = %1111
  %1113 = load i32, ptr %94, align 4, !tbaa !9
  %1114 = add nsw i32 %1113, -1
  store i32 %1114, ptr %94, align 4, !tbaa !9
  br label %1007, !llvm.loop !30

1115:                                             ; preds = %1010
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #9
  br label %1116

1116:                                             ; preds = %1115, %805
  %1117 = load i32, ptr %15, align 4, !tbaa !9
  %1118 = shl i32 %1117, 1
  %1119 = load i32, ptr %42, align 4, !tbaa !9
  %1120 = icmp eq i32 %1119, 0
  %1121 = zext i1 %1120 to i64
  %1122 = select i1 %1120, i32 1, i32 0
  %1123 = or i32 %1118, %1122
  %1124 = and i32 %1123, 7
  store i32 %1124, ptr %15, align 4, !tbaa !9
  %1125 = load i32, ptr %16, align 4, !tbaa !9
  %1126 = shl i32 %1125, 2
  %1127 = load i32, ptr %42, align 4, !tbaa !9
  %1128 = icmp slt i32 %1127, 3
  br i1 %1128, label %1129, label %1131

1129:                                             ; preds = %1116
  %1130 = load i32, ptr %42, align 4, !tbaa !9
  br label %1132

1131:                                             ; preds = %1116
  br label %1132

1132:                                             ; preds = %1131, %1129
  %1133 = phi i32 [ %1130, %1129 ], [ 3, %1131 ]
  %1134 = or i32 %1126, %1133
  %1135 = and i32 %1134, 255
  store i32 %1135, ptr %16, align 4, !tbaa !9
  %1136 = load i32, ptr %17, align 4, !tbaa !9
  %1137 = shl i32 %1136, 1
  %1138 = load i32, ptr %38, align 4, !tbaa !9
  %1139 = icmp slt i32 %1138, 3
  %1140 = zext i1 %1139 to i64
  %1141 = select i1 %1139, i32 1, i32 0
  %1142 = or i32 %1137, %1141
  %1143 = and i32 %1142, 15
  store i32 %1143, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %244, !llvm.loop !31

1144:                                             ; preds = %244
  %1145 = call noundef i32 @_ZN10RangeCoder13FinishEncoderEv(ptr noundef nonnull align 8 dereferenceable(56) %24)
  store i32 %1145, ptr %7, align 4
  store i32 1, ptr %29, align 4
  br label %1146

1146:                                             ; preds = %1144, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %14) #9
  %1147 = load i32, ptr %7, align 4
  ret i32 %1147

1148:                                             ; preds = %301
  unreachable
}

declare void @_Z19bsc_qlfc_init_modelP21QlfcStatisticalModel1(ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10RangeCoder11InitEncoderEPhi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder10EncodeWordEj(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #5 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN10RangeCoder8CheckEOBEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_set1_epi8c(i8 noundef signext) #7

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL17_mm_movemask_epi8Dv2_x(<2 x i64> noundef) #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_cmpeq_epi8Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL15_mm_loadu_si128PKDv2_x(ptr noundef) #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.cttz.i32(i32, i1 immarg) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL16model_rank_stateiii(i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2), i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2), i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15model_run_stateiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN10RangeCoder13FinishEncoderEv(ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 #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, !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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}
!24 = !{!25, !25, i64 0}
!25 = !{!"short", !7, i64 0}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}
!29 = distinct !{!29, !13}
!30 = distinct !{!30, !13}
!31 = distinct !{!31, !13}


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

%class.RangeCoder = type { %"union.RangeCoder::ari", i32, i32, i32, i32, ptr, ptr, ptr, ptr }
%"union.RangeCoder::ari" = type { i64 }
%struct.ProbabilityMixer = type { i16, i16, i16, i32, i32, [17 x i16], i32, i32, i32 }
%"struct.QlfcStatisticalModel1::Rank::Mantissa" = type { [256 x i16], [256 x [256 x i16]], [256 x [256 x i16]] }
%"struct.QlfcStatisticalModel1::Run::Mantissa" = type { [32 x i16], [256 x [32 x i16]], [256 x [32 x i16]] }

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18bsc_qlfc_transformPKhPhiS1_(ptr noalias noundef, ptr noalias noundef, i32 noundef, ptr noalias noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z24bsc_qlfc_adaptive_encodePKhPhS1_iiP21QlfcStatisticalModel1(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #2 {
.preheader465.preheader:
  %6 = alloca [256 x i8], align 16
  %7 = alloca [256 x i8], align 16
  %8 = alloca [256 x i8], align 16
  %9 = alloca %class.RangeCoder, align 8
  %10 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #11
  tail call void @_Z19bsc_qlfc_init_modelP21QlfcStatisticalModel1(ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %8, i8 0, i64 256, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %7, i8 0, i64 256, i1 false), !tbaa !5
  %11 = call noundef ptr @_Z18bsc_qlfc_transformPKhPhiS1_(ptr noundef %0, ptr noundef %2, i32 noundef %3, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #11
  call void @_ZN10RangeCoder11InitEncoderEPhi(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef %1, i32 noundef %4)
  call void @_ZN10RangeCoder10EncodeWordEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %3)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %10, i8 0, i64 256, i1 false), !tbaa !5
  br label %.preheader465

.preheader465:                                    ; preds = %.preheader465.preheader, %201
  %indvars.iv539 = phi i64 [ 0, %.preheader465.preheader ], [ %indvars.iv.next540, %201 ]
  %.0408475 = phi i32 [ -1, %.preheader465.preheader ], [ %14, %201 ]
  %12 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %indvars.iv539
  %13 = load i8, ptr %12, align 1, !tbaa !5
  %14 = zext i8 %13 to i32
  %15 = zext i32 %.0408475 to i64
  %.old523 = icmp ult i32 %.0408475, 256
  br label %16

16:                                               ; preds = %.preheader465, %28
  %indvars.iv = phi i64 [ 0, %.preheader465 ], [ %indvars.iv.next, %28 ]
  %.0415472 = phi i8 [ 0, %.preheader465 ], [ %.2417, %28 ]
  %.0419471 = phi i8 [ 0, %.preheader465 ], [ %.2421, %28 ]
  %17 = icmp eq i64 %indvars.iv, %15
  br i1 %17, label %23, label %18

18:                                               ; preds = %16
  %19 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = icmp eq i8 %20, 0
  %22 = icmp ult i64 %indvars.iv, 256
  %or.cond = and i1 %21, %22
  br i1 %or.cond, label %._crit_edge559, label %28

23:                                               ; preds = %16
  br i1 %.old523, label %._crit_edge559, label %28

._crit_edge559:                                   ; preds = %23, %18
  %24 = and i64 %indvars.iv, 128
  %.not457 = icmp eq i64 %24, 0
  %.0419. = select i1 %.not457, i8 %.0419471, i8 1
  %..0415 = select i1 %.not457, i8 1, i8 %.0415472
  %25 = trunc nuw i8 %..0415 to i1
  br i1 %25, label %26, label %28

26:                                               ; preds = %._crit_edge559
  %27 = trunc nuw i8 %.0419. to i1
  br i1 %27, label %29, label %28

28:                                               ; preds = %18, %._crit_edge559, %26, %23
  %.2421 = phi i8 [ %.0419., %26 ], [ %.0419., %._crit_edge559 ], [ %.0419471, %23 ], [ %.0419471, %18 ]
  %.2417 = phi i8 [ %..0415, %26 ], [ %..0415, %._crit_edge559 ], [ %.0415472, %23 ], [ %.0415472, %18 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %29, label %16, !llvm.loop !8

29:                                               ; preds = %26, %28
  %.3422 = phi i8 [ %.2421, %28 ], [ %.0419., %26 ]
  %.3418 = phi i8 [ %.2417, %28 ], [ %..0415, %26 ]
  %30 = trunc nuw i8 %.3418 to i1
  br i1 %30, label %31, label %.preheader464.1

31:                                               ; preds = %29
  %32 = trunc i8 %.3422 to i1
  br i1 %32, label %33, label %.preheader464.1

33:                                               ; preds = %31
  %34 = and i32 %14, 128
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %34)
  br label %.preheader464.1

.preheader464.1:                                  ; preds = %33, %31, %29
  %35 = lshr i32 %14, 7
  %.old.1 = lshr i32 %.0408475, 7
  %.old523.1 = icmp eq i32 %35, %.old.1
  br label %36

36:                                               ; preds = %51, %.preheader464.1
  %indvars.iv.1 = phi i64 [ 0, %.preheader464.1 ], [ %indvars.iv.next.1, %51 ]
  %.0415472.1 = phi i8 [ 0, %.preheader464.1 ], [ %.2417.1, %51 ]
  %.0419471.1 = phi i8 [ 0, %.preheader464.1 ], [ %.2421.1, %51 ]
  %37 = icmp eq i64 %indvars.iv.1, %15
  br i1 %37, label %45, label %38

38:                                               ; preds = %36
  %39 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv.1
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = icmp eq i8 %40, 0
  %42 = trunc nuw nsw i64 %indvars.iv.1 to i32
  %43 = lshr i32 %42, 7
  %44 = icmp eq i32 %35, %43
  %or.cond.1 = select i1 %41, i1 %44, i1 false
  br i1 %or.cond.1, label %46, label %51

45:                                               ; preds = %36
  br i1 %.old523.1, label %._crit_edge558, label %51

._crit_edge558:                                   ; preds = %45
  %.pre560 = trunc nuw nsw i64 %indvars.iv.1 to i32
  br label %46

46:                                               ; preds = %._crit_edge558, %38
  %.pre-phi561 = phi i32 [ %.pre560, %._crit_edge558 ], [ %42, %38 ]
  %47 = and i32 %.pre-phi561, 64
  %.not457.1 = icmp eq i32 %47, 0
  %.0419..1 = select i1 %.not457.1, i8 %.0419471.1, i8 1
  %..0415.1 = select i1 %.not457.1, i8 1, i8 %.0415472.1
  %48 = trunc nuw i8 %..0415.1 to i1
  br i1 %48, label %49, label %51

49:                                               ; preds = %46
  %50 = trunc nuw i8 %.0419..1 to i1
  br i1 %50, label %52, label %51

51:                                               ; preds = %49, %46, %45, %38
  %.2421.1 = phi i8 [ %.0419..1, %49 ], [ %.0419..1, %46 ], [ %.0419471.1, %45 ], [ %.0419471.1, %38 ]
  %.2417.1 = phi i8 [ %..0415.1, %49 ], [ %..0415.1, %46 ], [ %.0415472.1, %45 ], [ %.0415472.1, %38 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 256
  br i1 %exitcond.1.not, label %52, label %36, !llvm.loop !8

52:                                               ; preds = %51, %49
  %.3422.1 = phi i8 [ %.2421.1, %51 ], [ %.0419..1, %49 ]
  %.3418.1 = phi i8 [ %.2417.1, %51 ], [ %..0415.1, %49 ]
  %53 = trunc nuw i8 %.3418.1 to i1
  br i1 %53, label %54, label %.preheader464.2

54:                                               ; preds = %52
  %55 = trunc i8 %.3422.1 to i1
  br i1 %55, label %56, label %.preheader464.2

56:                                               ; preds = %54
  %57 = and i32 %14, 64
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %57)
  br label %.preheader464.2

.preheader464.2:                                  ; preds = %56, %54, %52
  %58 = lshr i32 %14, 6
  %.old.2 = lshr i32 %.0408475, 6
  %.old523.2 = icmp eq i32 %58, %.old.2
  br label %59

59:                                               ; preds = %74, %.preheader464.2
  %indvars.iv.2 = phi i64 [ 0, %.preheader464.2 ], [ %indvars.iv.next.2, %74 ]
  %.0415472.2 = phi i8 [ 0, %.preheader464.2 ], [ %.2417.2, %74 ]
  %.0419471.2 = phi i8 [ 0, %.preheader464.2 ], [ %.2421.2, %74 ]
  %60 = icmp eq i64 %indvars.iv.2, %15
  br i1 %60, label %68, label %61

61:                                               ; preds = %59
  %62 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv.2
  %63 = load i8, ptr %62, align 1, !tbaa !5
  %64 = icmp eq i8 %63, 0
  %65 = trunc nuw nsw i64 %indvars.iv.2 to i32
  %66 = lshr i32 %65, 6
  %67 = icmp eq i32 %58, %66
  %or.cond.2 = select i1 %64, i1 %67, i1 false
  br i1 %or.cond.2, label %69, label %74

68:                                               ; preds = %59
  br i1 %.old523.2, label %._crit_edge557, label %74

._crit_edge557:                                   ; preds = %68
  %.pre562 = trunc nuw nsw i64 %indvars.iv.2 to i32
  br label %69

69:                                               ; preds = %._crit_edge557, %61
  %.pre-phi563 = phi i32 [ %.pre562, %._crit_edge557 ], [ %65, %61 ]
  %70 = and i32 %.pre-phi563, 32
  %.not457.2 = icmp eq i32 %70, 0
  %.0419..2 = select i1 %.not457.2, i8 %.0419471.2, i8 1
  %..0415.2 = select i1 %.not457.2, i8 1, i8 %.0415472.2
  %71 = trunc nuw i8 %..0415.2 to i1
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  %73 = trunc nuw i8 %.0419..2 to i1
  br i1 %73, label %75, label %74

74:                                               ; preds = %72, %69, %68, %61
  %.2421.2 = phi i8 [ %.0419..2, %72 ], [ %.0419..2, %69 ], [ %.0419471.2, %68 ], [ %.0419471.2, %61 ]
  %.2417.2 = phi i8 [ %..0415.2, %72 ], [ %..0415.2, %69 ], [ %.0415472.2, %68 ], [ %.0415472.2, %61 ]
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, 256
  br i1 %exitcond.2.not, label %75, label %59, !llvm.loop !8

75:                                               ; preds = %74, %72
  %.3422.2 = phi i8 [ %.2421.2, %74 ], [ %.0419..2, %72 ]
  %.3418.2 = phi i8 [ %.2417.2, %74 ], [ %..0415.2, %72 ]
  %76 = trunc nuw i8 %.3418.2 to i1
  br i1 %76, label %77, label %.preheader464.3

77:                                               ; preds = %75
  %78 = trunc i8 %.3422.2 to i1
  br i1 %78, label %79, label %.preheader464.3

79:                                               ; preds = %77
  %80 = and i32 %14, 32
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %80)
  br label %.preheader464.3

.preheader464.3:                                  ; preds = %79, %77, %75
  %81 = lshr i32 %14, 5
  %.old.3 = lshr i32 %.0408475, 5
  %.old523.3 = icmp eq i32 %81, %.old.3
  br label %82

82:                                               ; preds = %97, %.preheader464.3
  %indvars.iv.3 = phi i64 [ 0, %.preheader464.3 ], [ %indvars.iv.next.3, %97 ]
  %.0415472.3 = phi i8 [ 0, %.preheader464.3 ], [ %.2417.3, %97 ]
  %.0419471.3 = phi i8 [ 0, %.preheader464.3 ], [ %.2421.3, %97 ]
  %83 = icmp eq i64 %indvars.iv.3, %15
  br i1 %83, label %91, label %84

84:                                               ; preds = %82
  %85 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv.3
  %86 = load i8, ptr %85, align 1, !tbaa !5
  %87 = icmp eq i8 %86, 0
  %88 = trunc nuw nsw i64 %indvars.iv.3 to i32
  %89 = lshr i32 %88, 5
  %90 = icmp eq i32 %81, %89
  %or.cond.3 = select i1 %87, i1 %90, i1 false
  br i1 %or.cond.3, label %92, label %97

91:                                               ; preds = %82
  br i1 %.old523.3, label %._crit_edge556, label %97

._crit_edge556:                                   ; preds = %91
  %.pre564 = trunc nuw nsw i64 %indvars.iv.3 to i32
  br label %92

92:                                               ; preds = %._crit_edge556, %84
  %.pre-phi565 = phi i32 [ %.pre564, %._crit_edge556 ], [ %88, %84 ]
  %93 = and i32 %.pre-phi565, 16
  %.not457.3 = icmp eq i32 %93, 0
  %.0419..3 = select i1 %.not457.3, i8 %.0419471.3, i8 1
  %..0415.3 = select i1 %.not457.3, i8 1, i8 %.0415472.3
  %94 = trunc nuw i8 %..0415.3 to i1
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = trunc nuw i8 %.0419..3 to i1
  br i1 %96, label %98, label %97

97:                                               ; preds = %95, %92, %91, %84
  %.2421.3 = phi i8 [ %.0419..3, %95 ], [ %.0419..3, %92 ], [ %.0419471.3, %91 ], [ %.0419471.3, %84 ]
  %.2417.3 = phi i8 [ %..0415.3, %95 ], [ %..0415.3, %92 ], [ %.0415472.3, %91 ], [ %.0415472.3, %84 ]
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next.3, 256
  br i1 %exitcond.3.not, label %98, label %82, !llvm.loop !8

98:                                               ; preds = %97, %95
  %.3422.3 = phi i8 [ %.2421.3, %97 ], [ %.0419..3, %95 ]
  %.3418.3 = phi i8 [ %.2417.3, %97 ], [ %..0415.3, %95 ]
  %99 = trunc nuw i8 %.3418.3 to i1
  br i1 %99, label %100, label %.preheader464.4

100:                                              ; preds = %98
  %101 = trunc i8 %.3422.3 to i1
  br i1 %101, label %102, label %.preheader464.4

102:                                              ; preds = %100
  %103 = and i32 %14, 16
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %103)
  br label %.preheader464.4

.preheader464.4:                                  ; preds = %102, %100, %98
  %104 = lshr i32 %14, 4
  %.old.4 = lshr i32 %.0408475, 4
  %.old523.4 = icmp eq i32 %104, %.old.4
  br label %105

105:                                              ; preds = %120, %.preheader464.4
  %indvars.iv.4 = phi i64 [ 0, %.preheader464.4 ], [ %indvars.iv.next.4, %120 ]
  %.0415472.4 = phi i8 [ 0, %.preheader464.4 ], [ %.2417.4, %120 ]
  %.0419471.4 = phi i8 [ 0, %.preheader464.4 ], [ %.2421.4, %120 ]
  %106 = icmp eq i64 %indvars.iv.4, %15
  br i1 %106, label %114, label %107

107:                                              ; preds = %105
  %108 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv.4
  %109 = load i8, ptr %108, align 1, !tbaa !5
  %110 = icmp eq i8 %109, 0
  %111 = trunc nuw nsw i64 %indvars.iv.4 to i32
  %112 = lshr i32 %111, 4
  %113 = icmp eq i32 %104, %112
  %or.cond.4 = select i1 %110, i1 %113, i1 false
  br i1 %or.cond.4, label %115, label %120

114:                                              ; preds = %105
  br i1 %.old523.4, label %._crit_edge555, label %120

._crit_edge555:                                   ; preds = %114
  %.pre566 = trunc nuw nsw i64 %indvars.iv.4 to i32
  br label %115

115:                                              ; preds = %._crit_edge555, %107
  %.pre-phi567 = phi i32 [ %.pre566, %._crit_edge555 ], [ %111, %107 ]
  %116 = and i32 %.pre-phi567, 8
  %.not457.4 = icmp eq i32 %116, 0
  %.0419..4 = select i1 %.not457.4, i8 %.0419471.4, i8 1
  %..0415.4 = select i1 %.not457.4, i8 1, i8 %.0415472.4
  %117 = trunc nuw i8 %..0415.4 to i1
  br i1 %117, label %118, label %120

118:                                              ; preds = %115
  %119 = trunc nuw i8 %.0419..4 to i1
  br i1 %119, label %121, label %120

120:                                              ; preds = %118, %115, %114, %107
  %.2421.4 = phi i8 [ %.0419..4, %118 ], [ %.0419..4, %115 ], [ %.0419471.4, %114 ], [ %.0419471.4, %107 ]
  %.2417.4 = phi i8 [ %..0415.4, %118 ], [ %..0415.4, %115 ], [ %.0415472.4, %114 ], [ %.0415472.4, %107 ]
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %exitcond.4.not = icmp eq i64 %indvars.iv.next.4, 256
  br i1 %exitcond.4.not, label %121, label %105, !llvm.loop !8

121:                                              ; preds = %120, %118
  %.3422.4 = phi i8 [ %.2421.4, %120 ], [ %.0419..4, %118 ]
  %.3418.4 = phi i8 [ %.2417.4, %120 ], [ %..0415.4, %118 ]
  %122 = trunc nuw i8 %.3418.4 to i1
  br i1 %122, label %123, label %.preheader464.5

123:                                              ; preds = %121
  %124 = trunc i8 %.3422.4 to i1
  br i1 %124, label %125, label %.preheader464.5

125:                                              ; preds = %123
  %126 = and i32 %14, 8
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %126)
  br label %.preheader464.5

.preheader464.5:                                  ; preds = %125, %123, %121
  %127 = lshr i32 %14, 3
  %.old.5 = lshr i32 %.0408475, 3
  %.old523.5 = icmp eq i32 %127, %.old.5
  br label %128

128:                                              ; preds = %143, %.preheader464.5
  %indvars.iv.5 = phi i64 [ 0, %.preheader464.5 ], [ %indvars.iv.next.5, %143 ]
  %.0415472.5 = phi i8 [ 0, %.preheader464.5 ], [ %.2417.5, %143 ]
  %.0419471.5 = phi i8 [ 0, %.preheader464.5 ], [ %.2421.5, %143 ]
  %129 = icmp eq i64 %indvars.iv.5, %15
  br i1 %129, label %137, label %130

130:                                              ; preds = %128
  %131 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv.5
  %132 = load i8, ptr %131, align 1, !tbaa !5
  %133 = icmp eq i8 %132, 0
  %134 = trunc nuw nsw i64 %indvars.iv.5 to i32
  %135 = lshr i32 %134, 3
  %136 = icmp eq i32 %127, %135
  %or.cond.5 = select i1 %133, i1 %136, i1 false
  br i1 %or.cond.5, label %138, label %143

137:                                              ; preds = %128
  br i1 %.old523.5, label %._crit_edge554, label %143

._crit_edge554:                                   ; preds = %137
  %.pre568 = trunc nuw nsw i64 %indvars.iv.5 to i32
  br label %138

138:                                              ; preds = %._crit_edge554, %130
  %.pre-phi569 = phi i32 [ %.pre568, %._crit_edge554 ], [ %134, %130 ]
  %139 = and i32 %.pre-phi569, 4
  %.not457.5 = icmp eq i32 %139, 0
  %.0419..5 = select i1 %.not457.5, i8 %.0419471.5, i8 1
  %..0415.5 = select i1 %.not457.5, i8 1, i8 %.0415472.5
  %140 = trunc nuw i8 %..0415.5 to i1
  br i1 %140, label %141, label %143

141:                                              ; preds = %138
  %142 = trunc nuw i8 %.0419..5 to i1
  br i1 %142, label %144, label %143

143:                                              ; preds = %141, %138, %137, %130
  %.2421.5 = phi i8 [ %.0419..5, %141 ], [ %.0419..5, %138 ], [ %.0419471.5, %137 ], [ %.0419471.5, %130 ]
  %.2417.5 = phi i8 [ %..0415.5, %141 ], [ %..0415.5, %138 ], [ %.0415472.5, %137 ], [ %.0415472.5, %130 ]
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %exitcond.5.not = icmp eq i64 %indvars.iv.next.5, 256
  br i1 %exitcond.5.not, label %144, label %128, !llvm.loop !8

144:                                              ; preds = %143, %141
  %.3422.5 = phi i8 [ %.2421.5, %143 ], [ %.0419..5, %141 ]
  %.3418.5 = phi i8 [ %.2417.5, %143 ], [ %..0415.5, %141 ]
  %145 = trunc nuw i8 %.3418.5 to i1
  br i1 %145, label %146, label %.preheader464.6

146:                                              ; preds = %144
  %147 = trunc i8 %.3422.5 to i1
  br i1 %147, label %148, label %.preheader464.6

148:                                              ; preds = %146
  %149 = and i32 %14, 4
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %149)
  br label %.preheader464.6

.preheader464.6:                                  ; preds = %148, %146, %144
  %150 = lshr i32 %14, 2
  %.old.6 = lshr i32 %.0408475, 2
  %.old523.6 = icmp eq i32 %150, %.old.6
  br label %151

151:                                              ; preds = %166, %.preheader464.6
  %indvars.iv.6 = phi i64 [ 0, %.preheader464.6 ], [ %indvars.iv.next.6, %166 ]
  %.0415472.6 = phi i8 [ 0, %.preheader464.6 ], [ %.2417.6, %166 ]
  %.0419471.6 = phi i8 [ 0, %.preheader464.6 ], [ %.2421.6, %166 ]
  %152 = icmp eq i64 %indvars.iv.6, %15
  br i1 %152, label %160, label %153

153:                                              ; preds = %151
  %154 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv.6
  %155 = load i8, ptr %154, align 1, !tbaa !5
  %156 = icmp eq i8 %155, 0
  %157 = trunc nuw nsw i64 %indvars.iv.6 to i32
  %158 = lshr i32 %157, 2
  %159 = icmp eq i32 %150, %158
  %or.cond.6 = select i1 %156, i1 %159, i1 false
  br i1 %or.cond.6, label %161, label %166

160:                                              ; preds = %151
  br i1 %.old523.6, label %._crit_edge553, label %166

._crit_edge553:                                   ; preds = %160
  %.pre570 = trunc nuw nsw i64 %indvars.iv.6 to i32
  br label %161

161:                                              ; preds = %._crit_edge553, %153
  %.pre-phi571 = phi i32 [ %.pre570, %._crit_edge553 ], [ %157, %153 ]
  %162 = and i32 %.pre-phi571, 2
  %.not457.6 = icmp eq i32 %162, 0
  %.0419..6 = select i1 %.not457.6, i8 %.0419471.6, i8 1
  %..0415.6 = select i1 %.not457.6, i8 1, i8 %.0415472.6
  %163 = trunc nuw i8 %..0415.6 to i1
  br i1 %163, label %164, label %166

164:                                              ; preds = %161
  %165 = trunc nuw i8 %.0419..6 to i1
  br i1 %165, label %167, label %166

166:                                              ; preds = %164, %161, %160, %153
  %.2421.6 = phi i8 [ %.0419..6, %164 ], [ %.0419..6, %161 ], [ %.0419471.6, %160 ], [ %.0419471.6, %153 ]
  %.2417.6 = phi i8 [ %..0415.6, %164 ], [ %..0415.6, %161 ], [ %.0415472.6, %160 ], [ %.0415472.6, %153 ]
  %indvars.iv.next.6 = add nuw nsw i64 %indvars.iv.6, 1
  %exitcond.6.not = icmp eq i64 %indvars.iv.next.6, 256
  br i1 %exitcond.6.not, label %167, label %151, !llvm.loop !8

167:                                              ; preds = %166, %164
  %.3422.6 = phi i8 [ %.2421.6, %166 ], [ %.0419..6, %164 ]
  %.3418.6 = phi i8 [ %.2417.6, %166 ], [ %..0415.6, %164 ]
  %168 = trunc nuw i8 %.3418.6 to i1
  br i1 %168, label %169, label %.preheader464.7

169:                                              ; preds = %167
  %170 = trunc i8 %.3422.6 to i1
  br i1 %170, label %171, label %.preheader464.7

171:                                              ; preds = %169
  %172 = and i32 %14, 2
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %172)
  br label %.preheader464.7

.preheader464.7:                                  ; preds = %171, %169, %167
  %173 = lshr i32 %14, 1
  %.old.7 = lshr i32 %.0408475, 1
  %.old523.7 = icmp eq i32 %173, %.old.7
  br label %174

174:                                              ; preds = %189, %.preheader464.7
  %indvars.iv.7 = phi i64 [ 0, %.preheader464.7 ], [ %indvars.iv.next.7, %189 ]
  %.0415472.7 = phi i8 [ 0, %.preheader464.7 ], [ %.2417.7, %189 ]
  %.0419471.7 = phi i8 [ 0, %.preheader464.7 ], [ %.2421.7, %189 ]
  %175 = icmp eq i64 %indvars.iv.7, %15
  br i1 %175, label %183, label %176

176:                                              ; preds = %174
  %177 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %indvars.iv.7
  %178 = load i8, ptr %177, align 1, !tbaa !5
  %179 = icmp eq i8 %178, 0
  %180 = trunc nuw nsw i64 %indvars.iv.7 to i32
  %181 = lshr i32 %180, 1
  %182 = icmp eq i32 %173, %181
  %or.cond.7 = select i1 %179, i1 %182, i1 false
  br i1 %or.cond.7, label %184, label %189

183:                                              ; preds = %174
  br i1 %.old523.7, label %._crit_edge552, label %189

._crit_edge552:                                   ; preds = %183
  %.pre572 = trunc nuw nsw i64 %indvars.iv.7 to i32
  br label %184

184:                                              ; preds = %._crit_edge552, %176
  %.pre-phi573 = phi i32 [ %.pre572, %._crit_edge552 ], [ %180, %176 ]
  %185 = and i32 %.pre-phi573, 1
  %.not457.7 = icmp eq i32 %185, 0
  %.0419..7 = select i1 %.not457.7, i8 %.0419471.7, i8 1
  %..0415.7 = select i1 %.not457.7, i8 1, i8 %.0415472.7
  %186 = trunc nuw i8 %..0415.7 to i1
  br i1 %186, label %187, label %189

187:                                              ; preds = %184
  %188 = trunc nuw i8 %.0419..7 to i1
  br i1 %188, label %190, label %189

189:                                              ; preds = %187, %184, %183, %176
  %.2421.7 = phi i8 [ %.0419..7, %187 ], [ %.0419..7, %184 ], [ %.0419471.7, %183 ], [ %.0419471.7, %176 ]
  %.2417.7 = phi i8 [ %..0415.7, %187 ], [ %..0415.7, %184 ], [ %.0415472.7, %183 ], [ %.0415472.7, %176 ]
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv.7, 1
  %exitcond.7.not = icmp eq i64 %indvars.iv.next.7, 256
  br i1 %exitcond.7.not, label %190, label %174, !llvm.loop !8

190:                                              ; preds = %189, %187
  %.3422.7 = phi i8 [ %.2421.7, %189 ], [ %.0419..7, %187 ]
  %.3418.7 = phi i8 [ %.2417.7, %189 ], [ %..0415.7, %187 ]
  %191 = trunc nuw i8 %.3418.7 to i1
  br i1 %191, label %192, label %196

192:                                              ; preds = %190
  %193 = trunc nuw i8 %.3422.7 to i1
  br i1 %193, label %194, label %196

194:                                              ; preds = %192
  %195 = and i32 %14, 1
  call void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %195)
  br label %196

196:                                              ; preds = %194, %192, %190
  %.not = icmp eq i32 %.0408475, %14
  br i1 %.not, label %.thread, label %201

.thread:                                          ; preds = %196
  %197 = trunc nuw nsw i64 %indvars.iv539 to i32
  %198 = add nsw i32 %197, -1
  %199 = call range(i32 0, 33) i32 @llvm.ctlz.i32(i32 %198, i1 true)
  %200 = xor i32 %199, 31
  br label %.loopexit466

201:                                              ; preds = %196
  %202 = zext i8 %13 to i64
  %203 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %202
  store i8 1, ptr %203, align 1, !tbaa !5
  %indvars.iv.next540 = add nuw nsw i64 %indvars.iv539, 1
  %exitcond542.not = icmp eq i64 %indvars.iv.next540, 256
  br i1 %exitcond542.not, label %.loopexit466, label %.preheader465, !llvm.loop !10

.loopexit466:                                     ; preds = %201, %.thread
  %.2398 = phi i32 [ %200, %.thread ], [ 7, %201 ]
  %204 = sext i32 %3 to i64
  %205 = getelementptr inbounds i8, ptr %0, i64 %204
  %206 = getelementptr inbounds i8, ptr %2, i64 %204
  %207 = icmp ult ptr %11, %206
  br i1 %207, label %.lr.ph521, label %._crit_edge522

.lr.ph521:                                        ; preds = %.loopexit466
  %208 = getelementptr inbounds i8, ptr %206, i64 -16
  %209 = getelementptr inbounds i8, ptr %5, i64 2
  %210 = getelementptr inbounds i8, ptr %5, i64 514
  %211 = getelementptr inbounds i8, ptr %5, i64 3457620
  %212 = getelementptr inbounds i8, ptr %5, i64 2110482
  %213 = getelementptr inbounds i8, ptr %5, i64 2110994
  %214 = getelementptr inbounds i8, ptr %5, i64 2242066
  %215 = getelementptr inbounds i8, ptr %5, i64 3478612
  %216 = getelementptr inbounds i8, ptr %5, i64 1026
  %217 = getelementptr inbounds i8, ptr %5, i64 1042
  %218 = getelementptr inbounds i8, ptr %5, i64 5138
  %219 = getelementptr inbounds i8, ptr %5, i64 3474004
  %220 = getelementptr inbounds i8, ptr %5, i64 9234
  %221 = getelementptr inbounds i8, ptr %5, i64 3478100
  %222 = getelementptr inbounds i8, ptr %5, i64 2373138
  %223 = getelementptr inbounds i8, ptr %5, i64 2373140
  %224 = getelementptr inbounds i8, ptr %5, i64 2373652
  %225 = getelementptr inbounds i8, ptr %5, i64 3494996
  %226 = getelementptr inbounds i8, ptr %5, i64 2374164
  %227 = getelementptr inbounds i8, ptr %5, i64 2374228
  %228 = getelementptr inbounds i8, ptr %5, i64 2390612
  %229 = getelementptr inbounds i8, ptr %5, i64 3511380
  %230 = getelementptr inbounds i8, ptr %5, i64 2406996
  %231 = getelementptr inbounds i8, ptr %5, i64 3576916
  br label %232

232:                                              ; preds = %.lr.ph521, %.loopexit
  %.0392519 = phi ptr [ %0, %.lr.ph521 ], [ %.4, %.loopexit ]
  %.0393518 = phi i32 [ 0, %.lr.ph521 ], [ %479, %.loopexit ]
  %.0394517 = phi i32 [ 0, %.lr.ph521 ], [ %483, %.loopexit ]
  %.0395516 = phi i32 [ 0, %.lr.ph521 ], [ %487, %.loopexit ]
  %.0404515 = phi i32 [ 0, %.lr.ph521 ], [ %380, %.loopexit ]
  %.0406514 = phi ptr [ %11, %.lr.ph521 ], [ %258, %.loopexit ]
  %233 = call noundef zeroext i1 @_ZN10RangeCoder8CheckEOBEv(ptr noundef nonnull align 8 dereferenceable(56) %9)
  br i1 %233, label %.loopexit463, label %234

234:                                              ; preds = %232
  %235 = load i8, ptr %.0392519, align 1, !tbaa !5
  %236 = getelementptr inbounds i8, ptr %.0392519, i64 1
  %.not446 = icmp ult ptr %.0406514, %208
  br i1 %.not446, label %243, label %.preheader

.preheader:                                       ; preds = %234
  %237 = icmp ult ptr %236, %205
  br i1 %237, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.preheader, %240
  %.1476 = phi ptr [ %241, %240 ], [ %236, %.preheader ]
  %238 = load i8, ptr %.1476, align 1, !tbaa !5
  %239 = icmp eq i8 %238, %235
  br i1 %239, label %240, label %.critedge

240:                                              ; preds = %.lr.ph
  %241 = getelementptr inbounds i8, ptr %.1476, i64 1
  %242 = icmp ult ptr %241, %205
  br i1 %242, label %.lr.ph, label %.critedge, !llvm.loop !11

243:                                              ; preds = %234
  %244 = call noundef <2 x i64> @_ZL13_mm_set1_epi8c(i8 noundef signext %235)
  br label %245

245:                                              ; preds = %245, %243
  %.2 = phi ptr [ %236, %243 ], [ %249, %245 ]
  %246 = call noundef <2 x i64> @_ZL15_mm_loadu_si128PKDv2_x(ptr noundef nonnull %.2)
  %247 = call noundef <2 x i64> @_ZL14_mm_cmpeq_epi8Dv2_xS_(<2 x i64> noundef %246, <2 x i64> noundef %244)
  %248 = call noundef i32 @_ZL17_mm_movemask_epi8Dv2_x(<2 x i64> noundef %247)
  %.not447 = icmp eq i32 %248, 65535
  %249 = getelementptr inbounds i8, ptr %.2, i64 16
  br i1 %.not447, label %245, label %.critedge.loopexit

.critedge.loopexit:                               ; preds = %245
  %250 = xor i32 %248, -1
  %251 = call range(i32 0, 33) i32 @llvm.cttz.i32(i32 %250, i1 true)
  %252 = zext nneg i32 %251 to i64
  %253 = getelementptr inbounds i8, ptr %.2, i64 %252
  br label %.critedge

.critedge:                                        ; preds = %240, %.lr.ph, %.preheader, %.critedge.loopexit
  %.4 = phi ptr [ %253, %.critedge.loopexit ], [ %236, %.preheader ], [ %241, %240 ], [ %.1476, %.lr.ph ]
  %254 = ptrtoint ptr %.4 to i64
  %255 = ptrtoint ptr %.0392519 to i64
  %256 = sub i64 %254, %255
  %257 = trunc i64 %256 to i32
  %258 = getelementptr inbounds i8, ptr %.0406514, i64 1
  %259 = load i8, ptr %.0406514, align 1, !tbaa !5
  %260 = zext i8 %259 to i32
  %261 = zext i8 %235 to i64
  %262 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %261
  %263 = load i8, ptr %262, align 1, !tbaa !5
  %264 = zext i8 %263 to i32
  %265 = call noundef i32 @_ZL16model_rank_stateiii(i32 noundef %.0394517, i32 noundef %.0395516, i32 noundef %264)
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [256 x i16], ptr %209, i64 0, i64 %266
  %268 = getelementptr inbounds [256 x i16], ptr %210, i64 0, i64 %261
  %269 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %211, i64 0, i64 %261
  %270 = icmp slt i32 %.0404515, 32
  br i1 %270, label %271, label %.lr.ph483.preheader

271:                                              ; preds = %.critedge
  %272 = icmp eq i8 %259, 1
  br i1 %272, label %273, label %281

273:                                              ; preds = %271
  store i8 0, ptr %262, align 1, !tbaa !5
  %274 = load i16, ptr %268, align 2, !tbaa !12
  %275 = sext i16 %274 to i32
  %276 = load i16, ptr %267, align 2, !tbaa !12
  %277 = sext i16 %276 to i32
  %278 = load i16, ptr %5, align 2, !tbaa !12
  %279 = sext i16 %278 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %267, i32 noundef 1, i32 noundef 57)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %268, i32 noundef 291, i32 noundef 250)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %5, i32 noundef 375, i32 noundef 163)
  %280 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %269, i32 noundef %275, i32 noundef %277, i32 noundef %279, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef -41, i32 noundef 96)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %280)
  br label %.loopexit460

281:                                              ; preds = %271
  %282 = load i16, ptr %268, align 2, !tbaa !12
  %283 = sext i16 %282 to i32
  %284 = load i16, ptr %267, align 2, !tbaa !12
  %285 = sext i16 %284 to i32
  %286 = load i16, ptr %5, align 2, !tbaa !12
  %287 = sext i16 %286 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %267, i32 noundef -111, i32 noundef 31)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %268, i32 noundef 154, i32 noundef 528)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %5, i32 noundef 313, i32 noundef 639)
  %288 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %269, i32 noundef %283, i32 noundef %285, i32 noundef %287, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef 53, i32 noundef 49)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %288)
  %289 = call range(i32 24, 33) i32 @llvm.ctlz.i32(i32 %260, i1 true)
  %290 = xor i32 %289, 31
  %291 = trunc nuw nsw i32 %290 to i8
  store i8 %291, ptr %262, align 1, !tbaa !5
  %292 = getelementptr inbounds [256 x [8 x i16]], ptr %217, i64 0, i64 %266
  %293 = getelementptr inbounds [256 x [8 x i16]], ptr %218, i64 0, i64 %261
  %narrow = call i8 @llvm.umax.i8(i8 %263, i8 1)
  %294 = zext i8 %narrow to i64
  %295 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %219, i64 0, i64 %294, i64 1
  %296 = icmp ugt i32 %290, 1
  br i1 %296, label %.lr.ph489.preheader, label %._crit_edge

.lr.ph489.preheader:                              ; preds = %281
  %297 = zext i8 %263 to i64
  %wide.trip.count = zext nneg i32 %290 to i64
  br label %.lr.ph489

._crit_edge:                                      ; preds = %.lr.ph489, %281
  %.0430.lcssa = phi ptr [ %295, %281 ], [ %309, %.lr.ph489 ]
  %.0428.lcssa = phi ptr [ %216, %281 ], [ %312, %.lr.ph489 ]
  %.0426.lcssa = phi ptr [ %293, %281 ], [ %311, %.lr.ph489 ]
  %.0424.lcssa = phi ptr [ %292, %281 ], [ %310, %.lr.ph489 ]
  %298 = icmp slt i32 %290, %.2398
  br i1 %298, label %313, label %321

.lr.ph489:                                        ; preds = %.lr.ph489.preheader, %.lr.ph489
  %indvars.iv543 = phi i64 [ 1, %.lr.ph489.preheader ], [ %indvars.iv.next544, %.lr.ph489 ]
  %.0424488 = phi ptr [ %292, %.lr.ph489.preheader ], [ %310, %.lr.ph489 ]
  %.0426487 = phi ptr [ %293, %.lr.ph489.preheader ], [ %311, %.lr.ph489 ]
  %.0428486 = phi ptr [ %216, %.lr.ph489.preheader ], [ %312, %.lr.ph489 ]
  %.0430485 = phi ptr [ %295, %.lr.ph489.preheader ], [ %309, %.lr.ph489 ]
  %299 = load i16, ptr %.0426487, align 2, !tbaa !12
  %300 = sext i16 %299 to i32
  %301 = load i16, ptr %.0424488, align 2, !tbaa !12
  %302 = sext i16 %301 to i32
  %303 = load i16, ptr %.0428486, align 2, !tbaa !12
  %304 = sext i16 %303 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0424488, i32 noundef 482, i32 noundef 40)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0426487, i32 noundef 200, i32 noundef 133)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0428486, i32 noundef 578, i32 noundef 1067)
  %305 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.0430485, i32 noundef %300, i32 noundef %302, i32 noundef %304, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef 144, i32 noundef 848)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %305)
  %.not451 = icmp ult i64 %indvars.iv543, %297
  %indvars.iv.next544 = add nuw nsw i64 %indvars.iv543, 1
  %306 = trunc nuw nsw i64 %indvars.iv.next544 to i32
  %307 = select i1 %.not451, i32 %264, i32 %306
  %308 = zext nneg i32 %307 to i64
  %309 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %219, i64 0, i64 %308, i64 %indvars.iv.next544
  %310 = getelementptr inbounds i8, ptr %.0424488, i64 2
  %311 = getelementptr inbounds i8, ptr %.0426487, i64 2
  %312 = getelementptr inbounds i8, ptr %.0428486, i64 2
  %exitcond546.not = icmp eq i64 %indvars.iv.next544, %wide.trip.count
  br i1 %exitcond546.not, label %._crit_edge, label %.lr.ph489, !llvm.loop !14

313:                                              ; preds = %._crit_edge
  %314 = load i16, ptr %.0426.lcssa, align 2, !tbaa !12
  %315 = sext i16 %314 to i32
  %316 = load i16, ptr %.0424.lcssa, align 2, !tbaa !12
  %317 = sext i16 %316 to i32
  %318 = load i16, ptr %.0428.lcssa, align 2, !tbaa !12
  %319 = sext i16 %318 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0424.lcssa, i32 noundef -137, i32 noundef 17)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0426.lcssa, i32 noundef 61, i32 noundef 192)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0428.lcssa, i32 noundef 54, i32 noundef 1342)
  %320 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.0430.lcssa, i32 noundef %315, i32 noundef %317, i32 noundef %319, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef -11, i32 noundef 318)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %320)
  br label %321

321:                                              ; preds = %313, %._crit_edge
  %322 = zext nneg i32 %290 to i64
  %323 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %220, i64 0, i64 %322
  %324 = getelementptr inbounds i8, ptr %323, i64 512
  %325 = getelementptr inbounds [256 x [256 x i16]], ptr %324, i64 0, i64 %266
  %326 = getelementptr inbounds i8, ptr %323, i64 131584
  %327 = getelementptr inbounds [256 x [256 x i16]], ptr %326, i64 0, i64 %261
  %328 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %221, i64 0, i64 %322
  %.not524 = icmp eq i32 %289, 31
  br i1 %.not524, label %.loopexit460, label %.lr.ph497.preheader

.lr.ph497.preheader:                              ; preds = %321
  %329 = sub nsw i32 30, %289
  br label %.lr.ph497

.lr.ph497:                                        ; preds = %.lr.ph497.preheader, %348
  %.0436495 = phi i32 [ %.1437, %348 ], [ 1, %.lr.ph497.preheader ]
  %.0438494 = phi i32 [ %349, %348 ], [ %329, %.lr.ph497.preheader ]
  %330 = shl nuw i32 1, %.0438494
  %331 = and i32 %330, %260
  %.not449 = icmp eq i32 %331, 0
  %332 = sext i32 %.0436495 to i64
  %333 = getelementptr inbounds i16, ptr %327, i64 %332
  %334 = load i16, ptr %333, align 2, !tbaa !12
  %335 = sext i16 %334 to i32
  %336 = getelementptr inbounds i16, ptr %325, i64 %332
  %337 = load i16, ptr %336, align 2, !tbaa !12
  %338 = sext i16 %337 to i32
  %339 = getelementptr inbounds i16, ptr %323, i64 %332
  %340 = load i16, ptr %339, align 2, !tbaa !12
  %341 = sext i16 %340 to i32
  %342 = shl i32 %.0436495, 1
  br i1 %.not449, label %346, label %343

343:                                              ; preds = %.lr.ph497
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %336, i32 noundef 114, i32 noundef 24)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %333, i32 noundef -36, i32 noundef 78)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %339, i32 noundef 11, i32 noundef 1181)
  %344 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %328, i32 noundef %335, i32 noundef %338, i32 noundef %341, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -271, i32 noundef 15)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %344)
  %345 = or disjoint i32 %342, 1
  br label %348

346:                                              ; preds = %.lr.ph497
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %336, i32 noundef -145, i32 noundef 18)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %333, i32 noundef -43, i32 noundef 69)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %339, i32 noundef -2, i32 noundef 1119)
  %347 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %328, i32 noundef %335, i32 noundef %338, i32 noundef %341, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -203, i32 noundef 20)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %347)
  br label %348

348:                                              ; preds = %343, %346
  %.1437 = phi i32 [ %345, %343 ], [ %342, %346 ]
  %349 = add nsw i32 %.0438494, -1
  %350 = icmp sgt i32 %.0438494, 0
  br i1 %350, label %.lr.ph497, label %.loopexit460, !llvm.loop !15

.lr.ph483.preheader:                              ; preds = %.critedge
  %351 = call range(i8 0, 9) i8 @llvm.ctlz.i8(i8 %259, i1 true)
  %352 = xor i8 %351, 7
  store i8 %352, ptr %262, align 1, !tbaa !5
  %353 = getelementptr inbounds [256 x [256 x i16]], ptr %213, i64 0, i64 %266
  %354 = getelementptr inbounds [256 x [256 x i16]], ptr %214, i64 0, i64 %261
  br label %.lr.ph483

.lr.ph483:                                        ; preds = %.lr.ph483.preheader, %374
  %.0433482 = phi i32 [ %375, %374 ], [ %.2398, %.lr.ph483.preheader ]
  %.0434481 = phi i32 [ %.1435, %374 ], [ 1, %.lr.ph483.preheader ]
  %355 = sext i32 %.0434481 to i64
  %356 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %215, i64 0, i64 %355
  %357 = shl nuw i32 1, %.0433482
  %358 = and i32 %357, %260
  %.not448 = icmp eq i32 %358, 0
  %359 = getelementptr inbounds i16, ptr %354, i64 %355
  %360 = load i16, ptr %359, align 2, !tbaa !12
  %361 = sext i16 %360 to i32
  %362 = getelementptr inbounds i16, ptr %353, i64 %355
  %363 = load i16, ptr %362, align 2, !tbaa !12
  %364 = sext i16 %363 to i32
  %365 = getelementptr inbounds i16, ptr %212, i64 %355
  %366 = load i16, ptr %365, align 2, !tbaa !12
  %367 = sext i16 %366 to i32
  %368 = shl i32 %.0434481, 1
  br i1 %.not448, label %372, label %369

369:                                              ; preds = %.lr.ph483
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %362, i32 noundef 318, i32 noundef 42)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %359, i32 noundef 1116, i32 noundef 246)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %365, i32 noundef -2, i32 noundef 1110)
  %370 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %356, i32 noundef %361, i32 noundef %364, i32 noundef %367, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -129, i32 noundef 20)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %370)
  %371 = or disjoint i32 %368, 1
  br label %374

372:                                              ; preds = %.lr.ph483
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %362, i32 noundef -99, i32 noundef 32)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %359, i32 noundef 17, i32 noundef 101)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %365, i32 noundef 22, i32 noundef 964)
  %373 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %356, i32 noundef %361, i32 noundef %364, i32 noundef %367, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -194, i32 noundef 21)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %373)
  br label %374

374:                                              ; preds = %369, %372
  %.1435 = phi i32 [ %371, %369 ], [ %368, %372 ]
  %375 = add nsw i32 %.0433482, -1
  %376 = icmp sgt i32 %.0433482, 0
  br i1 %376, label %.lr.ph483, label %.loopexit460, !llvm.loop !16

.loopexit460:                                     ; preds = %374, %348, %321, %273
  %377 = mul nsw i32 %.0404515, 124
  %378 = shl nuw nsw i32 %260, 2
  %379 = add nsw i32 %378, %377
  %380 = ashr i32 %379, 7
  %381 = add nsw i32 %260, -1
  %382 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %261
  %383 = load i8, ptr %382, align 1, !tbaa !5
  %384 = zext i8 %383 to i32
  %385 = call noundef i32 @_ZL15model_run_stateiiii(i32 noundef %.0393518, i32 noundef %.0395516, i32 noundef %381, i32 noundef %384)
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [256 x i16], ptr %223, i64 0, i64 %386
  %388 = getelementptr inbounds [256 x i16], ptr %224, i64 0, i64 %261
  %389 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %225, i64 0, i64 %261
  %390 = icmp eq i32 %257, 1
  br i1 %390, label %391, label %403

391:                                              ; preds = %.loopexit460
  %392 = zext i8 %383 to i16
  %393 = add nuw nsw i16 %392, 2
  %394 = lshr i16 %393, 2
  %395 = trunc nuw nsw i16 %394 to i8
  store i8 %395, ptr %382, align 1, !tbaa !5
  %396 = load i16, ptr %388, align 2, !tbaa !12
  %397 = sext i16 %396 to i32
  %398 = load i16, ptr %387, align 2, !tbaa !12
  %399 = sext i16 %398 to i32
  %400 = load i16, ptr %222, align 2, !tbaa !12
  %401 = sext i16 %400 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %387, i32 noundef -93, i32 noundef 34)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %388, i32 noundef 139, i32 noundef 423)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %222, i32 noundef 275, i32 noundef 450)
  %402 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %389, i32 noundef %397, i32 noundef %399, i32 noundef %401, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef -68, i32 noundef 25)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %402)
  br label %.loopexit

403:                                              ; preds = %.loopexit460
  %404 = load i16, ptr %388, align 2, !tbaa !12
  %405 = sext i16 %404 to i32
  %406 = load i16, ptr %387, align 2, !tbaa !12
  %407 = sext i16 %406 to i32
  %408 = load i16, ptr %222, align 2, !tbaa !12
  %409 = sext i16 %408 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %387, i32 noundef -4, i32 noundef 51)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %388, i32 noundef 244, i32 noundef 162)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %222, i32 noundef -6, i32 noundef 579)
  %410 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %389, i32 noundef %405, i32 noundef %407, i32 noundef %409, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef 1, i32 noundef 64)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %410)
  %411 = call range(i32 0, 33) i32 @llvm.ctlz.i32(i32 %257, i1 true)
  %412 = xor i32 %411, 31
  %413 = mul nuw nsw i32 %412, 3
  %414 = add nuw nsw i32 %413, 3
  %415 = add nuw nsw i32 %414, %384
  %416 = lshr i32 %415, 2
  %417 = trunc nuw nsw i32 %416 to i8
  store i8 %417, ptr %382, align 1, !tbaa !5
  %418 = getelementptr inbounds [256 x [32 x i16]], ptr %227, i64 0, i64 %386
  %419 = getelementptr inbounds [256 x [32 x i16]], ptr %228, i64 0, i64 %261
  %narrow452 = call i8 @llvm.umax.i8(i8 %383, i8 1)
  %420 = zext i8 %narrow452 to i64
  %421 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %229, i64 0, i64 %420, i64 1
  %422 = icmp ugt i32 %412, 1
  br i1 %422, label %.lr.ph504.preheader, label %._crit_edge505

.lr.ph504.preheader:                              ; preds = %403
  %423 = zext i8 %383 to i64
  %wide.trip.count550 = zext nneg i32 %412 to i64
  br label %.lr.ph504

._crit_edge505:                                   ; preds = %.lr.ph504, %403
  %.pre-phi575 = phi i64 [ 1, %403 ], [ %wide.trip.count550, %.lr.ph504 ]
  %.1431.lcssa = phi ptr [ %421, %403 ], [ %449, %.lr.ph504 ]
  %.1429.lcssa = phi ptr [ %226, %403 ], [ %452, %.lr.ph504 ]
  %.1427.lcssa = phi ptr [ %419, %403 ], [ %451, %.lr.ph504 ]
  %.1425.lcssa = phi ptr [ %418, %403 ], [ %450, %.lr.ph504 ]
  %424 = load i16, ptr %.1427.lcssa, align 2, !tbaa !12
  %425 = sext i16 %424 to i32
  %426 = load i16, ptr %.1425.lcssa, align 2, !tbaa !12
  %427 = sext i16 %426 to i32
  %428 = load i16, ptr %.1429.lcssa, align 2, !tbaa !12
  %429 = sext i16 %428 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1425.lcssa, i32 noundef -116, i32 noundef 31)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1427.lcssa, i32 noundef 165, i32 noundef 222)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1429.lcssa, i32 noundef 315, i32 noundef 857)
  %430 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.1431.lcssa, i32 noundef %425, i32 noundef %427, i32 noundef %429, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef -14, i32 noundef 215)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %430)
  %431 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %230, i64 0, i64 %.pre-phi575
  %432 = getelementptr inbounds i8, ptr %431, i64 64
  %433 = getelementptr inbounds [256 x [32 x i16]], ptr %432, i64 0, i64 %386
  %434 = getelementptr inbounds i8, ptr %431, i64 16448
  %435 = getelementptr inbounds [256 x [32 x i16]], ptr %434, i64 0, i64 %261
  %436 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %231, i64 0, i64 %.pre-phi575
  %.not525 = icmp eq i32 %411, 31
  br i1 %.not525, label %.loopexit, label %.lr.ph513

.lr.ph513:                                        ; preds = %._crit_edge505
  %437 = sub nsw i32 30, %411
  %438 = icmp ult i32 %412, 6
  br label %453

.lr.ph504:                                        ; preds = %.lr.ph504.preheader, %.lr.ph504
  %indvars.iv547 = phi i64 [ 1, %.lr.ph504.preheader ], [ %indvars.iv.next548, %.lr.ph504 ]
  %.1425501 = phi ptr [ %418, %.lr.ph504.preheader ], [ %450, %.lr.ph504 ]
  %.1427500 = phi ptr [ %419, %.lr.ph504.preheader ], [ %451, %.lr.ph504 ]
  %.1429499 = phi ptr [ %226, %.lr.ph504.preheader ], [ %452, %.lr.ph504 ]
  %.1431498 = phi ptr [ %421, %.lr.ph504.preheader ], [ %449, %.lr.ph504 ]
  %439 = load i16, ptr %.1427500, align 2, !tbaa !12
  %440 = sext i16 %439 to i32
  %441 = load i16, ptr %.1425501, align 2, !tbaa !12
  %442 = sext i16 %441 to i32
  %443 = load i16, ptr %.1429499, align 2, !tbaa !12
  %444 = sext i16 %443 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1425501, i32 noundef 43, i32 noundef 45)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1427500, i32 noundef 30, i32 noundef 324)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1429499, i32 noundef 109, i32 noundef 867)
  %445 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.1431498, i32 noundef %440, i32 noundef %442, i32 noundef %444, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef 61, i32 noundef 73)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %445)
  %.not455 = icmp ult i64 %indvars.iv547, %423
  %indvars.iv.next548 = add nuw nsw i64 %indvars.iv547, 1
  %446 = trunc nuw nsw i64 %indvars.iv.next548 to i32
  %447 = select i1 %.not455, i32 %384, i32 %446
  %448 = zext nneg i32 %447 to i64
  %449 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %229, i64 0, i64 %448, i64 %indvars.iv.next548
  %450 = getelementptr inbounds i8, ptr %.1425501, i64 2
  %451 = getelementptr inbounds i8, ptr %.1427500, i64 2
  %452 = getelementptr inbounds i8, ptr %.1429499, i64 2
  %exitcond551.not = icmp eq i64 %indvars.iv.next548, %wide.trip.count550
  br i1 %exitcond551.not, label %._crit_edge505, label %.lr.ph504, !llvm.loop !17

453:                                              ; preds = %.lr.ph513, %472
  %.0399511 = phi i32 [ %437, %.lr.ph513 ], [ %474, %472 ]
  %.0400510 = phi i32 [ 1, %.lr.ph513 ], [ %.1401, %472 ]
  %454 = shl nuw i32 1, %.0399511
  %455 = and i32 %454, %257
  %.not453 = icmp eq i32 %455, 0
  %456 = sext i32 %.0400510 to i64
  %457 = getelementptr inbounds i16, ptr %435, i64 %456
  %458 = load i16, ptr %457, align 2, !tbaa !12
  %459 = sext i16 %458 to i32
  %460 = getelementptr inbounds i16, ptr %433, i64 %456
  %461 = load i16, ptr %460, align 2, !tbaa !12
  %462 = sext i16 %461 to i32
  %463 = getelementptr inbounds i16, ptr %431, i64 %456
  %464 = load i16, ptr %463, align 2, !tbaa !12
  %465 = sext i16 %464 to i32
  %466 = shl i32 %.0400510, 1
  br i1 %.not453, label %470, label %467

467:                                              ; preds = %453
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %460, i32 noundef -141, i32 noundef 21)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %457, i32 noundef 37, i32 noundef 263)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %463, i32 noundef -197, i32 noundef 20)
  %468 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %436, i32 noundef %459, i32 noundef %462, i32 noundef %465, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -146, i32 noundef 27)
  call void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %468)
  %469 = or disjoint i32 %466, 1
  br label %472

470:                                              ; preds = %453
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %460, i32 noundef -176, i32 noundef 14)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %457, i32 noundef 84, i32 noundef 172)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %463, i32 noundef 2, i32 noundef 15)
  %471 = call noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64) %436, i32 noundef %459, i32 noundef %462, i32 noundef %465, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -27, i32 noundef 142)
  call void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %471)
  br label %472

472:                                              ; preds = %467, %470
  %.sink = phi i32 [ %469, %467 ], [ %466, %470 ]
  %473 = add nsw i32 %.0400510, 1
  %.1401 = select i1 %438, i32 %.sink, i32 %473
  %474 = add nsw i32 %.0399511, -1
  %475 = icmp sgt i32 %.0399511, 0
  br i1 %475, label %453, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %472, %._crit_edge505, %391
  %476 = shl nuw nsw i32 %.0393518, 1
  %477 = icmp eq i32 %381, 0
  %478 = zext i1 %477 to i32
  %.masked = and i32 %476, 6
  %479 = or disjoint i32 %.masked, %478
  %480 = shl nuw nsw i32 %.0394517, 2
  %481 = call i32 @llvm.smin.i32(i32 %381, i32 3)
  %482 = or i32 %481, %480
  %483 = and i32 %482, 255
  %484 = shl nuw nsw i32 %.0395516, 1
  %485 = icmp slt i32 %257, 3
  %486 = zext i1 %485 to i32
  %.masked456 = and i32 %484, 14
  %487 = or disjoint i32 %.masked456, %486
  %488 = icmp ult ptr %258, %206
  br i1 %488, label %232, label %._crit_edge522, !llvm.loop !19

._crit_edge522:                                   ; preds = %.loopexit, %.loopexit466
  %489 = call noundef i32 @_ZN10RangeCoder13FinishEncoderEv(ptr noundef nonnull align 8 dereferenceable(56) %9)
  br label %.loopexit463

.loopexit463:                                     ; preds = %232, %._crit_edge522
  %.0 = phi i32 [ %489, %._crit_edge522 ], [ -3, %232 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #11
  ret i32 %.0
}

declare void @_Z19bsc_qlfc_init_modelP21QlfcStatisticalModel1(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10RangeCoder11InitEncoderEPhi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder10EncodeWordEj(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder9EncodeBitEj(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #6

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_set1_epi8c(i8 noundef signext) local_unnamed_addr #7

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL17_mm_movemask_epi8Dv2_x(<2 x i64> noundef) local_unnamed_addr #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_cmpeq_epi8Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL15_mm_loadu_si128PKDv2_x(ptr noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.cttz.i32(i32, i1 immarg) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL16model_rank_stateiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder10EncodeBit0ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit0Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10RangeCoder10EncodeBit1ILi12EEEvi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN16ProbabilityMixer18MixupAndUpdateBit1Eiiiiiiii(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15model_run_stateiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN10RangeCoder13FinishEncoderEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.ctlz.i8(i8, i1 immarg) #9

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.umax.i8(i8, i8) #9

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #9

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #10

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !6, i64 0}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9}
!16 = distinct !{!16, !9}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !9}
!19 = distinct !{!19, !9}


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