; LLVM IR from team-charls/charls :: test/util.ll (Z15test_round_tripPKcRKSt6vectorISt4byteSaIS2_EE9rect_sizeiii)

; 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 }
%struct.rect_size = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.charls::jpegls_encoder" = type { %"class.std::unique_ptr.6" }
%"class.std::unique_ptr.6" = type { %"struct.std::__uniq_ptr_data.7" }
%"struct.std::__uniq_ptr_data.7" = type { %"class.std::__uniq_ptr_impl.8" }
%"class.std::__uniq_ptr_impl.8" = type { %"class.std::tuple.9" }
%"class.std::tuple.9" = type { %"struct.std::_Tuple_impl.10" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Tuple_impl.11", %"struct.std::_Head_base.13" }
%"struct.std::_Tuple_impl.11" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.std::_Head_base.13" = type { ptr }
%struct.charls_frame_info = type { i32, i32, i32, i32 }
%"class.charls::jpegls_decoder" = type { %"class.std::unique_ptr.14", i8, %struct.charls_spiff_header, %struct.charls_frame_info, %"class.std::function", %"class.std::function.22" }
%"class.std::unique_ptr.14" = type { %"struct.std::__uniq_ptr_data.15" }
%"struct.std::__uniq_ptr_data.15" = type { %"class.std::__uniq_ptr_impl.16" }
%"class.std::__uniq_ptr_impl.16" = type { %"class.std::tuple.17" }
%"class.std::tuple.17" = type { %"struct.std::_Tuple_impl.18" }
%"struct.std::_Tuple_impl.18" = type { %"struct.std::_Tuple_impl.19", %"struct.std::_Head_base.21" }
%"struct.std::_Tuple_impl.19" = type { %"struct.std::_Head_base.20" }
%"struct.std::_Head_base.20" = type { ptr }
%"struct.std::_Head_base.21" = type { ptr }
%struct.charls_spiff_header = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.22" = type { %"class.std::_Function_base", ptr }
%"class.std::chrono::duration.24" = type { double }
%"struct.std::_Setw" = type { i32 }
%"struct.std::_Setprecision" = type { i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6assert7is_trueEb(i1 noundef zeroext) #2

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

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

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

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15test_round_tripPKcRKSt6vectorISt4byteSaIS2_EE9rect_sizeiii(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 %2, i64 %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca %struct.rect_size, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca %"class.std::chrono::time_point", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.charls::jpegls_encoder", align 8
  %28 = alloca %struct.charls_frame_info, align 4
  %29 = alloca %"class.std::chrono::duration", align 8
  %30 = alloca %"class.std::chrono::time_point", align 8
  %31 = alloca %"class.std::chrono::time_point", align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.charls::jpegls_decoder", align 8
  %34 = alloca %"class.std::chrono::duration", align 8
  %35 = alloca %"class.std::chrono::time_point", align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca %"class.std::chrono::duration.24", align 8
  %39 = alloca double, align 8
  %40 = alloca %"class.std::chrono::duration.24", align 8
  %41 = alloca double, align 8
  %42 = alloca %"struct.std::_Setw", align 4
  %43 = alloca %"struct.std::_Setw", align 4
  %44 = alloca %"struct.std::_Setprecision", align 4
  %45 = alloca ptr, align 8
  %46 = alloca i64, align 8
  %47 = alloca i32, align 4
  %48 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  store i64 %2, ptr %48, align 8
  %49 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  store i64 %3, ptr %49, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  store i32 %6, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %50 = getelementptr inbounds %struct.rect_size, ptr %8, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %53 = getelementptr inbounds %struct.rect_size, ptr %8, i32 0, i32 0
  %54 = load i64, ptr %53, align 8, !tbaa !14
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #9
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = mul nsw i32 %56, %57
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = mul nsw i32 %60, %61
  %63 = sdiv i32 %62, 4
  %64 = sext i32 %63 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  call void @_ZNSaISt4byteEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt6vectorISt4byteSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %64, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %65 unwind label %82

65:                                               ; preds = %7
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #9
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = mul i64 %67, %69
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = call noundef i32 @_Z17bit_to_byte_counti(i32 noundef %71) #9
  %73 = zext i32 %72 to i64
  %74 = mul i64 %70, %73
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = mul i64 %74, %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #9
  call void @_ZNSaISt4byteEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  invoke void @_ZNSt6vectorISt4byteSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %77, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %78 unwind label %86

78:                                               ; preds = %65
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !17
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = icmp eq i32 %79, 4
  br i1 %80, label %81, label %90

81:                                               ; preds = %78
  store i32 1, ptr %22, align 4, !tbaa !15
  br label %95

82:                                               ; preds = %7
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %18, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %19, align 4
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  br label %375

86:                                               ; preds = %65
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %18, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %19, align 4
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  br label %374

90:                                               ; preds = %78
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 3
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store i32 1, ptr %22, align 4, !tbaa !15
  store i32 1, ptr %23, align 4, !tbaa !17
  br label %94

94:                                               ; preds = %93, %90
  br label %95

95:                                               ; preds = %94, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  store i64 0, ptr %24, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %96 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #9
  %97 = getelementptr inbounds %"class.std::chrono::time_point", ptr %25, i32 0, i32 0
  %98 = getelementptr inbounds %"class.std::chrono::duration", ptr %97, i32 0, i32 0
  store i64 %96, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %147, %95
  %100 = load i32, ptr %26, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = icmp ne i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %160

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  invoke void @_ZN6charls14jpegls_encoderC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %105 unwind label %127

105:                                              ; preds = %104
  %106 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder11destinationISt6vectorISt4byteSaIS3_EES3_EERS0_RT_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %107 unwind label %131

107:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %108 = getelementptr inbounds %struct.charls_frame_info, ptr %28, i32 0, i32 0
  %109 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %109, ptr %108, align 4, !tbaa !20
  %110 = getelementptr inbounds %struct.charls_frame_info, ptr %28, i32 0, i32 1
  %111 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %111, ptr %110, align 4, !tbaa !22
  %112 = getelementptr inbounds %struct.charls_frame_info, ptr %28, i32 0, i32 2
  %113 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %113, ptr %112, align 4, !tbaa !23
  %114 = getelementptr inbounds %struct.charls_frame_info, ptr %28, i32 0, i32 3
  %115 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %115, ptr %114, align 4, !tbaa !24
  %116 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder10frame_infoERK17charls_frame_info(ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef nonnull align 4 dereferenceable(16) %28)
          to label %117 unwind label %135

117:                                              ; preds = %107
  %118 = load i32, ptr %22, align 4, !tbaa !15
  %119 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder15interleave_modeENS_15interleave_modeE(ptr noundef nonnull align 8 dereferenceable(16) %116, i32 noundef %118)
          to label %120 unwind label %135

120:                                              ; preds = %117
  %121 = load i32, ptr %23, align 4, !tbaa !17
  %122 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder20color_transformationENS_20color_transformationE(ptr noundef nonnull align 8 dereferenceable(16) %119, i32 noundef %121)
          to label %123 unwind label %135

123:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = invoke noundef i64 @_ZN6charls14jpegls_encoder6encodeISt6vectorISt4byteSaIS3_EES3_EEmRKT_j(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(24) %124, i32 noundef 0)
          to label %126 unwind label %131

126:                                              ; preds = %123
  store i64 %125, ptr %24, align 8, !tbaa !19
  call void @_ZN6charls14jpegls_encoderD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %146

127:                                              ; preds = %104
  %128 = landingpad { ptr, i32 }
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %18, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %19, align 4
  br label %140

131:                                              ; preds = %123, %105
  %132 = landingpad { ptr, i32 }
          catch ptr null
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %18, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %19, align 4
  br label %139

135:                                              ; preds = %120, %117, %107
  %136 = landingpad { ptr, i32 }
          catch ptr null
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %18, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %139

139:                                              ; preds = %135, %131
  call void @_ZN6charls14jpegls_encoderD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #9
  br label %140

140:                                              ; preds = %139, %127
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %18, align 8
  %143 = call ptr @__cxa_begin_catch(ptr %142) #9
  invoke void @_ZN6assert7is_trueEb(i1 noundef zeroext false)
          to label %144 unwind label %150

144:                                              ; preds = %141
  invoke void @__cxa_end_catch()
          to label %145 unwind label %154

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145, %126
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %26, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %26, align 4, !tbaa !9
  br label %99, !llvm.loop !25

150:                                              ; preds = %141
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %18, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %19, align 4
  invoke void @__cxa_end_catch()
          to label %158 unwind label %381

154:                                              ; preds = %144
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %18, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %19, align 4
  br label %159

158:                                              ; preds = %150
  br label %159

159:                                              ; preds = %158, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %373

160:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %161 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #9
  %162 = getelementptr inbounds %"class.std::chrono::time_point", ptr %30, i32 0, i32 0
  %163 = getelementptr inbounds %"class.std::chrono::duration", ptr %162, i32 0, i32 0
  store i64 %161, ptr %163, align 8
  %164 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %165 unwind label %175

165:                                              ; preds = %160
  %166 = getelementptr inbounds %"class.std::chrono::duration", ptr %29, i32 0, i32 0
  store i64 %164, ptr %166, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %167 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #9
  %168 = getelementptr inbounds %"class.std::chrono::time_point", ptr %31, i32 0, i32 0
  %169 = getelementptr inbounds %"class.std::chrono::duration", ptr %168, i32 0, i32 0
  store i64 %167, ptr %169, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %31, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %203, %165
  %171 = load i32, ptr %32, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = icmp ne i32 %171, %172
  br i1 %173, label %179, label %174

174:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %216

175:                                              ; preds = %160
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %18, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %372

179:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 144, ptr %33) #9
  invoke void @_ZN6charls14jpegls_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %33)
          to label %180 unwind label %188

180:                                              ; preds = %179
  %181 = call noundef ptr @_ZNSt6vectorISt4byteSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  %182 = load i64, ptr %24, align 8, !tbaa !19
  %183 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN6charls14jpegls_decoder6sourceEPKvm(ptr noundef nonnull align 8 dereferenceable(144) %33, ptr noundef %181, i64 noundef %182)
          to label %184 unwind label %192

184:                                              ; preds = %180
  %185 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN6charls14jpegls_decoder11read_headerEv(ptr noundef nonnull align 8 dereferenceable(144) %183)
          to label %186 unwind label %192

186:                                              ; preds = %184
  invoke void @_ZN6charls14jpegls_decoder6decodeISt6vectorISt4byteSaIS3_EES3_EEvRT_j(ptr noundef nonnull align 8 dereferenceable(144) %33, ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 0)
          to label %187 unwind label %192

187:                                              ; preds = %186
  call void @_ZN6charls14jpegls_decoderD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %33) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %33) #9
  br label %202

