; LLVM IR from intel/qpl :: tools/tests/fuzzing/low-level-api (inflate_canned_dict_fuzz_test)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.qpl_histogram = type { [286 x i32], [2 x i32], [30 x i32], [2 x i32] }
%struct.allocator_t = type { ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%struct.inflate_properties = type { i64, i64 }
%struct.qpl_job = type { ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr, i32, i32, i8, i8, i8, i64, i64, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.qpl_aux_data }
%struct.qpl_aux_data = type { ptr, ptr, ptr, ptr, ptr, i32 }

; Function Attrs: mustprogress uwtable
define dso_local i32 @LLVMFuzzerTestOneInput(ptr noundef %0, i64 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca i8, align 1
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %struct.qpl_histogram, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %struct.allocator_t, align 8
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca %"class.std::unique_ptr", align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::unique_ptr", align 8
  %31 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %32, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %33, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %34 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %34, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %35 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %35, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %36 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %36, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 3, ptr %11, align 4, !tbaa !11
  %37 = load i64, ptr %5, align 8, !tbaa !9
  %38 = icmp eq i64 0, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %277

40:                                               ; preds = %2
  %41 = load i64, ptr %5, align 8, !tbaa !9
  %42 = icmp ult i64 32, %41
  br i1 %42, label %43, label %104

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %44, ptr %13, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  store ptr %46, ptr %6, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %47, ptr %7, align 8, !tbaa !5
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = sub i64 %48, 16
  store i64 %49, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.inflate_properties, ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !13
  store i64 %52, ptr %9, align 8, !tbaa !9
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.inflate_properties, ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !15
  %56 = and i64 %55, 4095
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = and i64 %57, %56
  store i64 %58, ptr %10, align 8, !tbaa !9
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.inflate_properties, ptr %59, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !15
  %62 = and i64 %61, 4096
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %43
  store i32 3, ptr %11, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %64, %43
  %66 = load i64, ptr %9, align 8, !tbaa !9
  %67 = icmp eq i64 0, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  store i64 1, ptr %9, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %68, %65
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = icmp eq i64 0, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %72, %69
  %74 = load i64, ptr %8, align 8, !tbaa !9
  %75 = load i64, ptr %10, align 8, !tbaa !9
  %76 = icmp ule i64 %74, %75
  br i1 %76, label %77, label %85

77:                                               ; preds = %73
  %78 = load i64, ptr %8, align 8, !tbaa !9
  %79 = load i64, ptr %10, align 8, !tbaa !9
  %80 = urem i64 %79, %78
  store i64 %80, ptr %10, align 8, !tbaa !9
  %81 = load i64, ptr %10, align 8, !tbaa !9
  %82 = icmp eq i64 0, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %77
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %83, %77
  br label %85

85:                                               ; preds = %84, %73
  %86 = load i64, ptr %10, align 8, !tbaa !9
  %87 = load i64, ptr %8, align 8, !tbaa !9
  %88 = sub i64 %87, %86
  store i64 %88, ptr %8, align 8, !tbaa !9
  %89 = load i64, ptr %10, align 8, !tbaa !9
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 %89
  store ptr %91, ptr %6, align 8, !tbaa !5
  %92 = load i64, ptr %8, align 8, !tbaa !9
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = add i64 %92, %93
  %95 = load i64, ptr %9, align 8, !tbaa !9
  %96 = urem i64 %95, %94
  store i64 %96, ptr %9, align 8, !tbaa !9
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = icmp eq i64 0, %97
  br i1 %98, label %99, label %103

99:                                               ; preds = %85
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = load i64, ptr %8, align 8, !tbaa !9
  %102 = add i64 %100, %101
  store i64 %102, ptr %9, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %99, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %104

104:                                              ; preds = %103, %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i64, ptr %8, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %106, i64 %107
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %105, ptr noundef %108, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %109 unwind label %121

109:                                              ; preds = %104
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  %110 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  store i8 -86, ptr %19, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %110, ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %111 unwind label %125

111:                                              ; preds = %109
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 1280, ptr %21) #8
  call void @llvm.memset.p0.i64(ptr align 4 %21, i8 0, i64 1280, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !17
  %112 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %113 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %114 = trunc i64 %113 to i32
  %115 = load i32, ptr %11, align 4, !tbaa !11
  %116 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %112, i32 noundef %114, ptr noundef %21, i32 noundef %115, i32 noundef 2)
          to label %117 unwind label %129

117:                                              ; preds = %111
  store i32 %116, ptr %23, align 4, !tbaa !17
  %118 = load i32, ptr %23, align 4, !tbaa !17
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %133

120:                                              ; preds = %117
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %265

121:                                              ; preds = %104
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %16, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %17, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  br label %276

125:                                              ; preds = %109
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %16, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %17, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %275

129:                                              ; preds = %151, %145, %133, %111
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %16, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %17, align 4
  br label %273

133:                                              ; preds = %117
  %134 = getelementptr inbounds %struct.allocator_t, ptr %24, i32 0, i32 0
  store ptr @malloc, ptr %134, align 8, !tbaa !19
  %135 = getelementptr inbounds %struct.allocator_t, ptr %24, i32 0, i32 1
  store ptr @free, ptr %135, align 8, !tbaa !21
  %136 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8
  %138 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8
  %140 = invoke i32 @qpl_deflate_huffman_table_create(i32 noundef 0, i32 noundef 2, ptr %137, ptr %139, ptr noundef %22)
          to label %141 unwind label %129

141:                                              ; preds = %133
  store i32 %140, ptr %23, align 4, !tbaa !17
  %142 = load i32, ptr %23, align 4, !tbaa !17
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %265

145:                                              ; preds = %141
  %146 = load ptr, ptr %22, align 8, !tbaa !5
  %147 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %146, ptr noundef %21)
          to label %148 unwind label %129

