; LLVM IR from JayXon/Leanify :: formats/png.ll (ZN3Png7LeanifyEm)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.anon = type { ptr, ptr }
%struct.ZopfliPNGOptions = type { i8, i8, i8, %"class.std::vector", i8, %"class.std::vector.0", i8, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl" }
%"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl" = type { %"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }
%class.Format = type { ptr, ptr, i64 }

@_ZN3Png17keep_icc_profile_E = external dso_local global i8, align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@is_verbose = external global i8, align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@is_fast = external global i8, align 1
@zopflipng_lossy_transparent = external global i8, align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@iterations = external global i32, align 4
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3Png7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca %class.anon, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca %struct.ZopfliPNGOptions, align 8
  %17 = alloca %"class.std::initializer_list", align 8
  %18 = alloca [4 x %"class.std::__cxx11::basic_string"], align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::allocator.5", align 1
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::allocator.5", align 1
  %24 = alloca %"class.std::allocator.5", align 1
  %25 = alloca %"class.std::allocator.5", align 1
  %26 = alloca i1, align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.5", align 1
  %29 = alloca %"class.std::vector.8", align 8
  %30 = alloca %"class.std::allocator.10", align 1
  %31 = alloca %"class.std::vector.8", align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %35 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %36 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  store ptr %37, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i64, ptr %5, align 8, !tbaa !9
  %40 = sub i64 0, %39
  %41 = getelementptr inbounds i8, ptr %38, i64 %40
  store ptr %41, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %42, ptr align 1 %43, i64 8, i1 false)
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr %45, ptr %6, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  store ptr %47, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store ptr null, ptr %9, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %155, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load i32, ptr %49, align 4, !tbaa !13
  %51 = call i32 @llvm.bswap.i32(i32 %50)
  %52 = add i32 %51, 12
  store i32 %52, ptr %10, align 4, !tbaa !13
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !13
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !15
  %61 = getelementptr inbounds i8, ptr %58, i64 %60
  %62 = icmp ugt ptr %56, %61
  br i1 %62, label %63, label %94

63:                                               ; preds = %48
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %69 = load i64, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds i8, ptr %67, i64 %69
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = ptrtoint ptr %70 to i64
  %73 = ptrtoint ptr %71 to i64
  %74 = sub i64 %72, %73
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %64, ptr align 1 %65, i64 %74, i1 false)
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %77 = load i64, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !11
  %80 = sub i64 0, %77
  %81 = getelementptr inbounds i8, ptr %79, i64 %80
  store ptr %81, ptr %78, align 8, !tbaa !11
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = ptrtoint ptr %82 to i64
  %85 = ptrtoint ptr %83 to i64
  %86 = sub i64 %84, %85
  %87 = load i64, ptr %5, align 8, !tbaa !9
  %88 = sub i64 %86, %87
  %89 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %90 = load i64, ptr %89, align 8, !tbaa !15
  %91 = sub i64 %90, %88
  store i64 %91, ptr %89, align 8, !tbaa !15
  %92 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %93 = load i64, ptr %92, align 8, !tbaa !15
  store i64 %93, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %152

94:                                               ; preds = %48
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 4
  %97 = load i32, ptr %96, align 4, !tbaa !13
  store i32 %97, ptr %8, align 4, !tbaa !13
  %98 = load i32, ptr %8, align 4, !tbaa !13
  %99 = icmp eq i32 %98, 1413563465
  br i1 %99, label %100, label %102

100:                                              ; preds = %94
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %101, ptr %9, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %100, %94
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %103 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 0
  store ptr %8, ptr %103, align 8, !tbaa !5
  %104 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 1
  store ptr %9, ptr %104, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @"_ZZN3Png7LeanifyEmENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  %106 = zext i1 %105 to i8
  store i8 %106, ptr %12, align 1, !tbaa !16
  %107 = load i8, ptr %12, align 1, !tbaa !16, !range !18, !noundef !19
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %138

109:                                              ; preds = %102
  %110 = load i8, ptr @is_verbose, align 1, !tbaa !16, !range !18, !noundef !19
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %133

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 4, ptr %14, align 4, !tbaa !13
  br label %113

113:                                              ; preds = %124, %112
  %114 = load i32, ptr %14, align 4, !tbaa !13
  %115 = icmp slt i32 %114, 8
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  store i32 4, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %127

117:                                              ; preds = %113
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load i32, ptr %14, align 4, !tbaa !13
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %118, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !20
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %122)
  br label %124

