; LLVM IR from JayXon/Leanify :: lib/zopflipng (zopflipng_lib)

; 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::__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.18" = 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.lodepng::State" = type { %struct.LodePNGState }
%struct.LodePNGState = type { %struct.LodePNGDecoderSettings, %struct.LodePNGEncoderSettings, %struct.LodePNGColorMode, %struct.LodePNGInfo, i32 }
%struct.LodePNGDecoderSettings = type { %struct.LodePNGDecompressSettings, i32, i32, i32, i32, i32, i32, i64, i64 }
%struct.LodePNGDecompressSettings = type { i32, i32, i64, ptr, ptr, ptr }
%struct.LodePNGEncoderSettings = type { %struct.LodePNGCompressSettings, i32, i32, i32, ptr, i32, i32, i32 }
%struct.LodePNGCompressSettings = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr }
%struct.LodePNGColorMode = type { i32, i32, ptr, i64, i32, i32, i32, i32 }
%struct.LodePNGInfo = type { i32, i32, i32, %struct.LodePNGColorMode, i32, i32, i32, i32, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, %struct.LodePNGTime, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, [3 x ptr], [3 x i64] }
%struct.LodePNGTime = type { i32, i32, i32, i32, i32, i32 }
%"class.std::set.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, 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 }

@__const._Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_.filterstrategies = external hidden unnamed_addr constant [9 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z24LossyOptimizeTransparentPN7lodepng5StateEPhjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z11TryOptimizeRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_23ZopfliPNGFilterStrategybiPK16ZopfliPNGOptionsPS1_(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(528), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i1 noundef zeroext, i32 noundef, ptr noundef, ptr noundef) #1

declare void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(528)) unnamed_addr #3

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

declare i32 @printf(ptr noundef, ...) #3

declare noundef ptr @_Z18lodepng_error_textj(i32 noundef) #3

; Function Attrs: nounwind
declare void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(528)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z24AutoChooseFilterStrategyRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_iP23ZopfliPNGFilterStrategyPb(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(528), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, i1 noundef zeroext %2, ptr noundef %3) #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca [9 x i32], align 16
  %12 = alloca [9 x i8], align 1
  %13 = alloca [9 x %"class.std::__cxx11::basic_string"], align 16
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::allocator.18", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::allocator.18", align 1
  %19 = alloca %"class.std::allocator.18", align 1
  %20 = alloca %"class.std::allocator.18", align 1
  %21 = alloca %"class.std::allocator.18", align 1
  %22 = alloca %"class.std::allocator.18", align 1
  %23 = alloca %"class.std::allocator.18", align 1
  %24 = alloca %"class.std::allocator.18", align 1
  %25 = alloca %"class.std::allocator.18", align 1
  %26 = alloca i1, align 1
  %27 = alloca i64, align 8
  %28 = alloca %"class.std::vector.8", align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.lodepng::State", align 8
  %33 = alloca i8, align 1
  %34 = alloca %"class.std::set.21", align 8
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator.18", align 1
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca i1, align 1
  %39 = alloca %"class.std::allocator.18", align 1
  %40 = alloca i1, align 1
  %41 = alloca i1, align 1
  %42 = alloca i1, align 1
  %43 = alloca i32, align 4
  %44 = alloca i8, align 1
  %45 = alloca i64, align 8
  %46 = alloca i32, align 4
  %47 = alloca %"class.std::vector.8", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  %48 = zext i1 %2 to i8
  store i8 %48, ptr %8, align 1, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 32768, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 36, ptr %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const._Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_.filterstrategies, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 9, ptr %12) #7
  call void @llvm.memset.p0.i64(ptr align 1 %12, i8 0, i64 9, i1 false)
  call void @llvm.lifetime.start.p0(i64 288, ptr %13) #7
  store i1 true, ptr %26, align 1
  store ptr %13, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %49 unwind label %73

49:                                               ; preds = %4
  %50 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 1
  store ptr %50, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %51 unwind label %77

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 2
  store ptr %52, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %53 unwind label %81

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 3
  store ptr %54, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %55 unwind label %85

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 4
  store ptr %56, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %57 unwind label %89

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 5
  store ptr %58, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %59 unwind label %93

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 6
  store ptr %60, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %61 unwind label %97

61:                                               ; preds = %59
  %62 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 7
  store ptr %62, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %63 unwind label %101

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 8
  store ptr %64, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %65 unwind label %105

65:                                               ; preds = %63
  store i1 false, ptr %26, align 1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !13
  br label %66

66:                                               ; preds = %135, %65
  %67 = load i64, ptr %27, align 8, !tbaa !13
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %68, i32 0, i32 3
  %70 = call noundef i64 @_ZNKSt6vectorI23ZopfliPNGFilterStrategySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #7
  %71 = icmp ult i64 %67, %70
  br i1 %71, label %127, label %72

72:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %138

73:                                               ; preds = %4
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %16, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %17, align 4
  br label %116

77:                                               ; preds = %49
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %16, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %17, align 4
  br label %115

81:                                               ; preds = %51
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %16, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %17, align 4
  br label %114

85:                                               ; preds = %53
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %16, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %17, align 4
  br label %113

89:                                               ; preds = %55
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %16, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %17, align 4
  br label %112

93:                                               ; preds = %57
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %16, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %17, align 4
  br label %111

97:                                               ; preds = %59
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %16, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %17, align 4
  br label %110

101:                                              ; preds = %61
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %16, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %17, align 4
  br label %109

105:                                              ; preds = %63
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %16, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %17, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %109

109:                                              ; preds = %105, %101
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %110

110:                                              ; preds = %109, %97
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %111

111:                                              ; preds = %110, %93
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %112

112:                                              ; preds = %111, %89
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %113

113:                                              ; preds = %112, %85
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %114

114:                                              ; preds = %113, %81
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %115

115:                                              ; preds = %114, %77
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  br label %116

116:                                              ; preds = %115, %73
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  %117 = load i1, ptr %26, align 1
  br i1 %117, label %118, label %126

