; LLVM IR from intel/qpl :: examples/low-level-api (compression_static_multi_chunk_example)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.2" = 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.6" }
%"struct.std::_Head_base.6" = type { ptr }
%struct.allocator_t = type { ptr, ptr }
%struct.qpl_histogram = type { [286 x i32], [2 x i32], [30 x i32], [2 x i32] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@constinit = external hidden constant [5 x i32], align 4
@.str.8 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.std::allocator.2", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca i8, align 1
  %16 = alloca %"class.std::allocator.2", align 1
  %17 = alloca %"class.std::unique_ptr", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::unique_ptr", align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %struct.allocator_t, align 8
  %24 = alloca %struct.qpl_histogram, align 4
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca %"class.std::initializer_list", align 8
  %27 = alloca [5 x i32], align 4
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::vector.0", align 8
  %34 = alloca i8, align 1
  %35 = alloca %"class.std::allocator.2", align 1
  %36 = alloca i64, align 8
  %37 = alloca i32, align 4
  %38 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %40 = call ptr @qpl_get_library_version()
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef %40)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  store i32 2, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = call noundef i32 @_ZL20parse_execution_pathiPPcP10qpl_path_ti(i32 noundef %43, ptr noundef %44, ptr noundef %6, i32 noundef 0)
  store i32 %45, ptr %7, align 4, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %448

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #10
  store i8 5, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #10
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %50 unwind label %65

50:                                               ; preds = %49
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #10
  store i8 7, ptr %15, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #10
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %51 unwind label %69

51:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %52 = load i32, ptr %6, align 4, !tbaa !11
  %53 = invoke i32 @qpl_get_job_size(i32 noundef %52, ptr noundef %18)
          to label %54 unwind label %73

54:                                               ; preds = %51
  store i32 %53, ptr %19, align 4, !tbaa !14
  %55 = load i32, ptr %19, align 4, !tbaa !14
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %77

57:                                               ; preds = %54
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %59 unwind label %73

59:                                               ; preds = %57
  %60 = load i32, ptr %19, align 4, !tbaa !14
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef %60)
          to label %62 unwind label %73

62:                                               ; preds = %59
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.3)
          to label %64 unwind label %73

64:                                               ; preds = %62
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %444

65:                                               ; preds = %49
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %12, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #10
  br label %447

69:                                               ; preds = %50
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #10
  br label %446

73:                                               ; preds = %62, %59, %57, %51
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  br label %445

77:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %78 = load i32, ptr %18, align 4, !tbaa !5
  %79 = zext i32 %78 to i64
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %20, i64 noundef %79)
          to label %80 unwind label %97

80:                                               ; preds = %77
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %82 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  store ptr %82, ptr %21, align 8, !tbaa !9
  %83 = load i32, ptr %6, align 4, !tbaa !11
  %84 = load ptr, ptr %21, align 8, !tbaa !9
  %85 = invoke i32 @qpl_init_job(i32 noundef %83, ptr noundef %84)
          to label %86 unwind label %101

86:                                               ; preds = %80
  store i32 %85, ptr %19, align 4, !tbaa !14
  %87 = load i32, ptr %19, align 4, !tbaa !14
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %105

89:                                               ; preds = %86
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %91 unwind label %101

91:                                               ; preds = %89
  %92 = load i32, ptr %19, align 4, !tbaa !14
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %90, i32 noundef %92)
          to label %94 unwind label %101

94:                                               ; preds = %91
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @.str.4)
          to label %96 unwind label %101

96:                                               ; preds = %94
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %442

97:                                               ; preds = %77
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %12, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %445

101:                                              ; preds = %94, %91, %89, %80
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %12, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %13, align 4
  br label %443

105:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  store ptr null, ptr %22, align 8, !tbaa !9
  %106 = load i32, ptr %6, align 4, !tbaa !11
  %107 = getelementptr inbounds %struct.allocator_t, ptr %23, i32 0, i32 0
  store ptr @malloc, ptr %107, align 8, !tbaa !16
  %108 = getelementptr inbounds %struct.allocator_t, ptr %23, i32 0, i32 1
  store ptr @free, ptr %108, align 8, !tbaa !18
  %109 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8
  %113 = invoke i32 @qpl_deflate_huffman_table_create(i32 noundef 1, i32 noundef %106, ptr %110, ptr %112, ptr noundef %22)
          to label %114 unwind label %125

114:                                              ; preds = %105
  store i32 %113, ptr %19, align 4, !tbaa !14
  %115 = load i32, ptr %19, align 4, !tbaa !14
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %129

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %119 unwind label %125

119:                                              ; preds = %117
  %120 = load i32, ptr %19, align 4, !tbaa !14
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %118, i32 noundef %120)
          to label %122 unwind label %125

122:                                              ; preds = %119
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @.str.5)
          to label %124 unwind label %125

124:                                              ; preds = %122
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %440

125:                                              ; preds = %122, %119, %117, %105
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %12, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %13, align 4
  br label %441

129:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 1280, ptr %24) #10
  call void @llvm.memset.p0.i64(ptr align 4 %24, i8 0, i64 1280, i1 false)
  %130 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %131 = load i32, ptr %6, align 4, !tbaa !11
  %132 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %130, i32 noundef 1000, ptr noundef %24, i32 noundef 1, i32 noundef %131)
          to label %133 unwind label %147

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

136:                                              ; preds = %133
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %138 unwind label %147

