; LLVM IR from pixelsdb/mini-pixels :: pixels-core/lib/encoding/RunLenIntDecoder.ll (ZN16RunLenIntDecoder15readDeltaValuesEi)

; 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.RunLenIntDecoder = type <{ %class.Decoder, ptr, i8, [3 x i8], i32, i32, [4 x i8], %"class.std::shared_ptr", %class.EncodingUtils, i8, [7 x i8] }>
%class.Decoder = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.EncodingUtils = type { ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [100 x i8], align 1
@__PRETTY_FUNCTION__._ZN16RunLenIntDecoder15readDeltaValuesEi = external hidden unnamed_addr constant [44 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

declare noundef zeroext i8 @_ZN10ByteBuffer3getEv(ptr noundef nonnull align 8 dereferenceable(62)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16RunLenIntDecoder15readDeltaValuesEi(ptr noundef nonnull align 8 dereferenceable(65) %0, i32 noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %13 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  %14 = load i32, ptr %4, align 4, !tbaa !9
  %15 = lshr i32 %14, 1
  %16 = and i32 %15, 31
  %17 = trunc i32 %16 to i8
  store i8 %17, ptr %5, align 1, !tbaa !11
  %18 = load i8, ptr %5, align 1, !tbaa !11
  %19 = zext i8 %18 to i32
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %27

21:                                               ; preds = %2
  %22 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 8
  %23 = load i8, ptr %5, align 1, !tbaa !11
  %24 = zext i8 %23 to i32
  %25 = call noundef i32 @_ZN13EncodingUtils14decodeBitWidthEi(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %24)
  %26 = trunc i32 %25 to i8
  store i8 %26, ptr %5, align 1, !tbaa !11
  br label %27

27:                                               ; preds = %21, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %28 = load i32, ptr %4, align 4, !tbaa !9
  %29 = and i32 %28, 1
  %30 = shl i32 %29, 8
  store i32 %30, ptr %6, align 4, !tbaa !9
  %31 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 7
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #5
  %33 = call noundef zeroext i8 @_ZN10ByteBuffer3getEv(ptr noundef nonnull align 8 dereferenceable(62) %32)
  %34 = zext i8 %33 to i32
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = or i32 %35, %34
  store i32 %36, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !12
  %37 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 2
  %38 = load i8, ptr %37, align 8, !tbaa !14, !range !22, !noundef !23
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %43

40:                                               ; preds = %27
  %41 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 7
  %42 = call noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %13, ptr noundef nonnull align 8 dereferenceable(16) %41)
  store i64 %42, ptr %7, align 8, !tbaa !12
  br label %46

43:                                               ; preds = %27
  %44 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 7
  %45 = call noundef i64 @_ZN16RunLenIntDecoder10readVulongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %13, ptr noundef nonnull align 8 dereferenceable(16) %44)
  store i64 %45, ptr %7, align 8, !tbaa !12
  br label %46

46:                                               ; preds = %43, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %47 = load i64, ptr %7, align 8, !tbaa !12
  store i64 %47, ptr %8, align 8, !tbaa !12
  %48 = load i64, ptr %7, align 8, !tbaa !12
  %49 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !24
  %51 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %52 = load i32, ptr %51, align 4, !tbaa !25
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !25
  %54 = sext i32 %52 to i64
  %55 = getelementptr inbounds i64, ptr %50, i64 %54
  store i64 %48, ptr %55, align 8, !tbaa !12
  %56 = load i8, ptr %5, align 1, !tbaa !11
  %57 = zext i8 %56 to i32
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %130

59:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %60 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 7
  %61 = call noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %13, ptr noundef nonnull align 8 dereferenceable(16) %60)
  store i64 %61, ptr %9, align 8, !tbaa !12
  %62 = load i64, ptr %9, align 8, !tbaa !12
  %63 = icmp eq i64 %62, 0
  br i1 %63, label %64, label %99

64:                                               ; preds = %59
  %65 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 9
  store i8 1, ptr %65, align 8, !tbaa !26
  %66 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %67 = load i32, ptr %66, align 4, !tbaa !25
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %64
  br label %72

70:                                               ; preds = %64
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 175, ptr noundef @__PRETTY_FUNCTION__._ZN16RunLenIntDecoder15readDeltaValuesEi) #6
  unreachable