118:                                              ; preds = %116
  %119 = load ptr, ptr %14, align 8
  %120 = icmp eq ptr %13, %119
  br i1 %120, label %125, label %121

121:                                              ; preds = %121, %118
  %122 = phi ptr [ %119, %118 ], [ %123, %121 ]
  %123 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %122, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %123) #7
  %124 = icmp eq ptr %123, %13
  br i1 %124, label %125, label %121

125:                                              ; preds = %121, %118
  br label %126

126:                                              ; preds = %125, %116
  br label %412

127:                                              ; preds = %66
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %128, i32 0, i32 3
  %130 = load i64, ptr %27, align 8, !tbaa !13
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI23ZopfliPNGFilterStrategySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %130) #7
  %132 = load i32, ptr %131, align 4, !tbaa !15
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [9 x i8], ptr %12, i64 0, i64 %133
  store i8 1, ptr %134, align 1, !tbaa !9
  br label %135

135:                                              ; preds = %127
  %136 = load i64, ptr %27, align 8, !tbaa !13
  %137 = add i64 %136, 1
  store i64 %137, ptr %27, align 8, !tbaa !13
  br label %66, !llvm.loop !17

138:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 528, ptr %32) #7
  invoke void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(528) %32)
          to label %139 unwind label %183

139:                                              ; preds = %138
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = invoke noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RNS_5StateERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 8 dereferenceable(528) %32, ptr noundef nonnull align 8 dereferenceable(24) %140)
          to label %142 unwind label %187

142:                                              ; preds = %139
  store i32 %141, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #7
  store i8 0, ptr %33, align 1, !tbaa !9
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %143, i32 0, i32 5
  %145 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #7
  br i1 %145, label %228, label %146

146:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 48, ptr %34) #7
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %34) #7
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %148, i32 0, i32 5
  invoke void @_Z12ChunksToKeepRKSt6vectorIhSaIhEERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEPSt3setIS9_St4lessIS9_ESA_E(ptr noundef nonnull align 8 dereferenceable(24) %147, ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef %34)
          to label %150 unwind label %191

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #7
  store i1 false, ptr %38, align 1
  store i1 false, ptr %40, align 1
  store i1 false, ptr %41, align 1
  store i1 false, ptr %42, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %151 unwind label %195

151:                                              ; preds = %150
  %152 = invoke noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %153 unwind label %199

153:                                              ; preds = %151
  %154 = icmp ne i64 %152, 0
  br i1 %154, label %160, label %155

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  store i1 true, ptr %38, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #7
  store i1 true, ptr %40, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  store i1 true, ptr %41, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %156 unwind label %203

156:                                              ; preds = %155
  store i1 true, ptr %42, align 1
  %157 = invoke noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %158 unwind label %207

158:                                              ; preds = %156
  %159 = icmp ne i64 %157, 0
  br label %160

160:                                              ; preds = %158, %153
  %161 = phi i1 [ true, %153 ], [ %159, %158 ]
  %162 = zext i1 %161 to i8
  store i8 %162, ptr %33, align 1, !tbaa !9
  %163 = load i1, ptr %42, align 1
  br i1 %163, label %164, label %165

164:                                              ; preds = %160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  br label %165

165:                                              ; preds = %164, %160
  %166 = load i1, ptr %41, align 1
  br i1 %166, label %167, label %168

167:                                              ; preds = %165
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  br label %168

168:                                              ; preds = %167, %165
  %169 = load i1, ptr %40, align 1
  br i1 %169, label %170, label %171

170:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  br label %171

171:                                              ; preds = %170, %168
  %172 = load i1, ptr %38, align 1
  br i1 %172, label %173, label %174

173:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %174

174:                                              ; preds = %173, %171
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #7
  %175 = load i8, ptr %33, align 1, !tbaa !9, !range !19, !noundef !20
  %176 = trunc i8 %175 to i1
  br i1 %176, label %177, label %226

177:                                              ; preds = %174
  %178 = load i8, ptr %8, align 1, !tbaa !9, !range !19, !noundef !20
  %179 = trunc i8 %178 to i1
  br i1 %179, label %180, label %226

180:                                              ; preds = %177
  %181 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.12)
          to label %182 unwind label %191

182:                                              ; preds = %180
  br label %226

183:                                              ; preds = %138
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %16, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %17, align 4
  br label %398

187:                                              ; preds = %139
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %16, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %17, align 4
  br label %397

191:                                              ; preds = %180, %146
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %16, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %17, align 4
  br label %227

195:                                              ; preds = %150
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %16, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %17, align 4
  br label %225

199:                                              ; preds = %151
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %16, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %17, align 4
  br label %224

203:                                              ; preds = %155
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %16, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %17, align 4
  br label %214

207:                                              ; preds = %156
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %16, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %17, align 4
  %211 = load i1, ptr %42, align 1
  br i1 %211, label %212, label %213

212:                                              ; preds = %207
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  br label %213

213:                                              ; preds = %212, %207
  br label %214

214:                                              ; preds = %213, %203
  %215 = load i1, ptr %41, align 1
  br i1 %215, label %216, label %217

216:                                              ; preds = %214
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  br label %217

217:                                              ; preds = %216, %214
  %218 = load i1, ptr %40, align 1
  br i1 %218, label %219, label %220

219:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  br label %220

220:                                              ; preds = %219, %217
  %221 = load i1, ptr %38, align 1
  br i1 %221, label %222, label %223

222:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %223

223:                                              ; preds = %222, %220
  br label %224

224:                                              ; preds = %223, %199
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  br label %225

225:                                              ; preds = %224, %195
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #7
  br label %227

226:                                              ; preds = %182, %177, %174
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %34) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #7
  br label %228

227:                                              ; preds = %225, %191
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %34) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #7
  br label %396

228:                                              ; preds = %226, %142
  %229 = load i32, ptr %31, align 4, !tbaa !11
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %254

231:                                              ; preds = %228
  %232 = load i8, ptr %8, align 1, !tbaa !9, !range !19, !noundef !20
  %233 = trunc i8 %232 to i1
  br i1 %233, label %234, label %252