124:                                              ; preds = %117
  %125 = load i32, ptr %14, align 4, !tbaa !13
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %14, align 4, !tbaa !13
  br label %113, !llvm.loop !21

127:                                              ; preds = %116
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %129 = load i32, ptr %10, align 4, !tbaa !13
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %128, i32 noundef %129)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @.str.2)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %133

133:                                              ; preds = %127, %109
  %134 = load i32, ptr %10, align 4, !tbaa !13
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = zext i32 %134 to i64
  %137 = getelementptr inbounds i8, ptr %135, i64 %136
  store ptr %137, ptr %6, align 8, !tbaa !5
  store i32 3, ptr %11, align 4
  br label %151

138:                                              ; preds = %102
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load i32, ptr %10, align 4, !tbaa !13
  %142 = zext i32 %141 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %139, ptr align 1 %140, i64 %142, i1 false)
  %143 = load i32, ptr %10, align 4, !tbaa !13
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = zext i32 %143 to i64
  %146 = getelementptr inbounds i8, ptr %144, i64 %145
  store ptr %146, ptr %7, align 8, !tbaa !5
  %147 = load i32, ptr %10, align 4, !tbaa !13
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = zext i32 %147 to i64
  %150 = getelementptr inbounds i8, ptr %148, i64 %149
  store ptr %150, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %11, align 4
  br label %151

151:                                              ; preds = %138, %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  br label %152

152:                                              ; preds = %151, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %153 = load i32, ptr %11, align 4
  switch i32 %153, label %384 [
    i32 0, label %154
    i32 3, label %155
  ]

154:                                              ; preds = %152
  br label %155

155:                                              ; preds = %154, %152
  %156 = load i32, ptr %8, align 4, !tbaa !13
  %157 = icmp ne i32 %156, 1145980233
  br i1 %157, label %48, label %158, !llvm.loop !23

158:                                              ; preds = %155
  %159 = load i64, ptr %5, align 8, !tbaa !9
  %160 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !11
  %162 = sub i64 0, %159
  %163 = getelementptr inbounds i8, ptr %161, i64 %162
  store ptr %163, ptr %160, align 8, !tbaa !11
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = ptrtoint ptr %164 to i64
  %168 = ptrtoint ptr %166 to i64
  %169 = sub i64 %167, %168
  %170 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  store i64 %169, ptr %170, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 0, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #8
  call void @_ZN16ZopfliPNGOptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %171 = load i8, ptr @is_fast, align 1, !tbaa !16, !range !18, !noundef !19
  %172 = trunc i8 %171 to i1
  %173 = xor i1 %172, true
  %174 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %16, i32 0, i32 6
  %175 = zext i1 %173 to i8
  store i8 %175, ptr %174, align 8, !tbaa !24
  %176 = load i8, ptr @zopflipng_lossy_transparent, align 1, !tbaa !16, !range !18, !noundef !19
  %177 = trunc i8 %176 to i1
  %178 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %16, i32 0, i32 1
  %179 = zext i1 %177 to i8
  store i8 %179, ptr %178, align 1, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #8
  store i1 true, ptr %26, align 1
  store ptr %18, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %180 unwind label %209

180:                                              ; preds = %158
  %181 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %18, i64 1
  store ptr %181, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %181, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %182 unwind label %213

182:                                              ; preds = %180
  %183 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %18, i64 2
  store ptr %183, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %183, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %184 unwind label %217

184:                                              ; preds = %182
  %185 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %18, i64 3
  store ptr %185, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %185, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %186 unwind label %221

186:                                              ; preds = %184
  store i1 false, ptr %26, align 1
  %187 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 0
  store ptr %18, ptr %187, align 8, !tbaa !35
  %188 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 1
  store i64 4, ptr %188, align 8, !tbaa !37
  %189 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %16, i32 0, i32 5
  %190 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8
  %192 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %193 = load i64, ptr %192, align 8
  %194 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSESt16initializer_listIS5_E(ptr noundef nonnull align 8 dereferenceable(24) %189, ptr %191, i64 %193)
          to label %195 unwind label %225

195:                                              ; preds = %186
  %196 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %18, i32 0, i32 0
  %197 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %196, i64 4
  br label %198

198:                                              ; preds = %198, %195
  %199 = phi ptr [ %197, %195 ], [ %200, %198 ]
  %200 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %199, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %200) #8
  %201 = icmp eq ptr %200, %196
  br i1 %201, label %202, label %198

202:                                              ; preds = %198
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #8
  %203 = load i8, ptr @_ZN3Png17keep_icc_profile_E, align 1, !tbaa !16, !range !18, !noundef !19
  %204 = trunc i8 %203 to i1
  br i1 %204, label %205, label %259