138:                                              ; preds = %136
  %139 = load i32, ptr %19, align 4, !tbaa !14
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %137, i32 noundef %139)
          to label %141 unwind label %147

141:                                              ; preds = %138
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @.str.6)
          to label %143 unwind label %147

143:                                              ; preds = %141
  %144 = load ptr, ptr %22, align 8, !tbaa !9
  %145 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %144)
          to label %146 unwind label %147

146:                                              ; preds = %143
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %438

147:                                              ; preds = %164, %162, %159, %157, %151, %143, %141, %138, %136, %129
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %12, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %13, align 4
  br label %439

151:                                              ; preds = %133
  %152 = load ptr, ptr %22, align 8, !tbaa !9
  %153 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %152, ptr noundef %24)
          to label %154 unwind label %147

154:                                              ; preds = %151
  store i32 %153, ptr %19, align 4, !tbaa !14
  %155 = load i32, ptr %19, align 4, !tbaa !14
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %168

157:                                              ; preds = %154
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %159 unwind label %147

159:                                              ; preds = %157
  %160 = load i32, ptr %19, align 4, !tbaa !14
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %158, i32 noundef %160)
          to label %162 unwind label %147

162:                                              ; preds = %159
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef @.str.7)
          to label %164 unwind label %147

164:                                              ; preds = %162
  %165 = load ptr, ptr %22, align 8, !tbaa !9
  %166 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %165)
          to label %167 unwind label %147

167:                                              ; preds = %164
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %438

168:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 20, ptr %27) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 @constinit, i64 20, i1 false), !tbaa.struct !19
  %169 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 0
  store ptr %27, ptr %169, align 8, !tbaa !20
  %170 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 1
  store i64 5, ptr %170, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #10
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  %171 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8
  %173 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %174 = load i64, ptr %173, align 8
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr %172, i64 %174, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %175 unwind label %185

175:                                              ; preds = %168
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr %27) #10
  invoke void @_ZNSt6vectorIjSaIjEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %176 unwind label %189

176:                                              ; preds = %175
  %177 = call noundef i32 @_Z3sumSt6vectorIjSaIjEE(ptr noundef %29)
  %178 = icmp ne i32 %177, 1000
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #10
  br i1 %178, label %179, label %193

179:                                              ; preds = %176
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %181 unwind label %189

181:                                              ; preds = %179
  %182 = load ptr, ptr %22, align 8, !tbaa !9
  %183 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %182)
          to label %184 unwind label %189

184:                                              ; preds = %181
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %435

185:                                              ; preds = %168
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %12, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr %27) #10
  br label %437

189:                                              ; preds = %181, %179, %175
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %12, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %13, align 4
  br label %436

193:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  store i32 0, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  store i64 0, ptr %31, align 8, !tbaa !24
  br label %194

194:                                              ; preds = %224, %193
  %195 = load i64, ptr %31, align 8, !tbaa !24
  %196 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #10
  %197 = icmp ult i64 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 2, ptr %8, align 4
  br label %227

199:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  %200 = load i64, ptr %31, align 8, !tbaa !24
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %200) #10
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = invoke i32 @qpl_get_safe_deflate_compression_buffer_size(i32 noundef %202)
          to label %204 unwind label %213

204:                                              ; preds = %199
  store i32 %203, ptr %32, align 4, !tbaa !5
  %205 = load i32, ptr %32, align 4, !tbaa !5
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %217

207:                                              ; preds = %204
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
          to label %209 unwind label %213

209:                                              ; preds = %207
  %210 = load ptr, ptr %22, align 8, !tbaa !9
  %211 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %210)
          to label %212 unwind label %213

212:                                              ; preds = %209
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %221

213:                                              ; preds = %209, %207, %199
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %12, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  br label %434

217:                                              ; preds = %204
  %218 = load i32, ptr %32, align 4, !tbaa !5
  %219 = load i32, ptr %30, align 4, !tbaa !5
  %220 = add i32 %219, %218
  store i32 %220, ptr %30, align 4, !tbaa !5
  store i32 0, ptr %8, align 4
  br label %221

221:                                              ; preds = %217, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  %222 = load i32, ptr %8, align 4
  switch i32 %222, label %227 [
    i32 0, label %223
  ]

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223
  %225 = load i64, ptr %31, align 8, !tbaa !24
  %226 = add i64 %225, 1
  store i64 %226, ptr %31, align 8, !tbaa !24
  br label %194, !llvm.loop !25

227:                                              ; preds = %221, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  %228 = load i32, ptr %8, align 4
  switch i32 %228, label %433 [
    i32 2, label %229
  ]

229:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #10
  %230 = load i32, ptr %30, align 4, !tbaa !5
  %231 = zext i32 %230 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #10
  store i8 4, ptr %34, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #10
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %231, ptr noundef nonnull align 1 dereferenceable(1) %34, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %232 unwind label %253

232:                                              ; preds = %229
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  %233 = load ptr, ptr %21, align 8, !tbaa !9
  %234 = getelementptr inbounds %struct.qpl_job, ptr %233, i32 0, i32 6
  store i32 1, ptr %234, align 8, !tbaa !27
  %235 = load ptr, ptr %21, align 8, !tbaa !9
  %236 = getelementptr inbounds %struct.qpl_job, ptr %235, i32 0, i32 11
  store i32 1, ptr %236, align 4, !tbaa !36
  %237 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %238 = load ptr, ptr %21, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.qpl_job, ptr %238, i32 0, i32 0
  store ptr %237, ptr %239, align 8, !tbaa !37
  %240 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  %241 = load ptr, ptr %21, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.qpl_job, ptr %241, i32 0, i32 3
  store ptr %240, ptr %242, align 8, !tbaa !38
  %243 = load ptr, ptr %21, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.qpl_job, ptr %243, i32 0, i32 7
  store i32 16385, ptr %244, align 4, !tbaa !39
  %245 = load ptr, ptr %22, align 8, !tbaa !9
  %246 = load ptr, ptr %21, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.qpl_job, ptr %246, i32 0, i32 13
  store ptr %245, ptr %247, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  store i64 0, ptr %36, align 8, !tbaa !24
  br label %248