234:                                              ; preds = %231
  %235 = load i32, ptr %31, align 4, !tbaa !11
  %236 = icmp eq i32 %235, 1
  br i1 %236, label %237, label %244

237:                                              ; preds = %234
  %238 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.13)
          to label %239 unwind label %240

239:                                              ; preds = %237
  br label %251

240:                                              ; preds = %248, %244, %237
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %16, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %17, align 4
  br label %396

244:                                              ; preds = %234
  %245 = load i32, ptr %31, align 4, !tbaa !11
  %246 = load i32, ptr %31, align 4, !tbaa !11
  %247 = invoke noundef ptr @_Z18lodepng_error_textj(i32 noundef %246)
          to label %248 unwind label %240

248:                                              ; preds = %244
  %249 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %245, ptr noundef %247)
          to label %250 unwind label %240

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %239
  br label %252

252:                                              ; preds = %251, %231
  %253 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %253, ptr %5, align 4
  store i32 1, ptr %43, align 4
  br label %393

254:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #7
  store i8 0, ptr %44, align 1, !tbaa !9
  %255 = getelementptr inbounds %struct.LodePNGState, ptr %32, i32 0, i32 3
  %256 = getelementptr inbounds %struct.LodePNGInfo, ptr %255, i32 0, i32 3
  %257 = getelementptr inbounds %struct.LodePNGColorMode, ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 4, !tbaa !21
  %259 = icmp eq i32 %258, 16
  br i1 %259, label %260, label %276

260:                                              ; preds = %254
  %261 = load i8, ptr %33, align 1, !tbaa !9, !range !19, !noundef !20
  %262 = trunc i8 %261 to i1
  br i1 %262, label %268, label %263

263:                                              ; preds = %260
  %264 = load ptr, ptr %7, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %264, i32 0, i32 2
  %266 = load i8, ptr %265, align 2, !tbaa !32, !range !19, !noundef !20
  %267 = trunc i8 %266 to i1
  br i1 %267, label %276, label %268

268:                                              ; preds = %263, %260
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = invoke noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RKS2_16LodePNGColorTypej(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 8 dereferenceable(24) %269, i32 noundef 6, i32 noundef 16)
          to label %271 unwind label %272

271:                                              ; preds = %268
  store i32 %270, ptr %31, align 4, !tbaa !11
  store i8 1, ptr %44, align 1, !tbaa !9
  br label %276

272:                                              ; preds = %297, %287, %268
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %16, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %17, align 4
  br label %392

276:                                              ; preds = %271, %263, %254
  %277 = load i32, ptr %31, align 4, !tbaa !11
  %278 = icmp ne i32 %277, 0
  br i1 %278, label %310, label %279

279:                                              ; preds = %276
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %280, i32 0, i32 1
  %282 = load i8, ptr %281, align 1, !tbaa !42, !range !19, !noundef !20
  %283 = trunc i8 %282 to i1
  br i1 %283, label %284, label %292

284:                                              ; preds = %279
  %285 = load i8, ptr %44, align 1, !tbaa !9, !range !19, !noundef !20
  %286 = trunc i8 %285 to i1
  br i1 %286, label %292, label %287

287:                                              ; preds = %284
  %288 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #7
  %289 = load i32, ptr %29, align 4, !tbaa !11
  %290 = load i32, ptr %30, align 4, !tbaa !11
  invoke void @_Z24LossyOptimizeTransparentPN7lodepng5StateEPhjj(ptr noundef %32, ptr noundef %288, i32 noundef %289, i32 noundef %290)
          to label %291 unwind label %272

291:                                              ; preds = %287
  br label %292

292:                                              ; preds = %291, %284, %279
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %293, i32 0, i32 4
  %295 = load i8, ptr %294, align 8, !tbaa !43, !range !19, !noundef !20
  %296 = trunc i8 %295 to i1
  br i1 %296, label %297, label %309

297:                                              ; preds = %292
  %298 = load i32, ptr %29, align 4, !tbaa !11
  %299 = load i32, ptr %30, align 4, !tbaa !11
  %300 = load i8, ptr %44, align 1, !tbaa !9, !range !19, !noundef !20
  %301 = trunc i8 %300 to i1
  %302 = load i8, ptr %33, align 1, !tbaa !9, !range !19, !noundef !20
  %303 = trunc i8 %302 to i1
  %304 = load ptr, ptr %6, align 8, !tbaa !5
  %305 = getelementptr inbounds [9 x i32], ptr %11, i64 0, i64 0
  %306 = getelementptr inbounds [9 x i8], ptr %12, i64 0, i64 0
  %307 = invoke noundef i32 @_Z24AutoChooseFilterStrategyRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_iP23ZopfliPNGFilterStrategyPb(ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef %298, i32 noundef %299, ptr noundef nonnull align 8 dereferenceable(528) %32, i1 noundef zeroext %301, i1 noundef zeroext %303, ptr noundef nonnull align 8 dereferenceable(24) %304, i32 noundef 8, ptr noundef %305, ptr noundef %306)
          to label %308 unwind label %272

308:                                              ; preds = %297
  store i32 %307, ptr %31, align 4, !tbaa !11
  br label %309

309:                                              ; preds = %308, %292
  br label %310

310:                                              ; preds = %309, %276
  %311 = load i32, ptr %31, align 4, !tbaa !11
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %390, label %313

313:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  store i64 0, ptr %45, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  store i32 0, ptr %46, align 4, !tbaa !11
  br label %314

314:                                              ; preds = %371, %313
  %315 = load i32, ptr %46, align 4, !tbaa !11
  %316 = icmp slt i32 %315, 9
  br i1 %316, label %318, label %317

317:                                              ; preds = %314
  store i32 5, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  br label %374

318:                                              ; preds = %314
  %319 = load i32, ptr %46, align 4, !tbaa !11
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [9 x i8], ptr %12, i64 0, i64 %320
  %322 = load i8, ptr %321, align 1, !tbaa !9, !range !19, !noundef !20
  %323 = trunc i8 %322 to i1
  br i1 %323, label %325, label %324

