; LLVM IR from mncoppola/rpef :: utilities_src/squashfs2.1/lzma/C/7zip/Compress/LZMA (LZMAEncoder)

; 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.NCompress::NLZMA::CEncoder" = type <{ %struct.ICompressCoder, %struct.ICompressSetOutStream, %struct.ICompressSetCoderProperties, %struct.ICompressWriteCoderProperties, %"class.NCompress::NLZMA::CBaseState", %class.CMyUnknownImp, [4096 x %"struct.NCompress::NLZMA::COptimal"], %class.CMyComPtr.5, %"class.NCompress::NRangeCoder::CEncoder", [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], [4 x %"class.NCompress::NRangeCoder::CBitTreeEncoder.7"], [114 x %"class.NCompress::NRangeCoder::CBitEncoder"], %"class.NCompress::NRangeCoder::CBitTreeEncoder.8", %"class.NCompress::NLZMA::NLength::CPriceTableEncoder", %"class.NCompress::NLZMA::NLength::CPriceTableEncoder", %"class.NCompress::NLZMA::CLiteralEncoder", [274 x i32], i8, i8, [2 x i8], i32, i32, i32, i32, i32, i8, [3 x i8], [4 x [64 x i32]], [4 x [128 x i32]], [16 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i8, [7 x i8], ptr, i32, i8, i8, [2 x i8] }>
%struct.ICompressCoder = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.ICompressSetOutStream = type { %struct.IUnknown }
%struct.ICompressSetCoderProperties = type { %struct.IUnknown }
%struct.ICompressWriteCoderProperties = type { %struct.IUnknown }
%"class.NCompress::NLZMA::CBaseState" = type { %"class.NCompress::NLZMA::CState", i8, [4 x i32] }
%"class.NCompress::NLZMA::CState" = type { i8 }
%class.CMyUnknownImp = type { i32 }
%"struct.NCompress::NLZMA::COptimal" = type { %"class.NCompress::NLZMA::CState", i8, i8, i32, i32, i32, i32, i32, [4 x i32] }
%class.CMyComPtr.5 = type { ptr }
%"class.NCompress::NRangeCoder::CEncoder" = type { i32, i8, i64, i32, [4 x i8], %class.COutBuffer }
%class.COutBuffer = type <{ ptr, i32, i32, i32, i32, %class.CMyComPtr.6, i64, ptr, i8, [7 x i8] }>
%class.CMyComPtr.6 = type { ptr }
%"class.NCompress::NRangeCoder::CBitEncoder" = type { %"class.NCompress::NRangeCoder::CBitModel" }
%"class.NCompress::NRangeCoder::CBitModel" = type { i32 }
%"class.NCompress::NRangeCoder::CBitTreeEncoder.7" = type { [64 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NRangeCoder::CBitTreeEncoder.8" = type { [16 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NLZMA::NLength::CPriceTableEncoder" = type { %"class.NCompress::NLZMA::NLength::CEncoder", [272 x [16 x i32]], i32, [16 x i32] }
%"class.NCompress::NLZMA::NLength::CEncoder" = type { %"class.NCompress::NRangeCoder::CBitEncoder", %"class.NCompress::NRangeCoder::CBitEncoder", [16 x %"class.NCompress::NRangeCoder::CBitTreeEncoder"], [16 x %"class.NCompress::NRangeCoder::CBitTreeEncoder"], %"class.NCompress::NRangeCoder::CBitTreeEncoder.4" }
%"class.NCompress::NRangeCoder::CBitTreeEncoder" = type { [8 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NRangeCoder::CBitTreeEncoder.4" = type { [256 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NLZMA::CLiteralEncoder" = type <{ ptr, i32, i32, i32, [4 x i8] }>

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NCompress5NLZMA8CEncoder19FillDistancesPricesEv(ptr noundef nonnull align 8 dereferenceable(210678) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %86, %1
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = icmp ult i32 %10, 4
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %89

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

14:                                               ; preds = %33, %13
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = icmp ult i32 %15, 4
  br i1 %16, label %17, label %36

17:                                               ; preds = %14
  %18 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 32
  %19 = load i32, ptr %3, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds [4 x [64 x i32]], ptr %18, i64 0, i64 %20
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds [64 x i32], ptr %21, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 33
  %27 = load i32, ptr %3, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [4 x [128 x i32]], ptr %26, i64 0, i64 %28
  %30 = load i32, ptr %4, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [128 x i32], ptr %29, i64 0, i64 %31
  store i32 %25, ptr %32, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %17
  %34 = load i32, ptr %4, align 4, !tbaa !9
  %35 = add i32 %34, 1
  store i32 %35, ptr %4, align 4, !tbaa !9
  br label %14, !llvm.loop !11

36:                                               ; preds = %14
  br label %37

37:                                               ; preds = %82, %36
  %38 = load i32, ptr %4, align 4, !tbaa !9
  %39 = icmp ult i32 %38, 128
  br i1 %39, label %40, label %85

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = call noundef i32 @_ZN9NCompress5NLZMA10GetPosSlotEj(i32 noundef %41)
  store i32 %42, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = lshr i32 %43, 1
  %45 = sub i32 %44, 1
  store i32 %45, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = and i32 %46, 1
  %48 = or i32 2, %47
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = shl i32 %48, %49
  store i32 %50, ptr %7, align 4, !tbaa !9
  %51 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 32
  %52 = load i32, ptr %3, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds [4 x [64 x i32]], ptr %51, i64 0, i64 %53
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [64 x i32], ptr %54, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 16
  %60 = getelementptr inbounds [114 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %59, i64 0, i64 0
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %60, i64 %62
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = sub i64 0, %65
  %67 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %63, i64 %66
  %68 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %67, i64 -1
  %69 = load i32, ptr %6, align 4, !tbaa !9
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = sub i32 %70, %71
  %73 = call noundef i32 @_ZN9NCompress11NRangeCoder22ReverseBitTreeGetPriceILi5EEEjPNS0_11CBitEncoderIXT_EEEjj(ptr noundef %68, i32 noundef %69, i32 noundef %72)
  %74 = add i32 %58, %73
  %75 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 33
  %76 = load i32, ptr %3, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds [4 x [128 x i32]], ptr %75, i64 0, i64 %77
  %79 = load i32, ptr %4, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds [128 x i32], ptr %78, i64 0, i64 %80
  store i32 %74, ptr %81, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %82

82:                                               ; preds = %40
  %83 = load i32, ptr %4, align 4, !tbaa !9
  %84 = add i32 %83, 1
  store i32 %84, ptr %4, align 4, !tbaa !9
  br label %37, !llvm.loop !13

85:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %3, align 4, !tbaa !9
  %88 = add i32 %87, 1
  store i32 %88, ptr %3, align 4, !tbaa !9
  br label %9, !llvm.loop !14

89:                                               ; preds = %12
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9NCompress5NLZMA10GetPosSlotEj(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9NCompress11NRangeCoder22ReverseBitTreeGetPriceILi5EEEjPNS0_11CBitEncoderIXT_EEEjj(ptr noundef, i32 noundef, i32 noundef) #3

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


; 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.NCompress::NRangeCoder::CBitEncoder" = type { %"class.NCompress::NRangeCoder::CBitModel" }
%"class.NCompress::NRangeCoder::CBitModel" = type { i32 }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN9NCompress5NLZMA8CEncoder19FillDistancesPricesEv(ptr noundef nonnull align 8 dereferenceable(210678) %0) local_unnamed_addr #0 align 2 {
.lr.ph:
  %1 = getelementptr inbounds i8, ptr %0, i64 207468
  %2 = getelementptr inbounds i8, ptr %0, i64 208492
  %3 = getelementptr inbounds i8, ptr %0, i64 166736
  %4 = load <4 x i32>, ptr %1, align 4, !tbaa !5
  store <4 x i32> %4, ptr %2, align 4, !tbaa !5
  br label %5

5:                                                ; preds = %.lr.ph, %5
  %indvars.iv = phi i64 [ 4, %.lr.ph ], [ %indvars.iv.next, %5 ]
  %6 = trunc nuw nsw i64 %indvars.iv to i32
  %7 = tail call noundef i32 @_ZN9NCompress5NLZMA10GetPosSlotEj(i32 noundef %6)
  %8 = lshr i32 %7, 1
  %9 = add nsw i32 %8, -1
  %10 = and i32 %7, 1
  %11 = or disjoint i32 %10, 2
  %12 = shl i32 %11, %9
  %13 = zext i32 %7 to i64
  %14 = getelementptr inbounds [4 x [64 x i32]], ptr %1, i64 0, i64 0, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = zext i32 %12 to i64
  %17 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %3, i64 %16
  %18 = sub nsw i64 0, %13
  %19 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %17, i64 %18
  %20 = getelementptr inbounds i8, ptr %19, i64 -4
  %21 = sub i32 %6, %12
  %22 = tail call noundef i32 @_ZN9NCompress11NRangeCoder22ReverseBitTreeGetPriceILi5EEEjPNS0_11CBitEncoderIXT_EEEjj(ptr noundef nonnull %20, i32 noundef %9, i32 noundef %21)
  %23 = add i32 %22, %15
  %24 = getelementptr inbounds [4 x [128 x i32]], ptr %2, i64 0, i64 0, i64 %indvars.iv
  store i32 %23, ptr %24, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 128
  br i1 %exitcond.not, label %.lr.ph.1, label %5, !llvm.loop !9

.lr.ph.1:                                         ; preds = %5
  %25 = getelementptr inbounds i8, ptr %0, i64 207724
  %26 = getelementptr inbounds i8, ptr %0, i64 209004
  %27 = load <4 x i32>, ptr %25, align 4, !tbaa !5
  store <4 x i32> %27, ptr %26, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %28, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ 4, %.lr.ph.1 ], [ %indvars.iv.next.1, %28 ]
  %29 = trunc nuw nsw i64 %indvars.iv.1 to i32
  %30 = tail call noundef i32 @_ZN9NCompress5NLZMA10GetPosSlotEj(i32 noundef %29)
  %31 = lshr i32 %30, 1
  %32 = add nsw i32 %31, -1
  %33 = and i32 %30, 1
  %34 = or disjoint i32 %33, 2
  %35 = shl i32 %34, %32
  %36 = zext i32 %30 to i64
  %37 = getelementptr inbounds [4 x [64 x i32]], ptr %1, i64 0, i64 1, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = zext i32 %35 to i64
  %40 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %3, i64 %39
  %41 = sub nsw i64 0, %36
  %42 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %40, i64 %41
  %43 = getelementptr inbounds i8, ptr %42, i64 -4
  %44 = sub i32 %29, %35
  %45 = tail call noundef i32 @_ZN9NCompress11NRangeCoder22ReverseBitTreeGetPriceILi5EEEjPNS0_11CBitEncoderIXT_EEEjj(ptr noundef nonnull %43, i32 noundef %32, i32 noundef %44)
  %46 = add i32 %45, %38
  %47 = getelementptr inbounds [4 x [128 x i32]], ptr %2, i64 0, i64 1, i64 %indvars.iv.1
  store i32 %46, ptr %47, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 128
  br i1 %exitcond.1.not, label %.lr.ph.2, label %28, !llvm.loop !9

.lr.ph.2:                                         ; preds = %28
  %48 = getelementptr inbounds i8, ptr %0, i64 207980
  %49 = getelementptr inbounds i8, ptr %0, i64 209516
  %50 = load <4 x i32>, ptr %48, align 4, !tbaa !5
  store <4 x i32> %50, ptr %49, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %51, %.lr.ph.2
  %indvars.iv.2 = phi i64 [ 4, %.lr.ph.2 ], [ %indvars.iv.next.2, %51 ]
  %52 = trunc nuw nsw i64 %indvars.iv.2 to i32
  %53 = tail call noundef i32 @_ZN9NCompress5NLZMA10GetPosSlotEj(i32 noundef %52)
  %54 = lshr i32 %53, 1
  %55 = add nsw i32 %54, -1
  %56 = and i32 %53, 1
  %57 = or disjoint i32 %56, 2
  %58 = shl i32 %57, %55
  %59 = zext i32 %53 to i64
  %60 = getelementptr inbounds [4 x [64 x i32]], ptr %1, i64 0, i64 2, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = zext i32 %58 to i64
  %63 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %3, i64 %62
  %64 = sub nsw i64 0, %59
  %65 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %63, i64 %64
  %66 = getelementptr inbounds i8, ptr %65, i64 -4
  %67 = sub i32 %52, %58
  %68 = tail call noundef i32 @_ZN9NCompress11NRangeCoder22ReverseBitTreeGetPriceILi5EEEjPNS0_11CBitEncoderIXT_EEEjj(ptr noundef nonnull %66, i32 noundef %55, i32 noundef %67)
  %69 = add i32 %68, %61
  %70 = getelementptr inbounds [4 x [128 x i32]], ptr %2, i64 0, i64 2, i64 %indvars.iv.2
  store i32 %69, ptr %70, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, 128
  br i1 %exitcond.2.not, label %.lr.ph.3, label %51, !llvm.loop !9

.lr.ph.3:                                         ; preds = %51
  %71 = getelementptr inbounds i8, ptr %0, i64 208236
  %72 = getelementptr inbounds i8, ptr %0, i64 210028
  %73 = load <4 x i32>, ptr %71, align 4, !tbaa !5
  store <4 x i32> %73, ptr %72, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %74, %.lr.ph.3
  %indvars.iv.3 = phi i64 [ 4, %.lr.ph.3 ], [ %indvars.iv.next.3, %74 ]
  %75 = trunc nuw nsw i64 %indvars.iv.3 to i32
  %76 = tail call noundef i32 @_ZN9NCompress5NLZMA10GetPosSlotEj(i32 noundef %75)
  %77 = lshr i32 %76, 1
  %78 = add nsw i32 %77, -1
  %79 = and i32 %76, 1
  %80 = or disjoint i32 %79, 2
  %81 = shl i32 %80, %78
  %82 = zext i32 %76 to i64
  %83 = getelementptr inbounds [4 x [64 x i32]], ptr %1, i64 0, i64 3, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = zext i32 %81 to i64
  %86 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %3, i64 %85
  %87 = sub nsw i64 0, %82
  %88 = getelementptr inbounds %"class.NCompress::NRangeCoder::CBitEncoder", ptr %86, i64 %87
  %89 = getelementptr inbounds i8, ptr %88, i64 -4
  %90 = sub i32 %75, %81
  %91 = tail call noundef i32 @_ZN9NCompress11NRangeCoder22ReverseBitTreeGetPriceILi5EEEjPNS0_11CBitEncoderIXT_EEEjj(ptr noundef nonnull %89, i32 noundef %78, i32 noundef %90)
  %92 = add i32 %91, %84
  %93 = getelementptr inbounds [4 x [128 x i32]], ptr %2, i64 0, i64 3, i64 %indvars.iv.3
  store i32 %92, ptr %93, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next.3, 128
  br i1 %exitcond.3.not, label %._crit_edge.3, label %74, !llvm.loop !9

._crit_edge.3:                                    ; preds = %74
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9NCompress5NLZMA10GetPosSlotEj(i32 noundef) local_unnamed_addr #1

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

attributes #0 = { 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 #1 = { 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" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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