188:                                              ; preds = %179
  %189 = landingpad { ptr, i32 }
          catch ptr null
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %18, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %19, align 4
  br label %196

192:                                              ; preds = %186, %184, %180
  %193 = landingpad { ptr, i32 }
          catch ptr null
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %18, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %19, align 4
  call void @_ZN6charls14jpegls_decoderD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %33) #9
  br label %196

196:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 144, ptr %33) #9
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr %18, align 8
  %199 = call ptr @__cxa_begin_catch(ptr %198) #9
  invoke void @_ZN6assert7is_trueEb(i1 noundef zeroext false)
          to label %200 unwind label %206

200:                                              ; preds = %197
  invoke void @__cxa_end_catch()
          to label %201 unwind label %210

201:                                              ; preds = %200
  br label %202

202:                                              ; preds = %201, %187
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %32, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %32, align 4, !tbaa !9
  br label %170, !llvm.loop !28

206:                                              ; preds = %197
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %18, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %19, align 4
  invoke void @__cxa_end_catch()
          to label %214 unwind label %381

210:                                              ; preds = %200
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %18, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %19, align 4
  br label %215

214:                                              ; preds = %206
  br label %215

215:                                              ; preds = %214, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %372

216:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %217 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #9
  %218 = getelementptr inbounds %"class.std::chrono::time_point", ptr %35, i32 0, i32 0
  %219 = getelementptr inbounds %"class.std::chrono::duration", ptr %218, i32 0, i32 0
  store i64 %217, ptr %219, align 8
  %220 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %221 unwind label %325