324:                                              ; preds = %318
  br label %371

325:                                              ; preds = %318
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %326 = load i32, ptr %29, align 4, !tbaa !11
  %327 = load i32, ptr %30, align 4, !tbaa !11
  %328 = load i8, ptr %44, align 1, !tbaa !9, !range !19, !noundef !20
  %329 = trunc i8 %328 to i1
  %330 = load i8, ptr %33, align 1, !tbaa !9, !range !19, !noundef !20
  %331 = trunc i8 %330 to i1
  %332 = load ptr, ptr %6, align 8, !tbaa !5
  %333 = load i32, ptr %46, align 4, !tbaa !11
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [9 x i32], ptr %11, i64 0, i64 %334
  %336 = load i32, ptr %335, align 4, !tbaa !15
  %337 = load i32, ptr %10, align 4, !tbaa !11
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  %339 = invoke noundef i32 @_Z11TryOptimizeRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_23ZopfliPNGFilterStrategybiPK16ZopfliPNGOptionsPS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef %326, i32 noundef %327, ptr noundef nonnull align 8 dereferenceable(528) %32, i1 noundef zeroext %329, i1 noundef zeroext %331, ptr noundef nonnull align 8 dereferenceable(24) %332, i32 noundef %336, i1 noundef zeroext true, i32 noundef %337, ptr noundef %338, ptr noundef %47)
          to label %340 unwind label %355

340:                                              ; preds = %325
  store i32 %339, ptr %31, align 4, !tbaa !11
  %341 = load i32, ptr %31, align 4, !tbaa !11
  %342 = icmp ne i32 %341, 0
  br i1 %342, label %370, label %343

343:                                              ; preds = %340
  %344 = load i8, ptr %8, align 1, !tbaa !9, !range !19, !noundef !20
  %345 = trunc i8 %344 to i1
  br i1 %345, label %346, label %359

346:                                              ; preds = %343
  %347 = load i32, ptr %46, align 4, !tbaa !11
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [9 x %"class.std::__cxx11::basic_string"], ptr %13, i64 0, i64 %348
  %350 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %349) #7
  %351 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %352 = trunc i64 %351 to i32
  %353 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %350, i32 noundef %352)
          to label %354 unwind label %355

354:                                              ; preds = %346
  br label %359

355:                                              ; preds = %346, %325
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %16, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %17, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  br label %389

359:                                              ; preds = %354, %343
  %360 = load i64, ptr %45, align 8, !tbaa !13
  %361 = icmp eq i64 %360, 0
  br i1 %361, label %366, label %362

362:                                              ; preds = %359
  %363 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %364 = load i64, ptr %45, align 8, !tbaa !13
  %365 = icmp ult i64 %363, %364
  br i1 %365, label %366, label %369

366:                                              ; preds = %362, %359
  %367 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  store i64 %367, ptr %45, align 8, !tbaa !13
  %368 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %368, ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  br label %369

369:                                              ; preds = %366, %362
  br label %370

370:                                              ; preds = %369, %340
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #7
  br label %371

371:                                              ; preds = %370, %324
  %372 = load i32, ptr %46, align 4, !tbaa !11
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %46, align 4, !tbaa !11
  br label %314, !llvm.loop !44

374:                                              ; preds = %317
  %375 = load ptr, ptr %7, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %375, i32 0, i32 5
  %377 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %376) #7
  br i1 %377, label %388, label %378

378:                                              ; preds = %374
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = load ptr, ptr %7, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.ZopfliPNGOptions, ptr %380, i32 0, i32 5
  %382 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_Z10KeepChunksRKSt6vectorIhSaIhEERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEPS1_(ptr noundef nonnull align 8 dereferenceable(24) %379, ptr noundef nonnull align 8 dereferenceable(24) %381, ptr noundef %382)
          to label %383 unwind label %384

383:                                              ; preds = %378
  br label %388

384:                                              ; preds = %378
  %385 = landingpad { ptr, i32 }
          cleanup
  %386 = extractvalue { ptr, i32 } %385, 0
  store ptr %386, ptr %16, align 8
  %387 = extractvalue { ptr, i32 } %385, 1
  store i32 %387, ptr %17, align 4
  br label %389

388:                                              ; preds = %383, %374
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %390

389:                                              ; preds = %384, %355
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %392

390:                                              ; preds = %388, %310
  %391 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %391, ptr %5, align 4
  store i32 1, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #7
  br label %393

392:                                              ; preds = %389, %272
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #7
  br label %396

393:                                              ; preds = %390, %252
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #7
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(528) %32) #7
  call void @llvm.lifetime.end.p0(i64 528, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #7
  %394 = getelementptr inbounds [9 x %"class.std::__cxx11::basic_string"], ptr %13, i32 0, i32 0
  %395 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %394, i64 9
  br label %401

396:                                              ; preds = %392, %240, %227
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #7
  br label %397

397:                                              ; preds = %396, %187
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(528) %32) #7
  br label %398

398:                                              ; preds = %397, %183
  call void @llvm.lifetime.end.p0(i64 528, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #7
  %399 = getelementptr inbounds [9 x %"class.std::__cxx11::basic_string"], ptr %13, i32 0, i32 0
  %400 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %399, i64 9
  br label %407

401:                                              ; preds = %401, %393
  %402 = phi ptr [ %395, %393 ], [ %403, %401 ]
  %403 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %402, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %403) #7
  %404 = icmp eq ptr %403, %394
  br i1 %404, label %405, label %401

405:                                              ; preds = %401
  call void @llvm.lifetime.end.p0(i64 288, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 9, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %406 = load i32, ptr %5, align 4
  ret i32 %406

407:                                              ; preds = %407, %398
  %408 = phi ptr [ %400, %398 ], [ %409, %407 ]
  %409 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %408, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %409) #7
  %410 = icmp eq ptr %409, %399
  br i1 %410, label %411, label %407

411:                                              ; preds = %407
  br label %412