205:                                              ; preds = %202
  %206 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %16, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %207 unwind label %250

207:                                              ; preds = %205
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %206, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %208 unwind label %254

208:                                              ; preds = %207
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #8
  br label %259

209:                                              ; preds = %158
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %21, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %22, align 4
  br label %239

213:                                              ; preds = %180
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %21, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %22, align 4
  br label %238

217:                                              ; preds = %182
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %21, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %22, align 4
  br label %237

221:                                              ; preds = %184
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %21, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %22, align 4
  br label %236

225:                                              ; preds = %186
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %21, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %22, align 4
  %229 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %18, i32 0, i32 0
  %230 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %229, i64 4
  br label %231

231:                                              ; preds = %231, %225
  %232 = phi ptr [ %230, %225 ], [ %233, %231 ]
  %233 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %232, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %233) #8
  %234 = icmp eq ptr %233, %229
  br i1 %234, label %235, label %231

235:                                              ; preds = %231
  br label %236

236:                                              ; preds = %235, %221
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %237

237:                                              ; preds = %236, %217
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  br label %238

238:                                              ; preds = %237, %213
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %239

239:                                              ; preds = %238, %209
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  %240 = load i1, ptr %26, align 1
  br i1 %240, label %241, label %249

241:                                              ; preds = %239
  %242 = load ptr, ptr %19, align 8
  %243 = icmp eq ptr %18, %242
  br i1 %243, label %248, label %244

244:                                              ; preds = %244, %241
  %245 = phi ptr [ %242, %241 ], [ %246, %244 ]
  %246 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %245, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %246) #8
  %247 = icmp eq ptr %246, %18
  br i1 %247, label %248, label %244

248:                                              ; preds = %244, %241
  br label %249

249:                                              ; preds = %248, %239
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #8
  br label %378

250:                                              ; preds = %205
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %21, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %22, align 4
  br label %258

254:                                              ; preds = %207
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %21, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %22, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  br label %258

258:                                              ; preds = %254, %250
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #8
  br label %378

259:                                              ; preds = %208, %202
  %260 = load i32, ptr @iterations, align 4, !tbaa !13
  %261 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %16, i32 0, i32 7
  store i32 %260, ptr %261, align 4, !tbaa !38
  %262 = load i32, ptr @iterations, align 4, !tbaa !13
  %263 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %16, i32 0, i32 8
  store i32 %262, ptr %263, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  %264 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %265 = load ptr, ptr %264, align 8, !tbaa !11
  %266 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %267 = load ptr, ptr %266, align 8, !tbaa !11
  %268 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %269 = load i64, ptr %268, align 8, !tbaa !15
  %270 = getelementptr inbounds i8, ptr %267, i64 %269
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2IPhvEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef %265, ptr noundef %270, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %271 unwind label %292

271:                                              ; preds = %259
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #8
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %272 = load i8, ptr @is_verbose, align 1, !tbaa !16, !range !18, !noundef !19
  %273 = trunc i8 %272 to i1
  %274 = invoke noundef i32 @_Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(80) %16, i1 noundef zeroext %273, ptr noundef %31)
          to label %275 unwind label %296

275:                                              ; preds = %271
  %276 = icmp ne i32 %274, 0
  br i1 %276, label %301, label %277

277:                                              ; preds = %275
  %278 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  store i64 %278, ptr %15, align 8, !tbaa !9
  %279 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %280 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %281 = load i64, ptr %280, align 8, !tbaa !15
  %282 = icmp ult i64 %279, %281
  br i1 %282, label %283, label %300

283:                                              ; preds = %277
  %284 = load i64, ptr %15, align 8, !tbaa !9
  %285 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  store i64 %284, ptr %285, align 8, !tbaa !15
  %286 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %287 = load ptr, ptr %286, align 8, !tbaa !11
  %288 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %289 = load i64, ptr %15, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %287, ptr align 1 %288, i64 %289, i1 false)
  %290 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %291 = load i64, ptr %290, align 8, !tbaa !15
  store i64 %291, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %307

292:                                              ; preds = %259
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %21, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %22, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  br label %377

296:                                              ; preds = %303, %301, %271
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %21, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %22, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  br label %377

300:                                              ; preds = %277
  br label %306

301:                                              ; preds = %275
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
          to label %303 unwind label %296

303:                                              ; preds = %301
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %302, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %305 unwind label %296

305:                                              ; preds = %303
  br label %306

306:                                              ; preds = %305, %300
  store i32 0, ptr %11, align 4
  br label %307

