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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

declare void @_Z19bsc_qlfc_init_modelP21QlfcStatisticalModel1(ptr noundef) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z24bsc_qlfc_adaptive_decodePKhPhP21QlfcStatisticalModel1(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %class.RangeCoder, align 8
  %8 = alloca [256 x i8], align 64
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [256 x i8], align 16
  %15 = alloca [256 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [256 x i8], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %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 ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %8) #6
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_Z19bsc_qlfc_init_modelP21QlfcStatisticalModel1(ptr noundef %46)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 7, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %58, %3
  %48 = load i32, ptr %16, align 4, !tbaa !9
  %49 = icmp slt i32 %48, 256
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %61

51:                                               ; preds = %47
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 %53
  store i8 0, ptr %54, align 1, !tbaa !11
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %56
  store i8 0, ptr %57, align 1, !tbaa !11
  br label %58

58:                                               ; preds = %51
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %16, align 4, !tbaa !9
  br label %47, !llvm.loop !12

61:                                               ; preds = %50
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN10RangeCoder11InitDecoderEPKh(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %63 = call noundef i32 @_ZN10RangeCoder10DecodeWordEv(ptr noundef nonnull align 8 dereferenceable(56) %7)
  store i32 %63, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %72, %61
  %65 = load i32, ptr %19, align 4, !tbaa !9
  %66 = icmp slt i32 %65, 256
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %75

68:                                               ; preds = %64
  %69 = load i32, ptr %19, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 %70
  store i8 0, ptr %71, align 1, !tbaa !11
  br label %72

72:                                               ; preds = %68
  %73 = load i32, ptr %19, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %19, align 4, !tbaa !9
  br label %64, !llvm.loop !14

75:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 -1, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %185, %75
  %77 = load i32, ptr %21, align 4, !tbaa !9
  %78 = icmp slt i32 %77, 256
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 8, ptr %22, align 4
  br label %188

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 7, ptr %24, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %160, %80
  %82 = load i32, ptr %24, align 4, !tbaa !9
  %83 = icmp sge i32 %82, 0
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %163

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  store i8 0, ptr %25, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  store i8 0, ptr %26, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %126, %85
  %87 = load i32, ptr %27, align 4, !tbaa !9
  %88 = icmp slt i32 %87, 256
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 14, ptr %22, align 4
  br label %129

90:                                               ; preds = %86
  %91 = load i32, ptr %27, align 4, !tbaa !9
  %92 = load i32, ptr %20, align 4, !tbaa !9
  %93 = icmp eq i32 %91, %92
  br i1 %93, label %101, label %94

94:                                               ; preds = %90
  %95 = load i32, ptr %27, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !11
  %99 = zext i8 %98 to i32
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %125

101:                                              ; preds = %94, %90
  %102 = load i32, ptr %23, align 4, !tbaa !9
  %103 = load i32, ptr %27, align 4, !tbaa !9
  %104 = load i32, ptr %24, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  %106 = ashr i32 %103, %105
  %107 = icmp eq i32 %102, %106
  br i1 %107, label %108, label %124

108:                                              ; preds = %101
  %109 = load i32, ptr %27, align 4, !tbaa !9
  %110 = load i32, ptr %24, align 4, !tbaa !9
  %111 = shl i32 1, %110
  %112 = and i32 %109, %111
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %108
  store i8 1, ptr %26, align 1, !tbaa !15
  br label %116

115:                                              ; preds = %108
  store i8 1, ptr %25, align 1, !tbaa !15
  br label %116

116:                                              ; preds = %115, %114
  %117 = load i8, ptr %25, align 1, !tbaa !15, !range !17, !noundef !18
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %123

119:                                              ; preds = %116
  %120 = load i8, ptr %26, align 1, !tbaa !15, !range !17, !noundef !18
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  store i32 14, ptr %22, align 4
  br label %129

123:                                              ; preds = %119, %116
  br label %124

124:                                              ; preds = %123, %101
  br label %125

125:                                              ; preds = %124, %94
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %27, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %27, align 4, !tbaa !9
  br label %86, !llvm.loop !19

129:                                              ; preds = %122, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %130

130:                                              ; preds = %129
  %131 = load i8, ptr %25, align 1, !tbaa !15, !range !17, !noundef !18
  %132 = trunc i8 %131 to i1
  br i1 %132, label %133, label %142

133:                                              ; preds = %130
  %134 = load i8, ptr %26, align 1, !tbaa !15, !range !17, !noundef !18
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %142

136:                                              ; preds = %133
  %137 = load i32, ptr %23, align 4, !tbaa !9
  %138 = call noundef i32 @_ZN10RangeCoder9DecodeBitEv(ptr noundef nonnull align 8 dereferenceable(56) %7)
  %139 = add i32 %137, %138
  %140 = load i32, ptr %23, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %23, align 4, !tbaa !9
  br label %159

142:                                              ; preds = %133, %130
  %143 = load i8, ptr %25, align 1, !tbaa !15, !range !17, !noundef !18
  %144 = trunc i8 %143 to i1
  br i1 %144, label %145, label %150

145:                                              ; preds = %142
  %146 = load i32, ptr %23, align 4, !tbaa !9
  %147 = add nsw i32 %146, 0
  %148 = load i32, ptr %23, align 4, !tbaa !9
  %149 = add nsw i32 %148, %147
  store i32 %149, ptr %23, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %145, %142
  %151 = load i8, ptr %26, align 1, !tbaa !15, !range !17, !noundef !18
  %152 = trunc i8 %151 to i1
  br i1 %152, label %153, label %158

153:                                              ; preds = %150
  %154 = load i32, ptr %23, align 4, !tbaa !9
  %155 = add nsw i32 %154, 1
  %156 = load i32, ptr %23, align 4, !tbaa !9
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %23, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %153, %150
  br label %159

159:                                              ; preds = %158, %136
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %24, align 4, !tbaa !9
  %162 = add nsw i32 %161, -1
  store i32 %162, ptr %24, align 4, !tbaa !9
  br label %81, !llvm.loop !20

163:                                              ; preds = %84
  %164 = load i32, ptr %23, align 4, !tbaa !9
  %165 = trunc i32 %164 to i8
  %166 = load i32, ptr %21, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %167
  store i8 %165, ptr %168, align 1, !tbaa !11
  %169 = load i32, ptr %23, align 4, !tbaa !9
  %170 = load i32, ptr %20, align 4, !tbaa !9
  %171 = icmp eq i32 %169, %170
  br i1 %171, label %172, label %177

172:                                              ; preds = %163
  %173 = load i32, ptr %21, align 4, !tbaa !9
  %174 = sub nsw i32 %173, 1
  %175 = call i32 @llvm.ctlz.i32(i32 %174, i1 true)
  %176 = xor i32 %175, 31
  store i32 %176, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %22, align 4
  br label %182

177:                                              ; preds = %163
  %178 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %178, ptr %20, align 4, !tbaa !9
  %179 = load i32, ptr %23, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 %180
  store i8 1, ptr %181, align 1, !tbaa !11
  store i32 0, ptr %22, align 4
  br label %182

182:                                              ; preds = %177, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  %183 = load i32, ptr %22, align 4
  switch i32 %183, label %188 [
    i32 0, label %184
  ]

184:                                              ; preds = %182
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %21, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %21, align 4, !tbaa !9
  br label %76, !llvm.loop !21

188:                                              ; preds = %182, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %189

189:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %926, %189
  %191 = load i32, ptr %28, align 4, !tbaa !9
  %192 = load i32, ptr %17, align 4, !tbaa !9
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %195, label %194

194:                                              ; preds = %190
  store i32 17, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %927

195:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %196 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
  %197 = load i8, ptr %196, align 64, !tbaa !11
  %198 = zext i8 %197 to i32
  store i32 %198, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %199 = load i32, ptr %29, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %200
  %202 = load i8, ptr %201, align 1, !tbaa !11
  %203 = zext i8 %202 to i32
  store i32 %203, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = load i32, ptr %30, align 4, !tbaa !9
  %207 = call noundef i32 @_ZL16model_rank_stateiii(i32 noundef %204, i32 noundef %205, i32 noundef %206)
  store i32 %207, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %209, i32 0, i32 1
  %211 = load i32, ptr %31, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [256 x i16], ptr %210, i64 0, i64 %212
  store ptr %213, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %214, i32 0, i32 0
  %216 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %215, i32 0, i32 2
  %217 = load i32, ptr %29, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [256 x i16], ptr %216, i64 0, i64 %218
  store ptr %219, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %221, i32 0, i32 0
  store ptr %222, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %223, i32 0, i32 2
  %225 = load i32, ptr %29, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %224, i64 0, i64 %226
  store ptr %227, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 1, ptr %36, align 4, !tbaa !9
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %229 = icmp slt i32 %228, 32
  br i1 %229, label %230, label %456

230:                                              ; preds = %195
  %231 = load ptr, ptr %35, align 8, !tbaa !5
  %232 = load ptr, ptr %33, align 8, !tbaa !5
  %233 = load i16, ptr %232, align 2, !tbaa !22
  %234 = sext i16 %233 to i32
  %235 = load ptr, ptr %32, align 8, !tbaa !5
  %236 = load i16, ptr %235, align 2, !tbaa !22
  %237 = sext i16 %236 to i32
  %238 = load ptr, ptr %34, align 8, !tbaa !5
  %239 = load i16, ptr %238, align 2, !tbaa !22
  %240 = sext i16 %239 to i32
  %241 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %231, i32 noundef %234, i32 noundef %237, i32 noundef %240)
  %242 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %241)
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %447

244:                                              ; preds = %230
  %245 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %245, i32 noundef -111, i32 noundef 31)
  %246 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %246, i32 noundef 154, i32 noundef 528)
  %247 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %247, i32 noundef 313, i32 noundef 639)
  %248 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %248, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef 53, i32 noundef 49)
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %250, i32 0, i32 3
  %252 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Exponent", ptr %251, i32 0, i32 1
  %253 = load i32, ptr %31, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [256 x [8 x i16]], ptr %252, i64 0, i64 %254
  %256 = getelementptr inbounds [8 x i16], ptr %255, i64 0, i64 0
  store ptr %256, ptr %32, align 8, !tbaa !5
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %258, i32 0, i32 3
  %260 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Exponent", ptr %259, i32 0, i32 2
  %261 = load i32, ptr %29, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [256 x [8 x i16]], ptr %260, i64 0, i64 %262
  %264 = getelementptr inbounds [8 x i16], ptr %263, i64 0, i64 0
  store ptr %264, ptr %33, align 8, !tbaa !5
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %266, i32 0, i32 3
  %268 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Exponent", ptr %267, i32 0, i32 0
  %269 = getelementptr inbounds [8 x i16], ptr %268, i64 0, i64 0
  store ptr %269, ptr %34, align 8, !tbaa !5
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %270, i32 0, i32 3
  %272 = load i32, ptr %30, align 4, !tbaa !9
  %273 = icmp slt i32 %272, 1
  br i1 %273, label %274, label %275