221:                                              ; preds = %216
  %222 = getelementptr inbounds %"class.std::chrono::duration", ptr %34, i32 0, i32 0
  store i64 %220, ptr %222, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %223 = load i64, ptr %24, align 8, !tbaa !19
  %224 = uitofp i64 %223 to double
  %225 = fmul double 1.000000e+00, %224
  %226 = fmul double %225, 8.000000e+00
  %227 = load i32, ptr %12, align 4, !tbaa !9
  %228 = sitofp i32 %227 to double
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = sitofp i32 %229 to double
  %231 = fmul double %228, %230
  %232 = load i32, ptr %15, align 4, !tbaa !9
  %233 = sitofp i32 %232 to double
  %234 = fmul double %231, %233
  %235 = fdiv double %226, %234
  store double %235, ptr %36, align 8, !tbaa !29
  %236 = 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 %237 unwind label %329

237:                                              ; preds = %221
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef %238)
          to label %240 unwind label %329

240:                                              ; preds = %237
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef @.str.3)
          to label %242 unwind label %329

242:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  invoke void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1000EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %243 unwind label %333

243:                                              ; preds = %242
  %244 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %245 unwind label %333

245:                                              ; preds = %243
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = sitofp i32 %246 to double
  %248 = fdiv double %244, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  store double %248, ptr %37, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  invoke void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1000EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %249 unwind label %337

249:                                              ; preds = %245
  %250 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %251 unwind label %337

251:                                              ; preds = %249
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = sitofp i32 %252 to double
  %254 = fdiv double %250, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  store double %254, ptr %39, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %255 = load i32, ptr %12, align 4, !tbaa !9
  %256 = sitofp i32 %255 to double
  %257 = load i32, ptr %14, align 4, !tbaa !9
  %258 = sitofp i32 %257 to double
  %259 = fmul double %256, %258
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = sitofp i32 %260 to double
  %262 = fmul double %259, %261
  %263 = load double, ptr %39, align 8, !tbaa !29
  %264 = fmul double 1.000000e+03, %263
  %265 = fdiv double %262, %264
  store double %265, ptr %41, align 8, !tbaa !29
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %267 unwind label %341