248:                                              ; preds = %305, %232
  %249 = load i64, ptr %36, align 8, !tbaa !24
  %250 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #10
  %251 = icmp ult i64 %249, %250
  br i1 %251, label %257, label %252

252:                                              ; preds = %248
  store i32 5, ptr %8, align 4
  br label %308

253:                                              ; preds = %229
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %12, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  br label %432

257:                                              ; preds = %248
  %258 = load i64, ptr %36, align 8, !tbaa !24
  %259 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #10
  %260 = sub i64 %259, 1
  %261 = icmp eq i64 %258, %260
  br i1 %261, label %262, label %267

262:                                              ; preds = %257
  %263 = load ptr, ptr %21, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.qpl_job, ptr %263, i32 0, i32 7
  %265 = load i32, ptr %264, align 4, !tbaa !39
  %266 = or i32 %265, 2
  store i32 %266, ptr %264, align 4, !tbaa !39
  br label %267

267:                                              ; preds = %262, %257
  %268 = load i64, ptr %36, align 8, !tbaa !24
  %269 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %268) #10
  %270 = load i32, ptr %269, align 4, !tbaa !5
  %271 = load ptr, ptr %21, align 8, !tbaa !9
  %272 = getelementptr inbounds %struct.qpl_job, ptr %271, i32 0, i32 1
  store i32 %270, ptr %272, align 8, !tbaa !41
  %273 = load i64, ptr %36, align 8, !tbaa !24
  %274 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %273) #10
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = invoke i32 @qpl_get_safe_deflate_compression_buffer_size(i32 noundef %275)
          to label %277 unwind label %296

277:                                              ; preds = %267
  %278 = load ptr, ptr %21, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.qpl_job, ptr %278, i32 0, i32 4
  store i32 %276, ptr %279, align 8, !tbaa !42
  %280 = load ptr, ptr %21, align 8, !tbaa !9
  %281 = invoke i32 @qpl_execute_job(ptr noundef %280)
          to label %282 unwind label %296

282:                                              ; preds = %277
  store i32 %281, ptr %19, align 4, !tbaa !14
  %283 = load i32, ptr %19, align 4, !tbaa !14
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %300

285:                                              ; preds = %282
  %286 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %287 unwind label %296

287:                                              ; preds = %285
  %288 = load i32, ptr %19, align 4, !tbaa !14
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %286, i32 noundef %288)
          to label %290 unwind label %296

290:                                              ; preds = %287
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %289, ptr noundef @.str.10)
          to label %292 unwind label %296

292:                                              ; preds = %290
  %293 = load ptr, ptr %22, align 8, !tbaa !9
  %294 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %293)
          to label %295 unwind label %296

295:                                              ; preds = %292
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %308

296:                                              ; preds = %292, %290, %287, %285, %277, %267
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %12, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %431

300:                                              ; preds = %282
  %301 = load ptr, ptr %21, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.qpl_job, ptr %301, i32 0, i32 7
  %303 = load i32, ptr %302, align 4, !tbaa !39
  %304 = and i32 %303, -2
  store i32 %304, ptr %302, align 4, !tbaa !39
  br label %305

305:                                              ; preds = %300
  %306 = load i64, ptr %36, align 8, !tbaa !24
  %307 = add i64 %306, 1
  store i64 %307, ptr %36, align 8, !tbaa !24
  br label %248, !llvm.loop !43

308:                                              ; preds = %295, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  %309 = load i32, ptr %8, align 4
  switch i32 %309, label %430 [
    i32 5, label %310
  ]

310:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  %311 = load ptr, ptr %21, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.qpl_job, ptr %311, i32 0, i32 5
  %313 = load i32, ptr %312, align 4, !tbaa !44
  store i32 %313, ptr %37, align 4, !tbaa !5
  %314 = load ptr, ptr %21, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.qpl_job, ptr %314, i32 0, i32 6
  store i32 0, ptr %315, align 8, !tbaa !27
  %316 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  %317 = load ptr, ptr %21, align 8, !tbaa !9
  %318 = getelementptr inbounds %struct.qpl_job, ptr %317, i32 0, i32 0
  store ptr %316, ptr %318, align 8, !tbaa !37
  %319 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  %320 = load ptr, ptr %21, align 8, !tbaa !9
  %321 = getelementptr inbounds %struct.qpl_job, ptr %320, i32 0, i32 3
  store ptr %319, ptr %321, align 8, !tbaa !38
  %322 = load i32, ptr %37, align 4, !tbaa !5
  %323 = load ptr, ptr %21, align 8, !tbaa !9
  %324 = getelementptr inbounds %struct.qpl_job, ptr %323, i32 0, i32 1
  store i32 %322, ptr %324, align 8, !tbaa !41
  %325 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  %326 = trunc i64 %325 to i32
  %327 = load ptr, ptr %21, align 8, !tbaa !9
  %328 = getelementptr inbounds %struct.qpl_job, ptr %327, i32 0, i32 4
  store i32 %326, ptr %328, align 8, !tbaa !42
  %329 = load ptr, ptr %21, align 8, !tbaa !9
  %330 = getelementptr inbounds %struct.qpl_job, ptr %329, i32 0, i32 7
  store i32 3, ptr %330, align 4, !tbaa !39
  %331 = load ptr, ptr %21, align 8, !tbaa !9
  %332 = invoke i32 @qpl_execute_job(ptr noundef %331)
          to label %333 unwind label %347