148:                                              ; preds = %145
  store i32 %147, ptr %23, align 4, !tbaa !17
  %149 = load i32, ptr %23, align 4, !tbaa !17
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %155

151:                                              ; preds = %148
  %152 = load ptr, ptr %22, align 8, !tbaa !5
  %153 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %152)
          to label %154 unwind label %129

154:                                              ; preds = %151
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %265

155:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %156 = load i32, ptr %11, align 4, !tbaa !11
  %157 = icmp eq i32 3, %156
  %158 = zext i1 %157 to i64
  %159 = select i1 %157, i32 9, i32 3
  store i32 %159, ptr %25, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %160 = load i32, ptr %25, align 4, !tbaa !22
  %161 = load i64, ptr %10, align 8, !tbaa !9
  %162 = invoke i64 @qpl_get_dictionary_size(i32 noundef %160, i32 noundef -1, i64 noundef %161)
          to label %163 unwind label %179

163:                                              ; preds = %155
  store i64 %162, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %164 = load i64, ptr %26, align 8, !tbaa !9
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %27, i64 noundef %164)
          to label %165 unwind label %183

165:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %166 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  store ptr %166, ptr %28, align 8, !tbaa !5
  %167 = load ptr, ptr %28, align 8, !tbaa !5
  %168 = load i32, ptr %25, align 4, !tbaa !22
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = load i64, ptr %10, align 8, !tbaa !9
  %171 = invoke i32 @qpl_build_dictionary(ptr noundef %167, i32 noundef %168, i32 noundef -1, ptr noundef %169, i64 noundef %170)
          to label %172 unwind label %187

172:                                              ; preds = %165
  store i32 %171, ptr %23, align 4, !tbaa !17
  %173 = load i32, ptr %23, align 4, !tbaa !17
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %191

175:                                              ; preds = %172
  %176 = load ptr, ptr %22, align 8, !tbaa !5
  %177 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %176)
          to label %178 unwind label %187

178:                                              ; preds = %175
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %264

179:                                              ; preds = %155
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %16, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %17, align 4
  br label %272

183:                                              ; preds = %163
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %16, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %17, align 4
  br label %271