274:                                              ; preds = %244
  br label %277

275:                                              ; preds = %244
  %276 = load i32, ptr %30, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %275, %274
  %278 = phi i32 [ 1, %274 ], [ %276, %275 ]
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %271, i64 0, i64 %279
  %281 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %280, i64 0, i64 1
  store ptr %281, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 1, ptr %37, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %336, %277
  br label %283

283:                                              ; preds = %282
  %284 = load i32, ptr %37, align 4, !tbaa !9
  %285 = load i32, ptr %12, align 4, !tbaa !9
  %286 = icmp eq i32 %284, %285
  br i1 %286, label %287, label %288

287:                                              ; preds = %283
  br label %337

288:                                              ; preds = %283
  %289 = load ptr, ptr %35, align 8, !tbaa !5
  %290 = load ptr, ptr %33, align 8, !tbaa !5
  %291 = load i16, ptr %290, align 2, !tbaa !22
  %292 = sext i16 %291 to i32
  %293 = load ptr, ptr %32, align 8, !tbaa !5
  %294 = load i16, ptr %293, align 2, !tbaa !22
  %295 = sext i16 %294 to i32
  %296 = load ptr, ptr %34, align 8, !tbaa !5
  %297 = load i16, ptr %296, align 2, !tbaa !22
  %298 = sext i16 %297 to i32
  %299 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %289, i32 noundef %292, i32 noundef %295, i32 noundef %298)
  %300 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %299)
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %331

302:                                              ; preds = %288
  %303 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %303, i32 noundef 482, i32 noundef 40)
  %304 = load ptr, ptr %32, align 8, !tbaa !5
  %305 = getelementptr inbounds i16, ptr %304, i32 1
  store ptr %305, ptr %32, align 8, !tbaa !5
  %306 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %306, i32 noundef 200, i32 noundef 133)
  %307 = load ptr, ptr %33, align 8, !tbaa !5
  %308 = getelementptr inbounds i16, ptr %307, i32 1
  store ptr %308, ptr %33, align 8, !tbaa !5
  %309 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %309, i32 noundef 578, i32 noundef 1067)
  %310 = load ptr, ptr %34, align 8, !tbaa !5
  %311 = getelementptr inbounds i16, ptr %310, i32 1
  store ptr %311, ptr %34, align 8, !tbaa !5
  %312 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %312, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef 144, i32 noundef 848)
  %313 = load i32, ptr %37, align 4, !tbaa !9
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %37, align 4, !tbaa !9
  %315 = load ptr, ptr %6, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %315, i32 0, i32 3
  %317 = load i32, ptr %30, align 4, !tbaa !9
  %318 = load i32, ptr %37, align 4, !tbaa !9
  %319 = icmp slt i32 %317, %318
  br i1 %319, label %320, label %322

320:                                              ; preds = %302
  %321 = load i32, ptr %37, align 4, !tbaa !9
  br label %324

322:                                              ; preds = %302
  %323 = load i32, ptr %30, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %322, %320
  %325 = phi i32 [ %321, %320 ], [ %323, %322 ]
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %316, i64 0, i64 %326
  %328 = load i32, ptr %37, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %327, i64 0, i64 %329
  store ptr %330, ptr %35, align 8, !tbaa !5
  br label %336

331:                                              ; preds = %288
  %332 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %332, i32 noundef -137, i32 noundef 17)
  %333 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %333, i32 noundef 61, i32 noundef 192)
  %334 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %334, i32 noundef 54, i32 noundef 1342)
  %335 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %335, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef -11, i32 noundef 318)
  br label %337

336:                                              ; preds = %324
  br label %282, !llvm.loop !24

337:                                              ; preds = %331, %287
  %338 = load i32, ptr %37, align 4, !tbaa !9
  %339 = trunc i32 %338 to i8
  %340 = load i32, ptr %29, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %341
  store i8 %339, ptr %342, align 1, !tbaa !11
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %344, i32 0, i32 4
  %346 = load i32, ptr %37, align 4, !tbaa !9
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %345, i64 0, i64 %347
  %349 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Mantissa", ptr %348, i32 0, i32 1
  %350 = load i32, ptr %31, align 4, !tbaa !9
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [256 x [256 x i16]], ptr %349, i64 0, i64 %351
  %353 = getelementptr inbounds [256 x i16], ptr %352, i64 0, i64 0
  store ptr %353, ptr %32, align 8, !tbaa !5
  %354 = load ptr, ptr %6, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %354, i32 0, i32 0
  %356 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %355, i32 0, i32 4
  %357 = load i32, ptr %37, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %356, i64 0, i64 %358
  %360 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Mantissa", ptr %359, i32 0, i32 2
  %361 = load i32, ptr %29, align 4, !tbaa !9
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [256 x [256 x i16]], ptr %360, i64 0, i64 %362
  %364 = getelementptr inbounds [256 x i16], ptr %363, i64 0, i64 0
  store ptr %364, ptr %33, align 8, !tbaa !5
  %365 = load ptr, ptr %6, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %365, i32 0, i32 0
  %367 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %366, i32 0, i32 4
  %368 = load i32, ptr %37, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %367, i64 0, i64 %369
  %371 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Mantissa", ptr %370, i32 0, i32 0
  %372 = getelementptr inbounds [256 x i16], ptr %371, i64 0, i64 0
  store ptr %372, ptr %34, align 8, !tbaa !5
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %373, i32 0, i32 4
  %375 = load i32, ptr %37, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %374, i64 0, i64 %376
  store ptr %377, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %378 = load i32, ptr %37, align 4, !tbaa !9
  %379 = sub nsw i32 %378, 1
  store i32 %379, ptr %38, align 4, !tbaa !9
  br label %380

380:                                              ; preds = %443, %337
  %381 = load i32, ptr %38, align 4, !tbaa !9
  %382 = icmp sge i32 %381, 0
  br i1 %382, label %384, label %383

383:                                              ; preds = %380
  store i32 21, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %446

384:                                              ; preds = %380
  %385 = load ptr, ptr %35, align 8, !tbaa !5
  %386 = load ptr, ptr %33, align 8, !tbaa !5
  %387 = load i32, ptr %36, align 4, !tbaa !9
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds i16, ptr %386, i64 %388
  %390 = load i16, ptr %389, align 2, !tbaa !22
  %391 = sext i16 %390 to i32
  %392 = load ptr, ptr %32, align 8, !tbaa !5
  %393 = load i32, ptr %36, align 4, !tbaa !9
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds i16, ptr %392, i64 %394
  %396 = load i16, ptr %395, align 2, !tbaa !22
  %397 = sext i16 %396 to i32
  %398 = load ptr, ptr %34, align 8, !tbaa !5
  %399 = load i32, ptr %36, align 4, !tbaa !9
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds i16, ptr %398, i64 %400
  %402 = load i16, ptr %401, align 2, !tbaa !22
  %403 = sext i16 %402 to i32
  %404 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %385, i32 noundef %391, i32 noundef %397, i32 noundef %403)
  %405 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %404)
  %406 = icmp ne i32 %405, 0
  br i1 %406, label %407, label %425

407:                                              ; preds = %384
  %408 = load ptr, ptr %32, align 8, !tbaa !5
  %409 = load i32, ptr %36, align 4, !tbaa !9
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds i16, ptr %408, i64 %410
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %411, i32 noundef 114, i32 noundef 24)
  %412 = load ptr, ptr %33, align 8, !tbaa !5
  %413 = load i32, ptr %36, align 4, !tbaa !9
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds i16, ptr %412, i64 %414
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %415, i32 noundef -36, i32 noundef 78)
  %416 = load ptr, ptr %34, align 8, !tbaa !5
  %417 = load i32, ptr %36, align 4, !tbaa !9
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds i16, ptr %416, i64 %418
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %419, i32 noundef 11, i32 noundef 1181)
  %420 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %420, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -271, i32 noundef 15)
  %421 = load i32, ptr %36, align 4, !tbaa !9
  %422 = add nsw i32 %421, 1
  %423 = load i32, ptr %36, align 4, !tbaa !9
  %424 = add nsw i32 %423, %422
  store i32 %424, ptr %36, align 4, !tbaa !9
  br label %442

425:                                              ; preds = %384
  %426 = load ptr, ptr %32, align 8, !tbaa !5
  %427 = load i32, ptr %36, align 4, !tbaa !9
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds i16, ptr %426, i64 %428
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %429, i32 noundef -145, i32 noundef 18)
  %430 = load ptr, ptr %33, align 8, !tbaa !5
  %431 = load i32, ptr %36, align 4, !tbaa !9
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds i16, ptr %430, i64 %432
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %433, i32 noundef -43, i32 noundef 69)
  %434 = load ptr, ptr %34, align 8, !tbaa !5
  %435 = load i32, ptr %36, align 4, !tbaa !9
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds i16, ptr %434, i64 %436
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %437, i32 noundef -2, i32 noundef 1119)
  %438 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %438, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -203, i32 noundef 20)
  %439 = load i32, ptr %36, align 4, !tbaa !9
  %440 = load i32, ptr %36, align 4, !tbaa !9
  %441 = add nsw i32 %440, %439
  store i32 %441, ptr %36, align 4, !tbaa !9
  br label %442

442:                                              ; preds = %425, %407
  br label %443

443:                                              ; preds = %442
  %444 = load i32, ptr %38, align 4, !tbaa !9
  %445 = add nsw i32 %444, -1
  store i32 %445, ptr %38, align 4, !tbaa !9
  br label %380, !llvm.loop !25

446:                                              ; preds = %383
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %455

447:                                              ; preds = %230
  %448 = load i32, ptr %29, align 4, !tbaa !9
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %449
  store i8 0, ptr %450, align 1, !tbaa !11
  %451 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %451, i32 noundef 1, i32 noundef 57)
  %452 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %452, i32 noundef 291, i32 noundef 250)
  %453 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %453, i32 noundef 375, i32 noundef 163)
  %454 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %454, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef -41, i32 noundef 96)
  br label %455

455:                                              ; preds = %447, %446
  br label %565