267:                                              ; preds = %251
  %268 = invoke i32 @_ZSt4setwi(i32 noundef 10)
          to label %269 unwind label %341

269:                                              ; preds = %267
  %270 = getelementptr inbounds %"struct.std::_Setw", ptr %42, i32 0, i32 0
  store i32 %268, ptr %270, align 4
  %271 = getelementptr inbounds %"struct.std::_Setw", ptr %42, i32 0, i32 0
  %272 = load i32, ptr %271, align 4
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %266, i32 %272)
          to label %274 unwind label %341

274:                                              ; preds = %269
  %275 = load i32, ptr %15, align 4, !tbaa !9
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %273, i32 noundef %275)
          to label %277 unwind label %341

277:                                              ; preds = %274
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef @.str.5)
          to label %279 unwind label %341

279:                                              ; preds = %277
  %280 = load i32, ptr %14, align 4, !tbaa !9
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %278, i32 noundef %280)
          to label %282 unwind label %341

282:                                              ; preds = %279
  %283 = invoke i32 @_ZSt4setwi(i32 noundef 7)
          to label %284 unwind label %341

284:                                              ; preds = %282
  %285 = getelementptr inbounds %"struct.std::_Setw", ptr %43, i32 0, i32 0
  store i32 %283, ptr %285, align 4
  %286 = getelementptr inbounds %"struct.std::_Setw", ptr %43, i32 0, i32 0
  %287 = load i32, ptr %286, align 4
  %288 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %281, i32 %287)
          to label %289 unwind label %341

289:                                              ; preds = %284
  %290 = invoke i32 @_ZSt12setprecisioni(i32 noundef 2)
          to label %291 unwind label %341

291:                                              ; preds = %289
  %292 = getelementptr inbounds %"struct.std::_Setprecision", ptr %44, i32 0, i32 0
  store i32 %290, ptr %292, align 4
  %293 = getelementptr inbounds %"struct.std::_Setprecision", ptr %44, i32 0, i32 0
  %294 = load i32, ptr %293, align 4
  %295 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %288, i32 %294)
          to label %296 unwind label %341

296:                                              ; preds = %291
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %295, ptr noundef @.str.6)
          to label %298 unwind label %341

298:                                              ; preds = %296
  %299 = load double, ptr %37, align 8, !tbaa !29
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %297, double noundef %299)
          to label %301 unwind label %341

301:                                              ; preds = %298
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef @.str.7)
          to label %303 unwind label %341

303:                                              ; preds = %301
  %304 = load double, ptr %39, align 8, !tbaa !29
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %302, double noundef %304)
          to label %306 unwind label %341

306:                                              ; preds = %303
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef @.str.8)
          to label %308 unwind label %341

308:                                              ; preds = %306
  %309 = load double, ptr %36, align 8, !tbaa !29
  %310 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %307, double noundef %309)
          to label %311 unwind label %341

311:                                              ; preds = %308
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %310, ptr noundef @.str.9)
          to label %313 unwind label %341

313:                                              ; preds = %311
  %314 = load double, ptr %41, align 8, !tbaa !29
  %315 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %312, double noundef %314)
          to label %316 unwind label %341

316:                                              ; preds = %313
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %315, ptr noundef @.str.10)
          to label %318 unwind label %341

318:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %319 = call noundef ptr @_ZNSt6vectorISt4byteSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  store ptr %319, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  store i64 0, ptr %46, align 8, !tbaa !19
  br label %320

320:                                              ; preds = %362, %318
  %321 = load i64, ptr %46, align 8, !tbaa !19
  %322 = call noundef i64 @_ZNKSt6vectorISt4byteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %323 = icmp ne i64 %321, %322
  br i1 %323, label %345, label %324

324:                                              ; preds = %320
  store i32 8, ptr %47, align 4
  br label %365

325:                                              ; preds = %216
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %18, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %371

329:                                              ; preds = %240, %237, %221
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %18, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %19, align 4
  br label %370

333:                                              ; preds = %243, %242
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %18, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %369

337:                                              ; preds = %249, %245
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %18, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %368

341:                                              ; preds = %316, %313, %311, %308, %306, %303, %301, %298, %296, %291, %289, %284, %282, %279, %277, %274, %269, %267, %251
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %18, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %19, align 4
  br label %367

345:                                              ; preds = %320
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = load i64, ptr %46, align 8, !tbaa !19
  %348 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorISt4byteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %346, i64 noundef %347) #9
  %349 = load i8, ptr %348, align 1, !tbaa !31
  %350 = load ptr, ptr %45, align 8, !tbaa !5
  %351 = load i64, ptr %46, align 8, !tbaa !19
  %352 = getelementptr inbounds i8, ptr %350, i64 %351
  %353 = load i8, ptr %352, align 1, !tbaa !31
  %354 = icmp ne i8 %349, %353
  br i1 %354, label %355, label %361