187:                                              ; preds = %175, %165
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %16, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %17, align 4
  br label %270

191:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !24
  %192 = invoke i32 @qpl_get_job_size(i32 noundef 2, ptr noundef %29)
          to label %193 unwind label %200

193:                                              ; preds = %191
  store i32 %192, ptr %23, align 4, !tbaa !17
  %194 = load i32, ptr %23, align 4, !tbaa !17
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %204

196:                                              ; preds = %193
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %197)
          to label %199 unwind label %200

199:                                              ; preds = %196
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %263

200:                                              ; preds = %196, %191
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %16, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %17, align 4
  br label %269

204:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %205 = load i32, ptr %29, align 4, !tbaa !24
  %206 = zext i32 %205 to i64
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %30, i64 noundef %206)
          to label %207 unwind label %218

207:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %208 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  store ptr %208, ptr %31, align 8, !tbaa !5
  %209 = load ptr, ptr %31, align 8, !tbaa !5
  %210 = invoke i32 @qpl_init_job(i32 noundef 2, ptr noundef %209)
          to label %211 unwind label %222

211:                                              ; preds = %207
  store i32 %210, ptr %23, align 4, !tbaa !17
  %212 = load i32, ptr %23, align 4, !tbaa !17
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %226

214:                                              ; preds = %211
  %215 = load ptr, ptr %22, align 8, !tbaa !5
  %216 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %215)
          to label %217 unwind label %222

217:                                              ; preds = %214
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %262

218:                                              ; preds = %204
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %16, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %17, align 4
  br label %268

222:                                              ; preds = %258, %255, %226, %214, %207
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %16, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br label %268

226:                                              ; preds = %211
  %227 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %228 = load ptr, ptr %31, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.qpl_job, ptr %228, i32 0, i32 0
  store ptr %227, ptr %229, align 8, !tbaa !26
  %230 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %231 = trunc i64 %230 to i32
  %232 = load ptr, ptr %31, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.qpl_job, ptr %232, i32 0, i32 1
  store i32 %231, ptr %233, align 8, !tbaa !35
  %234 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %235 = load ptr, ptr %31, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.qpl_job, ptr %235, i32 0, i32 3
  store ptr %234, ptr %236, align 8, !tbaa !36
  %237 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %238 = trunc i64 %237 to i32
  %239 = load ptr, ptr %31, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.qpl_job, ptr %239, i32 0, i32 4
  store i32 %238, ptr %240, align 8, !tbaa !37
  %241 = load ptr, ptr %22, align 8, !tbaa !5
  %242 = load ptr, ptr %31, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.qpl_job, ptr %242, i32 0, i32 13
  store ptr %241, ptr %243, align 8, !tbaa !38
  %244 = load ptr, ptr %31, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.qpl_job, ptr %244, i32 0, i32 5
  store i32 0, ptr %245, align 4, !tbaa !39
  %246 = load ptr, ptr %28, align 8, !tbaa !5
  %247 = load ptr, ptr %31, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.qpl_job, ptr %247, i32 0, i32 14
  store ptr %246, ptr %248, align 8, !tbaa !40
  %249 = load ptr, ptr %31, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.qpl_job, ptr %249, i32 0, i32 6
  store i32 0, ptr %250, align 8, !tbaa !41
  %251 = load ptr, ptr %31, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.qpl_job, ptr %251, i32 0, i32 7
  store i32 4194307, ptr %252, align 4, !tbaa !42
  %253 = load ptr, ptr %31, align 8, !tbaa !5
  %254 = invoke i32 @qpl_execute_job(ptr noundef %253)
          to label %255 unwind label %222

255:                                              ; preds = %226
  store i32 %254, ptr %23, align 4, !tbaa !17
  %256 = load ptr, ptr %31, align 8, !tbaa !5
  %257 = invoke i32 @qpl_fini_job(ptr noundef %256)
          to label %258 unwind label %222

258:                                              ; preds = %255
  store i32 %257, ptr %23, align 4, !tbaa !17
  %259 = load ptr, ptr %22, align 8, !tbaa !5
  %260 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %259)
          to label %261 unwind label %222