307:                                              ; preds = %306, %283
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZN16ZopfliPNGOptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #8
  %308 = load i32, ptr %11, align 4
  switch i32 %308, label %383 [
    i32 0, label %309
  ]

309:                                              ; preds = %307
  %310 = load ptr, ptr %9, align 8, !tbaa !5
  %311 = icmp ne ptr %310, null
  br i1 %311, label %312, label %380

312:                                              ; preds = %309
  %313 = load i64, ptr %15, align 8, !tbaa !9
  %314 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %315 = load i64, ptr %314, align 8, !tbaa !15
  %316 = icmp ne i64 %313, %315
  br i1 %316, label %321, label %317

317:                                              ; preds = %312
  %318 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %319 = load i64, ptr %318, align 8, !tbaa !15
  %320 = icmp ult i64 %319, 32768
  br i1 %320, label %321, label %380

321:                                              ; preds = %317, %312
  call void @_Z12VerbosePrintIA50_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(50) @.str.9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %322 = load ptr, ptr %9, align 8, !tbaa !5
  %323 = load i32, ptr %322, align 4, !tbaa !13
  %324 = call i32 @llvm.bswap.i32(i32 %323)
  store i32 %324, ptr %32, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %325 = load ptr, ptr %9, align 8, !tbaa !5
  %326 = getelementptr inbounds i8, ptr %325, i64 8
  %327 = load i32, ptr %32, align 4, !tbaa !13
  %328 = zext i32 %327 to i64
  %329 = call noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef %326, i64 noundef %328, i64 noundef 0)
  %330 = trunc i64 %329 to i32
  store i32 %330, ptr %33, align 4, !tbaa !13
  %331 = load i32, ptr %32, align 4, !tbaa !13
  %332 = load i32, ptr %33, align 4, !tbaa !13
  %333 = icmp ne i32 %331, %332
  br i1 %333, label %334, label %379

334:                                              ; preds = %321
  %335 = load i32, ptr %33, align 4, !tbaa !13
  %336 = call i32 @llvm.bswap.i32(i32 %335)
  %337 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %336, ptr %337, align 4, !tbaa !13
  %338 = load ptr, ptr %9, align 8, !tbaa !5
  %339 = getelementptr inbounds i8, ptr %338, i64 4
  %340 = load i32, ptr %33, align 4, !tbaa !13
  %341 = add i32 %340, 4
  %342 = zext i32 %341 to i64
  %343 = call noundef i32 @_Z13lodepng_crc32PKhm(ptr noundef %339, i64 noundef %342)
  %344 = call i32 @llvm.bswap.i32(i32 %343)
  %345 = load ptr, ptr %9, align 8, !tbaa !5
  %346 = load i32, ptr %33, align 4, !tbaa !13
  %347 = zext i32 %346 to i64
  %348 = getelementptr inbounds i8, ptr %345, i64 %347
  %349 = getelementptr inbounds i8, ptr %348, i64 8
  store i32 %344, ptr %349, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %350 = load ptr, ptr %9, align 8, !tbaa !5
  %351 = load i32, ptr %32, align 4, !tbaa !13
  %352 = zext i32 %351 to i64
  %353 = getelementptr inbounds i8, ptr %350, i64 %352
  %354 = getelementptr inbounds i8, ptr %353, i64 12
  store ptr %354, ptr %34, align 8, !tbaa !5
  %355 = load ptr, ptr %9, align 8, !tbaa !5
  %356 = load i32, ptr %33, align 4, !tbaa !13
  %357 = zext i32 %356 to i64
  %358 = getelementptr inbounds i8, ptr %355, i64 %357
  %359 = getelementptr inbounds i8, ptr %358, i64 12
  %360 = load ptr, ptr %34, align 8, !tbaa !5
  %361 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 1
  %362 = load ptr, ptr %361, align 8, !tbaa !11
  %363 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %364 = load i64, ptr %363, align 8, !tbaa !15
  %365 = getelementptr inbounds i8, ptr %362, i64 %364
  %366 = load ptr, ptr %34, align 8, !tbaa !5
  %367 = ptrtoint ptr %365 to i64
  %368 = ptrtoint ptr %366 to i64
  %369 = sub i64 %367, %368
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %359, ptr align 1 %360, i64 %369, i1 false)
  %370 = load i32, ptr %32, align 4, !tbaa !13
  %371 = load i32, ptr %33, align 4, !tbaa !13
  %372 = sub i32 %370, %371
  %373 = zext i32 %372 to i64
  %374 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %375 = load i64, ptr %374, align 8, !tbaa !15
  %376 = sub i64 %375, %373
  store i64 %376, ptr %374, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %379