456:                                              ; preds = %195
  %457 = load ptr, ptr %6, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %457, i32 0, i32 0
  %459 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %458, i32 0, i32 5
  %460 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Escape", ptr %459, i32 0, i32 1
  %461 = load i32, ptr %31, align 4, !tbaa !9
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [256 x [256 x i16]], ptr %460, i64 0, i64 %462
  %464 = getelementptr inbounds [256 x i16], ptr %463, i64 0, i64 0
  store ptr %464, ptr %32, align 8, !tbaa !5
  %465 = load ptr, ptr %6, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %465, i32 0, i32 0
  %467 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %466, i32 0, i32 5
  %468 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Escape", ptr %467, i32 0, i32 2
  %469 = load i32, ptr %29, align 4, !tbaa !9
  %470 = sext i32 %469 to i64
  %471 = getelementptr inbounds [256 x [256 x i16]], ptr %468, i64 0, i64 %470
  %472 = getelementptr inbounds [256 x i16], ptr %471, i64 0, i64 0
  store ptr %472, ptr %33, align 8, !tbaa !5
  %473 = load ptr, ptr %6, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %473, i32 0, i32 0
  %475 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank", ptr %474, i32 0, i32 5
  %476 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Rank::Escape", ptr %475, i32 0, i32 0
  %477 = getelementptr inbounds [256 x i16], ptr %476, i64 0, i64 0
  store ptr %477, ptr %34, align 8, !tbaa !5
  store i32 0, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 1, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %478 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %478, ptr %40, align 4, !tbaa !9
  br label %479

479:                                              ; preds = %554, %456
  %480 = load i32, ptr %40, align 4, !tbaa !9
  %481 = icmp sge i32 %480, 0
  br i1 %481, label %483, label %482

482:                                              ; preds = %479
  store i32 24, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %557

483:                                              ; preds = %479
  %484 = load ptr, ptr %6, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %484, i32 0, i32 5
  %486 = load i32, ptr %39, align 4, !tbaa !9
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %485, i64 0, i64 %487
  store ptr %488, ptr %35, align 8, !tbaa !5
  %489 = load ptr, ptr %35, align 8, !tbaa !5
  %490 = load ptr, ptr %33, align 8, !tbaa !5
  %491 = load i32, ptr %39, align 4, !tbaa !9
  %492 = sext i32 %491 to i64
  %493 = getelementptr inbounds i16, ptr %490, i64 %492
  %494 = load i16, ptr %493, align 2, !tbaa !22
  %495 = sext i16 %494 to i32
  %496 = load ptr, ptr %32, align 8, !tbaa !5
  %497 = load i32, ptr %39, align 4, !tbaa !9
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds i16, ptr %496, i64 %498
  %500 = load i16, ptr %499, align 2, !tbaa !22
  %501 = sext i16 %500 to i32
  %502 = load ptr, ptr %34, align 8, !tbaa !5
  %503 = load i32, ptr %39, align 4, !tbaa !9
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds i16, ptr %502, i64 %504
  %506 = load i16, ptr %505, align 2, !tbaa !22
  %507 = sext i16 %506 to i32
  %508 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %489, i32 noundef %495, i32 noundef %501, i32 noundef %507)
  %509 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %508)
  %510 = icmp ne i32 %509, 0
  br i1 %510, label %511, label %533

511:                                              ; preds = %483
  %512 = load ptr, ptr %32, align 8, !tbaa !5
  %513 = load i32, ptr %39, align 4, !tbaa !9
  %514 = sext i32 %513 to i64
  %515 = getelementptr inbounds i16, ptr %512, i64 %514
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %515, i32 noundef 318, i32 noundef 42)
  %516 = load ptr, ptr %33, align 8, !tbaa !5
  %517 = load i32, ptr %39, align 4, !tbaa !9
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds i16, ptr %516, i64 %518
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %519, i32 noundef 1116, i32 noundef 246)
  %520 = load ptr, ptr %34, align 8, !tbaa !5
  %521 = load i32, ptr %39, align 4, !tbaa !9
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds i16, ptr %520, i64 %522
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %523, i32 noundef -2, i32 noundef 1110)
  %524 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %524, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -129, i32 noundef 20)
  %525 = load i32, ptr %39, align 4, !tbaa !9
  %526 = add nsw i32 %525, 1
  %527 = load i32, ptr %39, align 4, !tbaa !9
  %528 = add nsw i32 %527, %526
  store i32 %528, ptr %39, align 4, !tbaa !9
  %529 = load i32, ptr %36, align 4, !tbaa !9
  %530 = add nsw i32 %529, 1
  %531 = load i32, ptr %36, align 4, !tbaa !9
  %532 = add nsw i32 %531, %530
  store i32 %532, ptr %36, align 4, !tbaa !9
  br label %553

533:                                              ; preds = %483
  %534 = load ptr, ptr %32, align 8, !tbaa !5
  %535 = load i32, ptr %39, align 4, !tbaa !9
  %536 = sext i32 %535 to i64
  %537 = getelementptr inbounds i16, ptr %534, i64 %536
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %537, i32 noundef -99, i32 noundef 32)
  %538 = load ptr, ptr %33, align 8, !tbaa !5
  %539 = load i32, ptr %39, align 4, !tbaa !9
  %540 = sext i32 %539 to i64
  %541 = getelementptr inbounds i16, ptr %538, i64 %540
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %541, i32 noundef 17, i32 noundef 101)
  %542 = load ptr, ptr %34, align 8, !tbaa !5
  %543 = load i32, ptr %39, align 4, !tbaa !9
  %544 = sext i32 %543 to i64
  %545 = getelementptr inbounds i16, ptr %542, i64 %544
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %545, i32 noundef 22, i32 noundef 964)
  %546 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %546, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -194, i32 noundef 21)
  %547 = load i32, ptr %39, align 4, !tbaa !9
  %548 = load i32, ptr %39, align 4, !tbaa !9
  %549 = add nsw i32 %548, %547
  store i32 %549, ptr %39, align 4, !tbaa !9
  %550 = load i32, ptr %36, align 4, !tbaa !9
  %551 = load i32, ptr %36, align 4, !tbaa !9
  %552 = add nsw i32 %551, %550
  store i32 %552, ptr %36, align 4, !tbaa !9
  br label %553

553:                                              ; preds = %533, %511
  br label %554

554:                                              ; preds = %553
  %555 = load i32, ptr %40, align 4, !tbaa !9
  %556 = add nsw i32 %555, -1
  store i32 %556, ptr %40, align 4, !tbaa !9
  br label %479, !llvm.loop !26

557:                                              ; preds = %482
  %558 = load i32, ptr %36, align 4, !tbaa !9
  %559 = call i32 @llvm.ctlz.i32(i32 %558, i1 true)
  %560 = xor i32 %559, 31
  %561 = trunc i32 %560 to i8
  %562 = load i32, ptr %29, align 4, !tbaa !9
  %563 = sext i32 %562 to i64
  %564 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %563
  store i8 %561, ptr %564, align 1, !tbaa !11
  br label %565

565:                                              ; preds = %557, %455
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %566

566:                                              ; preds = %580, %565
  %567 = load i32, ptr %41, align 4, !tbaa !9
  %568 = load i32, ptr %36, align 4, !tbaa !9
  %569 = icmp slt i32 %567, %568
  br i1 %569, label %571, label %570

570:                                              ; preds = %566
  store i32 27, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %583

571:                                              ; preds = %566
  %572 = load i32, ptr %41, align 4, !tbaa !9
  %573 = add nsw i32 %572, 1
  %574 = sext i32 %573 to i64
  %575 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %574
  %576 = load i8, ptr %575, align 1, !tbaa !11
  %577 = load i32, ptr %41, align 4, !tbaa !9
  %578 = sext i32 %577 to i64
  %579 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %578
  store i8 %576, ptr %579, align 1, !tbaa !11
  br label %580

580:                                              ; preds = %571
  %581 = load i32, ptr %41, align 4, !tbaa !9
  %582 = add nsw i32 %581, 1
  store i32 %582, ptr %41, align 4, !tbaa !9
  br label %566, !llvm.loop !27

583:                                              ; preds = %570
  %584 = load i32, ptr %29, align 4, !tbaa !9
  %585 = trunc i32 %584 to i8
  %586 = load i32, ptr %36, align 4, !tbaa !9
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %587
  store i8 %585, ptr %588, align 1, !tbaa !11
  %589 = load i32, ptr %13, align 4, !tbaa !9
  %590 = mul nsw i32 %589, 124
  %591 = load i32, ptr %36, align 4, !tbaa !9
  %592 = mul nsw i32 %591, 4
  %593 = add nsw i32 %590, %592
  %594 = ashr i32 %593, 7
  store i32 %594, ptr %13, align 4, !tbaa !9
  %595 = load i32, ptr %36, align 4, !tbaa !9
  %596 = sub nsw i32 %595, 1
  store i32 %596, ptr %36, align 4, !tbaa !9
  %597 = load i32, ptr %29, align 4, !tbaa !9
  %598 = sext i32 %597 to i64
  %599 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 %598
  %600 = load i8, ptr %599, align 1, !tbaa !11
  %601 = zext i8 %600 to i32
  store i32 %601, ptr %30, align 4, !tbaa !9
  %602 = load i32, ptr %9, align 4, !tbaa !9
  %603 = load i32, ptr %11, align 4, !tbaa !9
  %604 = load i32, ptr %36, align 4, !tbaa !9
  %605 = load i32, ptr %30, align 4, !tbaa !9
  %606 = call noundef i32 @_ZL15model_run_stateiiii(i32 noundef %602, i32 noundef %603, i32 noundef %604, i32 noundef %605)
  store i32 %606, ptr %31, align 4, !tbaa !9
  %607 = load ptr, ptr %6, align 8, !tbaa !5
  %608 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %607, i32 0, i32 1
  %609 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %608, i32 0, i32 1
  %610 = load i32, ptr %31, align 4, !tbaa !9
  %611 = sext i32 %610 to i64
  %612 = getelementptr inbounds [256 x i16], ptr %609, i64 0, i64 %611
  store ptr %612, ptr %32, align 8, !tbaa !5
  %613 = load ptr, ptr %6, align 8, !tbaa !5
  %614 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %613, i32 0, i32 1
  %615 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %614, i32 0, i32 2
  %616 = load i32, ptr %29, align 4, !tbaa !9
  %617 = sext i32 %616 to i64
  %618 = getelementptr inbounds [256 x i16], ptr %615, i64 0, i64 %617
  store ptr %618, ptr %33, align 8, !tbaa !5
  %619 = load ptr, ptr %6, align 8, !tbaa !5
  %620 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %619, i32 0, i32 1
  %621 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %620, i32 0, i32 0
  store ptr %621, ptr %34, align 8, !tbaa !5
  %622 = load ptr, ptr %6, align 8, !tbaa !5
  %623 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %622, i32 0, i32 6
  %624 = load i32, ptr %29, align 4, !tbaa !9
  %625 = sext i32 %624 to i64
  %626 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %623, i64 0, i64 %625
  store ptr %626, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  store i32 1, ptr %42, align 4, !tbaa !9
  %627 = load ptr, ptr %35, align 8, !tbaa !5
  %628 = load ptr, ptr %33, align 8, !tbaa !5
  %629 = load i16, ptr %628, align 2, !tbaa !22
  %630 = sext i16 %629 to i32
  %631 = load ptr, ptr %32, align 8, !tbaa !5
  %632 = load i16, ptr %631, align 2, !tbaa !22
  %633 = sext i16 %632 to i32
  %634 = load ptr, ptr %34, align 8, !tbaa !5
  %635 = load i16, ptr %634, align 2, !tbaa !22
  %636 = sext i16 %635 to i32
  %637 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %627, i32 noundef %630, i32 noundef %633, i32 noundef %636)
  %638 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %637)
  %639 = icmp ne i32 %638, 0
  br i1 %639, label %640, label %868