261:                                              ; preds = %258
  store i32 0, ptr %12, align 4
  br label %262

262:                                              ; preds = %261, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %263

263:                                              ; preds = %262, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %264

264:                                              ; preds = %263, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %265

265:                                              ; preds = %264, %154, %144, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 1280, ptr %21) #8
  %266 = load i32, ptr %12, align 4
  switch i32 %266, label %274 [
    i32 0, label %267
  ]

267:                                              ; preds = %265
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %274

268:                                              ; preds = %222, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %269

269:                                              ; preds = %268, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %270

270:                                              ; preds = %269, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br label %271

271:                                              ; preds = %270, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %272

272:                                              ; preds = %271, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %273

273:                                              ; preds = %272, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 1280, ptr %21) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %275

274:                                              ; preds = %267, %265
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br label %277

275:                                              ; preds = %273, %125
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %276

276:                                              ; preds = %275, %121
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %279

277:                                              ; preds = %274, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %278 = load i32, ptr %3, align 4
  ret i32 %278

279:                                              ; preds = %276
  %280 = load ptr, ptr %16, align 8
  %281 = load i32, ptr %17, align 4
  %282 = insertvalue { ptr, i32 } poison, ptr %280, 0
  %283 = insertvalue { ptr, i32 } %282, i32 %281, 1
  resume { ptr, i32 } %283
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