412:                                              ; preds = %411, %126
  call void @llvm.lifetime.end.p0(i64 288, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 9, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %413

413:                                              ; preds = %412
  %414 = load ptr, ptr %16, align 8
  %415 = load i32, ptr %17, align 4
  %416 = insertvalue { ptr, i32 } poison, ptr %414, 0
  %417 = insertvalue { ptr, i32 } %416, i32 %415, 1
  resume { ptr, i32 } %417
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #1 align 2

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

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

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

declare noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RNS_5StateERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

declare noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RKS2_16LodePNGColorTypej(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS23ZopfliPNGFilterStrategy", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !12, i64 228}
!22 = !{!"_ZTS12LodePNGState", !23, i64 0, !25, i64 80, !28, i64 168, !30, i64 208, !12, i64 520}
!23 = !{!"_ZTS22LodePNGDecoderSettings", !24, i64 0, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !14, i64 64, !14, i64 72}
!24 = !{!"_ZTS25LodePNGDecompressSettings", !12, i64 0, !12, i64 4, !14, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!25 = !{!"_ZTS22LodePNGEncoderSettings", !26, i64 0, !12, i64 48, !12, i64 52, !27, i64 56, !6, i64 64, !12, i64 72, !12, i64 76, !12, i64 80}
!26 = !{!"_ZTS23LodePNGCompressSettings", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!27 = !{!"_ZTS21LodePNGFilterStrategy", !7, i64 0}
!28 = !{!"_ZTS16LodePNGColorMode", !29, i64 0, !12, i64 4, !6, i64 8, !14, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36}
!29 = !{!"_ZTS16LodePNGColorType", !7, i64 0}
!30 = !{!"_ZTS11LodePNGInfo", !12, i64 0, !12, i64 4, !12, i64 8, !28, i64 16, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !14, i64 72, !6, i64 80, !6, i64 88, !14, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !12, i64 136, !31, i64 140, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !6, i64 240, !6, i64 248, !12, i64 256, !7, i64 264, !7, i64 288}
!31 = !{!"_ZTS11LodePNGTime", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!32 = !{!33, !10, i64 2}
!33 = !{!"_ZTS16ZopfliPNGOptions", !10, i64 0, !10, i64 1, !10, i64 2, !34, i64 8, !10, i64 32, !38, i64 40, !10, i64 64, !12, i64 68, !12, i64 72, !12, i64 76}
!34 = !{!"_ZTSSt6vectorI23ZopfliPNGFilterStrategySaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!33, !10, i64 1}
!43 = !{!33, !10, i64 32}
!44 = distinct !{!44, !18}


; 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::__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.18" = 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.lodepng::State" = type { %struct.LodePNGState }
%struct.LodePNGState = type { %struct.LodePNGDecoderSettings, %struct.LodePNGEncoderSettings, %struct.LodePNGColorMode, %struct.LodePNGInfo, i32 }
%struct.LodePNGDecoderSettings = type { %struct.LodePNGDecompressSettings, i32, i32, i32, i32, i32, i32, i64, i64 }
%struct.LodePNGDecompressSettings = type { i32, i32, i64, ptr, ptr, ptr }
%struct.LodePNGEncoderSettings = type { %struct.LodePNGCompressSettings, i32, i32, i32, ptr, i32, i32, i32 }
%struct.LodePNGCompressSettings = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr }
%struct.LodePNGColorMode = type { i32, i32, ptr, i64, i32, i32, i32, i32 }
%struct.LodePNGInfo = type { i32, i32, i32, %struct.LodePNGColorMode, i32, i32, i32, i32, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, %struct.LodePNGTime, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, [3 x ptr], [3 x i64] }
%struct.LodePNGTime = type { i32, i32, i32, i32, i32, i32 }
%"class.std::set.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@__const._Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_.filterstrategies = external hidden unnamed_addr constant [9 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z24LossyOptimizeTransparentPN7lodepng5StateEPhjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z11TryOptimizeRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_23ZopfliPNGFilterStrategybiPK16ZopfliPNGOptionsPS1_(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(528), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i1 noundef zeroext, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(528)) unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare noundef ptr @_Z18lodepng_error_textj(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(528)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z24AutoChooseFilterStrategyRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_iP23ZopfliPNGFilterStrategyPb(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(528), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12ChunksToKeepRKSt6vectorIhSaIhEERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEPSt3setIS9_St4lessIS9_ESA_E(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10KeepChunksRKSt6vectorIhSaIhEERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEPS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, i1 noundef zeroext %2, ptr noundef %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca [9 x i32], align 16
  %6 = alloca [9 x i8], align 1
  %7 = alloca [9 x %"class.std::__cxx11::basic_string"], align 16
  %8 = alloca %"class.std::allocator.18", align 1
  %9 = alloca %"class.std::allocator.18", align 1
  %10 = alloca %"class.std::allocator.18", align 1
  %11 = alloca %"class.std::allocator.18", align 1
  %12 = alloca %"class.std::allocator.18", align 1
  %13 = alloca %"class.std::allocator.18", align 1
  %14 = alloca %"class.std::allocator.18", align 1
  %15 = alloca %"class.std::allocator.18", align 1
  %16 = alloca %"class.std::allocator.18", align 1
  %17 = alloca %"class.std::vector.8", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.lodepng::State", align 8
  %21 = alloca %"class.std::set.21", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.18", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.18", align 1
  %26 = alloca %"class.std::vector.8", align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %5, ptr noundef nonnull align 16 dereferenceable(36) @__const._Z17ZopfliPNGOptimizeRKSt6vectorIhSaIhEERK16ZopfliPNGOptionsbPS1_.filterstrategies, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 9, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %6, i8 0, i64 9, i1 false)
  call void @llvm.lifetime.start.p0(i64 288, 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.1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %27 unwind label %.thread

27:                                               ; preds = %4
  %28 = 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) %28, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %29 unwind label %47

29:                                               ; preds = %27
  %30 = 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) %30, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %31 unwind label %49

31:                                               ; preds = %29
  %32 = 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) %32, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %33 unwind label %51

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %7, i64 128
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %35 unwind label %53

35:                                               ; preds = %33
  %36 = getelementptr inbounds i8, ptr %7, i64 160
  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) %36, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %37 unwind label %55

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %7, i64 192
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %39 unwind label %57

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %7, i64 224
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %41 unwind label %59

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %7, i64 256
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %43 unwind label %61

43:                                               ; preds = %41
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #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 @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #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
  %44 = getelementptr inbounds i8, ptr %1, i64 8
  %45 = call noundef i64 @_ZNKSt6vectorI23ZopfliPNGFilterStrategySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  %.not163 = icmp eq i64 %45, 0
  br i1 %.not163, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %43
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 528, ptr nonnull %20) #8
  invoke void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(528) %20)
          to label %81 unwind label %98