640:                                              ; preds = %583
  %641 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %641, i32 noundef -4, i32 noundef 51)
  %642 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %642, i32 noundef 244, i32 noundef 162)
  %643 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %643, i32 noundef -6, i32 noundef 579)
  %644 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %644, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef 1, i32 noundef 64)
  %645 = load ptr, ptr %6, align 8, !tbaa !5
  %646 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %645, i32 0, i32 1
  %647 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %646, i32 0, i32 3
  %648 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Exponent", ptr %647, i32 0, i32 1
  %649 = load i32, ptr %31, align 4, !tbaa !9
  %650 = sext i32 %649 to i64
  %651 = getelementptr inbounds [256 x [32 x i16]], ptr %648, i64 0, i64 %650
  %652 = getelementptr inbounds [32 x i16], ptr %651, i64 0, i64 0
  store ptr %652, ptr %32, align 8, !tbaa !5
  %653 = load ptr, ptr %6, align 8, !tbaa !5
  %654 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %653, i32 0, i32 1
  %655 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %654, i32 0, i32 3
  %656 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Exponent", ptr %655, i32 0, i32 2
  %657 = load i32, ptr %29, align 4, !tbaa !9
  %658 = sext i32 %657 to i64
  %659 = getelementptr inbounds [256 x [32 x i16]], ptr %656, i64 0, i64 %658
  %660 = getelementptr inbounds [32 x i16], ptr %659, i64 0, i64 0
  store ptr %660, ptr %33, align 8, !tbaa !5
  %661 = load ptr, ptr %6, align 8, !tbaa !5
  %662 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %661, i32 0, i32 1
  %663 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %662, i32 0, i32 3
  %664 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Exponent", ptr %663, i32 0, i32 0
  %665 = getelementptr inbounds [32 x i16], ptr %664, i64 0, i64 0
  store ptr %665, ptr %34, align 8, !tbaa !5
  %666 = load ptr, ptr %6, align 8, !tbaa !5
  %667 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %666, i32 0, i32 7
  %668 = load i32, ptr %30, align 4, !tbaa !9
  %669 = icmp slt i32 %668, 1
  br i1 %669, label %670, label %671

670:                                              ; preds = %640
  br label %673

671:                                              ; preds = %640
  %672 = load i32, ptr %30, align 4, !tbaa !9
  br label %673

673:                                              ; preds = %671, %670
  %674 = phi i32 [ 1, %670 ], [ %672, %671 ]
  %675 = sext i32 %674 to i64
  %676 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %667, i64 0, i64 %675
  %677 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %676, i64 0, i64 1
  store ptr %677, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  store i32 1, ptr %43, align 4, !tbaa !9
  br label %678

678:                                              ; preds = %727, %673
  br label %679

679:                                              ; preds = %678
  %680 = load ptr, ptr %35, align 8, !tbaa !5
  %681 = load ptr, ptr %33, align 8, !tbaa !5
  %682 = load i16, ptr %681, align 2, !tbaa !22
  %683 = sext i16 %682 to i32
  %684 = load ptr, ptr %32, align 8, !tbaa !5
  %685 = load i16, ptr %684, align 2, !tbaa !22
  %686 = sext i16 %685 to i32
  %687 = load ptr, ptr %34, align 8, !tbaa !5
  %688 = load i16, ptr %687, align 2, !tbaa !22
  %689 = sext i16 %688 to i32
  %690 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %680, i32 noundef %683, i32 noundef %686, i32 noundef %689)
  %691 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %690)
  %692 = icmp ne i32 %691, 0
  br i1 %692, label %693, label %722

693:                                              ; preds = %679
  %694 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %694, i32 noundef 43, i32 noundef 45)
  %695 = load ptr, ptr %32, align 8, !tbaa !5
  %696 = getelementptr inbounds i16, ptr %695, i32 1
  store ptr %696, ptr %32, align 8, !tbaa !5
  %697 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %697, i32 noundef 30, i32 noundef 324)
  %698 = load ptr, ptr %33, align 8, !tbaa !5
  %699 = getelementptr inbounds i16, ptr %698, i32 1
  store ptr %699, ptr %33, align 8, !tbaa !5
  %700 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %700, i32 noundef 109, i32 noundef 867)
  %701 = load ptr, ptr %34, align 8, !tbaa !5
  %702 = getelementptr inbounds i16, ptr %701, i32 1
  store ptr %702, ptr %34, align 8, !tbaa !5
  %703 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %703, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef 61, i32 noundef 73)
  %704 = load i32, ptr %43, align 4, !tbaa !9
  %705 = add nsw i32 %704, 1
  store i32 %705, ptr %43, align 4, !tbaa !9
  %706 = load ptr, ptr %6, align 8, !tbaa !5
  %707 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %706, i32 0, i32 7
  %708 = load i32, ptr %30, align 4, !tbaa !9
  %709 = load i32, ptr %43, align 4, !tbaa !9
  %710 = icmp slt i32 %708, %709
  br i1 %710, label %711, label %713

711:                                              ; preds = %693
  %712 = load i32, ptr %43, align 4, !tbaa !9
  br label %715

713:                                              ; preds = %693
  %714 = load i32, ptr %30, align 4, !tbaa !9
  br label %715

715:                                              ; preds = %713, %711
  %716 = phi i32 [ %712, %711 ], [ %714, %713 ]
  %717 = sext i32 %716 to i64
  %718 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %707, i64 0, i64 %717
  %719 = load i32, ptr %43, align 4, !tbaa !9
  %720 = sext i32 %719 to i64
  %721 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %718, i64 0, i64 %720
  store ptr %721, ptr %35, align 8, !tbaa !5
  br label %727

722:                                              ; preds = %679
  %723 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %723, i32 noundef -116, i32 noundef 31)
  %724 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %724, i32 noundef 165, i32 noundef 222)
  %725 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %725, i32 noundef 315, i32 noundef 857)
  %726 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %726, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef -14, i32 noundef 215)
  br label %728

727:                                              ; preds = %715
  br label %678, !llvm.loop !28

728:                                              ; preds = %722
  %729 = load i32, ptr %29, align 4, !tbaa !9
  %730 = sext i32 %729 to i64
  %731 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 %730
  %732 = load i8, ptr %731, align 1, !tbaa !11
  %733 = zext i8 %732 to i32
  %734 = load i32, ptr %43, align 4, !tbaa !9
  %735 = mul nsw i32 3, %734
  %736 = add nsw i32 %733, %735
  %737 = add nsw i32 %736, 3
  %738 = ashr i32 %737, 2
  %739 = trunc i32 %738 to i8
  %740 = load i32, ptr %29, align 4, !tbaa !9
  %741 = sext i32 %740 to i64
  %742 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 %741
  store i8 %739, ptr %742, align 1, !tbaa !11
  %743 = load ptr, ptr %6, align 8, !tbaa !5
  %744 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %743, i32 0, i32 1
  %745 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %744, i32 0, i32 4
  %746 = load i32, ptr %43, align 4, !tbaa !9
  %747 = sext i32 %746 to i64
  %748 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %745, i64 0, i64 %747
  %749 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Mantissa", ptr %748, i32 0, i32 1
  %750 = load i32, ptr %31, align 4, !tbaa !9
  %751 = sext i32 %750 to i64
  %752 = getelementptr inbounds [256 x [32 x i16]], ptr %749, i64 0, i64 %751
  %753 = getelementptr inbounds [32 x i16], ptr %752, i64 0, i64 0
  store ptr %753, ptr %32, align 8, !tbaa !5
  %754 = load ptr, ptr %6, align 8, !tbaa !5
  %755 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %754, i32 0, i32 1
  %756 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %755, i32 0, i32 4
  %757 = load i32, ptr %43, align 4, !tbaa !9
  %758 = sext i32 %757 to i64
  %759 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %756, i64 0, i64 %758
  %760 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Mantissa", ptr %759, i32 0, i32 2
  %761 = load i32, ptr %29, align 4, !tbaa !9
  %762 = sext i32 %761 to i64
  %763 = getelementptr inbounds [256 x [32 x i16]], ptr %760, i64 0, i64 %762
  %764 = getelementptr inbounds [32 x i16], ptr %763, i64 0, i64 0
  store ptr %764, ptr %33, align 8, !tbaa !5
  %765 = load ptr, ptr %6, align 8, !tbaa !5
  %766 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %765, i32 0, i32 1
  %767 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run", ptr %766, i32 0, i32 4
  %768 = load i32, ptr %43, align 4, !tbaa !9
  %769 = sext i32 %768 to i64
  %770 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %767, i64 0, i64 %769
  %771 = getelementptr inbounds %"struct.QlfcStatisticalModel1::Run::Mantissa", ptr %770, i32 0, i32 0
  %772 = getelementptr inbounds [32 x i16], ptr %771, i64 0, i64 0
  store ptr %772, ptr %34, align 8, !tbaa !5
  %773 = load ptr, ptr %6, align 8, !tbaa !5
  %774 = getelementptr inbounds %struct.QlfcStatisticalModel1, ptr %773, i32 0, i32 8
  %775 = load i32, ptr %43, align 4, !tbaa !9
  %776 = sext i32 %775 to i64
  %777 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %774, i64 0, i64 %776
  store ptr %777, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  store i32 1, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %778 = load i32, ptr %43, align 4, !tbaa !9
  %779 = sub nsw i32 %778, 1
  store i32 %779, ptr %45, align 4, !tbaa !9
  br label %780

780:                                              ; preds = %864, %728
  %781 = load i32, ptr %45, align 4, !tbaa !9
  %782 = icmp sge i32 %781, 0
  br i1 %782, label %784, label %783

783:                                              ; preds = %780
  store i32 32, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  br label %867