declare i32 @qpl_gather_deflate_statistics(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #4

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

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

declare i32 @qpl_deflate_huffman_table_create(i32 noundef, i32 noundef, ptr, ptr, ptr noundef) #4

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

declare i32 @qpl_huffman_table_init_with_histogram(ptr noundef, ptr noundef) #4

declare i32 @qpl_huffman_table_destroy(ptr noundef) #4

declare i64 @qpl_get_dictionary_size(i32 noundef, i32 noundef, i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, i64 noundef) #7

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

declare i32 @qpl_build_dictionary(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i64 noundef) #4

declare i32 @qpl_get_job_size(i32 noundef, ptr noundef) #4

declare i32 @qpl_init_job(i32 noundef, ptr noundef) #4

declare i32 @qpl_execute_job(ptr noundef) #4

declare i32 @qpl_fini_job(ptr noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 allocsize(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 "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 #7 = { 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 #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS22qpl_compression_levels", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS18inflate_properties", !10, i64 0, !10, i64 8}
!15 = !{!14, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS10qpl_status", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTS11allocator_t", !6, i64 0, !6, i64 8}
!21 = !{!20, !6, i64 8}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS20sw_compression_level", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!27, !6, i64 0}
!27 = !{!"_ZTS7qpl_job", !6, i64 0, !25, i64 8, !25, i64 12, !6, i64 16, !25, i64 24, !25, i64 28, !28, i64 32, !25, i64 36, !25, i64 40, !25, i64 44, !25, i64 48, !12, i64 52, !29, i64 56, !6, i64 64, !6, i64 72, !30, i64 80, !6, i64 88, !25, i64 96, !25, i64 100, !7, i64 104, !7, i64 105, !7, i64 106, !10, i64 112, !10, i64 120, !6, i64 128, !25, i64 136, !25, i64 140, !25, i64 144, !25, i64 148, !31, i64 152, !25, i64 156, !25, i64 160, !25, i64 164, !25, i64 168, !32, i64 172, !25, i64 176, !25, i64 180, !25, i64 184, !25, i64 188, !33, i64 192}
!28 = !{!"_ZTS13qpl_operation", !7, i64 0}
!29 = !{!"_ZTS19qpl_statistics_mode", !7, i64 0}
!30 = !{!"_ZTS19qpl_mini_block_size", !7, i64 0}
!31 = !{!"_ZTS14qpl_out_format", !7, i64 0}
!32 = !{!"_ZTS10qpl_parser", !7, i64 0}
!33 = !{!"_ZTS12qpl_aux_data", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !34, i64 40}
!34 = !{!"_ZTS10qpl_path_t", !7, i64 0}
!35 = !{!27, !25, i64 8}
!36 = !{!27, !6, i64 16}
!37 = !{!27, !25, i64 24}
!38 = !{!27, !6, i64 64}
!39 = !{!27, !25, i64 28}
!40 = !{!27, !6, i64 72}
!41 = !{!27, !28, i64 32}
!42 = !{!27, !25, i64 36}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.qpl_histogram = type { [286 x i32], [2 x i32], [30 x i32], [2 x i32] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @LLVMFuzzerTestOneInput(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %struct.qpl_histogram, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::unique_ptr", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::unique_ptr", align 8
  %13 = icmp eq i64 %1, 0
  br i1 %13, label %125, label %14

14:                                               ; preds = %2
  %15 = icmp ugt i64 %1, 32
  br i1 %15, label %16, label %33

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = add i64 %1, -16
  %19 = load i64, ptr %0, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !10
  %22 = and i64 %1, 4095
  %23 = and i64 %22, %21
  %spec.store.select = tail call i64 @llvm.umax.i64(i64 %19, i64 1)
  %spec.store.select2 = tail call i64 @llvm.umax.i64(i64 %23, i64 1)
  %.not98 = icmp ugt i64 %18, %spec.store.select2
  br i1 %.not98, label %27, label %24

24:                                               ; preds = %16
  %.lhs.trunc = trunc nuw nsw i64 %spec.store.select2 to i16
  %.rhs.trunc = trunc i64 %18 to i16
  %25 = urem i16 %.lhs.trunc, %.rhs.trunc
  %26 = tail call i16 @llvm.umax.i16(i16 %25, i16 1)
  %spec.store.select1 = zext nneg i16 %26 to i64
  br label %27

27:                                               ; preds = %24, %16
  %.074 = phi i64 [ %spec.store.select1, %24 ], [ %spec.store.select2, %16 ]
  %28 = sub i64 %18, %.074
  %29 = getelementptr inbounds i8, ptr %17, i64 %.074
  %30 = shl i64 %28, 1
  %31 = urem i64 %spec.store.select, %30
  %32 = icmp eq i64 %31, 0
  %spec.select = select i1 %32, i64 %30, i64 %31
  br label %33

33:                                               ; preds = %27, %14
  %.175 = phi i64 [ %.074, %27 ], [ %1, %14 ]
  %.173 = phi i64 [ %spec.select, %27 ], [ %1, %14 ]
  %.071 = phi i64 [ %28, %27 ], [ %1, %14 ]
  %.070 = phi ptr [ %17, %27 ], [ %0, %14 ]
  %.069 = phi ptr [ %29, %27 ], [ %0, %14 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  %34 = getelementptr inbounds i8, ptr %.069, i64 %.071
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #9
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  invoke void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %.069, ptr noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %35 unwind label %42

35:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #9
  store i8 -86, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #9
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.173, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %36 unwind label %44

36:                                               ; preds = %35
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 1280, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1280) %8, i8 0, i64 1280, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  store ptr null, ptr %9, align 8, !tbaa !12
  %37 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %38 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %39 = trunc i64 %38 to i32
  %40 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %37, i32 noundef %39, ptr noundef nonnull %8, i32 noundef 3, i32 noundef 2)
          to label %41 unwind label %46

41:                                               ; preds = %36
  %.not99 = icmp eq i32 %40, 0
  br i1 %.not99, label %48, label %.critedge

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  br label %124

44:                                               ; preds = %35
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  br label %123

46:                                               ; preds = %55, %51, %48, %36
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %121

48:                                               ; preds = %41
  %49 = invoke i32 @qpl_deflate_huffman_table_create(i32 noundef 0, i32 noundef 2, ptr nonnull @malloc, ptr nonnull @free, ptr noundef nonnull %9)
          to label %50 unwind label %46

50:                                               ; preds = %48
  %.not100 = icmp eq i32 %49, 0
  br i1 %.not100, label %51, label %.critedge

51:                                               ; preds = %50
  %52 = load ptr, ptr %9, align 8, !tbaa !12
  %53 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %52, ptr noundef nonnull %8)
          to label %54 unwind label %46

54:                                               ; preds = %51
  %.not101 = icmp eq i32 %53, 0
  br i1 %.not101, label %58, label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr %9, align 8, !tbaa !12
  %57 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %56)
          to label %.critedge unwind label %46

58:                                               ; preds = %54
  %59 = invoke i64 @qpl_get_dictionary_size(i32 noundef 9, i32 noundef -1, i64 noundef %.175)
          to label %60 unwind label %68

60:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %10, i64 noundef %59)
          to label %61 unwind label %70

61:                                               ; preds = %60
  %62 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %63 = invoke i32 @qpl_build_dictionary(ptr noundef %62, i32 noundef 9, i32 noundef -1, ptr noundef %.070, i64 noundef %.175)
          to label %64 unwind label %72

64:                                               ; preds = %61
  %.not102 = icmp eq i32 %63, 0
  br i1 %.not102, label %74, label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr %9, align 8, !tbaa !12
  %67 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %66)
          to label %116 unwind label %72