71:                                               ; No predecessors!
  br label %72

72:                                               ; preds = %71, %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %91, %72
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %94

78:                                               ; preds = %73
  %79 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !24
  %81 = getelementptr inbounds i64, ptr %80, i64 0
  %82 = load i64, ptr %81, align 8, !tbaa !12
  %83 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  %85 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %86 = load i32, ptr %85, align 4, !tbaa !25
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = add nsw i32 %86, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i64, ptr %84, i64 %89
  store i64 %82, ptr %90, align 8, !tbaa !12
  br label %91

91:                                               ; preds = %78
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %10, align 4, !tbaa !9
  br label %73, !llvm.loop !27

94:                                               ; preds = %77
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %97 = load i32, ptr %96, align 4, !tbaa !25
  %98 = add nsw i32 %97, %95
  store i32 %98, ptr %96, align 4, !tbaa !25
  br label %129

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

100:                                              ; preds = %125, %99
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %128

105:                                              ; preds = %100
  %106 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %109 = load i32, ptr %108, align 4, !tbaa !25
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i64, ptr %107, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !12
  %114 = load i64, ptr %9, align 8, !tbaa !12
  %115 = add nsw i64 %113, %114
  %116 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !24
  %118 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %119 = load i32, ptr %118, align 4, !tbaa !25
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i64, ptr %117, i64 %120
  store i64 %115, ptr %121, align 8, !tbaa !12
  %122 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %123 = load i32, ptr %122, align 4, !tbaa !25
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %122, align 4, !tbaa !25
  br label %125

125:                                              ; preds = %105
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %11, align 4, !tbaa !9
  br label %100, !llvm.loop !29

128:                                              ; preds = %104
  br label %129

129:                                              ; preds = %128, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %213

130:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %131 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 7
  %132 = call noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %13, ptr noundef nonnull align 8 dereferenceable(16) %131)
  store i64 %132, ptr %12, align 8, !tbaa !12
  %133 = load i64, ptr %7, align 8, !tbaa !12
  %134 = load i64, ptr %12, align 8, !tbaa !12
  %135 = add nsw i64 %133, %134
  %136 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %139 = load i32, ptr %138, align 4, !tbaa !25
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %138, align 4, !tbaa !25
  %141 = sext i32 %139 to i64
  %142 = getelementptr inbounds i64, ptr %137, i64 %141
  store i64 %135, ptr %142, align 8, !tbaa !12
  %143 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !24
  %145 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %146 = load i32, ptr %145, align 4, !tbaa !25
  %147 = sub nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i64, ptr %144, i64 %148
  %150 = load i64, ptr %149, align 8, !tbaa !12
  store i64 %150, ptr %8, align 8, !tbaa !12
  %151 = load i32, ptr %6, align 4, !tbaa !9
  %152 = sub nsw i32 %151, 1
  store i32 %152, ptr %6, align 4, !tbaa !9
  %153 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !24
  %155 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %156 = load i32, ptr %155, align 4, !tbaa !25
  %157 = load i32, ptr %6, align 4, !tbaa !9
  %158 = load i8, ptr %5, align 1, !tbaa !11
  %159 = zext i8 %158 to i32
  %160 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 7
  call void @_ZN16RunLenIntDecoder8readIntsEPliiiRKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %13, ptr noundef %154, i32 noundef %156, i32 noundef %157, i32 noundef %159, ptr noundef nonnull align 8 dereferenceable(16) %160)
  br label %161

161:                                              ; preds = %199, %130
  %162 = load i32, ptr %6, align 4, !tbaa !9
  %163 = icmp sgt i32 %162, 0
  br i1 %163, label %164, label %212

164:                                              ; preds = %161
  %165 = load i64, ptr %12, align 8, !tbaa !12
  %166 = icmp slt i64 %165, 0
  br i1 %166, label %167, label %183