784:                                              ; preds = %780
  %785 = load ptr, ptr %35, align 8, !tbaa !5
  %786 = load ptr, ptr %33, align 8, !tbaa !5
  %787 = load i32, ptr %44, align 4, !tbaa !9
  %788 = sext i32 %787 to i64
  %789 = getelementptr inbounds i16, ptr %786, i64 %788
  %790 = load i16, ptr %789, align 2, !tbaa !22
  %791 = sext i16 %790 to i32
  %792 = load ptr, ptr %32, align 8, !tbaa !5
  %793 = load i32, ptr %44, align 4, !tbaa !9
  %794 = sext i32 %793 to i64
  %795 = getelementptr inbounds i16, ptr %792, i64 %794
  %796 = load i16, ptr %795, align 2, !tbaa !22
  %797 = sext i16 %796 to i32
  %798 = load ptr, ptr %34, align 8, !tbaa !5
  %799 = load i32, ptr %44, align 4, !tbaa !9
  %800 = sext i32 %799 to i64
  %801 = getelementptr inbounds i16, ptr %798, i64 %800
  %802 = load i16, ptr %801, align 2, !tbaa !22
  %803 = sext i16 %802 to i32
  %804 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %785, i32 noundef %791, i32 noundef %797, i32 noundef %803)
  %805 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %804)
  %806 = icmp ne i32 %805, 0
  br i1 %806, label %807, label %836

807:                                              ; preds = %784
  %808 = load ptr, ptr %32, align 8, !tbaa !5
  %809 = load i32, ptr %44, align 4, !tbaa !9
  %810 = sext i32 %809 to i64
  %811 = getelementptr inbounds i16, ptr %808, i64 %810
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %811, i32 noundef -141, i32 noundef 21)
  %812 = load ptr, ptr %33, align 8, !tbaa !5
  %813 = load i32, ptr %44, align 4, !tbaa !9
  %814 = sext i32 %813 to i64
  %815 = getelementptr inbounds i16, ptr %812, i64 %814
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %815, i32 noundef 37, i32 noundef 263)
  %816 = load ptr, ptr %34, align 8, !tbaa !5
  %817 = load i32, ptr %44, align 4, !tbaa !9
  %818 = sext i32 %817 to i64
  %819 = getelementptr inbounds i16, ptr %816, i64 %818
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %819, i32 noundef -197, i32 noundef 20)
  %820 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %820, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -146, i32 noundef 27)
  %821 = load i32, ptr %42, align 4, !tbaa !9
  %822 = add nsw i32 %821, 1
  %823 = load i32, ptr %42, align 4, !tbaa !9
  %824 = add nsw i32 %823, %822
  store i32 %824, ptr %42, align 4, !tbaa !9
  %825 = load i32, ptr %43, align 4, !tbaa !9
  %826 = icmp sle i32 %825, 5
  br i1 %826, label %827, label %832

827:                                              ; preds = %807
  %828 = load i32, ptr %44, align 4, !tbaa !9
  %829 = add nsw i32 %828, 1
  %830 = load i32, ptr %44, align 4, !tbaa !9
  %831 = add nsw i32 %830, %829
  store i32 %831, ptr %44, align 4, !tbaa !9
  br label %835

832:                                              ; preds = %807
  %833 = load i32, ptr %44, align 4, !tbaa !9
  %834 = add nsw i32 %833, 1
  store i32 %834, ptr %44, align 4, !tbaa !9
  br label %835

835:                                              ; preds = %832, %827
  br label %863

836:                                              ; preds = %784
  %837 = load ptr, ptr %32, align 8, !tbaa !5
  %838 = load i32, ptr %44, align 4, !tbaa !9
  %839 = sext i32 %838 to i64
  %840 = getelementptr inbounds i16, ptr %837, i64 %839
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %840, i32 noundef -176, i32 noundef 14)
  %841 = load ptr, ptr %33, align 8, !tbaa !5
  %842 = load i32, ptr %44, align 4, !tbaa !9
  %843 = sext i32 %842 to i64
  %844 = getelementptr inbounds i16, ptr %841, i64 %843
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %844, i32 noundef 84, i32 noundef 172)
  %845 = load ptr, ptr %34, align 8, !tbaa !5
  %846 = load i32, ptr %44, align 4, !tbaa !9
  %847 = sext i32 %846 to i64
  %848 = getelementptr inbounds i16, ptr %845, i64 %847
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %848, i32 noundef 2, i32 noundef 15)
  %849 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %849, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -27, i32 noundef 142)
  %850 = load i32, ptr %42, align 4, !tbaa !9
  %851 = load i32, ptr %42, align 4, !tbaa !9
  %852 = add nsw i32 %851, %850
  store i32 %852, ptr %42, align 4, !tbaa !9
  %853 = load i32, ptr %43, align 4, !tbaa !9
  %854 = icmp sle i32 %853, 5
  br i1 %854, label %855, label %859

855:                                              ; preds = %836
  %856 = load i32, ptr %44, align 4, !tbaa !9
  %857 = load i32, ptr %44, align 4, !tbaa !9
  %858 = add nsw i32 %857, %856
  store i32 %858, ptr %44, align 4, !tbaa !9
  br label %862

859:                                              ; preds = %836
  %860 = load i32, ptr %44, align 4, !tbaa !9
  %861 = add nsw i32 %860, 1
  store i32 %861, ptr %44, align 4, !tbaa !9
  br label %862

862:                                              ; preds = %859, %855
  br label %863

863:                                              ; preds = %862, %835
  br label %864

864:                                              ; preds = %863
  %865 = load i32, ptr %45, align 4, !tbaa !9
  %866 = add nsw i32 %865, -1
  store i32 %866, ptr %45, align 4, !tbaa !9
  br label %780, !llvm.loop !29

867:                                              ; preds = %783
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %884

868:                                              ; preds = %583
  %869 = load i32, ptr %29, align 4, !tbaa !9
  %870 = sext i32 %869 to i64
  %871 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 %870
  %872 = load i8, ptr %871, align 1, !tbaa !11
  %873 = zext i8 %872 to i32
  %874 = add nsw i32 %873, 2
  %875 = ashr i32 %874, 2
  %876 = trunc i32 %875 to i8
  %877 = load i32, ptr %29, align 4, !tbaa !9
  %878 = sext i32 %877 to i64
  %879 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 %878
  store i8 %876, ptr %879, align 1, !tbaa !11
  %880 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %880, i32 noundef -93, i32 noundef 34)
  %881 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %881, i32 noundef 139, i32 noundef 423)
  %882 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %882, i32 noundef 275, i32 noundef 450)
  %883 = load ptr, ptr %35, align 8, !tbaa !5
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %883, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef -68, i32 noundef 25)
  br label %884

884:                                              ; preds = %868, %867
  %885 = load i32, ptr %9, align 4, !tbaa !9
  %886 = shl i32 %885, 1
  %887 = load i32, ptr %36, align 4, !tbaa !9
  %888 = icmp eq i32 %887, 0
  %889 = zext i1 %888 to i64
  %890 = select i1 %888, i32 1, i32 0
  %891 = or i32 %886, %890
  %892 = and i32 %891, 7
  store i32 %892, ptr %9, align 4, !tbaa !9
  %893 = load i32, ptr %10, align 4, !tbaa !9
  %894 = shl i32 %893, 2
  %895 = load i32, ptr %36, align 4, !tbaa !9
  %896 = icmp slt i32 %895, 3
  br i1 %896, label %897, label %899

897:                                              ; preds = %884
  %898 = load i32, ptr %36, align 4, !tbaa !9
  br label %900

899:                                              ; preds = %884
  br label %900

900:                                              ; preds = %899, %897
  %901 = phi i32 [ %898, %897 ], [ 3, %899 ]
  %902 = or i32 %894, %901
  %903 = and i32 %902, 255
  store i32 %903, ptr %10, align 4, !tbaa !9
  %904 = load i32, ptr %11, align 4, !tbaa !9
  %905 = shl i32 %904, 1
  %906 = load i32, ptr %42, align 4, !tbaa !9
  %907 = icmp slt i32 %906, 3
  %908 = zext i1 %907 to i64
  %909 = select i1 %907, i32 1, i32 0
  %910 = or i32 %905, %909
  %911 = and i32 %910, 15
  store i32 %911, ptr %11, align 4, !tbaa !9
  br label %912

912:                                              ; preds = %923, %900
  %913 = load i32, ptr %42, align 4, !tbaa !9
  %914 = icmp sgt i32 %913, 0
  br i1 %914, label %915, label %926

915:                                              ; preds = %912
  %916 = load i32, ptr %29, align 4, !tbaa !9
  %917 = trunc i32 %916 to i8
  %918 = load ptr, ptr %5, align 8, !tbaa !5
  %919 = load i32, ptr %28, align 4, !tbaa !9
  %920 = add nsw i32 %919, 1
  store i32 %920, ptr %28, align 4, !tbaa !9
  %921 = sext i32 %919 to i64
  %922 = getelementptr inbounds i8, ptr %918, i64 %921
  store i8 %917, ptr %922, align 1, !tbaa !11
  br label %923

923:                                              ; preds = %915
  %924 = load i32, ptr %42, align 4, !tbaa !9
  %925 = add nsw i32 %924, -1
  store i32 %925, ptr %42, align 4, !tbaa !9
  br label %912, !llvm.loop !30

926:                                              ; preds = %912
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %190, !llvm.loop !31

927:                                              ; preds = %194
  %928 = load i32, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #6
  ret i32 %928
}

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 = !{!23, !23, i64 0}
!23 = !{!"short", !7, i64 0}
!24 = distinct !{!24, !13}
!25 = distinct !{!25, !13}
!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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

declare void @_Z19bsc_qlfc_init_modelP21QlfcStatisticalModel1(ptr noundef) local_unnamed_addr #1

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

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

; 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 #3 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 #3 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 #3

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

.preheader382:                                    ; preds = %.preheader382.preheader, %49
  %indvars.iv465 = phi i64 [ 0, %.preheader382.preheader ], [ %indvars.iv.next466, %49 ]
  %.0350399 = phi i32 [ -1, %.preheader382.preheader ], [ %.2347, %49 ]
  %9 = zext i32 %.0350399 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader382, %43
  %.0344398 = phi i32 [ 7, %.preheader382 ], [ %44, %43 ]
  %.0345397 = phi i32 [ 0, %.preheader382 ], [ %.2347, %43 ]
  %10 = add nuw nsw i32 %.0344398, 1
  %11 = shl nuw i32 1, %.0344398
  %.old = lshr i32 %.0350399, %10
  %.old450 = icmp eq i32 %.0345397, %.old
  br label %15

12:                                               ; preds = %43
  %13 = trunc i32 %.2347 to i8
  %14 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %indvars.iv465
  store i8 %13, ptr %14, align 1, !tbaa !5
  %.not = icmp eq i32 %.2347, %.0350399
  br i1 %.not, label %.thread, label %49

15:                                               ; preds = %.preheader, %30
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %30 ]
  %.0336395 = phi i8 [ 0, %.preheader ], [ %.2338, %30 ]
  %.0340394 = phi i8 [ 0, %.preheader ], [ %.2342, %30 ]
  %16 = icmp eq i64 %indvars.iv, %9
  br i1 %16, label %24, label %17