68:                                               ; preds = %58
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %121

70:                                               ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %120

72:                                               ; preds = %65, %61
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %119

74:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 0, ptr %11, align 4, !tbaa !14
  %75 = invoke i32 @qpl_get_job_size(i32 noundef 2, ptr noundef nonnull %11)
          to label %76 unwind label %80

76:                                               ; preds = %74
  %.not103 = icmp eq i32 %75, 0
  br i1 %.not103, label %82, label %77

77:                                               ; preds = %76
  %78 = load ptr, ptr %9, align 8, !tbaa !12
  %79 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %78)
          to label %115 unwind label %80

80:                                               ; preds = %77, %74
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %118

82:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %83 = load i32, ptr %11, align 4, !tbaa !14
  %84 = zext i32 %83 to i64
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %12, i64 noundef %84)
          to label %85 unwind label %89

85:                                               ; preds = %82
  %86 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %87 = invoke i32 @qpl_init_job(i32 noundef 2, ptr noundef %86)
          to label %88 unwind label %91

88:                                               ; preds = %85
  %.not104 = icmp eq i32 %87, 0
  br i1 %.not104, label %93, label %.invoke

89:                                               ; preds = %82
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %117

91:                                               ; preds = %.invoke, %110, %93, %85
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br label %117

93:                                               ; preds = %88
  %94 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %94, ptr %86, align 8, !tbaa !16
  %95 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %96 = trunc i64 %95 to i32
  %97 = getelementptr inbounds i8, ptr %86, i64 8
  store i32 %96, ptr %97, align 8, !tbaa !26
  %98 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %99 = getelementptr inbounds i8, ptr %86, i64 16
  store ptr %98, ptr %99, align 8, !tbaa !27
  %100 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %101 = trunc i64 %100 to i32
  %102 = getelementptr inbounds i8, ptr %86, i64 24
  store i32 %101, ptr %102, align 8, !tbaa !28
  %103 = load ptr, ptr %9, align 8, !tbaa !12
  %104 = getelementptr inbounds i8, ptr %86, i64 64
  store ptr %103, ptr %104, align 8, !tbaa !29
  %105 = getelementptr inbounds i8, ptr %86, i64 28
  store i32 0, ptr %105, align 4, !tbaa !30
  %106 = getelementptr inbounds i8, ptr %86, i64 72
  store ptr %62, ptr %106, align 8, !tbaa !31
  %107 = getelementptr inbounds i8, ptr %86, i64 32
  store i32 0, ptr %107, align 8, !tbaa !32
  %108 = getelementptr inbounds i8, ptr %86, i64 36
  store i32 4194307, ptr %108, align 4, !tbaa !33
  %109 = invoke i32 @qpl_execute_job(ptr noundef nonnull %86)
          to label %110 unwind label %91

110:                                              ; preds = %93
  %111 = invoke i32 @qpl_fini_job(ptr noundef nonnull %86)
          to label %.invoke unwind label %91