167:                                              ; preds = %164
  %168 = load i64, ptr %8, align 8, !tbaa !12
  %169 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %170 = load ptr, ptr %169, align 8, !tbaa !24
  %171 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %172 = load i32, ptr %171, align 4, !tbaa !25
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i64, ptr %170, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !12
  %176 = sub nsw i64 %168, %175
  %177 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %178 = load ptr, ptr %177, align 8, !tbaa !24
  %179 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %180 = load i32, ptr %179, align 4, !tbaa !25
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i64, ptr %178, i64 %181
  store i64 %176, ptr %182, align 8, !tbaa !12
  br label %199

183:                                              ; preds = %164
  %184 = load i64, ptr %8, align 8, !tbaa !12
  %185 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %186 = load ptr, ptr %185, align 8, !tbaa !24
  %187 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %188 = load i32, ptr %187, align 4, !tbaa !25
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i64, ptr %186, i64 %189
  %191 = load i64, ptr %190, align 8, !tbaa !12
  %192 = add nsw i64 %184, %191
  %193 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !24
  %195 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %196 = load i32, ptr %195, align 4, !tbaa !25
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds i64, ptr %194, i64 %197
  store i64 %192, ptr %198, align 8, !tbaa !12
  br label %199

199:                                              ; preds = %183, %167
  %200 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 1
  %201 = load ptr, ptr %200, align 8, !tbaa !24
  %202 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %203 = load i32, ptr %202, align 4, !tbaa !25
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds i64, ptr %201, i64 %204
  %206 = load i64, ptr %205, align 8, !tbaa !12
  store i64 %206, ptr %8, align 8, !tbaa !12
  %207 = load i32, ptr %6, align 4, !tbaa !9
  %208 = add nsw i32 %207, -1
  store i32 %208, ptr %6, align 4, !tbaa !9
  %209 = getelementptr inbounds %class.RunLenIntDecoder, ptr %13, i32 0, i32 4
  %210 = load i32, ptr %209, align 4, !tbaa !25
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %209, align 4, !tbaa !25
  br label %161, !llvm.loop !30

212:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %213

213:                                              ; preds = %212, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret void
}

declare noundef i32 @_ZN13EncodingUtils14decodeBitWidthEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16RunLenIntDecoder8readIntsEPliiiRKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65), ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN16RunLenIntDecoder10readVulongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !17, i64 16}
!15 = !{!"_ZTS16RunLenIntDecoder", !16, i64 0, !6, i64 8, !17, i64 16, !10, i64 20, !10, i64 24, !18, i64 32, !21, i64 48, !17, i64 64}
!16 = !{!"_ZTS7Decoder"}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt10shared_ptrI10ByteBufferE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{!"_ZTS13EncodingUtils", !6, i64 0, !6, i64 8}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!15, !6, i64 8}
!25 = !{!15, !10, i64 20}
!26 = !{!15, !17, i64 64}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}


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

@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [100 x i8], align 1
@__PRETTY_FUNCTION__._ZN16RunLenIntDecoder15readDeltaValuesEi = external hidden unnamed_addr constant [44 x i8], align 1

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

declare noundef zeroext i8 @_ZN10ByteBuffer3getEv(ptr noundef nonnull align 8 dereferenceable(62)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16RunLenIntDecoder15readDeltaValuesEi(ptr noundef nonnull align 8 dereferenceable(65) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
  %3 = trunc i32 %1 to i8
  %4 = lshr i8 %3, 1
  %5 = and i8 %4, 31
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %11, label %6

6:                                                ; preds = %2
  %7 = zext nneg i8 %5 to i32
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = tail call noundef i32 @_ZN13EncodingUtils14decodeBitWidthEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %7)
  %10 = trunc i32 %9 to i8
  br label %11

11:                                               ; preds = %6, %2
  %.0 = phi i8 [ %10, %6 ], [ 0, %2 ]
  %12 = shl i32 %1, 8
  %13 = and i32 %12, 256
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  %16 = tail call noundef zeroext i8 @_ZN10ByteBuffer3getEv(ptr noundef nonnull align 8 dereferenceable(62) %15)
  %17 = zext i8 %16 to i32
  %18 = or disjoint i32 %13, %17
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load i8, ptr %19, align 8, !tbaa !5, !range !17, !noundef !18
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %22, label %24

22:                                               ; preds = %11
  %23 = tail call noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef nonnull align 8 dereferenceable(16) %14)
  br label %26