.thread:                                          ; preds = %4
  %46 = 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

47:                                               ; preds = %27
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %69

49:                                               ; preds = %29
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %68

51:                                               ; preds = %31
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %67

53:                                               ; preds = %33
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %66

55:                                               ; preds = %35
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %65

57:                                               ; preds = %37
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %64

59:                                               ; preds = %39
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %41
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  br label %63

63:                                               ; preds = %61, %59
  %.095 = phi ptr [ %42, %61 ], [ %40, %59 ]
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  br label %64

64:                                               ; preds = %63, %57
  %.196 = phi ptr [ %.095, %63 ], [ %38, %57 ]
  %.pn.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %58, %57 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #8
  br label %65

65:                                               ; preds = %64, %55
  %.297 = phi ptr [ %.196, %64 ], [ %36, %55 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %64 ], [ %56, %55 ]
  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
  br label %66

66:                                               ; preds = %65, %53
  %.398 = phi ptr [ %.297, %65 ], [ %34, %53 ]
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %65 ], [ %54, %53 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  br label %67

67:                                               ; preds = %66, %51
  %.499 = phi ptr [ %.398, %66 ], [ %32, %51 ]
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %66 ], [ %52, %51 ]
  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 %68

68:                                               ; preds = %67, %49
  %.5100 = phi ptr [ %.499, %67 ], [ %30, %49 ]
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %67 ], [ %50, %49 ]
  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 %69

69:                                               ; preds = %47, %68
  %.6101 = phi ptr [ %.5100, %68 ], [ %28, %47 ]
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %68 ], [ %48, %47 ]
  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
  %70 = icmp eq ptr %7, %.6101
  br i1 %70, label %.loopexit, label %.preheader156

.preheader156:                                    ; preds = %69, %.preheader156
  %71 = phi ptr [ %72, %.preheader156 ], [ %.6101, %69 ]
  %72 = getelementptr inbounds i8, ptr %71, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #8
  %73 = icmp eq ptr %72, %7
  br i1 %73, label %.loopexit, label %.preheader156

.lr.ph:                                           ; preds = %43, %.lr.ph
  %.071159 = phi i64 [ %78, %.lr.ph ], [ 0, %43 ]
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI23ZopfliPNGFilterStrategySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %.071159) #8
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds [9 x i8], ptr %6, i64 0, i64 %76
  store i8 1, ptr %77, align 1, !tbaa !9
  %78 = add nuw i64 %.071159, 1
  %79 = call noundef i64 @_ZNKSt6vectorI23ZopfliPNGFilterStrategySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  %80 = icmp ult i64 %78, %79
  br i1 %80, label %.lr.ph, label %._crit_edge, !llvm.loop !11

81:                                               ; preds = %._crit_edge
  %82 = invoke noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RNS_5StateERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 8 dereferenceable(528) %20, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %83 unwind label %100

83:                                               ; preds = %81
  %84 = getelementptr inbounds i8, ptr %1, i64 40
  %85 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #8
  br i1 %85, label %117, label %86

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #8
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  invoke void @_Z12ChunksToKeepRKSt6vectorIhSaIhEERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEPSt3setIS9_St4lessIS9_ESA_E(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull %21)
          to label %87 unwind label %102

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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) %22, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %88 unwind label %104

88:                                               ; preds = %87
  %89 = invoke noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %90 unwind label %106

90:                                               ; preds = %88
  %.not = icmp eq i64 %89, 0
  br i1 %.not, label %91, label %.critedge133

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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) %24, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %92 unwind label %108

92:                                               ; preds = %91
  %93 = invoke noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %.critedge unwind label %110

.critedge:                                        ; preds = %92
  %94 = icmp ne i64 %93, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #8
  br label %.critedge133