355:                                              ; preds = %345
  invoke void @_ZN6assert7is_trueEb(i1 noundef zeroext false)
          to label %356 unwind label %357

356:                                              ; preds = %355
  store i32 8, ptr %47, align 4
  br label %365

357:                                              ; preds = %355
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %18, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %367

361:                                              ; preds = %345
  br label %362

362:                                              ; preds = %361
  %363 = load i64, ptr %46, align 8, !tbaa !19
  %364 = add i64 %363, 1
  store i64 %364, ptr %46, align 8, !tbaa !19
  br label %320, !llvm.loop !32

365:                                              ; preds = %356, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br label %366

366:                                              ; preds = %365
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #9
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  ret void

367:                                              ; preds = %357, %341
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  br label %368

368:                                              ; preds = %367, %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %369

369:                                              ; preds = %368, %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %370

370:                                              ; preds = %369, %329
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %371

371:                                              ; preds = %370, %325
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %372

372:                                              ; preds = %371, %215, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %373

373:                                              ; preds = %372, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  br label %374

374:                                              ; preds = %373, %86
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #9
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  br label %375

375:                                              ; preds = %374, %82
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %376

376:                                              ; preds = %375
  %377 = load ptr, ptr %18, align 8
  %378 = load i32, ptr %19, align 4
  %379 = insertvalue { ptr, i32 } poison, ptr %377, 0
  %380 = insertvalue { ptr, i32 } %379, i32 %378, 1
  resume { ptr, i32 } %380