333:                                              ; preds = %310
  store i32 %332, ptr %19, align 4, !tbaa !14
  %334 = load i32, ptr %19, align 4, !tbaa !14
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %336, label %351

336:                                              ; preds = %333
  %337 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %338 unwind label %347

338:                                              ; preds = %336
  %339 = load i32, ptr %19, align 4, !tbaa !14
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %337, i32 noundef %339)
          to label %341 unwind label %347

341:                                              ; preds = %338
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %340, ptr noundef @.str.11)
          to label %343 unwind label %347

343:                                              ; preds = %341
  %344 = load ptr, ptr %22, align 8, !tbaa !9
  %345 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %344)
          to label %346 unwind label %347

346:                                              ; preds = %343
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %428

347:                                              ; preds = %425, %420, %418, %415, %413, %411, %409, %407, %376, %373, %371, %365, %362, %359, %357, %351, %343, %341, %338, %336, %310
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %12, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %13, align 4
  br label %429

351:                                              ; preds = %333
  %352 = load ptr, ptr %22, align 8, !tbaa !9
  %353 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %352)
          to label %354 unwind label %347

354:                                              ; preds = %351
  store i32 %353, ptr %19, align 4, !tbaa !14
  %355 = load i32, ptr %19, align 4, !tbaa !14
  %356 = icmp ne i32 %355, 0
  br i1 %356, label %357, label %365

357:                                              ; preds = %354
  %358 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %359 unwind label %347

359:                                              ; preds = %357
  %360 = load i32, ptr %19, align 4, !tbaa !14
  %361 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %358, i32 noundef %360)
          to label %362 unwind label %347

362:                                              ; preds = %359
  %363 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %361, ptr noundef @.str.12)
          to label %364 unwind label %347

364:                                              ; preds = %362
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %428

365:                                              ; preds = %354
  %366 = load ptr, ptr %21, align 8, !tbaa !9
  %367 = invoke i32 @qpl_fini_job(ptr noundef %366)
          to label %368 unwind label %347

368:                                              ; preds = %365
  store i32 %367, ptr %19, align 4, !tbaa !14
  %369 = load i32, ptr %19, align 4, !tbaa !14
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %379

371:                                              ; preds = %368
  %372 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %373 unwind label %347

373:                                              ; preds = %371
  %374 = load i32, ptr %19, align 4, !tbaa !14
  %375 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %372, i32 noundef %374)
          to label %376 unwind label %347

376:                                              ; preds = %373
  %377 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %375, ptr noundef @.str.13)
          to label %378 unwind label %347

378:                                              ; preds = %376
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %428

379:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  store i64 0, ptr %38, align 8, !tbaa !24
  br label %380

380:                                              ; preds = %402, %379
  %381 = load i64, ptr %38, align 8, !tbaa !24
  %382 = icmp ult i64 %381, 1000
  br i1 %382, label %384, label %383

383:                                              ; preds = %380
  store i32 8, ptr %8, align 4
  br label %405

384:                                              ; preds = %380
  %385 = load i64, ptr %38, align 8, !tbaa !24
  %386 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %385) #10
  %387 = load i8, ptr %386, align 1, !tbaa !13
  %388 = zext i8 %387 to i32
  %389 = load i64, ptr %38, align 8, !tbaa !24
  %390 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %389) #10
  %391 = load i8, ptr %390, align 1, !tbaa !13
  %392 = zext i8 %391 to i32
  %393 = icmp ne i32 %388, %392
  br i1 %393, label %394, label %401

394:                                              ; preds = %384
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
          to label %396 unwind label %397

396:                                              ; preds = %394
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %405

397:                                              ; preds = %394
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %12, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %429

401:                                              ; preds = %384
  br label %402

402:                                              ; preds = %401
  %403 = load i64, ptr %38, align 8, !tbaa !24
  %404 = add i64 %403, 1
  store i64 %404, ptr %38, align 8, !tbaa !24
  br label %380, !llvm.loop !45

405:                                              ; preds = %396, %383
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  %406 = load i32, ptr %8, align 4
  switch i32 %406, label %428 [
    i32 8, label %407
  ]

407:                                              ; preds = %405
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
          to label %409 unwind label %347

409:                                              ; preds = %407
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
          to label %411 unwind label %347

411:                                              ; preds = %409
  %412 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %410, i32 noundef 1000)
          to label %413 unwind label %347

413:                                              ; preds = %411
  %414 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %412, ptr noundef @.str.17)
          to label %415 unwind label %347

415:                                              ; preds = %413
  %416 = load i32, ptr %37, align 4, !tbaa !5
  %417 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %414, i32 noundef %416)
          to label %418 unwind label %347

418:                                              ; preds = %415
  %419 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %417, ptr noundef @.str.18)
          to label %420 unwind label %347

420:                                              ; preds = %418
  %421 = load i32, ptr %37, align 4, !tbaa !5
  %422 = uitofp i32 %421 to float
  %423 = fdiv float 1.000000e+03, %422
  %424 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %419, float noundef %423)
          to label %425 unwind label %347