24:                                               ; preds = %11
  %25 = tail call noundef i64 @_ZN16RunLenIntDecoder10readVulongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef nonnull align 8 dereferenceable(16) %14)
  br label %26

26:                                               ; preds = %24, %22
  %.032 = phi i64 [ %23, %22 ], [ %25, %24 ]
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = getelementptr inbounds i8, ptr %0, i64 20
  %30 = load i32, ptr %29, align 4, !tbaa !20
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %29, align 4, !tbaa !20
  %32 = sext i32 %30 to i64
  %33 = getelementptr inbounds i64, ptr %28, i64 %32
  store i64 %.032, ptr %33, align 8, !tbaa !21
  %34 = icmp eq i8 %.0, 0
  br i1 %34, label %35, label %66

35:                                               ; preds = %26
  %36 = tail call noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %46, label %.preheader37

.preheader37:                                     ; preds = %35
  %.not47 = icmp eq i32 %18, 0
  br i1 %.not47, label %.loopexit, label %.lr.ph43

.lr.ph43:                                         ; preds = %.preheader37
  %.promoted41 = load i32, ptr %29, align 4, !tbaa !20
  %38 = load ptr, ptr %27, align 8, !tbaa !19
  %39 = sext i32 %.promoted41 to i64
  %40 = shl nsw i64 %39, 3
  %41 = getelementptr i8, ptr %38, i64 %40
  %scevgep = getelementptr i8, ptr %41, i64 -8
  %load_initial = load i64, ptr %scevgep, align 8
  %42 = or disjoint i32 %13, %17
  %43 = add nsw i32 %42, -1
  %xtraiter69 = and i32 %17, 3
  %44 = icmp ult i32 %43, 3
  br i1 %44, label %..loopexit_crit_edge.unr-lcssa, label %.lr.ph43.new

.lr.ph43.new:                                     ; preds = %.lr.ph43
  %45 = or disjoint i32 %13, %17
  %unroll_iter = sub nsw i32 %45, %xtraiter69
  %invariant.gep86 = getelementptr i8, ptr %38, i64 8
  %invariant.gep88 = getelementptr i8, ptr %38, i64 16
  %invariant.gep90 = getelementptr i8, ptr %38, i64 24
  br label %60

46:                                               ; preds = %35
  %47 = getelementptr inbounds i8, ptr %0, i64 64
  store i8 1, ptr %47, align 8, !tbaa !23
  %48 = load i32, ptr %29, align 4, !tbaa !20
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %.preheader, label %56

.preheader:                                       ; preds = %46
  %.not48 = icmp eq i32 %18, 0
  br i1 %.not48, label %._crit_edge, label %.lr.ph46

.lr.ph46:                                         ; preds = %.preheader
  %50 = load ptr, ptr %27, align 8, !tbaa !19
  %51 = or disjoint i32 %13, %17
  %wide.trip.count = zext nneg i32 %51 to i64
  %.pre = load i64, ptr %50, align 8, !tbaa !21
  %min.iters.check = icmp ult i32 %51, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph46
  %indvars.iv59.ph = phi i64 [ 0, %.lr.ph46 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph46
  %n.vec = and i64 %wide.trip.count, 508
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %.pre, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %52 = or disjoint i64 %index, 1
  %53 = getelementptr inbounds i64, ptr %50, i64 %52
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  store <2 x i64> %broadcast.splat, ptr %53, align 8, !tbaa !21
  store <2 x i64> %broadcast.splat, ptr %54, align 8, !tbaa !21
  %index.next = add nuw i64 %index, 4
  %55 = icmp eq i64 %index.next, %n.vec
  br i1 %55, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

56:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 175, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN16RunLenIntDecoder15readDeltaValuesEi) #5
  unreachable

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %.preheader
  %57 = add nuw nsw i32 %18, 1
  br label %.loopexit.sink.split

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv59 = phi i64 [ %58, %scalar.ph ], [ %indvars.iv59.ph, %scalar.ph.preheader ]
  %58 = add nuw nsw i64 %indvars.iv59, 1
  %59 = getelementptr inbounds i64, ptr %50, i64 %58
  store i64 %.pre, ptr %59, align 8, !tbaa !21
  %exitcond62.not = icmp eq i64 %58, %wide.trip.count
  br i1 %exitcond62.not, label %._crit_edge, label %scalar.ph, !llvm.loop !28