381:                                              ; preds = %206, %150
  %382 = landingpad { ptr, i32 }
          catch ptr null
  %383 = extractvalue { ptr, i32 } %382, 0
  call void @__clang_call_terminate(ptr %383) #10
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17bit_to_byte_counti(i32 noundef) #1

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #5

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZN6charls14jpegls_decoder11read_headerEv(ptr noundef nonnull align 8 dereferenceable(144)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6charls14jpegls_decoder6decodeISt6vectorISt4byteSaIS3_EES3_EEvRT_j(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { inlinehint 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { "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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTS9rect_size", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN6charls15interleave_modeE", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTSN6charls20color_transformationE", !7, i64 0}
!19 = !{!13, !13, i64 0}
!20 = !{!21, !10, i64 0}
!21 = !{!"_ZTS17charls_frame_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!22 = !{!21, !10, i64 4}
!23 = !{!21, !10, i64 8}
!24 = !{!21, !10, i64 12}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{i64 0, i64 8, !19}
!28 = distinct !{!28, !26}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !7, i64 0}
!31 = !{!7, !7, i64 0}
!32 = distinct !{!32, !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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.charls::jpegls_encoder" = type { %"class.std::unique_ptr.6" }
%"class.std::unique_ptr.6" = type { %"struct.std::__uniq_ptr_data.7" }
%"struct.std::__uniq_ptr_data.7" = type { %"class.std::__uniq_ptr_impl.8" }
%"class.std::__uniq_ptr_impl.8" = type { %"class.std::tuple.9" }
%"class.std::tuple.9" = type { %"struct.std::_Tuple_impl.10" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Tuple_impl.11", %"struct.std::_Head_base.13" }
%"struct.std::_Tuple_impl.11" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.std::_Head_base.13" = type { ptr }
%struct.charls_frame_info = type { i32, i32, i32, i32 }
%"class.charls::jpegls_decoder" = type { %"class.std::unique_ptr.14", i8, %struct.charls_spiff_header, %struct.charls_frame_info, %"class.std::function", %"class.std::function.22" }
%"class.std::unique_ptr.14" = type { %"struct.std::__uniq_ptr_data.15" }
%"struct.std::__uniq_ptr_data.15" = type { %"class.std::__uniq_ptr_impl.16" }
%"class.std::__uniq_ptr_impl.16" = type { %"class.std::tuple.17" }
%"class.std::tuple.17" = type { %"struct.std::_Tuple_impl.18" }
%"struct.std::_Tuple_impl.18" = type { %"struct.std::_Tuple_impl.19", %"struct.std::_Head_base.21" }
%"struct.std::_Tuple_impl.19" = type { %"struct.std::_Head_base.20" }
%"struct.std::_Head_base.20" = type { ptr }
%"struct.std::_Head_base.21" = type { ptr }
%struct.charls_spiff_header = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.22" = type { %"class.std::_Function_base", ptr }
%"class.std::chrono::duration.24" = type { double }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6assert7is_trueEb(i1 noundef zeroext) local_unnamed_addr #2

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

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

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15test_round_tripPKcRKSt6vectorISt4byteSaIS2_EE9rect_sizeiii(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 %2, i64 %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::chrono::time_point", align 8
  %13 = alloca %"class.charls::jpegls_encoder", align 8
  %14 = alloca %struct.charls_frame_info, align 4
  %15 = alloca %"class.std::chrono::duration", align 8
  %16 = alloca %"class.std::chrono::time_point", align 8
  %17 = alloca %"class.charls::jpegls_decoder", align 8
  %18 = alloca %"class.std::chrono::duration", align 8
  %19 = alloca %"class.std::chrono::time_point", align 8
  %20 = alloca %"class.std::chrono::duration.24", align 8
  %21 = alloca %"class.std::chrono::duration.24", align 8
  %22 = trunc i64 %3 to i32
  %23 = trunc i64 %2 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  %24 = mul nsw i32 %22, %23
  %25 = mul i32 %24, %4
  %26 = mul i32 %25, %5
  %27 = sdiv i32 %26, 4
  %28 = sext i32 %27 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaISt4byteEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt6vectorISt4byteSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %29 unwind label %39

29:                                               ; preds = %7
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  %sext = shl i64 %3, 32
  %30 = ashr exact i64 %sext, 32
  %sext74 = shl i64 %2, 32
  %31 = ashr exact i64 %sext74, 32
  %32 = mul nsw i64 %30, %31
  %33 = call noundef i32 @_Z17bit_to_byte_counti(i32 noundef %4) #8
  %34 = zext i32 %33 to i64
  %35 = sext i32 %5 to i64
  %36 = mul i64 %32, %35
  %37 = mul i64 %36, %34
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSaISt4byteEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt6vectorISt4byteSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %38 unwind label %41

38:                                               ; preds = %29
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  switch i32 %5, label %.fold.split [
    i32 4, label %44
    i32 3, label %43
  ]

39:                                               ; preds = %7
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  br label %190

41:                                               ; preds = %29
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4byteED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  br label %189

43:                                               ; preds = %38
  br label %44

.fold.split:                                      ; preds = %38
  br label %44

44:                                               ; preds = %38, %.fold.split, %43
  %.067 = phi i32 [ 1, %43 ], [ 0, %38 ], [ 0, %.fold.split ]
  %.066 = phi i32 [ 1, %43 ], [ 1, %38 ], [ 0, %.fold.split ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %45 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #8
  store i64 %45, ptr %12, align 8
  %.not95 = icmp eq i32 %6, 0
  br i1 %.not95, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %44
  %46 = getelementptr inbounds i8, ptr %14, i64 4
  %47 = getelementptr inbounds i8, ptr %14, i64 8
  %48 = getelementptr inbounds i8, ptr %14, i64 12
  br label %51

._crit_edge:                                      ; preds = %73, %44
  %.068.lcssa = phi i64 [ 0, %44 ], [ %.169, %73 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %49 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #8
  store i64 %49, ptr %16, align 8
  %50 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %79 unwind label %83

51:                                               ; preds = %.lr.ph, %73
  %.06897 = phi i64 [ 0, %.lr.ph ], [ %.169, %73 ]
  %.07096 = phi i32 [ 0, %.lr.ph ], [ %74, %73 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  invoke void @_ZN6charls14jpegls_encoderC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %52 unwind label %63

52:                                               ; preds = %51
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder11destinationISt6vectorISt4byteSaIS3_EES3_EERS0_RT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %54 unwind label %65

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  store i32 %23, ptr %14, align 4, !tbaa !5
  store i32 %22, ptr %46, align 4, !tbaa !10
  store i32 %4, ptr %47, align 4, !tbaa !11
  store i32 %5, ptr %48, align 4, !tbaa !12
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder10frame_infoERK17charls_frame_info(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(16) %14)
          to label %56 unwind label %67

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder15interleave_modeENS_15interleave_modeE(ptr noundef nonnull align 8 dereferenceable(16) %55, i32 noundef %.066)
          to label %58 unwind label %67

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder20color_transformationENS_20color_transformationE(ptr noundef nonnull align 8 dereferenceable(16) %57, i32 noundef %.067)
          to label %60 unwind label %67

60:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  %61 = invoke noundef i64 @_ZN6charls14jpegls_encoder6encodeISt6vectorISt4byteSaIS3_EES3_EEmRKT_j(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %62 unwind label %65

62:                                               ; preds = %60
  call void @_ZN6charls14jpegls_encoderD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %73

63:                                               ; preds = %51
  %64 = landingpad { ptr, i32 }
          catch ptr null
  br label %70

65:                                               ; preds = %60, %52
  %66 = landingpad { ptr, i32 }
          catch ptr null
  br label %69

67:                                               ; preds = %58, %56, %54
  %68 = landingpad { ptr, i32 }
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  br label %69

69:                                               ; preds = %67, %65
  %.pn87 = phi { ptr, i32 } [ %66, %65 ], [ %68, %67 ]
  call void @_ZN6charls14jpegls_encoderD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  br label %70

70:                                               ; preds = %69, %63
  %.pn87.pn = phi { ptr, i32 } [ %.pn87, %69 ], [ %64, %63 ]
  %.1 = extractvalue { ptr, i32 } %.pn87.pn, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  %71 = call ptr @__cxa_begin_catch(ptr %.1) #8
  invoke void @_ZN6assert7is_trueEb(i1 noundef zeroext false)
          to label %72 unwind label %75

72:                                               ; preds = %70
  invoke void @__cxa_end_catch()
          to label %73 unwind label %77

73:                                               ; preds = %62, %72
  %.169 = phi i64 [ %61, %62 ], [ %.06897, %72 ]
  %74 = add nuw nsw i32 %.07096, 1
  %.not = icmp eq i32 %74, %6
  br i1 %.not, label %._crit_edge, label %51, !llvm.loop !13

75:                                               ; preds = %70
  %76 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %188 unwind label %191

77:                                               ; preds = %72
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %188

79:                                               ; preds = %._crit_edge
  store i64 %50, ptr %15, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  %80 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #8
  store i64 %80, ptr %12, align 8, !tbaa !15
  br i1 %.not95, label %._crit_edge102, label %.lr.ph101

._crit_edge102:                                   ; preds = %99, %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %81 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #8
  store i64 %81, ptr %19, align 8
  %82 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %105 unwind label %169

83:                                               ; preds = %._crit_edge
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br label %187

.lr.ph101:                                        ; preds = %79, %99
  %.07199 = phi i32 [ %100, %99 ], [ 0, %79 ]
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %17) #8
  invoke void @_ZN6charls14jpegls_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17)
          to label %85 unwind label %92

85:                                               ; preds = %.lr.ph101
  %86 = call noundef ptr @_ZNSt6vectorISt4byteSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %87 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN6charls14jpegls_decoder6sourceEPKvm(ptr noundef nonnull align 8 dereferenceable(144) %17, ptr noundef %86, i64 noundef %.068.lcssa)
          to label %88 unwind label %94

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN6charls14jpegls_decoder11read_headerEv(ptr noundef nonnull align 8 dereferenceable(144) %87)
          to label %90 unwind label %94

90:                                               ; preds = %88
  invoke void @_ZN6charls14jpegls_decoder6decodeISt6vectorISt4byteSaIS3_EES3_EEvRT_j(ptr noundef nonnull align 8 dereferenceable(144) %17, ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
          to label %91 unwind label %94

91:                                               ; preds = %90
  call void @_ZN6charls14jpegls_decoderD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %17) #8
  br label %99

92:                                               ; preds = %.lr.ph101
  %93 = landingpad { ptr, i32 }
          catch ptr null
  br label %96

94:                                               ; preds = %90, %88, %85
  %95 = landingpad { ptr, i32 }
          catch ptr null
  call void @_ZN6charls14jpegls_decoderD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #8
  br label %96

96:                                               ; preds = %94, %92
  %.pn83 = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  %.3 = extractvalue { ptr, i32 } %.pn83, 0
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %17) #8
  %97 = call ptr @__cxa_begin_catch(ptr %.3) #8
  invoke void @_ZN6assert7is_trueEb(i1 noundef zeroext false)
          to label %98 unwind label %101

98:                                               ; preds = %96
  invoke void @__cxa_end_catch()
          to label %99 unwind label %103

99:                                               ; preds = %91, %98
  %100 = add nuw nsw i32 %.07199, 1
  %.not75 = icmp eq i32 %100, %6
  br i1 %.not75, label %._crit_edge102, label %.lr.ph101, !llvm.loop !17

101:                                              ; preds = %96
  %102 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %187 unwind label %191

103:                                              ; preds = %98
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %187

105:                                              ; preds = %._crit_edge102
  store i64 %82, ptr %18, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  %106 = uitofp i64 %.068.lcssa to double
  %107 = fmul double %106, 8.000000e+00
  %108 = sitofp i32 %5 to double
  %109 = sitofp i32 %22 to double
  %110 = fmul double %109, %108
  %111 = sitofp i32 %23 to double
  %112 = fmul double %110, %111
  %113 = fdiv double %107, %112
  %114 = 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 %115 unwind label %171

115:                                              ; preds = %105
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef %0)
          to label %117 unwind label %171

117:                                              ; preds = %115
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str.3)
          to label %119 unwind label %171

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  invoke void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1000EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %120 unwind label %173

120:                                              ; preds = %119
  %121 = call noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %122 = sitofp i32 %6 to double
  %123 = fdiv double %121, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  invoke void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1000EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %124 unwind label %175

124:                                              ; preds = %120
  %125 = call noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
  %126 = fdiv double %125, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  %127 = fmul double %126, 1.000000e+03
  %128 = fdiv double %112, %127
  %129 = 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.4)
          to label %130 unwind label %177

130:                                              ; preds = %124
  %131 = call i32 @_ZSt4setwi(i32 noundef 10)
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %129, i32 %131)
          to label %133 unwind label %177

133:                                              ; preds = %130
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %132, i32 noundef %23)
          to label %135 unwind label %177

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @.str.5)
          to label %137 unwind label %177

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %136, i32 noundef %22)
          to label %139 unwind label %177