17:                                               ; preds = %15
  %18 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %indvars.iv
  %19 = load i8, ptr %18, align 1, !tbaa !5
  %20 = icmp eq i8 %19, 0
  %21 = trunc nuw nsw i64 %indvars.iv to i32
  %22 = lshr i32 %21, %10
  %23 = icmp eq i32 %.0345397, %22
  %or.cond = select i1 %20, i1 %23, i1 false
  br i1 %or.cond, label %25, label %30

24:                                               ; preds = %15
  br i1 %.old450, label %._crit_edge483, label %30

._crit_edge483:                                   ; preds = %24
  %.pre = trunc nuw nsw i64 %indvars.iv to i32
  br label %25

25:                                               ; preds = %._crit_edge483, %17
  %.pre-phi = phi i32 [ %.pre, %._crit_edge483 ], [ %21, %17 ]
  %26 = and i32 %.pre-phi, %11
  %.not374 = icmp eq i32 %26, 0
  %..0340 = select i1 %.not374, i8 1, i8 %.0340394
  %.0336. = select i1 %.not374, i8 %.0336395, i8 1
  %27 = trunc nuw i8 %..0340 to i1
  br i1 %27, label %28, label %30

28:                                               ; preds = %25
  %29 = trunc nuw i8 %.0336. to i1
  br i1 %29, label %31, label %30

30:                                               ; preds = %17, %25, %28, %24
  %.2342 = phi i8 [ %..0340, %28 ], [ %..0340, %25 ], [ %.0340394, %24 ], [ %.0340394, %17 ]
  %.2338 = phi i8 [ %.0336., %28 ], [ %.0336., %25 ], [ %.0336395, %24 ], [ %.0336395, %17 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %31, label %15, !llvm.loop !8

31:                                               ; preds = %28, %30
  %.3343 = phi i8 [ %.2342, %30 ], [ %..0340, %28 ]
  %.3339 = phi i8 [ %.2338, %30 ], [ %.0336., %28 ]
  %32 = trunc nuw i8 %.3343 to i1
  %33 = trunc i8 %.3339 to i1
  br i1 %32, label %34, label %39

34:                                               ; preds = %31
  br i1 %33, label %36, label %.thread487

.thread487:                                       ; preds = %34
  %.mask489 = and i8 %.3343, 1
  %35 = zext nneg i8 %.mask489 to i32
  %spec.select490 = shl nsw i32 %.0345397, %35
  br label %43

36:                                               ; preds = %34
  %37 = call noundef i32 @_ZN10RangeCoder9DecodeBitEv(ptr noundef nonnull align 8 dereferenceable(56) %3)
  %reass.add376 = shl i32 %.0345397, 1
  %38 = add i32 %37, %reass.add376
  br label %43

39:                                               ; preds = %31
  %.mask = and i8 %.3343, 1
  %40 = zext nneg i8 %.mask to i32
  %spec.select = shl nsw i32 %.0345397, %40
  br i1 %33, label %41, label %43

41:                                               ; preds = %39
  %reass.add375 = shl i32 %spec.select, 1
  %42 = or disjoint i32 %reass.add375, 1
  br label %43

43:                                               ; preds = %.thread487, %39, %41, %36
  %.2347 = phi i32 [ %38, %36 ], [ %42, %41 ], [ %spec.select, %39 ], [ %spec.select490, %.thread487 ]
  %44 = add nsw i32 %.0344398, -1
  %.not486 = icmp eq i32 %.0344398, 0
  br i1 %.not486, label %12, label %.preheader, !llvm.loop !10

.thread:                                          ; preds = %12
  %45 = trunc nuw nsw i64 %indvars.iv465 to i32
  %46 = add nsw i32 %45, -1
  %47 = call range(i32 0, 33) i32 @llvm.ctlz.i32(i32 %46, i1 true)
  %48 = xor i32 %47, 31
  br label %.loopexit384

49:                                               ; preds = %12
  %50 = sext i32 %.2347 to i64
  %51 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %50
  store i8 1, ptr %51, align 1, !tbaa !5
  %indvars.iv.next466 = add nuw nsw i64 %indvars.iv465, 1
  %exitcond468.not = icmp eq i64 %indvars.iv.next466, 256
  br i1 %exitcond468.not, label %.loopexit384, label %.preheader382, !llvm.loop !11

.loopexit384:                                     ; preds = %49, %.thread
  %.2358 = phi i32 [ %48, %.thread ], [ 7, %49 ]
  %52 = icmp sgt i32 %8, 0
  br i1 %52, label %.lr.ph448, label %._crit_edge449

.lr.ph448:                                        ; preds = %.loopexit384
  %53 = getelementptr inbounds i8, ptr %2, i64 2
  %54 = getelementptr inbounds i8, ptr %2, i64 514
  %55 = getelementptr inbounds i8, ptr %2, i64 3457620
  %56 = getelementptr inbounds i8, ptr %2, i64 2110482
  %57 = getelementptr inbounds i8, ptr %2, i64 2110994
  %58 = getelementptr inbounds i8, ptr %2, i64 2242066
  %59 = getelementptr inbounds i8, ptr %2, i64 3478612
  %60 = getelementptr inbounds i8, ptr %2, i64 1026
  %61 = getelementptr inbounds i8, ptr %2, i64 1042
  %62 = getelementptr inbounds i8, ptr %2, i64 5138
  %63 = getelementptr inbounds i8, ptr %2, i64 3474004
  %64 = icmp eq i32 %.2358, 1
  %65 = getelementptr inbounds i8, ptr %2, i64 9234
  %66 = getelementptr inbounds i8, ptr %2, i64 3478100
  %67 = getelementptr inbounds i8, ptr %2, i64 2373138
  %68 = getelementptr inbounds i8, ptr %2, i64 2373140
  %69 = getelementptr inbounds i8, ptr %2, i64 2373652
  %70 = getelementptr inbounds i8, ptr %2, i64 3494996
  %71 = getelementptr inbounds i8, ptr %2, i64 2374164
  %72 = getelementptr inbounds i8, ptr %2, i64 2374228
  %73 = getelementptr inbounds i8, ptr %2, i64 2390612
  %74 = getelementptr inbounds i8, ptr %2, i64 3511380
  %75 = getelementptr inbounds i8, ptr %2, i64 2406996
  %76 = getelementptr inbounds i8, ptr %2, i64 3576916
  %77 = zext nneg i32 %.2358 to i64
  %scevgep = getelementptr inbounds i8, ptr %4, i64 1
  br label %79

.loopexit:                                        ; preds = %.lr.ph440.preheader, %.loopexit379
  %.1334.lcssa = phi i32 [ %.0333445, %.loopexit379 ], [ %291, %.lr.ph440.preheader ]
  %78 = icmp slt i32 %.1334.lcssa, %8
  br i1 %78, label %79, label %._crit_edge449, !llvm.loop !12

._crit_edge449:                                   ; preds = %.loopexit, %.loopexit384
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #9
  ret i32 %8

79:                                               ; preds = %.lr.ph448, %.loopexit
  %.0332446 = phi i32 [ 0, %.lr.ph448 ], [ %279, %.loopexit ]
  %.0333445 = phi i32 [ 0, %.lr.ph448 ], [ %.1334.lcssa, %.loopexit ]
  %.0353444 = phi i32 [ 0, %.lr.ph448 ], [ %283, %.loopexit ]
  %.0355443 = phi i32 [ 0, %.lr.ph448 ], [ %185, %.loopexit ]
  %.0359442 = phi i32 [ 0, %.lr.ph448 ], [ %287, %.loopexit ]
  %80 = load i8, ptr %4, align 64, !tbaa !5
  %81 = zext i8 %80 to i64
  %82 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !5
  %84 = zext i8 %83 to i32
  %85 = call noundef i32 @_ZL16model_rank_stateiii(i32 noundef %.0353444, i32 noundef %.0359442, i32 noundef %84)
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [256 x i16], ptr %53, i64 0, i64 %86
  %88 = getelementptr inbounds [256 x i16], ptr %54, i64 0, i64 %81
  %89 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %55, i64 0, i64 %81
  %90 = icmp slt i32 %.0355443, 32
  br i1 %90, label %91, label %.lr.ph.preheader

91:                                               ; preds = %79
  %92 = load i16, ptr %88, align 2, !tbaa !13
  %93 = sext i16 %92 to i32
  %94 = load i16, ptr %87, align 2, !tbaa !13
  %95 = sext i16 %94 to i32
  %96 = load i16, ptr %2, align 2, !tbaa !13
  %97 = sext i16 %96 to i32
  %98 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %89, i32 noundef %93, i32 noundef %95, i32 noundef %97)
  %99 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %98)
  %.not363 = icmp eq i32 %99, 0
  br i1 %.not363, label %.loopexit380.thread, label %100

100:                                              ; preds = %91
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %87, i32 noundef -111, i32 noundef 31)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %88, i32 noundef 154, i32 noundef 528)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %2, i32 noundef 313, i32 noundef 639)
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %89, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef 53, i32 noundef 49)
  br i1 %64, label %.loopexit381, label %.lr.ph410.preheader

.lr.ph410.preheader:                              ; preds = %100
  %narrow = call i8 @llvm.umax.i8(i8 %83, i8 1)
  %101 = zext i8 %narrow to i64
  %102 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %63, i64 0, i64 %101, i64 1
  %103 = getelementptr inbounds [256 x [8 x i16]], ptr %62, i64 0, i64 %81
  %104 = getelementptr inbounds [256 x [8 x i16]], ptr %61, i64 0, i64 %86
  br label %.lr.ph410

.lr.ph410:                                        ; preds = %.lr.ph410.preheader, %113
  %indvars.iv469 = phi i64 [ 1, %.lr.ph410.preheader ], [ %indvars.iv.next470, %113 ]
  %.0324407 = phi ptr [ %102, %.lr.ph410.preheader ], [ %120, %113 ]
  %.0326406 = phi ptr [ %60, %.lr.ph410.preheader ], [ %116, %113 ]
  %.0328405 = phi ptr [ %103, %.lr.ph410.preheader ], [ %115, %113 ]
  %.0330404 = phi ptr [ %104, %.lr.ph410.preheader ], [ %114, %113 ]
  %105 = load i16, ptr %.0328405, align 2, !tbaa !13
  %106 = sext i16 %105 to i32
  %107 = load i16, ptr %.0330404, align 2, !tbaa !13
  %108 = sext i16 %107 to i32
  %109 = load i16, ptr %.0326406, align 2, !tbaa !13
  %110 = sext i16 %109 to i32
  %111 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %.0324407, i32 noundef %106, i32 noundef %108, i32 noundef %110)
  %112 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %111)
  %.not364 = icmp eq i32 %112, 0
  br i1 %.not364, label %122, label %113