.critedge133:                                     ; preds = %90, %.critedge
  %95 = phi i1 [ %94, %.critedge ], [ true, %90 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  %brmerge.demorgan = and i1 %95, %2
  br i1 %brmerge.demorgan, label %96, label %115

96:                                               ; preds = %.critedge133
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  br label %115

98:                                               ; preds = %._crit_edge
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

100:                                              ; preds = %81
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %200

102:                                              ; preds = %86
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %116

104:                                              ; preds = %87
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %114

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

108:                                              ; preds = %91
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %112

110:                                              ; preds = %92
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  br label %112

112:                                              ; preds = %108, %110
  %.pn115 = phi { ptr, i32 } [ %111, %110 ], [ %109, %108 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #8
  br label %113

113:                                              ; preds = %112, %106
  %.pn115.pn = phi { ptr, i32 } [ %.pn115, %112 ], [ %107, %106 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  br label %114

114:                                              ; preds = %113, %104
  %.pn115.pn.pn = phi { ptr, i32 } [ %.pn115.pn, %113 ], [ %105, %104 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %116

115:                                              ; preds = %.critedge133, %96
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #8
  br label %117

116:                                              ; preds = %114, %102
  %.pn115.pn.pn.pn = phi { ptr, i32 } [ %.pn115.pn.pn, %114 ], [ %103, %102 ]
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #8
  br label %200

117:                                              ; preds = %115, %83
  %.067 = phi i1 [ false, %83 ], [ %95, %115 ]
  %.not120 = icmp eq i32 %82, 0
  br i1 %.not120, label %129, label %118

118:                                              ; preds = %117
  br i1 %2, label %119, label %.thread152

119:                                              ; preds = %118
  %120 = icmp eq i32 %82, 1
  br i1 %120, label %121, label %125

121:                                              ; preds = %119
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br label %.thread152

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

125:                                              ; preds = %119
  %126 = invoke noundef ptr @_Z18lodepng_error_textj(i32 noundef %82)
          to label %127 unwind label %123

127:                                              ; preds = %125
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %82, ptr noundef %126)
  br label %.thread152

129:                                              ; preds = %117
  %130 = getelementptr inbounds i8, ptr %20, i64 228
  %131 = load i32, ptr %130, align 4, !tbaa !13
  %132 = icmp eq i32 %131, 16
  br i1 %132, label %133, label %143

133:                                              ; preds = %129
  br i1 %.067, label %138, label %134

134:                                              ; preds = %133
  %135 = getelementptr inbounds i8, ptr %1, i64 2
  %136 = load i8, ptr %135, align 2, !tbaa !27, !range !37, !noundef !38
  %137 = trunc nuw i8 %136 to i1
  br i1 %137, label %143, label %138

138:                                              ; preds = %134, %133
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %139 = invoke noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RKS2_16LodePNGColorTypej(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 6, i32 noundef 16)
          to label %142 unwind label %140

140:                                              ; preds = %154, %147, %138
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %200

142:                                              ; preds = %138
  %.not121 = icmp eq i32 %139, 0
  br i1 %.not121, label %.thread147, label %.thread152

143:                                              ; preds = %134, %129
  %144 = getelementptr inbounds i8, ptr %1, i64 1
  %145 = load i8, ptr %144, align 1, !tbaa !39, !range !37, !noundef !38
  %146 = trunc nuw i8 %145 to i1
  br i1 %146, label %147, label %.thread147

147:                                              ; preds = %143
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef 0) #8
  %149 = load i32, ptr %18, align 4, !tbaa !40
  %150 = load i32, ptr %19, align 4, !tbaa !40
  invoke void @_Z24LossyOptimizeTransparentPN7lodepng5StateEPhjj(ptr noundef nonnull %20, ptr noundef nonnull %148, i32 noundef %149, i32 noundef %150)
          to label %.thread147 unwind label %140

.thread147:                                       ; preds = %142, %143, %147
  %.062145151 = phi i1 [ false, %143 ], [ false, %147 ], [ true, %142 ]
  %151 = getelementptr inbounds i8, ptr %1, i64 32
  %152 = load i8, ptr %151, align 8, !tbaa !41, !range !37, !noundef !38
  %153 = trunc nuw i8 %152 to i1
  br i1 %153, label %154, label %.preheader.preheader

154:                                              ; preds = %.thread147
  %155 = load i32, ptr %18, align 4, !tbaa !40
  %156 = load i32, ptr %19, align 4, !tbaa !40
  %157 = invoke noundef i32 @_Z24AutoChooseFilterStrategyRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_iP23ZopfliPNGFilterStrategyPb(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %155, i32 noundef %156, ptr noundef nonnull align 8 dereferenceable(528) %20, i1 noundef zeroext %.062145151, i1 noundef zeroext %.067, ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 8, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %158 unwind label %140

158:                                              ; preds = %154
  %.not122 = icmp eq i32 %157, 0
  br i1 %.not122, label %.preheader.preheader, label %.thread152

.preheader.preheader:                             ; preds = %.thread147, %158
  br label %.preheader

159:                                              ; preds = %188
  %160 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #8
  br i1 %160, label %.thread152, label %189

.preheader:                                       ; preds = %.preheader.preheader, %188
  %indvars.iv = phi i64 [ %indvars.iv.next, %188 ], [ 0, %.preheader.preheader ]
  %.061161 = phi i64 [ %.2, %188 ], [ 0, %.preheader.preheader ]
  %.270160 = phi i32 [ %.3, %188 ], [ 0, %.preheader.preheader ]
  %161 = getelementptr inbounds [9 x i8], ptr %6, i64 0, i64 %indvars.iv
  %162 = load i8, ptr %161, align 1, !tbaa !9, !range !37, !noundef !38
  %163 = trunc nuw i8 %162 to i1
  br i1 %163, label %164, label %188

164:                                              ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #8
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %165 = load i32, ptr %18, align 4, !tbaa !40
  %166 = load i32, ptr %19, align 4, !tbaa !40
  %167 = getelementptr inbounds [9 x i32], ptr %5, i64 0, i64 %indvars.iv
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = invoke noundef i32 @_Z11TryOptimizeRKSt6vectorIhSaIhEEjjRKN7lodepng5StateEbbS3_23ZopfliPNGFilterStrategybiPK16ZopfliPNGOptionsPS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %165, i32 noundef %166, ptr noundef nonnull align 8 dereferenceable(528) %20, i1 noundef zeroext %.062145151, i1 noundef zeroext %.067, ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %168, i1 noundef zeroext true, i32 noundef 32768, ptr noundef nonnull %1, ptr noundef nonnull %26)
          to label %170 unwind label %178

170:                                              ; preds = %164
  %.not126 = icmp eq i32 %169, 0
  br i1 %.not126, label %171, label %187

171:                                              ; preds = %170
  br i1 %2, label %172, label %180

172:                                              ; preds = %171
  %173 = getelementptr inbounds [9 x %"class.std::__cxx11::basic_string"], ptr %7, i64 0, i64 %indvars.iv
  %174 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %173) #8
  %175 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %176 = trunc i64 %175 to i32
  %177 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %174, i32 noundef %176)
  br label %180

178:                                              ; preds = %164
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #8
  br label %200

180:                                              ; preds = %172, %171
  %181 = icmp eq i64 %.061161, 0
  br i1 %181, label %185, label %182

182:                                              ; preds = %180
  %183 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %184 = icmp ult i64 %183, %.061161
  br i1 %184, label %185, label %187

185:                                              ; preds = %182, %180
  %186 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  br label %187

