; LLVM IR from intel/qpl :: tools/tests/fuzzing/low-level-api (deflate_nodict_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 }
%"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.qpl_histogram = type { [286 x i32], [2 x i32], [30 x i32], [2 x i32] }
%struct.allocator_t = type { ptr, ptr }
%struct.deflate_properties = type { 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca i8, align 1
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::unique_ptr", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %struct.qpl_histogram, align 4
  %26 = alloca %struct.allocator_t, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %27 = load i64, ptr %5, align 8, !tbaa !9
  %28 = icmp ult i64 %27, 2
  br i1 %28, label %29, label %30

29:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %221

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !11
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 0
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %34 = zext i8 %33 to i32
  %35 = srem i32 %34, 2
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %30
  store i32 3, ptr %6, align 4, !tbaa !11
  br label %38

38:                                               ; preds = %37, %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 0
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = zext i8 %41 to i32
  %43 = srem i32 %42, 4
  store i32 %43, ptr %7, align 4, !tbaa !14
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 2
  store ptr %45, ptr %4, align 8, !tbaa !5
  %46 = load i64, ptr %5, align 8, !tbaa !9
  %47 = sub i64 %46, 2
  store i64 %47, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %48, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %49 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %49, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %50 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %50, ptr %10, align 8, !tbaa !9
  %51 = load i64, ptr %5, align 8, !tbaa !9
  %52 = icmp ugt i64 %51, 8
  br i1 %52, label %53, label %78

53:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %54, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  store ptr %56, ptr %8, align 8, !tbaa !5
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = sub i64 %57, 8
  store i64 %58, ptr %9, align 8, !tbaa !9
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.deflate_properties, ptr %59, i32 0, i32 0
  %61 = load i64, ptr %60, align 8, !tbaa !16
  store i64 %61, ptr %10, align 8, !tbaa !9
  %62 = load i64, ptr %10, align 8, !tbaa !9
  %63 = icmp eq i64 0, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %53
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %64, %53
  %66 = load i64, ptr %9, align 8, !tbaa !9
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = add i64 %66, %67
  %69 = load i64, ptr %10, align 8, !tbaa !9
  %70 = urem i64 %69, %68
  store i64 %70, ptr %10, align 8, !tbaa !9
  %71 = load i64, ptr %10, align 8, !tbaa !9
  %72 = icmp eq i64 0, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %65
  %74 = load i64, ptr %9, align 8, !tbaa !9
  %75 = load i64, ptr %9, align 8, !tbaa !9
  %76 = add i64 %74, %75
  store i64 %76, ptr %10, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %73, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %78

78:                                               ; preds = %77, %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %80, i64 %81
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef %79, ptr noundef %82, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %83 unwind label %91

83:                                               ; preds = %78
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  %84 = load i64, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  store i8 -86, ptr %17, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %84, ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %85 unwind label %95

85:                                               ; preds = %83
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %86 = invoke i32 @qpl_get_job_size(i32 noundef 2, ptr noundef %20)
          to label %87 unwind label %99

87:                                               ; preds = %85
  store i32 %86, ptr %21, align 4, !tbaa !20
  %88 = load i32, ptr %21, align 4, !tbaa !20
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %103

90:                                               ; preds = %87
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %212

91:                                               ; preds = %78
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %14, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %220

95:                                               ; preds = %83
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %14, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  br label %219

99:                                               ; preds = %85
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %14, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %15, align 4
  br label %217

103:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %104 = load i32, ptr %20, align 4, !tbaa !18
  %105 = zext i32 %104 to i64
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %23, i64 noundef %105)
          to label %106 unwind label %114

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %107 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  store ptr %107, ptr %24, align 8, !tbaa !5
  %108 = load ptr, ptr %24, align 8, !tbaa !5
  %109 = invoke i32 @qpl_init_job(i32 noundef 2, ptr noundef %108)
          to label %110 unwind label %118

110:                                              ; preds = %106
  store i32 %109, ptr %21, align 4, !tbaa !20
  %111 = load i32, ptr %21, align 4, !tbaa !20
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %122

113:                                              ; preds = %110
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %211

114:                                              ; preds = %103
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %14, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %15, align 4
  br label %216

118:                                              ; preds = %207, %106
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %14, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %15, align 4
  br label %215

122:                                              ; preds = %110
  %123 = load i32, ptr %7, align 4, !tbaa !14
  %124 = icmp eq i32 %123, 3
  br i1 %124, label %128, label %125

125:                                              ; preds = %122
  %126 = load i32, ptr %7, align 4, !tbaa !14
  %127 = icmp eq i32 %126, 2
  br i1 %127, label %128, label %171