113:                                              ; preds = %.lr.ph410
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0330404, i32 noundef 482, i32 noundef 40)
  %114 = getelementptr inbounds i8, ptr %.0330404, i64 2
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0328405, i32 noundef 200, i32 noundef 133)
  %115 = getelementptr inbounds i8, ptr %.0328405, i64 2
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0326406, i32 noundef 578, i32 noundef 1067)
  %116 = getelementptr inbounds i8, ptr %.0326406, i64 2
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.0324407, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef 144, i32 noundef 848)
  %indvars.iv.next470 = add nuw nsw i64 %indvars.iv469, 1
  %117 = trunc nuw i64 %indvars.iv.next470 to i32
  %118 = call i32 @llvm.umax.i32(i32 %117, i32 %84)
  %119 = zext nneg i32 %118 to i64
  %120 = getelementptr inbounds [8 x [8 x %struct.ProbabilityMixer]], ptr %63, i64 0, i64 %119, i64 %indvars.iv.next470
  %121 = icmp eq i64 %indvars.iv.next470, %77
  br i1 %121, label %.loopexit381, label %.lr.ph410, !llvm.loop !15

122:                                              ; preds = %.lr.ph410
  %123 = trunc nuw nsw i64 %indvars.iv469 to i32
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0330404, i32 noundef -137, i32 noundef 17)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0328405, i32 noundef 61, i32 noundef 192)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.0326406, i32 noundef 54, i32 noundef 1342)
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.0324407, i32 noundef 49, i32 noundef 41, i32 noundef 40, i32 noundef -11, i32 noundef 318)
  br label %.loopexit381

.loopexit381:                                     ; preds = %113, %100, %122
  %.0319386 = phi i32 [ %123, %122 ], [ 1, %100 ], [ %.2358, %113 ]
  %124 = trunc i32 %.0319386 to i8
  store i8 %124, ptr %82, align 1, !tbaa !5
  %125 = zext nneg i32 %.0319386 to i64
  %126 = getelementptr inbounds [8 x %"struct.QlfcStatisticalModel1::Rank::Mantissa"], ptr %65, i64 0, i64 %125
  %127 = getelementptr inbounds i8, ptr %126, i64 512
  %128 = getelementptr inbounds [256 x [256 x i16]], ptr %127, i64 0, i64 %86
  %129 = getelementptr inbounds i8, ptr %126, i64 131584
  %130 = getelementptr inbounds [256 x [256 x i16]], ptr %129, i64 0, i64 %81
  %131 = getelementptr inbounds [8 x %struct.ProbabilityMixer], ptr %66, i64 0, i64 %125
  br label %132

132:                                              ; preds = %.loopexit381, %149
  %.0318414.in = phi i32 [ %.0319386, %.loopexit381 ], [ %.0318414, %149 ]
  %.0320413 = phi i32 [ 1, %.loopexit381 ], [ %.1321, %149 ]
  %.0318414 = add nsw i32 %.0318414.in, -1
  %133 = sext i32 %.0320413 to i64
  %134 = getelementptr inbounds i16, ptr %130, i64 %133
  %135 = load i16, ptr %134, align 2, !tbaa !13
  %136 = sext i16 %135 to i32
  %137 = getelementptr inbounds i16, ptr %128, i64 %133
  %138 = load i16, ptr %137, align 2, !tbaa !13
  %139 = sext i16 %138 to i32
  %140 = getelementptr inbounds i16, ptr %126, i64 %133
  %141 = load i16, ptr %140, align 2, !tbaa !13
  %142 = sext i16 %141 to i32
  %143 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %131, i32 noundef %136, i32 noundef %139, i32 noundef %142)
  %144 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %143)
  %.not372 = icmp eq i32 %144, 0
  %145 = shl i32 %.0320413, 1
  br i1 %.not372, label %148, label %146

146:                                              ; preds = %132
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %137, i32 noundef 114, i32 noundef 24)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %134, i32 noundef -36, i32 noundef 78)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %140, i32 noundef 11, i32 noundef 1181)
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %131, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -271, i32 noundef 15)
  %147 = or disjoint i32 %145, 1
  br label %149

148:                                              ; preds = %132
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %137, i32 noundef -145, i32 noundef 18)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %134, i32 noundef -43, i32 noundef 69)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %140, i32 noundef -2, i32 noundef 1119)
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %131, i32 noundef 263, i32 noundef 175, i32 noundef 17, i32 noundef -203, i32 noundef 20)
  br label %149

149:                                              ; preds = %146, %148
  %.1321 = phi i32 [ %147, %146 ], [ %145, %148 ]
  %150 = icmp sgt i32 %.0318414.in, 1
  br i1 %150, label %132, label %.loopexit380, !llvm.loop !16

.loopexit380.thread:                              ; preds = %91
  store i8 0, ptr %82, align 1, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %87, i32 noundef 1, i32 noundef 57)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %88, i32 noundef 291, i32 noundef 250)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %2, i32 noundef 375, i32 noundef 163)
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %89, i32 noundef 20, i32 noundef 47, i32 noundef 27, i32 noundef -41, i32 noundef 96)
  br label %.lr.ph417.preheader

.lr.ph.preheader:                                 ; preds = %79
  %151 = getelementptr inbounds [256 x [256 x i16]], ptr %57, i64 0, i64 %86
  %152 = getelementptr inbounds [256 x [256 x i16]], ptr %58, i64 0, i64 %81
  br label %.lr.ph

._crit_edge:                                      ; preds = %175
  %153 = call range(i32 0, 33) i32 @llvm.ctlz.i32(i32 %.3323, i1 true)
  %154 = trunc nuw nsw i32 %153 to i8
  %155 = xor i8 %154, 31
  store i8 %155, ptr %82, align 1, !tbaa !5
  br label %.loopexit380

.lr.ph:                                           ; preds = %.lr.ph.preheader, %175
  %.0315403 = phi i32 [ %176, %175 ], [ %.2358, %.lr.ph.preheader ]
  %.0316402 = phi i32 [ %.1317, %175 ], [ 1, %.lr.ph.preheader ]
  %.2322401 = phi i32 [ %.3323, %175 ], [ 0, %.lr.ph.preheader ]
  %156 = sext i32 %.0316402 to i64
  %157 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %59, i64 0, i64 %156
  %158 = getelementptr inbounds i16, ptr %152, i64 %156
  %159 = load i16, ptr %158, align 2, !tbaa !13
  %160 = sext i16 %159 to i32
  %161 = getelementptr inbounds i16, ptr %151, i64 %156
  %162 = load i16, ptr %161, align 2, !tbaa !13
  %163 = sext i16 %162 to i32
  %164 = getelementptr inbounds i16, ptr %56, i64 %156
  %165 = load i16, ptr %164, align 2, !tbaa !13
  %166 = sext i16 %165 to i32
  %167 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %157, i32 noundef %160, i32 noundef %163, i32 noundef %166)
  %168 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %167)
  %.not361 = icmp eq i32 %168, 0
  %169 = shl i32 %.0316402, 1
  br i1 %.not361, label %173, label %170

170:                                              ; preds = %.lr.ph
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %161, i32 noundef 318, i32 noundef 42)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %158, i32 noundef 1116, i32 noundef 246)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %164, i32 noundef -2, i32 noundef 1110)
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %157, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -129, i32 noundef 20)
  %171 = or disjoint i32 %169, 1
  %reass.add362 = shl i32 %.2322401, 1
  %172 = or disjoint i32 %reass.add362, 1
  br label %175

173:                                              ; preds = %.lr.ph
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %161, i32 noundef -99, i32 noundef 32)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %158, i32 noundef 17, i32 noundef 101)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %164, i32 noundef 22, i32 noundef 964)
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %157, i32 noundef 480, i32 noundef 202, i32 noundef 17, i32 noundef -194, i32 noundef 21)
  %174 = shl nsw i32 %.2322401, 1
  br label %175

175:                                              ; preds = %170, %173
  %.3323 = phi i32 [ %172, %170 ], [ %174, %173 ]
  %.1317 = phi i32 [ %171, %170 ], [ %169, %173 ]
  %176 = add nsw i32 %.0315403, -1
  %177 = icmp sgt i32 %.0315403, 0
  br i1 %177, label %.lr.ph, label %._crit_edge, !llvm.loop !17

.loopexit380:                                     ; preds = %149, %._crit_edge
  %.4 = phi i32 [ %.3323, %._crit_edge ], [ %.1321, %149 ]
  %178 = icmp sgt i32 %.4, 0
  br i1 %178, label %.lr.ph417.preheader, label %._crit_edge418

.lr.ph417.preheader:                              ; preds = %.loopexit380.thread, %.loopexit380
  %.4493 = phi i32 [ 1, %.loopexit380.thread ], [ %.4, %.loopexit380 ]
  %179 = zext nneg i32 %.4493 to i64
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 64 dereferenceable(1) %4, ptr noundef nonnull align 1 dereferenceable(1) %scevgep, i64 %179, i1 false), !tbaa !5
  br label %._crit_edge418

._crit_edge418:                                   ; preds = %.lr.ph417.preheader, %.loopexit380
  %.4492 = phi i32 [ %.4493, %.lr.ph417.preheader ], [ %.4, %.loopexit380 ]
  %180 = sext i32 %.4492 to i64
  %181 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %180
  store i8 %80, ptr %181, align 1, !tbaa !5
  %182 = mul nsw i32 %.0355443, 124
  %183 = shl nsw i32 %.4492, 2
  %184 = add nsw i32 %183, %182
  %185 = ashr i32 %184, 7
  %186 = add nsw i32 %.4492, -1
  %187 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %81
  %188 = load i8, ptr %187, align 1, !tbaa !5
  %189 = zext i8 %188 to i32
  %190 = call noundef i32 @_ZL15model_run_stateiiii(i32 noundef %.0332446, i32 noundef %.0359442, i32 noundef %186, i32 noundef %189)
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [256 x i16], ptr %68, i64 0, i64 %191
  %193 = getelementptr inbounds [256 x i16], ptr %69, i64 0, i64 %81
  %194 = getelementptr inbounds [256 x %struct.ProbabilityMixer], ptr %70, i64 0, i64 %81
  %195 = load i16, ptr %193, align 2, !tbaa !13
  %196 = sext i16 %195 to i32
  %197 = load i16, ptr %192, align 2, !tbaa !13
  %198 = sext i16 %197 to i32
  %199 = load i16, ptr %67, align 2, !tbaa !13
  %200 = sext i16 %199 to i32
  %201 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %194, i32 noundef %196, i32 noundef %198, i32 noundef %200)
  %202 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %201)
  %.not365 = icmp eq i32 %202, 0
  br i1 %.not365, label %271, label %203