377:                                              ; preds = %296, %292
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  br label %378

378:                                              ; preds = %377, %258, %249
  call void @_ZN16ZopfliPNGOptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %386

379:                                              ; preds = %334, %321
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %380

380:                                              ; preds = %379, %317, %309
  %381 = getelementptr inbounds %class.Format, ptr %35, i32 0, i32 2
  %382 = load i64, ptr %381, align 8, !tbaa !15
  store i64 %382, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %383

383:                                              ; preds = %380, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %384

384:                                              ; preds = %383, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %385 = load i64, ptr %3, align 8
  ret i64 %385

386:                                              ; preds = %378
  %387 = load ptr, ptr %21, align 8
  %388 = load i32, ptr %22, align 4
  %389 = insertvalue { ptr, i32 } poison, ptr %387, 0
  %390 = insertvalue { ptr, i32 } %389, i32 %388, 1
  resume { ptr, i32 } %390
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.bswap.i32(i32) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZZN3Png7LeanifyEmENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

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

declare void @_ZN16ZopfliPNGOptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare noundef i32 @_Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(80), i1 noundef zeroext, ptr noundef) #6

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA50_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(50)) #0

declare noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef, i64 noundef, i64 noundef) #6

declare noundef i32 @_Z13lodepng_crc32PKhm(ptr noundef, i64 noundef) #6

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS6Format", !6, i64 8, !10, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !10, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!25, !17, i64 64}
!25 = !{!"_ZTS16ZopfliPNGOptions", !17, i64 0, !17, i64 1, !17, i64 2, !26, i64 8, !17, i64 32, !30, i64 40, !17, i64 64, !14, i64 68, !14, i64 72, !14, i64 76}
!26 = !{!"_ZTSSt6vectorI23ZopfliPNGFilterStrategySaIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!25, !17, i64 1}
!35 = !{!36, !6, i64 0}
!36 = !{!"_ZTSSt16initializer_listINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE", !6, i64 0, !10, i64 8}
!37 = !{!36, !10, i64 8}
!38 = !{!25, !14, i64 68}
!39 = !{!25, !14, i64 72}


; 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.anon = type { ptr, ptr }
%struct.ZopfliPNGOptions = type { i8, i8, i8, %"class.std::vector", i8, %"class.std::vector.0", i8, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl" }
%"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl" = type { %"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ZopfliPNGFilterStrategy, std::allocator<ZopfliPNGFilterStrategy>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }

@_ZN3Png17keep_icc_profile_E = external dso_local local_unnamed_addr global i8, align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@is_verbose = external local_unnamed_addr global i8, align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@is_fast = external local_unnamed_addr global i8, align 1
@zopflipng_lossy_transparent = external local_unnamed_addr global i8, align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@iterations = external local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3Png7LeanifyEm(ptr nocapture noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %class.anon, align 8
  %6 = alloca %struct.ZopfliPNGOptions, align 8
  %7 = alloca [4 x %"class.std::__cxx11::basic_string"], align 8
  %8 = alloca %"class.std::allocator.5", align 1
  %9 = alloca %"class.std::allocator.5", align 1
  %10 = alloca %"class.std::allocator.5", align 1
  %11 = alloca %"class.std::allocator.5", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.5", align 1
  %14 = alloca %"class.std::vector.8", align 8
  %15 = alloca %"class.std::allocator.10", align 1
  %16 = alloca %"class.std::vector.8", align 8
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = sub i64 0, %1
  %20 = getelementptr inbounds i8, ptr %18, i64 %19
  %21 = load i64, ptr %18, align 1
  store i64 %21, ptr %20, align 1
  %22 = getelementptr inbounds i8, ptr %18, i64 8
  %23 = getelementptr inbounds i8, ptr %20, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store ptr null, ptr %4, align 8, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = getelementptr inbounds i8, ptr %5, i64 8
  br label %26

26:                                               ; preds = %75, %2
  %.061 = phi ptr [ %23, %2 ], [ %.263.ph, %75 ]
  %.058 = phi ptr [ %22, %2 ], [ %31, %75 ]
  %27 = load i32, ptr %.058, align 4, !tbaa !12
  %28 = call i32 @llvm.bswap.i32(i32 %27)
  %29 = add i32 %28, 12
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds i8, ptr %.058, i64 %30
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  %33 = load i64, ptr %24, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %32, i64 %33
  %35 = icmp ugt ptr %31, %34
  br i1 %35, label %63, label %36

36:                                               ; preds = %26
  %37 = getelementptr inbounds i8, ptr %.058, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !12
  store i32 %38, ptr %3, align 4, !tbaa !12
  %39 = icmp eq i32 %38, 1413563465
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  store ptr %.061, ptr %4, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %40, %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  store ptr %3, ptr %5, align 8, !tbaa !11
  store ptr %4, ptr %25, align 8, !tbaa !11
  %42 = call noundef zeroext i1 @"_ZZN3Png7LeanifyEmENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br i1 %42, label %43, label %61

43:                                               ; preds = %41
  %44 = load i8, ptr @is_verbose, align 1, !tbaa !15, !range !17, !noundef !18
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %.preheader124.preheader, label %75

.preheader124.preheader:                          ; preds = %43
  %46 = load i8, ptr %37, align 1, !tbaa !19
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %46)
  %48 = getelementptr inbounds i8, ptr %.058, i64 5
  %49 = load i8, ptr %48, align 1, !tbaa !19
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %49)
  %51 = getelementptr inbounds i8, ptr %.058, i64 6
  %52 = load i8, ptr %51, align 1, !tbaa !19
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %52)
  %54 = getelementptr inbounds i8, ptr %.058, i64 7
  %55 = load i8, ptr %54, align 1, !tbaa !19
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %55)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %57, i32 noundef %29)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @.str.2)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %75