128:                                              ; preds = %125, %122
  call void @llvm.lifetime.start.p0(i64 1280, ptr %25) #8
  call void @llvm.memset.p0.i64(ptr align 4 %25, i8 0, i64 1280, i1 false)
  %129 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %130 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %131 = trunc i64 %130 to i32
  %132 = load i32, ptr %6, align 4, !tbaa !11
  %133 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %129, i32 noundef %131, ptr noundef %25, i32 noundef %132, i32 noundef 2)
          to label %134 unwind label %138

134:                                              ; preds = %128
  store i32 %133, ptr %21, align 4, !tbaa !20
  %135 = load i32, ptr %21, align 4, !tbaa !20
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %142

137:                                              ; preds = %134
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %168

138:                                              ; preds = %160, %154, %142, %128
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %14, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1280, ptr %25) #8
  br label %215

142:                                              ; preds = %134
  %143 = getelementptr inbounds %struct.allocator_t, ptr %26, i32 0, i32 0
  store ptr @malloc, ptr %143, align 8, !tbaa !22
  %144 = getelementptr inbounds %struct.allocator_t, ptr %26, i32 0, i32 1
  store ptr @free, ptr %144, align 8, !tbaa !24
  %145 = getelementptr inbounds { ptr, ptr }, ptr %26, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  %147 = getelementptr inbounds { ptr, ptr }, ptr %26, i32 0, i32 1
  %148 = load ptr, ptr %147, align 8
  %149 = invoke i32 @qpl_deflate_huffman_table_create(i32 noundef 0, i32 noundef 2, ptr %146, ptr %148, ptr noundef %19)
          to label %150 unwind label %138

150:                                              ; preds = %142
  store i32 %149, ptr %21, align 4, !tbaa !20
  %151 = load i32, ptr %21, align 4, !tbaa !20
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %150
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %168

154:                                              ; preds = %150
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %155, ptr noundef %25)
          to label %157 unwind label %138

157:                                              ; preds = %154
  store i32 %156, ptr %21, align 4, !tbaa !20
  %158 = load i32, ptr %21, align 4, !tbaa !20
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %164

160:                                              ; preds = %157
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %161)
          to label %163 unwind label %138

163:                                              ; preds = %160
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %168

164:                                              ; preds = %157
  %165 = load ptr, ptr %19, align 8, !tbaa !5
  %166 = load ptr, ptr %24, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.qpl_job, ptr %166, i32 0, i32 13
  store ptr %165, ptr %167, align 8, !tbaa !25
  store i32 0, ptr %22, align 4
  br label %168

168:                                              ; preds = %164, %163, %153, %137
  call void @llvm.lifetime.end.p0(i64 1280, ptr %25) #8
  %169 = load i32, ptr %22, align 4
  switch i32 %169, label %211 [
    i32 0, label %170
  ]

170:                                              ; preds = %168
  br label %171

171:                                              ; preds = %170, %125
  %172 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %173 = load ptr, ptr %24, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.qpl_job, ptr %173, i32 0, i32 0
  store ptr %172, ptr %174, align 8, !tbaa !34
  %175 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %176 = trunc i64 %175 to i32
  %177 = load ptr, ptr %24, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.qpl_job, ptr %177, i32 0, i32 1
  store i32 %176, ptr %178, align 8, !tbaa !35
  %179 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.qpl_job, ptr %180, i32 0, i32 3
  store ptr %179, ptr %181, align 8, !tbaa !36
  %182 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %183 = trunc i64 %182 to i32
  %184 = load ptr, ptr %24, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.qpl_job, ptr %184, i32 0, i32 4
  store i32 %183, ptr %185, align 8, !tbaa !37
  %186 = load ptr, ptr %24, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.qpl_job, ptr %186, i32 0, i32 5
  store i32 0, ptr %187, align 4, !tbaa !38
  %188 = load ptr, ptr %24, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.qpl_job, ptr %188, i32 0, i32 6
  store i32 1, ptr %189, align 8, !tbaa !39
  %190 = load i32, ptr %6, align 4, !tbaa !11
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.qpl_job, ptr %191, i32 0, i32 11
  store i32 %190, ptr %192, align 4, !tbaa !40
  %193 = load ptr, ptr %24, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.qpl_job, ptr %193, i32 0, i32 7
  store i32 16387, ptr %194, align 4, !tbaa !41
  %195 = load i32, ptr %7, align 4, !tbaa !14
  switch i32 %195, label %206 [
    i32 1, label %196
    i32 3, label %201
  ]

196:                                              ; preds = %171
  %197 = load ptr, ptr %24, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.qpl_job, ptr %197, i32 0, i32 7
  %199 = load i32, ptr %198, align 4, !tbaa !41
  %200 = or i32 %199, 8192
  store i32 %200, ptr %198, align 4, !tbaa !41
  br label %207