139:                                              ; preds = %137
  %140 = call i32 @_ZSt4setwi(i32 noundef 7)
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %138, i32 %140)
          to label %142 unwind label %177

142:                                              ; preds = %139
  %143 = call i32 @_ZSt12setprecisioni(i32 noundef 2)
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %141, i32 %143)
          to label %145 unwind label %177

145:                                              ; preds = %142
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @.str.6)
          to label %147 unwind label %177

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %146, double noundef %123)
          to label %149 unwind label %177

149:                                              ; preds = %147
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull @.str.7)
          to label %151 unwind label %177

151:                                              ; preds = %149
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %150, double noundef %126)
          to label %153 unwind label %177

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull @.str.8)
          to label %155 unwind label %177

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %154, double noundef %113)
          to label %157 unwind label %177

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef nonnull @.str.9)
          to label %159 unwind label %177

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %158, double noundef %128)
          to label %161 unwind label %177

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

163:                                              ; preds = %161
  %164 = call noundef ptr @_ZNSt6vectorISt4byteSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %165 = call noundef i64 @_ZNKSt6vectorISt4byteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %.not76103 = icmp eq i64 %165, 0
  br i1 %.not76103, label %.loopexit, label %.lr.ph106

166:                                              ; preds = %.lr.ph106
  %167 = add i64 %.0104, 1
  %168 = call noundef i64 @_ZNKSt6vectorISt4byteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %.not76 = icmp eq i64 %167, %168
  br i1 %.not76, label %.loopexit, label %.lr.ph106, !llvm.loop !18