60:                                               ; preds = %60, %.lr.ph43.new
  %store_forwarded = phi i64 [ %load_initial, %.lr.ph43.new ], [ %65, %60 ]
  %indvars.iv56 = phi i64 [ %39, %.lr.ph43.new ], [ %indvars.iv.next57.3, %60 ]
  %niter = phi i32 [ 0, %.lr.ph43.new ], [ %niter.next.3, %60 ]
  %61 = getelementptr i64, ptr %38, i64 %indvars.iv56
  %62 = add nsw i64 %store_forwarded, %36
  store i64 %62, ptr %61, align 8, !tbaa !21
  %gep87 = getelementptr i64, ptr %invariant.gep86, i64 %indvars.iv56
  %63 = add nsw i64 %62, %36
  store i64 %63, ptr %gep87, align 8, !tbaa !21
  %gep89 = getelementptr i64, ptr %invariant.gep88, i64 %indvars.iv56
  %64 = add nsw i64 %63, %36
  store i64 %64, ptr %gep89, align 8, !tbaa !21
  %gep91 = getelementptr i64, ptr %invariant.gep90, i64 %indvars.iv56
  %65 = add nsw i64 %64, %36
  store i64 %65, ptr %gep91, align 8, !tbaa !21
  %indvars.iv.next57.3 = add nsw i64 %indvars.iv56, 4
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %..loopexit_crit_edge.unr-lcssa, label %60, !llvm.loop !29

66:                                               ; preds = %26
  %67 = zext i8 %.0 to i32
  %68 = tail call noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %69 = add nsw i64 %68, %.032
  %70 = load ptr, ptr %27, align 8, !tbaa !19
  %71 = load i32, ptr %29, align 4, !tbaa !20
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %29, align 4, !tbaa !20
  %73 = sext i32 %71 to i64
  %74 = getelementptr inbounds i64, ptr %70, i64 %73
  store i64 %69, ptr %74, align 8, !tbaa !21
  %75 = add nsw i32 %18, -1
  tail call void @_ZN16RunLenIntDecoder8readIntsEPliiiRKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef %70, i32 noundef %72, i32 noundef %75, i32 noundef %67, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %76 = icmp ugt i32 %18, 1
  br i1 %76, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %66
  %.promoted = load i32, ptr %29, align 4, !tbaa !20
  %77 = icmp slt i64 %68, 0
  %78 = load ptr, ptr %27, align 8
  %79 = sext i32 %.promoted to i64
  br i1 %77, label %.lr.ph.split.us.preheader, label %.lr.ph.split.preheader

.lr.ph.split.preheader:                           ; preds = %.lr.ph
  %80 = or disjoint i32 %13, %17
  %81 = add nsw i32 %80, -2
  %xtraiter = and i32 %75, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.split.prol.loopexit, label %.lr.ph.split.prol

.lr.ph.split.prol:                                ; preds = %.lr.ph.split.preheader, %.lr.ph.split.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.split.prol ], [ %79, %.lr.ph.split.preheader ]
  %.03040.prol = phi i32 [ %85, %.lr.ph.split.prol ], [ %75, %.lr.ph.split.preheader ]
  %.03139.prol = phi i64 [ %84, %.lr.ph.split.prol ], [ %69, %.lr.ph.split.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.split.prol ], [ 0, %.lr.ph.split.preheader ]
  %82 = getelementptr inbounds i64, ptr %78, i64 %indvars.iv.prol
  %83 = load i64, ptr %82, align 8, !tbaa !21
  %84 = add nsw i64 %83, %.03139.prol
  store i64 %84, ptr %82, align 8, !tbaa !21
  %85 = add nsw i32 %.03040.prol, -1
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.split.prol.loopexit, label %.lr.ph.split.prol, !llvm.loop !30