425:                                              ; preds = %420
  %426 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %424, ptr noundef @.str.1)
          to label %427 unwind label %347

427:                                              ; preds = %425
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %428

428:                                              ; preds = %427, %405, %378, %364, %346
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %430

429:                                              ; preds = %397, %347
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %431

430:                                              ; preds = %428, %308
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #10
  br label %433

431:                                              ; preds = %429, %296
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  br label %432

432:                                              ; preds = %431, %253
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #10
  br label %434

433:                                              ; preds = %430, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %435

434:                                              ; preds = %432, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %436

435:                                              ; preds = %433, %184
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #10
  br label %438

436:                                              ; preds = %434, %189
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #10
  br label %437

437:                                              ; preds = %436, %185
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #10
  br label %439

438:                                              ; preds = %435, %167, %146
  call void @llvm.lifetime.end.p0(i64 1280, ptr %24) #10
  br label %440

439:                                              ; preds = %437, %147
  call void @llvm.lifetime.end.p0(i64 1280, ptr %24) #10
  br label %441

440:                                              ; preds = %438, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %442

441:                                              ; preds = %439, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %443

442:                                              ; preds = %440, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %444

443:                                              ; preds = %441, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %445

444:                                              ; preds = %442, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #10
  br label %448

445:                                              ; preds = %443, %97, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  br label %446

446:                                              ; preds = %445, %69
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  br label %447

447:                                              ; preds = %446, %65
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  br label %450

448:                                              ; preds = %444, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  %449 = load i32, ptr %3, align 4
  ret i32 %449

450:                                              ; preds = %447
  %451 = load ptr, ptr %12, align 8
  %452 = load i32, ptr %13, align 4
  %453 = insertvalue { ptr, i32 } poison, ptr %451, 0
  %454 = insertvalue { ptr, i32 } %453, i32 %452, 1
  resume { ptr, i32 } %454
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare ptr @qpl_get_library_version() #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL20parse_execution_pathiPPcP10qpl_path_ti(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

; 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 #5 align 2

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 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) #3

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

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

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

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

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) #6

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

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

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)) #0 align 2

declare i32 @qpl_huffman_table_destroy(ptr noundef) #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9

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

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

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

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

declare i32 @qpl_get_safe_deflate_compression_buffer_size(i32 noundef) #4

declare i32 @qpl_execute_job(ptr noundef) #4

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

declare i32 @qpl_fini_job(ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #5 align 2

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

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

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

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


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.2" = 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.6" }
%"struct.std::_Head_base.6" = type { ptr }
%struct.qpl_histogram = type { [286 x i32], [2 x i32], [30 x i32], [2 x i32] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [5 x i32], align 4
@.str.8 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sumSt6vectorIjSaIjEE(ptr noundef) local_unnamed_addr #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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; 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 norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca i8, align 1
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.std::allocator.2", align 1
  %10 = alloca %"class.std::unique_ptr", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::unique_ptr", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.qpl_histogram, align 4
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca [5 x i32], align 4
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::vector.0", align 8
  %20 = alloca i8, align 1
  %21 = alloca %"class.std::allocator.2", align 1
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %23 = tail call ptr @qpl_get_library_version()
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef %23)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #10
  store i32 2, ptr %3, align 4, !tbaa !5
  %26 = call noundef i32 @_ZL20parse_execution_pathiPPcP10qpl_path_ti(i32 noundef %0, ptr noundef %1, ptr noundef nonnull %3, i32 noundef 0)
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %27, label %251

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #10
  store i8 5, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #10
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %28 unwind label %39

28:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #10
  store i8 7, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #10
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %29 unwind label %41

29:                                               ; preds = %28
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #10
  store i32 0, ptr %11, align 4, !tbaa !10
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = invoke i32 @qpl_get_job_size(i32 noundef %30, ptr noundef nonnull %11)
          to label %32 unwind label %43

32:                                               ; preds = %29
  %.not116 = icmp eq i32 %31, 0
  br i1 %.not116, label %45, label %33

33:                                               ; preds = %32
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %35 unwind label %43

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %34, i32 noundef %31)
          to label %37 unwind label %43

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str.3)
          to label %247 unwind label %43

39:                                               ; preds = %27
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10
  br label %250

41:                                               ; preds = %28
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #10
  br label %249

43:                                               ; preds = %37, %35, %33, %29
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %248

45:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  %46 = load i32, ptr %11, align 4, !tbaa !10
  %47 = zext i32 %46 to i64
  invoke void @_ZSt11make_uniqueIA_hENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %12, i64 noundef %47)
          to label %48 unwind label %60

48:                                               ; preds = %45
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  %50 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = invoke i32 @qpl_init_job(i32 noundef %51, ptr noundef %50)
          to label %53 unwind label %62

53:                                               ; preds = %48
  %.not117 = icmp eq i32 %52, 0
  br i1 %.not117, label %64, label %54

54:                                               ; preds = %53
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %56 unwind label %62

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %52)
          to label %58 unwind label %62

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.4)
          to label %247 unwind label %62

60:                                               ; preds = %45
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %248

62:                                               ; preds = %58, %56, %54, %48
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %248

64:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  store ptr null, ptr %13, align 8, !tbaa !12
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = invoke i32 @qpl_deflate_huffman_table_create(i32 noundef 1, i32 noundef %65, ptr nonnull @malloc, ptr nonnull @free, ptr noundef nonnull %13)
          to label %67 unwind label %74