.invoke:                                          ; preds = %110, %88
  %112 = load ptr, ptr %9, align 8, !tbaa !12
  %113 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %112)
          to label %114 unwind label %91

114:                                              ; preds = %.invoke
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %115

115:                                              ; preds = %77, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br label %116

116:                                              ; preds = %65, %115
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %8) #9
  br label %122

117:                                              ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %118

118:                                              ; preds = %117, %80
  %.pn106 = phi { ptr, i32 } [ %81, %80 ], [ %.pn, %117 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br label %119

119:                                              ; preds = %118, %72
  %.pn108 = phi { ptr, i32 } [ %73, %72 ], [ %.pn106, %118 ]
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %120

120:                                              ; preds = %119, %70
  %.pn108.pn = phi { ptr, i32 } [ %.pn108, %119 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %121

121:                                              ; preds = %68, %120, %46
  %.pn112 = phi { ptr, i32 } [ %47, %46 ], [ %.pn108.pn, %120 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %8) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  br label %123

.critedge:                                        ; preds = %55, %50, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %8) #9
  br label %122

122:                                              ; preds = %116, %.critedge
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  br label %125

123:                                              ; preds = %121, %44
  %.pn112.pn = phi { ptr, i32 } [ %.pn112, %121 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  br label %124

124:                                              ; preds = %123, %42
  %.pn112.pn.pn = phi { ptr, i32 } [ %.pn112.pn, %123 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn112.pn.pn

125:                                              ; preds = %2, %122
  ret i32 0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

declare i32 @qpl_gather_deflate_statistics(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

declare i32 @qpl_deflate_huffman_table_create(i32 noundef, i32 noundef, ptr, ptr, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) #5

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) #6

declare i32 @qpl_huffman_table_init_with_histogram(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @qpl_huffman_table_destroy(ptr noundef) local_unnamed_addr #4

declare i64 @qpl_get_dictionary_size(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, i64 noundef) local_unnamed_addr #7

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

declare i32 @qpl_build_dictionary(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @qpl_get_job_size(i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @qpl_init_job(i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @qpl_execute_job(ptr noundef) local_unnamed_addr #4

declare i32 @qpl_fini_job(ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"_ZTS18inflate_properties", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"_ZTS7qpl_job", !13, i64 0, !15, i64 8, !15, i64 12, !13, i64 16, !15, i64 24, !15, i64 28, !18, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !19, i64 52, !20, i64 56, !13, i64 64, !13, i64 72, !21, i64 80, !13, i64 88, !15, i64 96, !15, i64 100, !8, i64 104, !8, i64 105, !8, i64 106, !7, i64 112, !7, i64 120, !13, i64 128, !15, i64 136, !15, i64 140, !15, i64 144, !15, i64 148, !22, i64 152, !15, i64 156, !15, i64 160, !15, i64 164, !15, i64 168, !23, i64 172, !15, i64 176, !15, i64 180, !15, i64 184, !15, i64 188, !24, i64 192}
!18 = !{!"_ZTS13qpl_operation", !8, i64 0}
!19 = !{!"_ZTS22qpl_compression_levels", !8, i64 0}
!20 = !{!"_ZTS19qpl_statistics_mode", !8, i64 0}
!21 = !{!"_ZTS19qpl_mini_block_size", !8, i64 0}
!22 = !{!"_ZTS14qpl_out_format", !8, i64 0}
!23 = !{!"_ZTS10qpl_parser", !8, i64 0}
!24 = !{!"_ZTS12qpl_aux_data", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !25, i64 40}
!25 = !{!"_ZTS10qpl_path_t", !8, i64 0}
!26 = !{!17, !15, i64 8}
!27 = !{!17, !13, i64 16}
!28 = !{!17, !15, i64 24}
!29 = !{!17, !13, i64 64}
!30 = !{!17, !15, i64 28}
!31 = !{!17, !13, i64 72}
!32 = !{!17, !18, i64 32}
!33 = !{!17, !15, i64 36}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass