; LLVM IR from intel/qpl :: tools/tests/fuzzing/low-level-api (inflate_canned_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 }
%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 i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca i8, align 1
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %struct.qpl_histogram, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %struct.allocator_t, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::unique_ptr", align 8
  %26 = 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
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %27, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %28 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %28, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %29 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %29, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 2, ptr %10, align 4, !tbaa !13
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = icmp eq i64 0, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %207

33:                                               ; preds = %2
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 0
  %36 = load i8, ptr %35, align 1, !tbaa !15
  %37 = zext i8 %36 to i32
  %38 = and i32 %37, 4
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %33
  store i32 3, ptr %9, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %40, %33
  %42 = load i64, ptr %5, align 8, !tbaa !9
  %43 = icmp ult i64 16, %42
  br i1 %43, label %44, label %76

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %45, ptr %12, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store ptr %47, ptr %6, align 8, !tbaa !5
  %48 = load i64, ptr %7, align 8, !tbaa !9
  %49 = sub i64 %48, 16
  store i64 %49, ptr %7, align 8, !tbaa !9
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.inflate_properties, ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !16
  store i64 %52, ptr %8, align 8, !tbaa !9
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.inflate_properties, ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !18
  %56 = and i64 %55, 1
  %57 = icmp ne i64 %56, 0
  %58 = zext i1 %57 to i64
  %59 = select i1 %57, i32 3, i32 1
  store i32 %59, ptr %9, align 4, !tbaa !11
  %60 = load i64, ptr %8, align 8, !tbaa !9
  %61 = icmp eq i64 0, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %44
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %62, %44
  %64 = load i64, ptr %7, align 8, !tbaa !9
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = add i64 %64, %65
  %67 = load i64, ptr %8, align 8, !tbaa !9
  %68 = urem i64 %67, %66
  store i64 %68, ptr %8, align 8, !tbaa !9
  %69 = load i64, ptr %8, align 8, !tbaa !9
  %70 = icmp eq i64 0, %69
  br i1 %70, label %71, label %75

71:                                               ; preds = %63
  %72 = load i64, ptr %7, align 8, !tbaa !9
  %73 = load i64, ptr %7, align 8, !tbaa !9
  %74 = add i64 %72, %73
  store i64 %74, ptr %8, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %71, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %76

76:                                               ; preds = %75, %41
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = load i64, ptr %7, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %78, i64 %79
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %77, ptr noundef %80, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %81 unwind label %94

81:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  %82 = load i64, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  store i8 -86, ptr %18, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %82, ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %83 unwind label %98

83:                                               ; preds = %81
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 1280, ptr %20) #8
  call void @llvm.memset.p0.i64(ptr align 4 %20, i8 0, i64 1280, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !19
  %84 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %85 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %86 = trunc i64 %85 to i32
  %87 = load i32, ptr %9, align 4, !tbaa !11
  %88 = load i32, ptr %10, align 4, !tbaa !13
  %89 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %84, i32 noundef %86, ptr noundef %20, i32 noundef %87, i32 noundef %88)
          to label %90 unwind label %102

90:                                               ; preds = %83
  store i32 %89, ptr %22, align 4, !tbaa !19
  %91 = load i32, ptr %22, align 4, !tbaa !19
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %106

93:                                               ; preds = %90
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %198

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

98:                                               ; preds = %81
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %15, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  br label %205

102:                                              ; preds = %125, %119, %106, %83
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %15, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %16, align 4
  br label %203

106:                                              ; preds = %90
  %107 = load i32, ptr %10, align 4, !tbaa !13
  %108 = getelementptr inbounds %struct.allocator_t, ptr %23, i32 0, i32 0
  store ptr @malloc, ptr %108, align 8, !tbaa !21
  %109 = getelementptr inbounds %struct.allocator_t, ptr %23, i32 0, i32 1
  store ptr @free, ptr %109, align 8, !tbaa !23
  %110 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8
  %114 = invoke i32 @qpl_deflate_huffman_table_create(i32 noundef 0, i32 noundef %107, ptr %111, ptr %113, ptr noundef %21)
          to label %115 unwind label %102

115:                                              ; preds = %106
  store i32 %114, ptr %22, align 4, !tbaa !19
  %116 = load i32, ptr %22, align 4, !tbaa !19
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %115
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %198