61:                                               ; preds = %41
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %.061, ptr nonnull align 1 %.058, i64 %30, i1 false)
  %62 = getelementptr inbounds i8, ptr %.061, i64 %30
  br label %75

63:                                               ; preds = %26
  %64 = ptrtoint ptr %34 to i64
  %65 = ptrtoint ptr %.058 to i64
  %66 = sub i64 %64, %65
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %.061, ptr nonnull align 1 %.058, i64 %66, i1 false)
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 %19
  store ptr %70, ptr %17, align 8, !tbaa !5
  %71 = ptrtoint ptr %.061 to i64
  %72 = add i64 %71, %1
  %.neg = sub i64 %72, %65
  %73 = load i64, ptr %24, align 8, !tbaa !14
  %74 = add i64 %.neg, %73
  store i64 %74, ptr %24, align 8, !tbaa !14
  br label %197

75:                                               ; preds = %61, %.preheader124.preheader, %43
  %.263.ph = phi ptr [ %.061, %43 ], [ %.061, %.preheader124.preheader ], [ %62, %61 ]
  %76 = load i32, ptr %3, align 4, !tbaa !12
  %.not95 = icmp eq i32 %76, 1145980233
  br i1 %.not95, label %77, label %26, !llvm.loop !20

77:                                               ; preds = %75
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 %19
  store ptr %79, ptr %17, align 8, !tbaa !5
  %80 = ptrtoint ptr %.263.ph to i64
  %81 = ptrtoint ptr %79 to i64
  %82 = sub i64 %80, %81
  store i64 %82, ptr %24, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #8
  call void @_ZN16ZopfliPNGOptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %83 = load i8, ptr @is_fast, align 1, !tbaa !15, !range !17, !noundef !18
  %84 = xor i8 %83, 1
  %85 = getelementptr inbounds i8, ptr %6, i64 64
  store i8 %84, ptr %85, align 8, !tbaa !22
  %86 = load i8, ptr @zopflipng_lossy_transparent, align 1, !tbaa !15, !range !17, !noundef !18
  %87 = getelementptr inbounds i8, ptr %6, i64 1
  store i8 %86, ptr %87, align 1, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %88 unwind label %.thread116

88:                                               ; preds = %77
  %89 = getelementptr inbounds i8, ptr %7, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %89, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %90 unwind label %107

90:                                               ; preds = %88
  %91 = getelementptr inbounds i8, ptr %7, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %92 unwind label %109

92:                                               ; preds = %90
  %93 = getelementptr inbounds i8, ptr %7, i64 96
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %93, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %94 unwind label %111

94:                                               ; preds = %92
  %95 = getelementptr inbounds i8, ptr %6, i64 40
  %96 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSESt16initializer_listIS5_E(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr nonnull %7, i64 4)
          to label %97 unwind label %.loopexit123.loopexit

97:                                               ; preds = %94
  %98 = getelementptr inbounds i8, ptr %7, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %98) #8
  %99 = getelementptr inbounds i8, ptr %7, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %99) #8
  %100 = getelementptr inbounds i8, ptr %7, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %100) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #8
  %101 = load i8, ptr @_ZN3Png17keep_icc_profile_E, align 1, !tbaa !15, !range !17, !noundef !18
  %102 = trunc nuw i8 %101 to i1
  br i1 %102, label %103, label %128

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %104 unwind label %123