169:                                              ; preds = %._crit_edge102
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br label %186

171:                                              ; preds = %117, %115, %105
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %186

173:                                              ; preds = %119
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  br label %186

175:                                              ; preds = %120
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br label %186

177:                                              ; preds = %161, %159, %157, %155, %153, %151, %149, %147, %145, %142, %139, %137, %135, %133, %130, %124
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %186

.lr.ph106:                                        ; preds = %163, %166
  %.0104 = phi i64 [ %167, %166 ], [ 0, %163 ]
  %179 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorISt4byteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0104) #8
  %180 = load i8, ptr %179, align 1, !tbaa !19
  %181 = getelementptr inbounds i8, ptr %164, i64 %.0104
  %182 = load i8, ptr %181, align 1, !tbaa !19
  %.not77 = icmp eq i8 %180, %182
  br i1 %.not77, label %166, label %183

183:                                              ; preds = %.lr.ph106
  invoke void @_ZN6assert7is_trueEb(i1 noundef zeroext false)
          to label %.loopexit unwind label %184

184:                                              ; preds = %183
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %186

.loopexit:                                        ; preds = %166, %163, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  ret void

186:                                              ; preds = %171, %175, %184, %177, %173, %169
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %170, %169 ], [ %172, %171 ], [ %174, %173 ], [ %176, %175 ], [ %185, %184 ], [ %178, %177 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br label %187

187:                                              ; preds = %103, %101, %186, %83
  %.pn84.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %186 ], [ %84, %83 ], [ %104, %103 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %188

188:                                              ; preds = %77, %75, %187
  %.pn88.pn = phi { ptr, i32 } [ %.pn84.pn, %187 ], [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %189

189:                                              ; preds = %188, %41
  %.pn88.pn.pn = phi { ptr, i32 } [ %.pn88.pn, %188 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @_ZNSt6vectorISt4byteSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %190

190:                                              ; preds = %189, %39
  %.pn88.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn, %189 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  resume { ptr, i32 } %.pn88.pn.pn.pn

191:                                              ; preds = %101, %75
  %192 = landingpad { ptr, i32 }
          catch ptr null
  %193 = extractvalue { ptr, i32 } %192, 0
  call void @__clang_call_terminate(ptr %193) #9
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17bit_to_byte_counti(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212steady_clock3nowEv() local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder11destinationISt6vectorISt4byteSaIS3_EES3_EERS0_RT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6charls14jpegls_encoder10frame_infoERK17charls_frame_info(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6charls14jpegls_encoder6encodeISt6vectorISt4byteSaIS3_EES3_EEmRKT_j(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZN6charls14jpegls_decoder6sourceEPKvm(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, i64 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6charls14jpegls_decoder6decodeISt6vectorISt4byteSaIS3_EES3_EEvRT_j(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) local_unnamed_addr #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #6

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { inlinehint 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 #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS17charls_frame_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 12}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = !{!8, !8, i64 0}


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