119:                                              ; preds = %115
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  %121 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %120, ptr noundef %20)
          to label %122 unwind label %102

122:                                              ; preds = %119
  store i32 %121, ptr %22, align 4, !tbaa !19
  %123 = load i32, ptr %22, align 4, !tbaa !19
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %129

125:                                              ; preds = %122
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %126)
          to label %128 unwind label %102

128:                                              ; preds = %125
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %198

129:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !24
  %130 = load i32, ptr %10, align 4, !tbaa !13
  %131 = invoke i32 @qpl_get_job_size(i32 noundef %130, ptr noundef %24)
          to label %132 unwind label %136

132:                                              ; preds = %129
  store i32 %131, ptr %22, align 4, !tbaa !19
  %133 = load i32, ptr %22, align 4, !tbaa !19
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %140

135:                                              ; preds = %132
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %197

136:                                              ; preds = %129
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %15, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %16, align 4
  br label %202

140:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %141 = load i32, ptr %24, align 4, !tbaa !24
  %142 = zext i32 %141 to i64
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %25, i64 noundef %142)
          to label %143 unwind label %155

143:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %144 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  store ptr %144, ptr %26, align 8, !tbaa !5
  %145 = load i32, ptr %10, align 4, !tbaa !13
  %146 = load ptr, ptr %26, align 8, !tbaa !5
  %147 = invoke i32 @qpl_init_job(i32 noundef %145, ptr noundef %146)
          to label %148 unwind label %159

148:                                              ; preds = %143
  store i32 %147, ptr %22, align 4, !tbaa !19
  %149 = load i32, ptr %22, align 4, !tbaa !19
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %163

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

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

155:                                              ; preds = %140
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %15, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %16, align 4
  br label %201

159:                                              ; preds = %192, %189, %163, %151, %143
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %15, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br label %201

163:                                              ; preds = %148
  %164 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %165 = load ptr, ptr %26, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.qpl_job, ptr %165, i32 0, i32 0
  store ptr %164, ptr %166, align 8, !tbaa !26
  %167 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %168 = trunc i64 %167 to i32
  %169 = load ptr, ptr %26, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.qpl_job, ptr %169, i32 0, i32 1
  store i32 %168, ptr %170, align 8, !tbaa !34
  %171 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %172 = load ptr, ptr %26, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qpl_job, ptr %172, i32 0, i32 3
  store ptr %171, ptr %173, align 8, !tbaa !35
  %174 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %175 = trunc i64 %174 to i32
  %176 = load ptr, ptr %26, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.qpl_job, ptr %176, i32 0, i32 4
  store i32 %175, ptr %177, align 8, !tbaa !36
  %178 = load ptr, ptr %21, align 8, !tbaa !5
  %179 = load ptr, ptr %26, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.qpl_job, ptr %179, i32 0, i32 13
  store ptr %178, ptr %180, align 8, !tbaa !37
  %181 = load ptr, ptr %26, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.qpl_job, ptr %181, i32 0, i32 5
  store i32 0, ptr %182, align 4, !tbaa !38
  %183 = load ptr, ptr %26, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.qpl_job, ptr %183, i32 0, i32 6
  store i32 0, ptr %184, align 8, !tbaa !39
  %185 = load ptr, ptr %26, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.qpl_job, ptr %185, i32 0, i32 7
  store i32 4194307, ptr %186, align 4, !tbaa !40
  %187 = load ptr, ptr %26, align 8, !tbaa !5
  %188 = invoke i32 @qpl_execute_job(ptr noundef %187)
          to label %189 unwind label %159

189:                                              ; preds = %163
  store i32 %188, ptr %22, align 4, !tbaa !19
  %190 = load ptr, ptr %26, align 8, !tbaa !5
  %191 = invoke i32 @qpl_fini_job(ptr noundef %190)
          to label %192 unwind label %159

192:                                              ; preds = %189
  store i32 %191, ptr %22, align 4, !tbaa !19
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %193)
          to label %195 unwind label %159

195:                                              ; preds = %192
  store i32 0, ptr %11, align 4
  br label %196

196:                                              ; preds = %195, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %197

197:                                              ; preds = %196, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %198