.lr.ph.split.prol.loopexit:                       ; preds = %.lr.ph.split.prol, %.lr.ph.split.preheader
  %indvars.iv.unr = phi i64 [ %79, %.lr.ph.split.preheader ], [ %indvars.iv.next.prol, %.lr.ph.split.prol ]
  %.03040.unr = phi i32 [ %75, %.lr.ph.split.preheader ], [ %85, %.lr.ph.split.prol ]
  %.03139.unr = phi i64 [ %69, %.lr.ph.split.preheader ], [ %84, %.lr.ph.split.prol ]
  %indvars.iv.next.lcssa.unr = phi i64 [ poison, %.lr.ph.split.preheader ], [ %indvars.iv.next.prol, %.lr.ph.split.prol ]
  %86 = icmp ult i32 %81, 3
  br i1 %86, label %..loopexit38_crit_edge, label %.lr.ph.split.preheader.new

.lr.ph.split.preheader.new:                       ; preds = %.lr.ph.split.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %78, i64 8
  %invariant.gep76 = getelementptr i8, ptr %78, i64 16
  %invariant.gep78 = getelementptr i8, ptr %78, i64 24
  br label %.lr.ph.split

.lr.ph.split.us.preheader:                        ; preds = %.lr.ph
  %87 = or disjoint i32 %13, %17
  %88 = add nsw i32 %87, -2
  %xtraiter66 = and i32 %75, 3
  %lcmp.mod67.not = icmp eq i32 %xtraiter66, 0
  br i1 %lcmp.mod67.not, label %.lr.ph.split.us.prol.loopexit, label %.lr.ph.split.us.prol

.lr.ph.split.us.prol:                             ; preds = %.lr.ph.split.us.preheader, %.lr.ph.split.us.prol
  %indvars.iv53.prol = phi i64 [ %indvars.iv.next54.prol, %.lr.ph.split.us.prol ], [ %79, %.lr.ph.split.us.preheader ]
  %.03040.us.prol = phi i32 [ %92, %.lr.ph.split.us.prol ], [ %75, %.lr.ph.split.us.preheader ]
  %.03139.us.prol = phi i64 [ %91, %.lr.ph.split.us.prol ], [ %69, %.lr.ph.split.us.preheader ]
  %prol.iter68 = phi i32 [ %prol.iter68.next, %.lr.ph.split.us.prol ], [ 0, %.lr.ph.split.us.preheader ]
  %89 = getelementptr inbounds i64, ptr %78, i64 %indvars.iv53.prol
  %90 = load i64, ptr %89, align 8, !tbaa !21
  %91 = sub nsw i64 %.03139.us.prol, %90
  store i64 %91, ptr %89, align 8, !tbaa !21
  %92 = add nsw i32 %.03040.us.prol, -1
  %indvars.iv.next54.prol = add nsw i64 %indvars.iv53.prol, 1
  %prol.iter68.next = add i32 %prol.iter68, 1
  %prol.iter68.cmp.not = icmp eq i32 %prol.iter68.next, %xtraiter66
  br i1 %prol.iter68.cmp.not, label %.lr.ph.split.us.prol.loopexit, label %.lr.ph.split.us.prol, !llvm.loop !32

.lr.ph.split.us.prol.loopexit:                    ; preds = %.lr.ph.split.us.prol, %.lr.ph.split.us.preheader
  %indvars.iv53.unr = phi i64 [ %79, %.lr.ph.split.us.preheader ], [ %indvars.iv.next54.prol, %.lr.ph.split.us.prol ]
  %.03040.us.unr = phi i32 [ %75, %.lr.ph.split.us.preheader ], [ %92, %.lr.ph.split.us.prol ]
  %.03139.us.unr = phi i64 [ %69, %.lr.ph.split.us.preheader ], [ %91, %.lr.ph.split.us.prol ]
  %indvars.iv.next54.lcssa.unr = phi i64 [ poison, %.lr.ph.split.us.preheader ], [ %indvars.iv.next54.prol, %.lr.ph.split.us.prol ]
  %93 = icmp ult i32 %88, 3
  br i1 %93, label %..loopexit38_crit_edge, label %.lr.ph.split.us.preheader.new