201:                                              ; preds = %171
  %202 = load ptr, ptr %24, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.qpl_job, ptr %202, i32 0, i32 7
  %204 = load i32, ptr %203, align 4, !tbaa !41
  %205 = or i32 %204, 4194304
  store i32 %205, ptr %203, align 4, !tbaa !41
  br label %207

206:                                              ; preds = %171
  br label %207

207:                                              ; preds = %206, %201, %196
  %208 = load ptr, ptr %24, align 8, !tbaa !5
  %209 = invoke i32 @qpl_execute_job(ptr noundef %208)
          to label %210 unwind label %118

210:                                              ; preds = %207
  store i32 %209, ptr %21, align 4, !tbaa !20
  store i32 0, ptr %22, align 4
  br label %211

211:                                              ; preds = %210, %168, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %212

212:                                              ; preds = %211, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %213 = load i32, ptr %22, align 4
  switch i32 %213, label %218 [
    i32 0, label %214
  ]

214:                                              ; preds = %212
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %218

215:                                              ; preds = %138, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br label %216

216:                                              ; preds = %215, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %217

217:                                              ; preds = %216, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br label %219

218:                                              ; preds = %214, %212
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #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 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %221

219:                                              ; preds = %217, %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  br label %220

220:                                              ; preds = %219, %91
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #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 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %223

221:                                              ; preds = %218, %29
  %222 = load i32, ptr %3, align 4
  ret i32 %222

223:                                              ; preds = %220
  %224 = load ptr, ptr %14, align 8
  %225 = load i32, ptr %15, align 4
  %226 = insertvalue { ptr, i32 } poison, ptr %224, 0
  %227 = insertvalue { ptr, i32 } %226, i32 %225, 1
  resume { ptr, i32 } %227
}

; 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

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

; 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) #4

; 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_init_job(i32 noundef, ptr noundef) #3

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

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

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

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

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

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

declare i32 @qpl_huffman_table_destroy(ptr noundef) #3

declare i32 @qpl_execute_job(ptr noundef) #3

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

; 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 ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::unique_ptr", align 8
  %11 = alloca %struct.qpl_histogram, align 4
  %12 = icmp ult i64 %1, 2
  br i1 %12, label %98, label %13

13:                                               ; preds = %2
  %14 = load i8, ptr %0, align 1, !tbaa !5
  %15 = zext i8 %14 to i32
  %16 = and i32 %15, 1
  %17 = icmp eq i32 %16, 0
  %spec.store.select = select i1 %17, i32 3, i32 1
  %18 = and i32 %15, 3
  %19 = getelementptr inbounds i8, ptr %0, i64 2
  %20 = add i64 %1, -2
  %21 = icmp ugt i64 %20, 8
  br i1 %21, label %22, label %29

22:                                               ; preds = %13
  %23 = getelementptr inbounds i8, ptr %0, i64 10
  %24 = add i64 %1, -10
  %25 = load i64, ptr %19, align 8, !tbaa !8
  %spec.store.select2 = tail call i64 @llvm.umax.i64(i64 %25, i64 1)
  %26 = shl i64 %24, 1
  %27 = urem i64 %spec.store.select2, %26
  %28 = icmp eq i64 %27, 0
  %spec.select = select i1 %28, i64 %26, i64 %27
  br label %29

29:                                               ; preds = %22, %13
  %.070 = phi ptr [ %23, %22 ], [ %19, %13 ]
  %.069 = phi i64 [ %24, %22 ], [ %20, %13 ]
  %.168 = phi i64 [ %spec.select, %22 ], [ %20, %13 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  %30 = getelementptr inbounds i8, ptr %.070, i64 %.069
  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 nonnull %.070, ptr noundef nonnull %30, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %31 unwind label %35

31:                                               ; preds = %29
  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 !5
  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 %.168, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %32 unwind label %37

32:                                               ; preds = %31
  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 8, ptr nonnull %8) #9
  store ptr null, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 0, ptr %9, align 4, !tbaa !13
  %33 = invoke i32 @qpl_get_job_size(i32 noundef 2, ptr noundef nonnull %9)
          to label %34 unwind label %39

34:                                               ; preds = %32
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %41, label %.critedge83

35:                                               ; preds = %29
  %36 = 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 %97

37:                                               ; preds = %31
  %38 = 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 %96

39:                                               ; preds = %32
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %94

41:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %42 = load i32, ptr %9, align 4, !tbaa !13
  %43 = zext i32 %42 to i64
  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 %43)
          to label %44 unwind label %48

44:                                               ; preds = %41
  %45 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %46 = invoke i32 @qpl_init_job(i32 noundef 2, ptr noundef %45)
          to label %47 unwind label %50