203:                                              ; preds = %._crit_edge418
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %192, i32 noundef -4, i32 noundef 51)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %193, i32 noundef 244, i32 noundef 162)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %67, i32 noundef -6, i32 noundef 579)
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %194, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef 1, i32 noundef 64)
  %204 = getelementptr inbounds [256 x [32 x i16]], ptr %72, i64 0, i64 %191
  %205 = getelementptr inbounds [256 x [32 x i16]], ptr %73, i64 0, i64 %81
  %narrow366 = call i8 @llvm.umax.i8(i8 %188, i8 1)
  %206 = zext i8 %narrow366 to i64
  %207 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %74, i64 0, i64 %206, i64 1
  %208 = load i16, ptr %205, align 2, !tbaa !13
  %209 = sext i16 %208 to i32
  %210 = load i16, ptr %204, align 2, !tbaa !13
  %211 = sext i16 %210 to i32
  %212 = load i16, ptr %71, align 2, !tbaa !13
  %213 = sext i16 %212 to i32
  %214 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %207, i32 noundef %209, i32 noundef %211, i32 noundef %213)
  %215 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %214)
  %.not367419 = icmp eq i32 %215, 0
  br i1 %.not367419, label %._crit_edge427, label %.lr.ph426

.lr.ph426:                                        ; preds = %203, %.lr.ph426
  %indvars.iv475 = phi i64 [ %indvars.iv.next476, %.lr.ph426 ], [ 1, %203 ]
  %.1325423 = phi ptr [ %222, %.lr.ph426 ], [ %207, %203 ]
  %.1327422 = phi ptr [ %218, %.lr.ph426 ], [ %71, %203 ]
  %.1329421 = phi ptr [ %217, %.lr.ph426 ], [ %205, %203 ]
  %.1331420 = phi ptr [ %216, %.lr.ph426 ], [ %204, %203 ]
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1331420, i32 noundef 43, i32 noundef 45)
  %216 = getelementptr inbounds i8, ptr %.1331420, i64 2
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1329421, i32 noundef 30, i32 noundef 324)
  %217 = getelementptr inbounds i8, ptr %.1329421, i64 2
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1327422, i32 noundef 109, i32 noundef 867)
  %218 = getelementptr inbounds i8, ptr %.1327422, i64 2
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.1325423, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef 61, i32 noundef 73)
  %indvars.iv.next476 = add nuw nsw i64 %indvars.iv475, 1
  %219 = trunc nuw i64 %indvars.iv.next476 to i32
  %220 = call i32 @llvm.umax.i32(i32 %219, i32 %189)
  %221 = zext nneg i32 %220 to i64
  %222 = getelementptr inbounds [32 x [32 x %struct.ProbabilityMixer]], ptr %74, i64 0, i64 %221, i64 %indvars.iv.next476
  %223 = load i16, ptr %217, align 2, !tbaa !13
  %224 = sext i16 %223 to i32
  %225 = load i16, ptr %216, align 2, !tbaa !13
  %226 = sext i16 %225 to i32
  %227 = load i16, ptr %218, align 2, !tbaa !13
  %228 = sext i16 %227 to i32
  %229 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %222, i32 noundef %224, i32 noundef %226, i32 noundef %228)
  %230 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %229)
  %.not367 = icmp eq i32 %230, 0
  br i1 %.not367, label %._crit_edge427, label %.lr.ph426, !llvm.loop !18

._crit_edge427:                                   ; preds = %.lr.ph426, %203
  %.1331.lcssa = phi ptr [ %204, %203 ], [ %216, %.lr.ph426 ]
  %.1329.lcssa = phi ptr [ %205, %203 ], [ %217, %.lr.ph426 ]
  %.1327.lcssa = phi ptr [ %71, %203 ], [ %218, %.lr.ph426 ]
  %.1325.lcssa = phi ptr [ %207, %203 ], [ %222, %.lr.ph426 ]
  %.0311.lcssa = phi i32 [ 1, %203 ], [ %219, %.lr.ph426 ]
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1331.lcssa, i32 noundef -116, i32 noundef 31)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1329.lcssa, i32 noundef 165, i32 noundef 222)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %.1327.lcssa, i32 noundef 315, i32 noundef 857)
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %.1325.lcssa, i32 noundef 35, i32 noundef 37, i32 noundef 42, i32 noundef -14, i32 noundef 215)
  %231 = mul nuw nsw i32 %.0311.lcssa, 3
  %232 = add nuw nsw i32 %189, 3
  %233 = add nuw nsw i32 %232, %231
  %234 = lshr i32 %233, 2
  %235 = trunc i32 %234 to i8
  store i8 %235, ptr %187, align 1, !tbaa !5
  %236 = zext nneg i32 %.0311.lcssa to i64
  %237 = getelementptr inbounds [32 x %"struct.QlfcStatisticalModel1::Run::Mantissa"], ptr %75, i64 0, i64 %236
  %238 = getelementptr inbounds i8, ptr %237, i64 64
  %239 = getelementptr inbounds [256 x [32 x i16]], ptr %238, i64 0, i64 %191
  %240 = getelementptr inbounds i8, ptr %237, i64 16448
  %241 = getelementptr inbounds [256 x [32 x i16]], ptr %240, i64 0, i64 %81
  %242 = getelementptr inbounds [32 x %struct.ProbabilityMixer], ptr %76, i64 0, i64 %236
  %243 = icmp ult i32 %.0311.lcssa, 6
  br label %244

244:                                              ; preds = %._crit_edge427, %269
  %.0436.in = phi i32 [ %.0311.lcssa, %._crit_edge427 ], [ %.0436, %269 ]
  %.0310435 = phi i32 [ 1, %._crit_edge427 ], [ %.1, %269 ]
  %.0312434 = phi i32 [ 1, %._crit_edge427 ], [ %.1313, %269 ]
  %.0436 = add nsw i32 %.0436.in, -1
  %245 = sext i32 %.0310435 to i64
  %246 = getelementptr inbounds i16, ptr %241, i64 %245
  %247 = load i16, ptr %246, align 2, !tbaa !13
  %248 = sext i16 %247 to i32
  %249 = getelementptr inbounds i16, ptr %239, i64 %245
  %250 = load i16, ptr %249, align 2, !tbaa !13
  %251 = sext i16 %250 to i32
  %252 = getelementptr inbounds i16, ptr %237, i64 %245
  %253 = load i16, ptr %252, align 2, !tbaa !13
  %254 = sext i16 %253 to i32
  %255 = call noundef i32 @_ZN16ProbabilityMixer5MixupEiii(ptr noundef nonnull align 4 dereferenceable(64) %242, i32 noundef %248, i32 noundef %251, i32 noundef %254)
  %256 = call noundef i32 @_ZN10RangeCoder9DecodeBitILi12EEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %255)
  %.not369 = icmp eq i32 %256, 0
  %257 = shl i32 %.0312434, 1
  br i1 %.not369, label %264, label %258

258:                                              ; preds = %244
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %249, i32 noundef -141, i32 noundef 21)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %246, i32 noundef 37, i32 noundef 263)
  call void @_ZN18ProbabilityCounter10UpdateBit1ERsii(ptr noundef nonnull align 2 dereferenceable(2) %252, i32 noundef -197, i32 noundef 20)
  call void @_ZN16ProbabilityMixer10UpdateBit1Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %242, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -146, i32 noundef 27)
  %259 = or disjoint i32 %257, 1
  br i1 %243, label %260, label %262

260:                                              ; preds = %258
  %reass.add371 = shl i32 %.0310435, 1
  %261 = or disjoint i32 %reass.add371, 1
  br label %269

262:                                              ; preds = %258
  %263 = add nsw i32 %.0310435, 1
  br label %269

264:                                              ; preds = %244
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %249, i32 noundef -176, i32 noundef 14)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %246, i32 noundef 84, i32 noundef 172)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %252, i32 noundef 2, i32 noundef 15)
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %242, i32 noundef 51, i32 noundef 44, i32 noundef 80, i32 noundef -27, i32 noundef 142)
  br i1 %243, label %265, label %267

265:                                              ; preds = %264
  %266 = shl nsw i32 %.0310435, 1
  br label %269

267:                                              ; preds = %264
  %268 = add nsw i32 %.0310435, 1
  br label %269

269:                                              ; preds = %262, %260, %267, %265
  %.1313 = phi i32 [ %259, %260 ], [ %259, %262 ], [ %257, %265 ], [ %257, %267 ]
  %.1 = phi i32 [ %261, %260 ], [ %263, %262 ], [ %266, %265 ], [ %268, %267 ]
  %270 = icmp sgt i32 %.0436.in, 1
  br i1 %270, label %244, label %.loopexit379, !llvm.loop !19

271:                                              ; preds = %._crit_edge418
  %272 = zext i8 %188 to i16
  %273 = add nuw nsw i16 %272, 2
  %274 = lshr i16 %273, 2
  %275 = trunc nuw nsw i16 %274 to i8
  store i8 %275, ptr %187, align 1, !tbaa !5
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %192, i32 noundef -93, i32 noundef 34)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %193, i32 noundef 139, i32 noundef 423)
  call void @_ZN18ProbabilityCounter10UpdateBit0ERsii(ptr noundef nonnull align 2 dereferenceable(2) %67, i32 noundef 275, i32 noundef 450)
  call void @_ZN16ProbabilityMixer10UpdateBit0Eiiiii(ptr noundef nonnull align 4 dereferenceable(64) %194, i32 noundef 15, i32 noundef 50, i32 noundef 78, i32 noundef -68, i32 noundef 25)
  br label %.loopexit379

.loopexit379:                                     ; preds = %269, %271
  %.2 = phi i32 [ 1, %271 ], [ %.1313, %269 ]
  %276 = shl nuw nsw i32 %.0332446, 1
  %277 = icmp eq i32 %186, 0
  %278 = zext i1 %277 to i32
  %.masked = and i32 %276, 6
  %279 = or disjoint i32 %.masked, %278
  %280 = shl nuw nsw i32 %.0353444, 2
  %281 = call i32 @llvm.smin.i32(i32 %186, i32 3)
  %282 = or i32 %281, %280
  %283 = and i32 %282, 255
  %284 = shl nuw nsw i32 %.0359442, 1
  %285 = icmp slt i32 %.2, 3
  %286 = zext i1 %285 to i32
  %.masked368 = and i32 %284, 14
  %287 = or disjoint i32 %.masked368, %286
  %288 = icmp sgt i32 %.2, 0
  br i1 %288, label %.lr.ph440.preheader, label %.loopexit

.lr.ph440.preheader:                              ; preds = %.loopexit379
  %289 = sext i32 %.0333445 to i64
  %scevgep478 = getelementptr i8, ptr %1, i64 %289
  %290 = zext nneg i32 %.2 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %scevgep478, i8 %80, i64 %290, i1 false), !tbaa !5
  %291 = add i32 %.0333445, %.2
  br label %.loopexit
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #8

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


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