.lr.ph.split.us.preheader.new:                    ; preds = %.lr.ph.split.us.prol.loopexit
  %invariant.gep80 = getelementptr i8, ptr %78, i64 8
  %invariant.gep82 = getelementptr i8, ptr %78, i64 16
  %invariant.gep84 = getelementptr i8, ptr %78, i64 24
  br label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us, %.lr.ph.split.us.preheader.new
  %indvars.iv53 = phi i64 [ %indvars.iv53.unr, %.lr.ph.split.us.preheader.new ], [ %indvars.iv.next54.3, %.lr.ph.split.us ]
  %.03040.us = phi i32 [ %.03040.us.unr, %.lr.ph.split.us.preheader.new ], [ %103, %.lr.ph.split.us ]
  %.03139.us = phi i64 [ %.03139.us.unr, %.lr.ph.split.us.preheader.new ], [ %102, %.lr.ph.split.us ]
  %94 = getelementptr inbounds i64, ptr %78, i64 %indvars.iv53
  %95 = load i64, ptr %94, align 8, !tbaa !21
  %96 = sub nsw i64 %.03139.us, %95
  store i64 %96, ptr %94, align 8, !tbaa !21
  %gep81 = getelementptr i64, ptr %invariant.gep80, i64 %indvars.iv53
  %97 = load i64, ptr %gep81, align 8, !tbaa !21
  %98 = sub nsw i64 %96, %97
  store i64 %98, ptr %gep81, align 8, !tbaa !21
  %gep83 = getelementptr i64, ptr %invariant.gep82, i64 %indvars.iv53
  %99 = load i64, ptr %gep83, align 8, !tbaa !21
  %100 = sub nsw i64 %98, %99
  store i64 %100, ptr %gep83, align 8, !tbaa !21
  %gep85 = getelementptr i64, ptr %invariant.gep84, i64 %indvars.iv53
  %101 = load i64, ptr %gep85, align 8, !tbaa !21
  %102 = sub nsw i64 %100, %101
  store i64 %102, ptr %gep85, align 8, !tbaa !21
  %103 = add nsw i32 %.03040.us, -4
  %indvars.iv.next54.3 = add nsw i64 %indvars.iv53, 4
  %104 = add i32 %.03040.us, -5
  %105 = icmp ult i32 %104, -2
  br i1 %105, label %.lr.ph.split.us, label %..loopexit38_crit_edge, !llvm.loop !33

.lr.ph.split:                                     ; preds = %.lr.ph.split, %.lr.ph.split.preheader.new
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.split.preheader.new ], [ %indvars.iv.next.3, %.lr.ph.split ]
  %.03040 = phi i32 [ %.03040.unr, %.lr.ph.split.preheader.new ], [ %115, %.lr.ph.split ]
  %.03139 = phi i64 [ %.03139.unr, %.lr.ph.split.preheader.new ], [ %114, %.lr.ph.split ]
  %106 = getelementptr inbounds i64, ptr %78, i64 %indvars.iv
  %107 = load i64, ptr %106, align 8, !tbaa !21
  %108 = add nsw i64 %107, %.03139
  store i64 %108, ptr %106, align 8, !tbaa !21
  %gep = getelementptr i64, ptr %invariant.gep, i64 %indvars.iv
  %109 = load i64, ptr %gep, align 8, !tbaa !21
  %110 = add nsw i64 %109, %108
  store i64 %110, ptr %gep, align 8, !tbaa !21
  %gep77 = getelementptr i64, ptr %invariant.gep76, i64 %indvars.iv
  %111 = load i64, ptr %gep77, align 8, !tbaa !21
  %112 = add nsw i64 %111, %110
  store i64 %112, ptr %gep77, align 8, !tbaa !21
  %gep79 = getelementptr i64, ptr %invariant.gep78, i64 %indvars.iv
  %113 = load i64, ptr %gep79, align 8, !tbaa !21
  %114 = add nsw i64 %113, %112
  store i64 %114, ptr %gep79, align 8, !tbaa !21
  %115 = add nsw i32 %.03040, -4
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %116 = add i32 %.03040, -5
  %117 = icmp ult i32 %116, -2
  br i1 %117, label %.lr.ph.split, label %..loopexit38_crit_edge, !llvm.loop !33