67:                                               ; preds = %64
  %.not118 = icmp eq i32 %66, 0
  br i1 %.not118, label %76, label %68

68:                                               ; preds = %67
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %70 unwind label %74

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %66)
          to label %72 unwind label %74

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.5)
          to label %245 unwind label %74

74:                                               ; preds = %72, %70, %68, %64
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %246

76:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 1280, ptr nonnull %14) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1280) %14, i8 0, i64 1280, i1 false)
  %77 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = invoke i32 @qpl_gather_deflate_statistics(ptr noundef %77, i32 noundef 1000, ptr noundef nonnull %14, i32 noundef 1, i32 noundef %78)
          to label %80 unwind label %85

80:                                               ; preds = %76
  %.not119 = icmp eq i32 %79, 0
  br i1 %.not119, label %87, label %81

81:                                               ; preds = %80
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %83 unwind label %85

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %82, i32 noundef %79)
          to label %.invoke179 unwind label %85

85:                                               ; preds = %.invoke179, %.invoke, %93, %91, %87, %83, %81, %76
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %244

87:                                               ; preds = %80
  %88 = load ptr, ptr %13, align 8, !tbaa !12
  %89 = invoke i32 @qpl_huffman_table_init_with_histogram(ptr noundef %88, ptr noundef nonnull %14)
          to label %90 unwind label %85

90:                                               ; preds = %87
  %.not120 = icmp eq i32 %89, 0
  br i1 %.not120, label %100, label %91

91:                                               ; preds = %90
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %93 unwind label %85

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef %89)
          to label %.invoke179 unwind label %85

.invoke179:                                       ; preds = %83, %93
  %95 = phi ptr [ %94, %93 ], [ %84, %83 ]
  %96 = phi ptr [ @.str.7, %93 ], [ @.str.6, %83 ]
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull %96)
          to label %.invoke unwind label %85

.invoke:                                          ; preds = %.invoke179
  %98 = load ptr, ptr %13, align 8, !tbaa !12
  %99 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %98)
          to label %243 unwind label %85

100:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %16) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %16, ptr noundef nonnull align 4 dereferenceable(20) @constinit, i64 20, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #10
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #10
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr nonnull %16, i64 5, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %101 unwind label %110

101:                                              ; preds = %100
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %16) #10
  invoke void @_ZNSt6vectorIjSaIjEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %102 unwind label %112

102:                                              ; preds = %101
  %103 = call noundef i32 @_Z3sumSt6vectorIjSaIjEE(ptr noundef nonnull %18)
  %.not121 = icmp eq i32 %103, 1000
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #10
  br i1 %.not121, label %.preheader155, label %105

.preheader155:                                    ; preds = %102
  %104 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  %.not123163.not = icmp eq i64 %104, 0
  br i1 %.not123163.not, label %._crit_edge, label %.lr.ph

105:                                              ; preds = %102
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %107 unwind label %112

107:                                              ; preds = %105
  %108 = load ptr, ptr %13, align 8, !tbaa !12
  %109 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %108)
          to label %.thread149 unwind label %112

110:                                              ; preds = %100
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %16) #10
  br label %242

112:                                              ; preds = %107, %105, %101
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %241

.lr.ph:                                           ; preds = %.preheader155, %123
  %.078165 = phi i64 [ %125, %123 ], [ 0, %.preheader155 ]
  %.079164 = phi i32 [ %124, %123 ], [ 0, %.preheader155 ]
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.078165) #10
  %115 = load i32, ptr %114, align 4, !tbaa !10
  %116 = invoke i32 @qpl_get_safe_deflate_compression_buffer_size(i32 noundef %115)
          to label %117 unwind label %.loopexit156

117:                                              ; preds = %.lr.ph
  %.not122 = icmp eq i32 %116, 0
  br i1 %.not122, label %118, label %123

118:                                              ; preds = %117
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
          to label %120 unwind label %.loopexit.split-lp157

120:                                              ; preds = %118
  %121 = load ptr, ptr %13, align 8, !tbaa !12
  %122 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %121)
          to label %.thread149 unwind label %.loopexit.split-lp157

.loopexit156:                                     ; preds = %.lr.ph
  %lpad.loopexit158 = landingpad { ptr, i32 }
          cleanup
  br label %241

.loopexit.split-lp157:                            ; preds = %118, %120
  %lpad.loopexit.split-lp159 = landingpad { ptr, i32 }
          cleanup
  br label %241