198:                                              ; preds = %197, %128, %118, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 1280, ptr %20) #8
  %199 = load i32, ptr %11, align 4
  switch i32 %199, label %204 [
    i32 0, label %200
  ]

200:                                              ; preds = %198
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %204

201:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %202

202:                                              ; preds = %201, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %203

203:                                              ; preds = %202, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 1280, ptr %20) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  br label %205

204:                                              ; preds = %200, %198
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %207

205:                                              ; preds = %203, %98
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %206

206:                                              ; preds = %205, %94
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, 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 %209

207:                                              ; preds = %204, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, 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
  %208 = load i32, ptr %3, align 4
  ret i32 %208

209:                                              ; preds = %206
  %210 = load ptr, ptr %15, align 8
  %211 = load i32, ptr %16, align 4
  %212 = insertvalue { ptr, i32 } poison, ptr %210, 0
  %213 = insertvalue { ptr, i32 } %212, i32 %211, 1
  resume { ptr, i32 } %213
}

; 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 i32 @qpl_get_job_size(i32 noundef, ptr 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_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, !14, i64 0}
!14 = !{!"_ZTS10qpl_path_t", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTS18inflate_properties", !10, i64 0, !10, i64 8}
!18 = !{!17, !10, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS10qpl_status", !7, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTS11allocator_t", !6, i64 0, !6, i64 8}
!23 = !{!22, !6, i64 8}
!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, !14, i64 40}
!34 = !{!27, !25, i64 8}
!35 = !{!27, !6, i64 16}
!36 = !{!27, !25, i64 24}
!37 = !{!27, !6, i64 64}
!38 = !{!27, !25, i64 28}
!39 = !{!27, !28, i64 32}
!40 = !{!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 i32, align 4
  %11 = alloca %"class.std::unique_ptr", align 8
  %12 = icmp eq i64 %1, 0
  br i1 %12, label %97, label %13

13:                                               ; preds = %2
  %14 = load i8, ptr %0, align 1, !tbaa !5
  %15 = and i8 %14, 4
  %.not = icmp eq i8 %15, 0
  %spec.select = select i1 %.not, i32 1, i32 3
  %16 = icmp ugt i64 %1, 16
  br i1 %16, label %17, label %28

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = add i64 %1, -16
  %20 = load i64, ptr %0, align 8, !tbaa !8
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = and i64 %22, 1
  %.not66 = icmp eq i64 %23, 0
  %24 = select i1 %.not66, i32 1, i32 3
  %spec.store.select = tail call i64 @llvm.umax.i64(i64 %20, i64 1)
  %25 = shl i64 %19, 1
  %26 = urem i64 %spec.store.select, %25
  %27 = icmp eq i64 %26, 0
  %spec.select78 = select i1 %27, i64 %25, i64 %26
  br label %28

28:                                               ; preds = %17, %13
  %.164 = phi i32 [ %24, %17 ], [ %spec.select, %13 ]
  %.159 = phi i64 [ %spec.select78, %17 ], [ %1, %13 ]
  %.047 = phi i64 [ %19, %17 ], [ %1, %13 ]
  %.046 = phi ptr [ %18, %17 ], [ %0, %13 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  %29 = getelementptr inbounds i8, ptr %.046, i64 %.047
  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 %.046, ptr noundef nonnull %29, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %30 unwind label %37

30:                                               ; preds = %28
  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 %.159, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %31 unwind label %39

31:                                               ; preds = %30
  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
  %32 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %33 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %34 = trunc i64 %33 to i32
  %35 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %32, i32 noundef %34, ptr noundef nonnull %8, i32 noundef %.164, i32 noundef 2)
          to label %36 unwind label %41

36:                                               ; preds = %31
  %.not67 = icmp eq i32 %35, 0
  br i1 %.not67, label %43, label %.critedge

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

39:                                               ; preds = %30
  %40 = 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 %95

41:                                               ; preds = %50, %46, %43, %31
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %93

43:                                               ; preds = %36
  %44 = 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 %45 unwind label %41

45:                                               ; preds = %43
  %.not68 = icmp eq i32 %44, 0
  br i1 %.not68, label %46, label %.critedge

46:                                               ; preds = %45
  %47 = load ptr, ptr %9, align 8, !tbaa !12
  %48 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %47, ptr noundef nonnull %8)
          to label %49 unwind label %41