104:                                              ; preds = %103
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %105 unwind label %125

105:                                              ; preds = %104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %128

.thread116:                                       ; preds = %77
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  br label %.loopexit

107:                                              ; preds = %88
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %119

109:                                              ; preds = %90
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %118

111:                                              ; preds = %92
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit123

.loopexit123.loopexit:                            ; preds = %94
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = getelementptr inbounds i8, ptr %7, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %114) #8
  %115 = getelementptr inbounds i8, ptr %7, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #8
  %116 = getelementptr inbounds i8, ptr %7, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %116) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %.loopexit123

.loopexit123:                                     ; preds = %.loopexit123.loopexit, %111
  %.pn = phi { ptr, i32 } [ %112, %111 ], [ %113, %.loopexit123.loopexit ]
  %117 = phi i1 [ false, %111 ], [ true, %.loopexit123.loopexit ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  br label %118

118:                                              ; preds = %.loopexit123, %109
  %.080 = phi ptr [ %93, %.loopexit123 ], [ %91, %109 ]
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit123 ], [ %110, %109 ]
  %.165 = phi i1 [ %117, %.loopexit123 ], [ false, %109 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  br label %119

119:                                              ; preds = %107, %118
  %.181 = phi ptr [ %.080, %118 ], [ %89, %107 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %118 ], [ %108, %107 ]
  %.266 = phi i1 [ %.165, %118 ], [ false, %107 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  br i1 %.266, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %119, %.preheader
  %120 = phi ptr [ %121, %.preheader ], [ %.181, %119 ]
  %121 = getelementptr inbounds i8, ptr %120, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %121) #8
  %122 = icmp eq ptr %121, %7
  br i1 %122, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread116, %119
  %.pn.pn.pn.pn121 = phi { ptr, i32 } [ %106, %.thread116 ], [ %.pn.pn.pn, %119 ], [ %.pn.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #8
  br label %196

123:                                              ; preds = %103
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

125:                                              ; preds = %104
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %127

127:                                              ; preds = %125, %123
  %.pn100 = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %196

128:                                              ; preds = %105, %97
  %129 = load i32, ptr @iterations, align 4, !tbaa !12
  %130 = getelementptr inbounds i8, ptr %6, i64 68
  store i32 %129, ptr %130, align 4, !tbaa !33
  %131 = getelementptr inbounds i8, ptr %6, i64 72
  store i32 %129, ptr %131, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = load i64, ptr %24, align 8, !tbaa !14
  %134 = getelementptr inbounds i8, ptr %132, i64 %133
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2IPhvEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %132, ptr noundef %134, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %135 unwind label %149

135:                                              ; preds = %128
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %136 = load i8, ptr @is_verbose, align 1, !tbaa !15, !range !17, !noundef !18
  %137 = trunc nuw i8 %136 to i1
  %138 = invoke noundef i32 @_Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(80) %6, i1 noundef zeroext %137, ptr noundef nonnull %16)
          to label %139 unwind label %151

139:                                              ; preds = %135
  %.not = icmp eq i32 %138, 0
  br i1 %.not, label %140, label %153

140:                                              ; preds = %139
  %141 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %142 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %143 = load i64, ptr %24, align 8, !tbaa !14
  %144 = icmp ult i64 %142, %143
  br i1 %144, label %145, label %157

145:                                              ; preds = %140
  store i64 %141, ptr %24, align 8, !tbaa !14
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %146, ptr align 1 %147, i64 %141, i1 false)
  %148 = load i64, ptr %24, align 8, !tbaa !14
  br label %157

149:                                              ; preds = %128
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  br label %195

151:                                              ; preds = %155, %153, %135
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %195

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

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %157 unwind label %151