123:                                              ; preds = %117
  %124 = add i32 %116, %.079164
  %125 = add nuw i64 %.078165, 1
  %126 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  %.not123 = icmp ult i64 %125, %126
  br i1 %.not123, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %123, %.preheader155
  %.079.lcssa = phi i32 [ 0, %.preheader155 ], [ %124, %123 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #10
  %127 = zext i32 %.079.lcssa to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #10
  store i8 4, ptr %20, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #10
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %127, ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %128 unwind label %140

128:                                              ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #10
  %129 = getelementptr inbounds i8, ptr %50, i64 32
  store i32 1, ptr %129, align 8, !tbaa !17
  %130 = getelementptr inbounds i8, ptr %50, i64 52
  store i32 1, ptr %130, align 4, !tbaa !27
  %131 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  store ptr %131, ptr %50, align 8, !tbaa !28
  %132 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  %133 = getelementptr inbounds i8, ptr %50, i64 16
  store ptr %132, ptr %133, align 8, !tbaa !29
  %134 = getelementptr inbounds i8, ptr %50, i64 36
  store i32 16385, ptr %134, align 4, !tbaa !30
  %135 = load ptr, ptr %13, align 8, !tbaa !12
  %136 = getelementptr inbounds i8, ptr %50, i64 64
  store ptr %135, ptr %136, align 8, !tbaa !31
  %137 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  %.not125166.not = icmp eq i64 %137, 0
  br i1 %.not125166.not, label %._crit_edge170, label %.lr.ph169

.lr.ph169:                                        ; preds = %128
  %138 = getelementptr inbounds i8, ptr %50, i64 8
  %139 = getelementptr inbounds i8, ptr %50, i64 24
  br label %142

140:                                              ; preds = %._crit_edge
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #10
  br label %240

142:                                              ; preds = %.lr.ph169, %167
  %.073167 = phi i64 [ 0, %.lr.ph169 ], [ %170, %167 ]
  %143 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  %144 = add i64 %143, -1
  %145 = icmp eq i64 %.073167, %144
  br i1 %145, label %146, label %149

146:                                              ; preds = %142
  %147 = load i32, ptr %134, align 4, !tbaa !30
  %148 = or i32 %147, 2
  store i32 %148, ptr %134, align 4, !tbaa !30
  br label %149

149:                                              ; preds = %146, %142
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.073167) #10
  %151 = load i32, ptr %150, align 4, !tbaa !10
  store i32 %151, ptr %138, align 8, !tbaa !32
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.073167) #10
  %153 = load i32, ptr %152, align 4, !tbaa !10
  %154 = invoke i32 @qpl_get_safe_deflate_compression_buffer_size(i32 noundef %153)
          to label %155 unwind label %.loopexit

155:                                              ; preds = %149
  store i32 %154, ptr %139, align 8, !tbaa !33
  %156 = invoke i32 @qpl_execute_job(ptr noundef nonnull %50)
          to label %157 unwind label %.loopexit

157:                                              ; preds = %155
  %.not124 = icmp eq i32 %156, 0
  br i1 %.not124, label %167, label %158

158:                                              ; preds = %157
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %160 unwind label %.loopexit.split-lp

160:                                              ; preds = %158
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %159, i32 noundef %156)
          to label %162 unwind label %.loopexit.split-lp

162:                                              ; preds = %160
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull @.str.10)
          to label %164 unwind label %.loopexit.split-lp

164:                                              ; preds = %162
  %165 = load ptr, ptr %13, align 8, !tbaa !12
  %166 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %165)
          to label %.thread151 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %149, %155
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %239

.loopexit.split-lp:                               ; preds = %158, %160, %162, %164
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %239

167:                                              ; preds = %157
  %168 = load i32, ptr %134, align 4, !tbaa !30
  %169 = and i32 %168, -2
  store i32 %169, ptr %134, align 4, !tbaa !30
  %170 = add nuw i64 %.073167, 1
  %171 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  %.not125 = icmp ult i64 %170, %171
  br i1 %.not125, label %142, label %._crit_edge170, !llvm.loop !34

._crit_edge170:                                   ; preds = %167, %128
  %172 = getelementptr inbounds i8, ptr %50, i64 28
  %173 = load i32, ptr %172, align 4, !tbaa !35
  store i32 0, ptr %129, align 8, !tbaa !17
  %174 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  store ptr %174, ptr %50, align 8, !tbaa !28
  %175 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  store ptr %175, ptr %133, align 8, !tbaa !29
  %176 = getelementptr inbounds i8, ptr %50, i64 8
  store i32 %173, ptr %176, align 8, !tbaa !32
  %177 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  %178 = trunc i64 %177 to i32
  %179 = getelementptr inbounds i8, ptr %50, i64 24
  store i32 %178, ptr %179, align 8, !tbaa !33
  store i32 3, ptr %134, align 4, !tbaa !30
  %180 = invoke i32 @qpl_execute_job(ptr noundef nonnull %50)
          to label %181 unwind label %191

181:                                              ; preds = %._crit_edge170
  %.not126 = icmp eq i32 %180, 0
  br i1 %.not126, label %193, label %182

182:                                              ; preds = %181
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %184 unwind label %191

184:                                              ; preds = %182
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %183, i32 noundef %180)
          to label %186 unwind label %191

186:                                              ; preds = %184
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef nonnull @.str.11)
          to label %188 unwind label %191

188:                                              ; preds = %186
  %189 = load ptr, ptr %13, align 8, !tbaa !12
  %190 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %189)
          to label %.thread151 unwind label %191

191:                                              ; preds = %.invoke176, %237, %233, %231, %229, %227, %225, %223, %221, %206, %204, %201, %199, %197, %193, %188, %186, %184, %182, %._crit_edge170
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %239

193:                                              ; preds = %181
  %194 = load ptr, ptr %13, align 8, !tbaa !12
  %195 = invoke i32 @qpl_huffman_table_destroy(ptr noundef %194)
          to label %196 unwind label %191

196:                                              ; preds = %193
  %.not127 = icmp eq i32 %195, 0
  br i1 %.not127, label %201, label %197

197:                                              ; preds = %196
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %199 unwind label %191

199:                                              ; preds = %197
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %198, i32 noundef %195)
          to label %.invoke176 unwind label %191

201:                                              ; preds = %196
  %202 = invoke i32 @qpl_fini_job(ptr noundef nonnull %50)
          to label %203 unwind label %191

203:                                              ; preds = %201
  %.not128 = icmp eq i32 %202, 0
  br i1 %.not128, label %.preheader, label %204