49:                                               ; preds = %46
  %.not69 = icmp eq i32 %48, 0
  br i1 %.not69, label %53, label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %9, align 8, !tbaa !12
  %52 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %51)
          to label %.critedge unwind label %41

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store i32 0, ptr %10, align 4, !tbaa !14
  %54 = invoke i32 @qpl_get_job_size(i32 noundef 2, ptr noundef nonnull %10)
          to label %55 unwind label %56

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

56:                                               ; preds = %53
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %92

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %59 = load i32, ptr %10, align 4, !tbaa !14
  %60 = zext i32 %59 to i64
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %11, i64 noundef %60)
          to label %61 unwind label %65

61:                                               ; preds = %58
  %62 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %63 = invoke i32 @qpl_init_job(i32 noundef 2, ptr noundef %62)
          to label %64 unwind label %67

64:                                               ; preds = %61
  %.not71 = icmp eq i32 %63, 0
  br i1 %.not71, label %69, label %.invoke

65:                                               ; preds = %58
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %91

67:                                               ; preds = %.invoke, %85, %69, %61
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %91

69:                                               ; preds = %64
  %70 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %70, ptr %62, align 8, !tbaa !16
  %71 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %72 = trunc i64 %71 to i32
  %73 = getelementptr inbounds i8, ptr %62, i64 8
  store i32 %72, ptr %73, align 8, !tbaa !26
  %74 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %75 = getelementptr inbounds i8, ptr %62, i64 16
  store ptr %74, ptr %75, align 8, !tbaa !27
  %76 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %77 = trunc i64 %76 to i32
  %78 = getelementptr inbounds i8, ptr %62, i64 24
  store i32 %77, ptr %78, align 8, !tbaa !28
  %79 = load ptr, ptr %9, align 8, !tbaa !12
  %80 = getelementptr inbounds i8, ptr %62, i64 64
  store ptr %79, ptr %80, align 8, !tbaa !29
  %81 = getelementptr inbounds i8, ptr %62, i64 28
  store i32 0, ptr %81, align 4, !tbaa !30
  %82 = getelementptr inbounds i8, ptr %62, i64 32
  store i32 0, ptr %82, align 8, !tbaa !31
  %83 = getelementptr inbounds i8, ptr %62, i64 36
  store i32 4194307, ptr %83, align 4, !tbaa !32
  %84 = invoke i32 @qpl_execute_job(ptr noundef nonnull %62)
          to label %85 unwind label %67

85:                                               ; preds = %69
  %86 = invoke i32 @qpl_fini_job(ptr noundef nonnull %62)
          to label %.invoke unwind label %67

.invoke:                                          ; preds = %85, %64
  %87 = load ptr, ptr %9, align 8, !tbaa !12
  %88 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %87)
          to label %89 unwind label %67

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

90:                                               ; preds = %55, %89
  call void @llvm.lifetime.end.p0(i64 4, 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 %94

91:                                               ; preds = %67, %65
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %92

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

93:                                               ; preds = %92, %41
  %.pn74 = phi { ptr, i32 } [ %42, %41 ], [ %.pn.pn, %92 ]
  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 %95

.critedge:                                        ; preds = %50, %45, %36
  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 %94

94:                                               ; preds = %90, %.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 %97

95:                                               ; preds = %93, %39
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %93 ], [ %40, %39 ]
  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 %96

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

97:                                               ; preds = %2, %94
  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 i32 @qpl_get_job_size(i32 noundef, ptr 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_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

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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTS18inflate_properties", !10, i64 0, !10, i64 8}
!10 = !{!"long", !6, i64 0}
!11 = !{!9, !10, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !6, 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, !6, i64 104, !6, i64 105, !6, i64 106, !10, i64 112, !10, 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", !6, i64 0}
!19 = !{!"_ZTS22qpl_compression_levels", !6, i64 0}
!20 = !{!"_ZTS19qpl_statistics_mode", !6, i64 0}
!21 = !{!"_ZTS19qpl_mini_block_size", !6, i64 0}
!22 = !{!"_ZTS14qpl_out_format", !6, i64 0}
!23 = !{!"_ZTS10qpl_parser", !6, 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", !6, 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, !18, i64 32}
!32 = !{!17, !15, i64 36}


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