187:                                              ; preds = %182, %185, %170
  %.1 = phi i64 [ %.061161, %170 ], [ %186, %185 ], [ %.061161, %182 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #8
  br label %188

188:                                              ; preds = %.preheader, %187
  %.3 = phi i32 [ %169, %187 ], [ %.270160, %.preheader ]
  %.2 = phi i64 [ %.1, %187 ], [ %.061161, %.preheader ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 9
  br i1 %exitcond.not, label %159, label %.preheader, !llvm.loop !42

189:                                              ; preds = %159
  invoke void @_Z10KeepChunksRKSt6vectorIhSaIhEERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEPS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef %3)
          to label %.thread152 unwind label %190

190:                                              ; preds = %189
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %200

.thread152:                                       ; preds = %142, %158, %189, %159, %118, %127, %121
  %.0103 = phi i32 [ 1, %121 ], [ %82, %127 ], [ %82, %118 ], [ %157, %158 ], [ %.3, %189 ], [ %.3, %159 ], [ %139, %142 ]
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(528) %20) #8
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  %192 = getelementptr inbounds i8, ptr %7, i64 256
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %192) #8
  %193 = getelementptr inbounds i8, ptr %7, i64 224
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %193) #8
  %194 = getelementptr inbounds i8, ptr %7, i64 192
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %194) #8
  %195 = getelementptr inbounds i8, ptr %7, i64 160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %195) #8
  %196 = getelementptr inbounds i8, ptr %7, i64 128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %196) #8
  %197 = getelementptr inbounds i8, ptr %7, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %197) #8
  %198 = getelementptr inbounds i8, ptr %7, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %198) #8
  %199 = getelementptr inbounds i8, ptr %7, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %199) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #8
  ret i32 %.0103

200:                                              ; preds = %116, %123, %178, %190, %140, %100
  %.pn127.pn = phi { ptr, i32 } [ %101, %100 ], [ %124, %123 ], [ %.pn115.pn.pn.pn, %116 ], [ %141, %140 ], [ %179, %178 ], [ %191, %190 ]
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(528) %20) #8
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %200, %98
  %.pn127.pn.pn = phi { ptr, i32 } [ %.pn127.pn, %200 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  %201 = getelementptr inbounds i8, ptr %7, i64 256
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %201) #8
  %202 = getelementptr inbounds i8, ptr %7, i64 224
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %202) #8
  %203 = getelementptr inbounds i8, ptr %7, i64 192
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %203) #8
  %204 = getelementptr inbounds i8, ptr %7, i64 160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %204) #8
  %205 = getelementptr inbounds i8, ptr %7, i64 128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %205) #8
  %206 = getelementptr inbounds i8, ptr %7, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %206) #8
  %207 = getelementptr inbounds i8, ptr %7, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %207) #8
  %208 = getelementptr inbounds i8, ptr %7, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %208) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader156, %.loopexit.loopexit, %.thread, %69
  %.pn127.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %69 ], [ %46, %.thread ], [ %.pn127.pn.pn, %.loopexit.loopexit ], [ %.pn.pn.pn.pn.pn.pn.pn, %.preheader156 ]
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn127.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #1 align 2

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

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

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

declare noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RNS_5StateERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

declare noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RKS2_16LodePNGColorTypej(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"_ZTS23ZopfliPNGFilterStrategy", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !17, i64 228}
!14 = !{!"_ZTS12LodePNGState", !15, i64 0, !20, i64 80, !23, i64 168, !25, i64 208, !17, i64 520}
!15 = !{!"_ZTS22LodePNGDecoderSettings", !16, i64 0, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60, !18, i64 64, !18, i64 72}
!16 = !{!"_ZTS25LodePNGDecompressSettings", !17, i64 0, !17, i64 4, !18, i64 8, !19, i64 16, !19, i64 24, !19, i64 32}
!17 = !{!"int", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"_ZTS22LodePNGEncoderSettings", !21, i64 0, !17, i64 48, !17, i64 52, !22, i64 56, !19, i64 64, !17, i64 72, !17, i64 76, !17, i64 80}
!21 = !{!"_ZTS23LodePNGCompressSettings", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !19, i64 24, !19, i64 32, !19, i64 40}
!22 = !{!"_ZTS21LodePNGFilterStrategy", !7, i64 0}
!23 = !{!"_ZTS16LodePNGColorMode", !24, i64 0, !17, i64 4, !19, i64 8, !18, i64 16, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36}
!24 = !{!"_ZTS16LodePNGColorType", !7, i64 0}
!25 = !{!"_ZTS11LodePNGInfo", !17, i64 0, !17, i64 4, !17, i64 8, !23, i64 16, !17, i64 56, !17, i64 60, !17, i64 64, !17, i64 68, !18, i64 72, !19, i64 80, !19, i64 88, !18, i64 96, !19, i64 104, !19, i64 112, !19, i64 120, !19, i64 128, !17, i64 136, !26, i64 140, !17, i64 164, !17, i64 168, !17, i64 172, !17, i64 176, !17, i64 180, !17, i64 184, !17, i64 188, !17, i64 192, !17, i64 196, !17, i64 200, !17, i64 204, !17, i64 208, !17, i64 212, !17, i64 216, !17, i64 220, !17, i64 224, !17, i64 228, !17, i64 232, !19, i64 240, !19, i64 248, !17, i64 256, !7, i64 264, !7, i64 288}
!26 = !{!"_ZTS11LodePNGTime", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20}
!27 = !{!28, !10, i64 2}
!28 = !{!"_ZTS16ZopfliPNGOptions", !10, i64 0, !10, i64 1, !10, i64 2, !29, i64 8, !10, i64 32, !33, i64 40, !10, i64 64, !17, i64 68, !17, i64 72, !17, i64 76}
!29 = !{!"_ZTSSt6vectorI23ZopfliPNGFilterStrategySaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI23ZopfliPNGFilterStrategySaIS0_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!33 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!28, !10, i64 1}
!40 = !{!17, !17, i64 0}
!41 = !{!28, !10, i64 32}
!42 = distinct !{!42, !12}


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