157:                                              ; preds = %140, %155, %145
  %.188 = phi i64 [ %141, %145 ], [ 0, %155 ], [ %141, %140 ]
  %cond = phi i1 [ false, %145 ], [ true, %155 ], [ true, %140 ]
  %.2 = phi i64 [ %148, %145 ], [ undef, %155 ], [ undef, %140 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZN16ZopfliPNGOptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #8
  br i1 %cond, label %158, label %197

158:                                              ; preds = %157
  %159 = load ptr, ptr %4, align 8, !tbaa !11
  %.not105 = icmp eq ptr %159, null
  %.pre135 = load i64, ptr %24, align 8, !tbaa !14
  br i1 %.not105, label %197, label %160

160:                                              ; preds = %158
  %.not106 = icmp ne i64 %.188, %.pre135
  %161 = icmp ult i64 %.pre135, 32768
  %or.cond108 = or i1 %.not106, %161
  br i1 %or.cond108, label %162, label %197

162:                                              ; preds = %160
  call void @_Z12VerbosePrintIA50_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(50) @.str.9)
  %163 = load ptr, ptr %4, align 8, !tbaa !11
  %164 = load i32, ptr %163, align 4, !tbaa !12
  %165 = call i32 @llvm.bswap.i32(i32 %164)
  %166 = getelementptr inbounds i8, ptr %163, i64 8
  %167 = zext i32 %165 to i64
  %168 = call noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef nonnull %166, i64 noundef %167, i64 noundef 0)
  %169 = trunc i64 %168 to i32
  %.not107 = icmp eq i32 %165, %169
  br i1 %.not107, label %._crit_edge, label %170

._crit_edge:                                      ; preds = %162
  %.pre = load i64, ptr %24, align 8, !tbaa !14
  br label %197

170:                                              ; preds = %162
  %171 = call i32 @llvm.bswap.i32(i32 %169)
  %172 = load ptr, ptr %4, align 8, !tbaa !11
  store i32 %171, ptr %172, align 4, !tbaa !12
  %173 = getelementptr inbounds i8, ptr %172, i64 4
  %174 = add i64 %168, 4
  %175 = and i64 %174, 4294967295
  %176 = call noundef i32 @_Z13lodepng_crc32PKhm(ptr noundef nonnull %173, i64 noundef %175)
  %177 = call i32 @llvm.bswap.i32(i32 %176)
  %178 = load ptr, ptr %4, align 8, !tbaa !11
  %179 = and i64 %168, 4294967295
  %180 = getelementptr inbounds i8, ptr %178, i64 %179
  %181 = getelementptr inbounds i8, ptr %180, i64 8
  store i32 %177, ptr %181, align 4, !tbaa !12
  %182 = getelementptr inbounds i8, ptr %178, i64 %167
  %183 = getelementptr inbounds i8, ptr %182, i64 12
  %184 = getelementptr inbounds i8, ptr %180, i64 12
  %185 = load ptr, ptr %17, align 8, !tbaa !5
  %186 = load i64, ptr %24, align 8, !tbaa !14
  %187 = getelementptr inbounds i8, ptr %185, i64 %186
  %188 = ptrtoint ptr %187 to i64
  %189 = ptrtoint ptr %183 to i64
  %190 = sub i64 %188, %189
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %184, ptr nonnull align 1 %183, i64 %190, i1 false)
  %191 = sub i32 %165, %169
  %192 = zext i32 %191 to i64
  %193 = load i64, ptr %24, align 8, !tbaa !14
  %194 = sub i64 %193, %192
  store i64 %194, ptr %24, align 8, !tbaa !14
  br label %197

195:                                              ; preds = %151, %149
  %.pn102 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  br label %196

196:                                              ; preds = %195, %127, %.loopexit
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %195 ], [ %.pn100, %127 ], [ %.pn.pn.pn.pn121, %.loopexit ]
  call void @_ZN16ZopfliPNGOptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn102.pn

197:                                              ; preds = %158, %160, %170, %._crit_edge, %63, %157
  %.4 = phi i64 [ %74, %63 ], [ %.2, %157 ], [ %.pre, %._crit_edge ], [ %194, %170 ], [ %.188, %160 ], [ %.pre135, %158 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  ret i64 %.4
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.bswap.i32(i32) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZZN3Png7LeanifyEmENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

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

declare void @_ZN16ZopfliPNGOptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

declare noundef i32 @_Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(80), i1 noundef zeroext, ptr noundef) local_unnamed_addr #6

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA50_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(50)) local_unnamed_addr #0

declare noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #6

declare noundef i32 @_Z13lodepng_crc32PKhm(ptr noundef, i64 noundef) local_unnamed_addr #6

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTS6Format", !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !10, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !8, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !16, i64 64}
!23 = !{!"_ZTS16ZopfliPNGOptions", !16, i64 0, !16, i64 1, !16, i64 2, !24, i64 8, !16, i64 32, !28, i64 40, !16, i64 64, !13, i64 68, !13, i64 72, !13, i64 76}
!24 = !{!"_ZTSSt6vectorI23ZopfliPNGFilterStrategySaIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!28 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!32 = !{!23, !16, i64 1}
!33 = !{!23, !13, i64 68}
!34 = !{!23, !13, i64 72}


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