47:                                               ; preds = %44
  %.not73 = icmp eq i32 %46, 0
  br i1 %.not73, label %52, label %91

48:                                               ; preds = %41
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %93

50:                                               ; preds = %89, %44
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %92

52:                                               ; preds = %47
  %53 = and i32 %15, 2
  %or.cond.not = icmp eq i32 %53, 0
  br i1 %or.cond.not, label %74, label %54

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 1280, ptr nonnull %11) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1280) %11, i8 0, i64 1280, i1 false)
  %55 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %56 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %57 = trunc i64 %56 to i32
  %58 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %55, i32 noundef %57, ptr noundef nonnull %11, i32 noundef %spec.store.select, i32 noundef 2)
          to label %59 unwind label %60

59:                                               ; preds = %54
  %.not74 = icmp eq i32 %58, 0
  br i1 %.not74, label %62, label %73

60:                                               ; preds = %70, %65, %62, %54
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %11) #9
  br label %92

62:                                               ; preds = %59
  %63 = invoke i32 @qpl_deflate_huffman_table_create(i32 noundef 0, i32 noundef 2, ptr nonnull @malloc, ptr nonnull @free, ptr noundef nonnull %8)
          to label %64 unwind label %60

64:                                               ; preds = %62
  %.not75 = icmp eq i32 %63, 0
  br i1 %.not75, label %65, label %73

65:                                               ; preds = %64
  %66 = load ptr, ptr %8, align 8, !tbaa !11
  %67 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %66, ptr noundef nonnull %11)
          to label %68 unwind label %60

68:                                               ; preds = %65
  %.not76 = icmp eq i32 %67, 0
  %69 = load ptr, ptr %8, align 8, !tbaa !11
  br i1 %.not76, label %.critedge, label %70

70:                                               ; preds = %68
  %71 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %69)
          to label %73 unwind label %60

.critedge:                                        ; preds = %68
  %72 = getelementptr inbounds i8, ptr %45, i64 64
  store ptr %69, ptr %72, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %11) #9
  br label %74

73:                                               ; preds = %70, %64, %59
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %11) #9
  br label %91

74:                                               ; preds = %.critedge, %52
  %75 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %75, ptr %45, align 8, !tbaa !25
  %76 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %77 = trunc i64 %76 to i32
  %78 = getelementptr inbounds i8, ptr %45, i64 8
  store i32 %77, ptr %78, align 8, !tbaa !26
  %79 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %80 = getelementptr inbounds i8, ptr %45, i64 16
  store ptr %79, ptr %80, align 8, !tbaa !27
  %81 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %82 = trunc i64 %81 to i32
  %83 = getelementptr inbounds i8, ptr %45, i64 24
  store i32 %82, ptr %83, align 8, !tbaa !28
  %84 = getelementptr inbounds i8, ptr %45, i64 28
  store i32 0, ptr %84, align 4, !tbaa !29
  %85 = getelementptr inbounds i8, ptr %45, i64 32
  store i32 1, ptr %85, align 8, !tbaa !30
  %86 = getelementptr inbounds i8, ptr %45, i64 52
  store i32 %spec.store.select, ptr %86, align 4, !tbaa !31
  %87 = getelementptr inbounds i8, ptr %45, i64 36
  store i32 16387, ptr %87, align 4, !tbaa !32
  switch i32 %18, label %89 [
    i32 1, label %.sink.split
    i32 3, label %88
  ]

88:                                               ; preds = %74
  br label %.sink.split

.sink.split:                                      ; preds = %74, %88
  %.sink = phi i32 [ 4210691, %88 ], [ 24579, %74 ]
  store i32 %.sink, ptr %87, align 4, !tbaa !32
  br label %89

89:                                               ; preds = %.sink.split, %74
  %90 = invoke i32 @qpl_execute_job(ptr noundef nonnull %45)
          to label %91 unwind label %50

91:                                               ; preds = %89, %73, %47
  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 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %95

92:                                               ; preds = %60, %50
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %61, %60 ]
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %93

93:                                               ; preds = %92, %48
  %.pn.pn = phi { ptr, i32 } [ %.pn, %92 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %94

94:                                               ; preds = %93, %39
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %93 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  br label %96

.critedge83:                                      ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %95

95:                                               ; preds = %91, %.critedge83
  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 %98

96:                                               ; preds = %94, %37
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %94 ], [ %38, %37 ]
  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 %97

97:                                               ; preds = %96, %35
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %96 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

98:                                               ; preds = %2, %95
  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

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

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

; 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_init_job(i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

declare i32 @qpl_huffman_table_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @qpl_execute_job(ptr noundef) local_unnamed_addr #3

; 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

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


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