..loopexit_crit_edge.unr-lcssa:                   ; preds = %60, %.lr.ph43
  %indvars.iv.next57.lcssa.ph = phi i64 [ poison, %.lr.ph43 ], [ %indvars.iv.next57.3, %60 ]
  %store_forwarded.unr = phi i64 [ %load_initial, %.lr.ph43 ], [ %65, %60 ]
  %indvars.iv56.unr = phi i64 [ %39, %.lr.ph43 ], [ %indvars.iv.next57.3, %60 ]
  %lcmp.mod70.not = icmp eq i32 %xtraiter69, 0
  br i1 %lcmp.mod70.not, label %..loopexit_crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %..loopexit_crit_edge.unr-lcssa, %.epil.preheader
  %store_forwarded.epil = phi i64 [ %119, %.epil.preheader ], [ %store_forwarded.unr, %..loopexit_crit_edge.unr-lcssa ]
  %indvars.iv56.epil = phi i64 [ %indvars.iv.next57.epil, %.epil.preheader ], [ %indvars.iv56.unr, %..loopexit_crit_edge.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.epil.preheader ], [ 0, %..loopexit_crit_edge.unr-lcssa ]
  %118 = getelementptr i64, ptr %38, i64 %indvars.iv56.epil
  %119 = add nsw i64 %store_forwarded.epil, %36
  store i64 %119, ptr %118, align 8, !tbaa !21
  %indvars.iv.next57.epil = add nsw i64 %indvars.iv56.epil, 1
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter69
  br i1 %epil.iter.cmp.not, label %..loopexit_crit_edge, label %.epil.preheader, !llvm.loop !34

..loopexit_crit_edge:                             ; preds = %.epil.preheader, %..loopexit_crit_edge.unr-lcssa
  %indvars.iv.next57.lcssa = phi i64 [ %indvars.iv.next57.lcssa.ph, %..loopexit_crit_edge.unr-lcssa ], [ %indvars.iv.next57.epil, %.epil.preheader ]
  %120 = trunc nsw i64 %indvars.iv.next57.lcssa to i32
  br label %.loopexit.sink.split

..loopexit38_crit_edge:                           ; preds = %.lr.ph.split.prol.loopexit, %.lr.ph.split, %.lr.ph.split.us.prol.loopexit, %.lr.ph.split.us
  %.us-phi.in = phi i64 [ %indvars.iv.next54.lcssa.unr, %.lr.ph.split.us.prol.loopexit ], [ %indvars.iv.next54.3, %.lr.ph.split.us ], [ %indvars.iv.next.lcssa.unr, %.lr.ph.split.prol.loopexit ], [ %indvars.iv.next.3, %.lr.ph.split ]
  %.us-phi = trunc i64 %.us-phi.in to i32
  br label %.loopexit.sink.split

.loopexit.sink.split:                             ; preds = %._crit_edge, %..loopexit_crit_edge, %..loopexit38_crit_edge
  %.us-phi.sink = phi i32 [ %.us-phi, %..loopexit38_crit_edge ], [ %120, %..loopexit_crit_edge ], [ %57, %._crit_edge ]
  store i32 %.us-phi.sink, ptr %29, align 4, !tbaa !20
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.sink.split, %66, %.preheader37
  ret void
}

declare noundef i32 @_ZN13EncodingUtils14decodeBitWidthEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16RunLenIntDecoder8readIntsEPliiiRKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65), ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN16RunLenIntDecoder10readVslongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN16RunLenIntDecoder10readVulongERKSt10shared_ptrI10ByteBufferE(ptr noundef nonnull align 8 dereferenceable(65), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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 = { "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 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"_ZTS16RunLenIntDecoder", !7, i64 0, !8, i64 8, !11, i64 16, !12, i64 20, !12, i64 24, !13, i64 32, !16, i64 48, !11, i64 64}
!7 = !{!"_ZTS7Decoder"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"_ZTSSt10shared_ptrI10ByteBufferE", !14, i64 0}
!14 = !{!"_ZTSSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EE", !8, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !8, i64 0}
!16 = !{!"_ZTS13EncodingUtils", !8, i64 0, !8, i64 8}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !8, i64 8}
!20 = !{!6, !12, i64 20}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !9, i64 0}
!23 = !{!6, !11, i64 64}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !25, !27, !26}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.unroll.disable"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !25}
!34 = distinct !{!34, !31}


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