204:                                              ; preds = %203
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %206 unwind label %191

206:                                              ; preds = %204
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %205, i32 noundef %202)
          to label %.invoke176 unwind label %191

.invoke176:                                       ; preds = %206, %199
  %208 = phi ptr [ %200, %199 ], [ %207, %206 ]
  %209 = phi ptr [ @.str.12, %199 ], [ @.str.13, %206 ]
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef nonnull %209)
          to label %.thread151 unwind label %191

211:                                              ; preds = %.preheader
  %212 = add nuw nsw i64 %.0171, 1
  %exitcond = icmp eq i64 %212, 1000
  br i1 %exitcond, label %221, label %.preheader, !llvm.loop !36

.preheader:                                       ; preds = %203, %211
  %.0171 = phi i64 [ %212, %211 ], [ 0, %203 ]
  %213 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0171) #10
  %214 = load i8, ptr %213, align 1, !tbaa !9
  %215 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.0171) #10
  %216 = load i8, ptr %215, align 1, !tbaa !9
  %.not129 = icmp eq i8 %214, %216
  br i1 %.not129, label %211, label %217

217:                                              ; preds = %.preheader
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
          to label %.thread151 unwind label %219

219:                                              ; preds = %217
  %220 = landingpad { ptr, i32 }
          cleanup
  br label %239

221:                                              ; preds = %211
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
          to label %223 unwind label %191

223:                                              ; preds = %221
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.16)
          to label %225 unwind label %191

225:                                              ; preds = %223
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %224, i32 noundef 1000)
          to label %227 unwind label %191

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull @.str.17)
          to label %229 unwind label %191

229:                                              ; preds = %227
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %228, i32 noundef %173)
          to label %231 unwind label %191

231:                                              ; preds = %229
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %230, ptr noundef nonnull @.str.18)
          to label %233 unwind label %191

233:                                              ; preds = %231
  %234 = uitofp i32 %173 to float
  %235 = fdiv float 1.000000e+03, %234
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %232, float noundef %235)
          to label %237 unwind label %191

237:                                              ; preds = %233
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef nonnull @.str.1)
          to label %.thread151 unwind label %191

.thread151:                                       ; preds = %.invoke176, %164, %217, %188, %237
  %.6 = phi i32 [ 1, %188 ], [ 0, %237 ], [ 1, %217 ], [ 1, %164 ], [ 1, %.invoke176 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #10
  br label %.thread149

239:                                              ; preds = %.loopexit, %.loopexit.split-lp, %191, %219
  %.pn.pn = phi { ptr, i32 } [ %192, %191 ], [ %220, %219 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  br label %240

240:                                              ; preds = %239, %140
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %239 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #10
  br label %241

.thread149:                                       ; preds = %120, %.thread151, %107
  %.8 = phi i32 [ 1, %107 ], [ %.6, %.thread151 ], [ 1, %120 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  br label %243

241:                                              ; preds = %.loopexit156, %.loopexit.split-lp157, %240, %112
  %.pn134 = phi { ptr, i32 } [ %113, %112 ], [ %.pn.pn.pn, %240 ], [ %lpad.loopexit158, %.loopexit156 ], [ %lpad.loopexit.split-lp159, %.loopexit.split-lp157 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  br label %242

242:                                              ; preds = %241, %110
  %.pn134.pn = phi { ptr, i32 } [ %.pn134, %241 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  br label %244

243:                                              ; preds = %.invoke, %.thread149
  %.9 = phi i32 [ %.8, %.thread149 ], [ 1, %.invoke ]
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %14) #10
  br label %245

244:                                              ; preds = %242, %85
  %.pn137 = phi { ptr, i32 } [ %86, %85 ], [ %.pn134.pn, %242 ]
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %14) #10
  br label %246

245:                                              ; preds = %72, %243
  %.10 = phi i32 [ %.9, %243 ], [ 1, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  br label %247

246:                                              ; preds = %244, %74
  %.pn139 = phi { ptr, i32 } [ %75, %74 ], [ %.pn137, %244 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  br label %248

247:                                              ; preds = %245, %58, %37
  %.12 = phi i32 [ 1, %37 ], [ %.10, %245 ], [ 1, %58 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  br label %251

248:                                              ; preds = %62, %246, %60, %43
  %.pn143 = phi { ptr, i32 } [ %44, %43 ], [ %61, %60 ], [ %63, %62 ], [ %.pn139, %246 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  br label %249

249:                                              ; preds = %248, %41
  %.pn143.pn = phi { ptr, i32 } [ %.pn143, %248 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  br label %250

250:                                              ; preds = %249, %39
  %.pn143.pn.pn = phi { ptr, i32 } [ %.pn143.pn, %249 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn143.pn.pn

251:                                              ; preds = %2, %247
  %.13 = phi i32 [ %.12, %247 ], [ 1, %2 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  ret i32 %.13
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

declare ptr @qpl_get_library_version() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL20parse_execution_pathiPPcP10qpl_path_ti(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; 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 #5 align 2

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 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 #3

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

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

; 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 #0 align 2

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

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) #6

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

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

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 #0 align 2

declare i32 @qpl_huffman_table_destroy(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9

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

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

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

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

declare i32 @qpl_get_safe_deflate_compression_buffer_size(i32 noundef) local_unnamed_addr #4

declare i32 @qpl_execute_job(ptr noundef) local_unnamed_addr #4

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

declare i32 @qpl_fini_job(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #5 align 2

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

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

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

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


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