; LLVM IR from venumb/ZSPACE :: cpp/depends/lodePNG/examples (example_optimize_png)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__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.0" = type { i8 }
%"class.lodepng::State" = type { %struct.LodePNGState.base, [4 x i8] }
%struct.LodePNGState.base = type <{ ptr, %struct.LodePNGDecoderSettings, %struct.LodePNGEncoderSettings, %struct.LodePNGColorMode, %struct.LodePNGInfo, i32 }>
%struct.LodePNGDecoderSettings = type { %struct.LodePNGDecompressSettings, i32, i32, i32, i32, i32, i32 }
%struct.LodePNGDecompressSettings = type { i32, i32, 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 }
%struct.LodePNGState = type <{ ptr, %struct.LodePNGDecoderSettings, %struct.LodePNGEncoderSettings, %struct.LodePNGColorMode, %struct.LodePNGInfo, i32, [4 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@__const.main.strategies = external hidden unnamed_addr constant [4 x i32], align 16
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@__const.main.minmatches = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.autoconverts = external hidden unnamed_addr constant [2 x i32], align 4
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1

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

48:                                               ; preds = %2
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %50 unwind label %53

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %52 unwind label %53

52:                                               ; preds = %50
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %387

53:                                               ; preds = %80, %78, %75, %73, %70, %68, %63, %50, %48
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  br label %423

57:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 1
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %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) %14, ptr noundef %60, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %61 unwind label %83

61:                                               ; preds = %57
  %62 = invoke noundef i32 @_ZN7lodepng9load_fileERSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %63 unwind label %87

63:                                               ; preds = %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  %64 = invoke noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RKS2_16LodePNGColorTypej(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 6, i32 noundef 8)
          to label %65 unwind label %53

65:                                               ; preds = %63
  store i32 %64, ptr %10, align 4, !tbaa !5
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %92

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

70:                                               ; preds = %68
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %71)
          to label %73 unwind label %53

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

75:                                               ; preds = %73
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = invoke noundef ptr @_Z18lodepng_error_textj(i32 noundef %76)
          to label %78 unwind label %53

78:                                               ; preds = %75
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef %77)
          to label %80 unwind label %53

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %82 unwind label %53

82:                                               ; preds = %80
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %387

83:                                               ; preds = %57
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %11, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %12, align 4
  br label %91

87:                                               ; preds = %61
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %11, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %91

91:                                               ; preds = %87, %83
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %423

92:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %93 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store i64 %93, ptr %16, align 8, !tbaa !11
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %95 unwind label %139

95:                                               ; preds = %92
  %96 = load i64, ptr %16, align 8, !tbaa !11
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %94, i64 noundef %96)
          to label %98 unwind label %139

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @.str.4)
          to label %100 unwind label %139

100:                                              ; preds = %98
  %101 = load i64, ptr %16, align 8, !tbaa !11
  %102 = udiv i64 %101, 1024
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %99, i64 noundef %102)
          to label %104 unwind label %139

104:                                              ; preds = %100
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef @.str.5)
          to label %106 unwind label %139

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %108 unwind label %139

108:                                              ; preds = %106
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.start.p0(i64 512, ptr %17) #8
  invoke void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(508) %17)
          to label %109 unwind label %143

109:                                              ; preds = %108
  %110 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %111 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %110, i32 0, i32 2
  store i32 0, ptr %111, align 4, !tbaa !13
  %112 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %113 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %112, i32 0, i32 6
  store i32 0, ptr %113, align 4, !tbaa !24
  %114 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %115 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %114, i32 0, i32 7
  store i32 1, ptr %115, align 8, !tbaa !25
  %116 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %117 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %117, i32 0, i32 4
  store i32 258, ptr %118, align 8, !tbaa !26
  %119 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %120 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %120, i32 0, i32 5
  store i32 1, ptr %121, align 4, !tbaa !27
  %122 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %123 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %123, i32 0, i32 2
  store i32 32768, ptr %124, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store i64 0, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  store i8 0, ptr %19, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 @__const.main.strategies, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %22) #8
  store i1 true, ptr %28, align 1
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %125 unwind label %147

125:                                              ; preds = %109
  %126 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %22, i64 1
  store ptr %126, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %126, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %127 unwind label %151

127:                                              ; preds = %125
  %128 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %22, i64 2
  store ptr %128, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %128, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %129 unwind label %155

129:                                              ; preds = %127
  %130 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %22, i64 3
  store ptr %130, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %130, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %131 unwind label %159

131:                                              ; preds = %129
  store i1 false, ptr %28, align 1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 @__const.main.minmatches, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 @__const.main.autoconverts, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #8
  store i1 true, ptr %36, align 1
  store ptr %32, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %132 unwind label %176

132:                                              ; preds = %131
  %133 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %32, i64 1
  store ptr %133, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %133, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %134 unwind label %180

134:                                              ; preds = %132
  store i1 false, ptr %36, align 1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %313, %134
  %136 = load i32, ptr %39, align 4, !tbaa !5
  %137 = icmp slt i32 %136, 4
  br i1 %137, label %195, label %138

138:                                              ; preds = %135
  store i32 2, ptr %13, align 4
  br label %316

139:                                              ; preds = %106, %104, %100, %98, %95, %92
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %11, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %12, align 4
  br label %422

143:                                              ; preds = %108
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %11, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %12, align 4
  br label %421

147:                                              ; preds = %109
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %11, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %12, align 4
  br label %165

151:                                              ; preds = %125
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %11, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %12, align 4
  br label %164

155:                                              ; preds = %127
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %11, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %12, align 4
  br label %163

159:                                              ; preds = %129
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %11, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  br label %163

163:                                              ; preds = %159, %155
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  br label %164

164:                                              ; preds = %163, %151
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %165

165:                                              ; preds = %164, %147
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  %166 = load i1, ptr %28, align 1
  br i1 %166, label %167, label %175

167:                                              ; preds = %165
  %168 = load ptr, ptr %23, align 8
  %169 = icmp eq ptr %22, %168
  br i1 %169, label %174, label %170

170:                                              ; preds = %170, %167
  %171 = phi ptr [ %168, %167 ], [ %172, %170 ]
  %172 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %171, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %172) #8
  %173 = icmp eq ptr %172, %22
  br i1 %173, label %174, label %170

174:                                              ; preds = %170, %167
  br label %175

175:                                              ; preds = %174, %165
  br label %420

176:                                              ; preds = %131
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %11, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %12, align 4
  br label %184

180:                                              ; preds = %132
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %11, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  br label %184

184:                                              ; preds = %180, %176
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  %185 = load i1, ptr %36, align 1
  br i1 %185, label %186, label %194

186:                                              ; preds = %184
  %187 = load ptr, ptr %33, align 8
  %188 = icmp eq ptr %32, %187
  br i1 %188, label %193, label %189

189:                                              ; preds = %189, %186
  %190 = phi ptr [ %187, %186 ], [ %191, %189 ]
  %191 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %190, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %191) #8
  %192 = icmp eq ptr %191, %32
  br i1 %192, label %193, label %189

193:                                              ; preds = %189, %186
  br label %194

194:                                              ; preds = %193, %184
  br label %412

195:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %307, %195
  %197 = load i32, ptr %40, align 4, !tbaa !5
  %198 = icmp slt i32 %197, 2
  br i1 %198, label %200, label %199

199:                                              ; preds = %196
  store i32 5, ptr %13, align 4
  br label %310

200:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %301, %200
  %202 = load i32, ptr %41, align 4, !tbaa !5
  %203 = icmp slt i32 %202, 2
  br i1 %203, label %205, label %204

204:                                              ; preds = %201
  store i32 8, ptr %13, align 4
  br label %304

205:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %295, %205
  %207 = load i32, ptr %42, align 4, !tbaa !5
  %208 = icmp slt i32 %207, 2
  br i1 %208, label %210, label %209

209:                                              ; preds = %206
  store i32 11, ptr %13, align 4
  br label %298

210:                                              ; preds = %206
  %211 = load i64, ptr %18, align 8, !tbaa !11
  %212 = icmp ugt i64 %211, 3000
  br i1 %212, label %213, label %220

213:                                              ; preds = %210
  %214 = load i32, ptr %41, align 4, !tbaa !5
  %215 = icmp sgt i32 %214, 0
  br i1 %215, label %219, label %216

216:                                              ; preds = %213
  %217 = load i32, ptr %42, align 4, !tbaa !5
  %218 = icmp sgt i32 %217, 0
  br i1 %218, label %219, label %220

219:                                              ; preds = %216, %213
  br label %295

220:                                              ; preds = %216, %210
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #8
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %221 = load i32, ptr %39, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [4 x i32], ptr %21, i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !31
  %225 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %226 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %225, i32 0, i32 3
  store i32 %224, ptr %226, align 8, !tbaa !32
  %227 = load i32, ptr %40, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [2 x i32], ptr %29, i64 0, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %232 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %232, i32 0, i32 3
  store i32 %230, ptr %233, align 4, !tbaa !33
  %234 = load i32, ptr %41, align 4, !tbaa !5
  %235 = icmp eq i32 %234, 0
  %236 = zext i1 %235 to i64
  %237 = select i1 %235, i32 2, i32 1
  %238 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %239 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %238, i32 0, i32 0
  %240 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %239, i32 0, i32 0
  store i32 %237, ptr %240, align 8, !tbaa !34
  %241 = load i32, ptr %42, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [2 x i32], ptr %31, i64 0, i64 %242
  %244 = load i32, ptr %243, align 4, !tbaa !5
  %245 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %246 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %245, i32 0, i32 1
  store i32 %244, ptr %246, align 8, !tbaa !35
  %247 = load i32, ptr %7, align 4, !tbaa !5
  %248 = load i32, ptr %8, align 4, !tbaa !5
  %249 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %247, i32 noundef %248, ptr noundef nonnull align 8 dereferenceable(508) %17)
          to label %250 unwind label %268

250:                                              ; preds = %220
  store i32 %249, ptr %10, align 4, !tbaa !5
  %251 = load i32, ptr %10, align 4, !tbaa !5
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %272

253:                                              ; preds = %250
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %255 unwind label %268

255:                                              ; preds = %253
  %256 = load i32, ptr %10, align 4, !tbaa !5
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %254, i32 noundef %256)
          to label %258 unwind label %268

258:                                              ; preds = %255
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %257, ptr noundef @.str.2)
          to label %260 unwind label %268

260:                                              ; preds = %258
  %261 = load i32, ptr %10, align 4, !tbaa !5
  %262 = invoke noundef ptr @_Z18lodepng_error_textj(i32 noundef %261)
          to label %263 unwind label %268

263:                                              ; preds = %260
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef %262)
          to label %265 unwind label %268

265:                                              ; preds = %263
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %267 unwind label %268

267:                                              ; preds = %265
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %292

268:                                              ; preds = %265, %263, %260, %258, %255, %253, %220
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %11, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %12, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %404

272:                                              ; preds = %250
  %273 = load i8, ptr %19, align 1, !tbaa !29, !range !36, !noundef !37
  %274 = trunc i8 %273 to i1
  br i1 %274, label %275, label %279

275:                                              ; preds = %272
  %276 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %277 = load i64, ptr %18, align 8, !tbaa !11
  %278 = icmp ult i64 %276, %277
  br i1 %278, label %279, label %291

279:                                              ; preds = %275, %272
  %280 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  store i64 %280, ptr %18, align 8, !tbaa !11
  %281 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %281, ptr %20, align 4, !tbaa !5
  %282 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %283 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %283, i32 0, i32 3
  %285 = load i32, ptr %284, align 4, !tbaa !33
  store i32 %285, ptr %30, align 4, !tbaa !5
  %286 = load i32, ptr %42, align 4, !tbaa !5
  store i32 %286, ptr %37, align 4, !tbaa !5
  %287 = getelementptr inbounds %struct.LodePNGState, ptr %17, i32 0, i32 2
  %288 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %287, i32 0, i32 0
  %289 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %288, i32 0, i32 0
  %290 = load i32, ptr %289, align 8, !tbaa !34
  store i32 %290, ptr %38, align 4, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store i8 1, ptr %19, align 1, !tbaa !29
  br label %291

291:                                              ; preds = %279, %275
  store i32 0, ptr %13, align 4
  br label %292

292:                                              ; preds = %291, %267
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #8
  %293 = load i32, ptr %13, align 4
  switch i32 %293, label %298 [
    i32 0, label %294
  ]

294:                                              ; preds = %292
  br label %295

295:                                              ; preds = %294, %219
  %296 = load i32, ptr %42, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %42, align 4, !tbaa !5
  br label %206, !llvm.loop !38

298:                                              ; preds = %292, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  %299 = load i32, ptr %13, align 4
  switch i32 %299, label %304 [
    i32 11, label %300
  ]

300:                                              ; preds = %298
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %41, align 4, !tbaa !5
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %41, align 4, !tbaa !5
  br label %201, !llvm.loop !40

304:                                              ; preds = %298, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  %305 = load i32, ptr %13, align 4
  switch i32 %305, label %310 [
    i32 8, label %306
  ]

306:                                              ; preds = %304
  br label %307

307:                                              ; preds = %306
  %308 = load i32, ptr %40, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %40, align 4, !tbaa !5
  br label %196, !llvm.loop !41

310:                                              ; preds = %304, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  %311 = load i32, ptr %13, align 4
  switch i32 %311, label %316 [
    i32 5, label %312
  ]

312:                                              ; preds = %310
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %39, align 4, !tbaa !5
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %39, align 4, !tbaa !5
  br label %135, !llvm.loop !42

316:                                              ; preds = %310, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  %317 = load i32, ptr %13, align 4
  switch i32 %317, label %372 [
    i32 2, label %318
  ]

318:                                              ; preds = %316
  %319 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
          to label %320 unwind label %391

320:                                              ; preds = %318
  %321 = load i32, ptr %20, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %22, i64 0, i64 %322
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %319, ptr noundef nonnull align 8 dereferenceable(32) %323)
          to label %325 unwind label %391

325:                                              ; preds = %320
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %324, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %327 unwind label %391

327:                                              ; preds = %325
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
          to label %329 unwind label %391

329:                                              ; preds = %327
  %330 = load i32, ptr %30, align 4, !tbaa !5
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %328, i32 noundef %330)
          to label %332 unwind label %391

332:                                              ; preds = %329
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %334 unwind label %391

334:                                              ; preds = %332
  %335 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
          to label %336 unwind label %391

336:                                              ; preds = %334
  %337 = load i32, ptr %38, align 4, !tbaa !5
  %338 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %335, i32 noundef %337)
          to label %339 unwind label %391

339:                                              ; preds = %336
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %341 unwind label %391

341:                                              ; preds = %339
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
          to label %343 unwind label %391

343:                                              ; preds = %341
  %344 = load i32, ptr %37, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %32, i64 0, i64 %345
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %342, ptr noundef nonnull align 8 dereferenceable(32) %346)
          to label %348 unwind label %391

348:                                              ; preds = %343
  %349 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %347, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %350 unwind label %391

350:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #8
  %351 = load ptr, ptr %5, align 8, !tbaa !9
  %352 = getelementptr inbounds ptr, ptr %351, i64 2
  %353 = load ptr, ptr %352, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef %353, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %354 unwind label %395

354:                                              ; preds = %350
  %355 = invoke noundef i32 @_ZN7lodepng9save_fileERKSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %356 unwind label %399

356:                                              ; preds = %354
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #8
  %357 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
          to label %358 unwind label %391

358:                                              ; preds = %356
  %359 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %360 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %357, i64 noundef %359)
          to label %361 unwind label %391

361:                                              ; preds = %358
  %362 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %360, ptr noundef @.str.4)
          to label %363 unwind label %391

363:                                              ; preds = %361
  %364 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %365 = udiv i64 %364, 1024
  %366 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %362, i64 noundef %365)
          to label %367 unwind label %391

367:                                              ; preds = %363
  %368 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %366, ptr noundef @.str.5)
          to label %369 unwind label %391

369:                                              ; preds = %367
  %370 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %368, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %371 unwind label %391

371:                                              ; preds = %369
  store i32 0, ptr %13, align 4
  br label %372

372:                                              ; preds = %371, %316
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  %373 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %32, i32 0, i32 0
  %374 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %373, i64 2
  br label %375

375:                                              ; preds = %375, %372
  %376 = phi ptr [ %374, %372 ], [ %377, %375 ]
  %377 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %376, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %377) #8
  %378 = icmp eq ptr %377, %373
  br i1 %378, label %379, label %375

379:                                              ; preds = %375
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  %380 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %22, i32 0, i32 0
  %381 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %380, i64 4
  br label %382

382:                                              ; preds = %382, %379
  %383 = phi ptr [ %381, %379 ], [ %384, %382 ]
  %384 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %383, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %384) #8
  %385 = icmp eq ptr %384, %380
  br i1 %385, label %386, label %382

386:                                              ; preds = %382
  call void @llvm.lifetime.end.p0(i64 128, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %17) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %387

387:                                              ; preds = %386, %82, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  %388 = load i32, ptr %13, align 4
  switch i32 %388, label %429 [
    i32 0, label %389
    i32 1, label %389
  ]

389:                                              ; preds = %387, %387
  %390 = load i32, ptr %3, align 4
  ret i32 %390

391:                                              ; preds = %369, %367, %363, %361, %358, %356, %348, %343, %341, %339, %336, %334, %332, %329, %327, %325, %320, %318
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %11, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %12, align 4
  br label %404

395:                                              ; preds = %350
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %11, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %12, align 4
  br label %403

399:                                              ; preds = %354
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %11, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #8
  br label %403

403:                                              ; preds = %399, %395
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #8
  br label %404

404:                                              ; preds = %403, %391, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  %405 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %32, i32 0, i32 0
  %406 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %405, i64 2
  br label %407

407:                                              ; preds = %407, %404
  %408 = phi ptr [ %406, %404 ], [ %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) #8
  %410 = icmp eq ptr %409, %405
  br i1 %410, label %411, label %407

411:                                              ; preds = %407
  br label %412

412:                                              ; preds = %411, %194
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  %413 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %22, i32 0, i32 0
  %414 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %413, i64 4
  br label %415

415:                                              ; preds = %415, %412
  %416 = phi ptr [ %414, %412 ], [ %417, %415 ]
  %417 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %416, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %417) #8
  %418 = icmp eq ptr %417, %413
  br i1 %418, label %419, label %415

419:                                              ; preds = %415
  br label %420

420:                                              ; preds = %419, %175
  call void @llvm.lifetime.end.p0(i64 128, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %17) #8
  br label %421

421:                                              ; preds = %420, %143
  call void @llvm.lifetime.end.p0(i64 512, ptr %17) #8
  br label %422

422:                                              ; preds = %421, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %423

423:                                              ; preds = %422, %91, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  br label %424

424:                                              ; preds = %423
  %425 = load ptr, ptr %11, align 8
  %426 = load i32, ptr %12, align 4
  %427 = insertvalue { ptr, i32 } poison, ptr %425, 0
  %428 = insertvalue { ptr, i32 } %427, i32 %426, 1
  resume { ptr, i32 } %428

429:                                              ; preds = %387
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef i32 @_ZN7lodepng9load_fileERSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) #5

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

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

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

declare noundef ptr @_Z18lodepng_error_textj(i32 noundef) #5

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

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

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

declare void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(508)) unnamed_addr #5

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

declare noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(508)) #5

; 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

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

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

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

declare noundef i32 @_ZN7lodepng9save_fileERKSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 116}
!14 = !{!"_ZTS12LodePNGState", !15, i64 8, !17, i64 64, !20, i64 152, !22, i64 192, !6, i64 504}
!15 = !{!"_ZTS22LodePNGDecoderSettings", !16, i64 0, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52}
!16 = !{!"_ZTS25LodePNGDecompressSettings", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24}
!17 = !{!"_ZTS22LodePNGEncoderSettings", !18, i64 0, !6, i64 48, !6, i64 52, !19, i64 56, !10, i64 64, !6, i64 72, !6, i64 76, !6, i64 80}
!18 = !{!"_ZTS23LodePNGCompressSettings", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !10, i64 24, !10, i64 32, !10, i64 40}
!19 = !{!"_ZTS21LodePNGFilterStrategy", !7, i64 0}
!20 = !{!"_ZTS16LodePNGColorMode", !21, i64 0, !6, i64 4, !10, i64 8, !12, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36}
!21 = !{!"_ZTS16LodePNGColorType", !7, i64 0}
!22 = !{!"_ZTS11LodePNGInfo", !6, i64 0, !6, i64 4, !6, i64 8, !20, i64 16, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !12, i64 72, !10, i64 80, !10, i64 88, !12, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !6, i64 136, !23, i64 140, !6, i64 164, !6, i64 168, !6, i64 172, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !6, i64 204, !6, i64 208, !6, i64 212, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !10, i64 240, !10, i64 248, !6, i64 256, !7, i64 264, !7, i64 288}
!23 = !{!"_ZTS11LodePNGTime", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!24 = !{!14, !6, i64 140}
!25 = !{!14, !6, i64 144}
!26 = !{!14, !6, i64 80}
!27 = !{!14, !6, i64 84}
!28 = !{!14, !6, i64 72}
!29 = !{!30, !30, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!19, !19, i64 0}
!32 = !{!14, !19, i64 120}
!33 = !{!14, !6, i64 76}
!34 = !{!14, !6, i64 64}
!35 = !{!14, !6, i64 112}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = distinct !{!41, !39}
!42 = distinct !{!42, !39}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__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.0" = type { i8 }
%"class.lodepng::State" = type { %struct.LodePNGState.base, [4 x i8] }
%struct.LodePNGState.base = type <{ ptr, %struct.LodePNGDecoderSettings, %struct.LodePNGEncoderSettings, %struct.LodePNGColorMode, %struct.LodePNGInfo, i32 }>
%struct.LodePNGDecoderSettings = type { %struct.LodePNGDecompressSettings, i32, i32, i32, i32, i32, i32 }
%struct.LodePNGDecompressSettings = type { i32, i32, 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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@__const.main.strategies = external hidden unnamed_addr constant [4 x i32], align 16
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@__const.main.minmatches = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.autoconverts = external hidden unnamed_addr constant [2 x i32], align 4
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.0", align 1
  %9 = alloca %"class.lodepng::State", align 8
  %10 = alloca [4 x %"class.std::__cxx11::basic_string"], align 16
  %11 = alloca %"class.std::allocator.0", align 1
  %12 = alloca %"class.std::allocator.0", align 1
  %13 = alloca %"class.std::allocator.0", align 1
  %14 = alloca %"class.std::allocator.0", align 1
  %15 = alloca [2 x %"class.std::__cxx11::basic_string"], align 16
  %16 = alloca %"class.std::allocator.0", align 1
  %17 = alloca %"class.std::allocator.0", align 1
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator.0", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %21 = icmp slt i32 %0, 3
  br i1 %21, label %22, label %26

22:                                               ; preds = %2
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %.invoke unwind label %24

24:                                               ; preds = %.invoke, %42, %40, %38, %36, %34, %31, %22
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %302

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %29 unwind label %46

29:                                               ; preds = %26
  %30 = invoke noundef i32 @_ZN7lodepng9load_fileERSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %31 unwind label %48

31:                                               ; preds = %29
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  %32 = invoke noundef i32 @_ZN7lodepng6decodeERSt6vectorIhSaIhEERjS4_RKS2_16LodePNGColorTypej(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 6, i32 noundef 8)
          to label %33 unwind label %24

33:                                               ; preds = %31
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %51, label %34

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

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef %32)
          to label %38 unwind label %24

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @.str.2)
          to label %40 unwind label %24

40:                                               ; preds = %38
  %41 = invoke noundef ptr @_Z18lodepng_error_textj(i32 noundef %32)
          to label %42 unwind label %24

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef %41)
          to label %.invoke unwind label %24

.invoke:                                          ; preds = %22, %42
  %44 = phi ptr [ %43, %42 ], [ %23, %22 ]
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %289 unwind label %24

46:                                               ; preds = %26
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %29
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %302

51:                                               ; preds = %33
  %52 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %54 unwind label %103

54:                                               ; preds = %51
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %53, i64 noundef %52)
          to label %56 unwind label %103

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

58:                                               ; preds = %56
  %59 = lshr i64 %52, 10
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %57, i64 noundef %59)
          to label %61 unwind label %103

61:                                               ; preds = %58
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @.str.5)
          to label %63 unwind label %103

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %65 unwind label %103

65:                                               ; preds = %63
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %9) #7
  invoke void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %66 unwind label %105

66:                                               ; preds = %65
  %67 = getelementptr inbounds i8, ptr %9, i64 64
  %68 = getelementptr inbounds i8, ptr %9, i64 116
  store i32 0, ptr %68, align 4, !tbaa !9
  %69 = getelementptr inbounds i8, ptr %9, i64 140
  store i32 0, ptr %69, align 4, !tbaa !22
  %70 = getelementptr inbounds i8, ptr %9, i64 144
  store i32 1, ptr %70, align 8, !tbaa !23
  %71 = getelementptr inbounds i8, ptr %9, i64 80
  store i32 258, ptr %71, align 8, !tbaa !24
  %72 = getelementptr inbounds i8, ptr %9, i64 84
  store i32 1, ptr %72, align 4, !tbaa !25
  %73 = getelementptr inbounds i8, ptr %9, i64 72
  store i32 32768, ptr %73, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %74 unwind label %.thread

74:                                               ; preds = %66
  %75 = getelementptr inbounds i8, ptr %10, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %76 unwind label %108

76:                                               ; preds = %74
  %77 = getelementptr inbounds i8, ptr %10, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %78 unwind label %110

78:                                               ; preds = %76
  %79 = getelementptr inbounds i8, ptr %10, i64 96
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %79, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %80 unwind label %112

80:                                               ; preds = %78
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %81 unwind label %.thread179

81:                                               ; preds = %80
  %82 = getelementptr inbounds i8, ptr %15, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %82, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %83 unwind label %.loopexit237.loopexit352

83:                                               ; preds = %81
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  %84 = getelementptr inbounds i8, ptr %9, i64 120
  %85 = getelementptr inbounds i8, ptr %9, i64 76
  %86 = getelementptr inbounds i8, ptr %9, i64 112
  %87 = load i32, ptr @__const.main.autoconverts, align 4
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.autoconverts, i64 4), align 4
  %89 = load i32, ptr @__const.main.minmatches, align 4
  %90 = load i32, ptr @__const.main.minmatches, align 4
  %91 = load i32, ptr @__const.main.minmatches, align 4
  %92 = load i32, ptr @__const.main.minmatches, align 4
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.minmatches, i64 4), align 4
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.minmatches, i64 4), align 4
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.minmatches, i64 4), align 4
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.minmatches, i64 4), align 4
  br label %.preheader240

.preheader240:                                    ; preds = %83, %.thread202.1
  %indvars.iv355 = phi i64 [ 0, %83 ], [ %indvars.iv.next356, %.thread202.1 ]
  %.058345 = phi i32 [ 0, %83 ], [ %.us-phi325.ph.1, %.thread202.1 ]
  %.059344 = phi i32 [ 0, %83 ], [ %.us-phi324.ph.1, %.thread202.1 ]
  %.071343 = phi i32 [ 0, %83 ], [ %.us-phi323.ph.1, %.thread202.1 ]
  %.085342 = phi i32 [ 0, %83 ], [ %.us-phi322.ph.1, %.thread202.1 ]
  %.096341 = phi i1 [ false, %83 ], [ true, %.thread202.1 ]
  %.0106340 = phi i64 [ 0, %83 ], [ %.us-phi320.ph.1, %.thread202.1 ]
  %97 = getelementptr inbounds [4 x i32], ptr @__const.main.strategies, i64 0, i64 %indvars.iv355
  %98 = trunc nuw nsw i64 %indvars.iv355 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %99 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %99, ptr %84, align 8, !tbaa !28
  store i32 %89, ptr %85, align 4, !tbaa !29
  store i32 2, ptr %67, align 8, !tbaa !30
  store i32 %87, ptr %86, align 8, !tbaa !31
  %100 = load i32, ptr %4, align 4, !tbaa !32
  %101 = load i32, ptr %5, align 4, !tbaa !32
  %102 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %100, i32 noundef %101, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %148 unwind label %.loopexit238.split

103:                                              ; preds = %63, %61, %58, %56, %54, %51
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %302

105:                                              ; preds = %65
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %301

.thread:                                          ; preds = %66
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %.loopexit

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

110:                                              ; preds = %76
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %114

112:                                              ; preds = %78
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  br label %114

114:                                              ; preds = %112, %110
  %.pn160 = phi { ptr, i32 } [ %113, %112 ], [ %111, %110 ]
  %.082 = phi ptr [ %79, %112 ], [ %77, %110 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br label %115

115:                                              ; preds = %108, %114
  %.pn160.pn = phi { ptr, i32 } [ %.pn160, %114 ], [ %109, %108 ]
  %.183 = phi ptr [ %.082, %114 ], [ %75, %108 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %116

116:                                              ; preds = %115, %116
  %117 = phi ptr [ %118, %116 ], [ %.183, %115 ]
  %118 = getelementptr inbounds i8, ptr %117, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %118) #7
  %119 = icmp eq ptr %118, %10
  br i1 %119, label %.loopexit, label %116

.thread179:                                       ; preds = %80
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  br label %.loopexit237

.loopexit237.loopexit352:                         ; preds = %81
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %.loopexit237

122:                                              ; preds = %.split319.us
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %123 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %123, ptr %84, align 8, !tbaa !28
  store i32 %91, ptr %85, align 4, !tbaa !29
  store i32 1, ptr %67, align 8, !tbaa !30
  store i32 %87, ptr %86, align 8, !tbaa !31
  %124 = load i32, ptr %4, align 4, !tbaa !32
  %125 = load i32, ptr %5, align 4, !tbaa !32
  %126 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %124, i32 noundef %125, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %127 unwind label %.loopexit238.split.us

127:                                              ; preds = %122
  %.not166.us = icmp eq i32 %126, 0
  br i1 %.not166.us, label %128, label %.split.us

128:                                              ; preds = %127
  %129 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %130 = icmp ult i64 %129, %.us-phi320
  br i1 %130, label %.preheader.split.us.1, label %.preheader.split.us.1.thread364

.preheader.split.us.1.thread364:                  ; preds = %128
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %135

.preheader.split.us.1:                            ; preds = %128
  %131 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %132 = load i32, ptr %85, align 4, !tbaa !29
  %133 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  %134 = icmp ugt i64 %131, 3000
  br i1 %134, label %.thread202, label %135

135:                                              ; preds = %.preheader.split.us.1.thread364, %.preheader.split.us.1
  %.5.ph.us374 = phi i32 [ %.us-phi325, %.preheader.split.us.1.thread364 ], [ %133, %.preheader.split.us.1 ]
  %.564.ph.us373 = phi i32 [ %.us-phi324, %.preheader.split.us.1.thread364 ], [ 0, %.preheader.split.us.1 ]
  %.576.ph.us372 = phi i32 [ %.us-phi323, %.preheader.split.us.1.thread364 ], [ %132, %.preheader.split.us.1 ]
  %.590.ph.us371 = phi i32 [ %.us-phi322, %.preheader.split.us.1.thread364 ], [ %98, %.preheader.split.us.1 ]
  %.5111.ph.us370 = phi i64 [ %.us-phi320, %.preheader.split.us.1.thread364 ], [ %131, %.preheader.split.us.1 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %136 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %136, ptr %84, align 8, !tbaa !28
  store i32 %92, ptr %85, align 4, !tbaa !29
  store i32 1, ptr %67, align 8, !tbaa !30
  store i32 %88, ptr %86, align 8, !tbaa !31
  %137 = load i32, ptr %4, align 4, !tbaa !32
  %138 = load i32, ptr %5, align 4, !tbaa !32
  %139 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %137, i32 noundef %138, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %140 unwind label %.loopexit238.split.us

140:                                              ; preds = %135
  %.not166.us.1 = icmp eq i32 %139, 0
  br i1 %.not166.us.1, label %141, label %.split.us

141:                                              ; preds = %140
  %142 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %143 = icmp ult i64 %142, %.5111.ph.us370
  br i1 %143, label %144, label %.thread182.us.1

144:                                              ; preds = %141
  %145 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %146 = load i32, ptr %85, align 4, !tbaa !29
  %147 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %.thread182.us.1

.thread182.us.1:                                  ; preds = %144, %141
  %.5111.ph.us.1 = phi i64 [ %.5111.ph.us370, %141 ], [ %145, %144 ]
  %.590.ph.us.1 = phi i32 [ %.590.ph.us371, %141 ], [ %98, %144 ]
  %.576.ph.us.1 = phi i32 [ %.576.ph.us372, %141 ], [ %146, %144 ]
  %.564.ph.us.1 = phi i32 [ %.564.ph.us373, %141 ], [ 1, %144 ]
  %.5.ph.us.1 = phi i32 [ %.5.ph.us374, %141 ], [ %147, %144 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %.thread202

.loopexit238.split.us:                            ; preds = %224, %211, %135, %122
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit238

148:                                              ; preds = %.preheader240
  %.not166 = icmp eq i32 %102, 0
  br i1 %.not166, label %160, label %.split.us

.split.us:                                        ; preds = %229, %216, %202, %188, %127, %140, %148, %174
  %.us-phi311 = phi i32 [ %102, %148 ], [ %173, %174 ], [ %126, %127 ], [ %139, %140 ], [ %187, %188 ], [ %201, %202 ], [ %215, %216 ], [ %228, %229 ]
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
          to label %150 unwind label %.loopexit.split-lp

150:                                              ; preds = %.split.us
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %149, i32 noundef %.us-phi311)
          to label %152 unwind label %.loopexit.split-lp

152:                                              ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull @.str.2)
          to label %154 unwind label %.loopexit.split-lp

154:                                              ; preds = %152
  %155 = invoke noundef ptr @_Z18lodepng_error_textj(i32 noundef %.us-phi311)
          to label %156 unwind label %.loopexit.split-lp

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef %155)
          to label %158 unwind label %.loopexit.split-lp

158:                                              ; preds = %156
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %183 unwind label %.loopexit.split-lp

.loopexit238.split:                               ; preds = %197, %.thread202, %169, %.preheader240
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit238

.loopexit.split-lp:                               ; preds = %.split.us, %150, %152, %154, %156, %158
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit238

.loopexit238:                                     ; preds = %.loopexit238.split, %.loopexit238.split.us, %.loopexit.split-lp
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit238.split ], [ %lpad.loopexit.us, %.loopexit238.split.us ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %.loopexit237.loopexit

160:                                              ; preds = %148
  br i1 %.096341, label %161, label %164

161:                                              ; preds = %160
  %162 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %163 = icmp ult i64 %162, %.0106340
  br i1 %163, label %164, label %.preheader.split.1

164:                                              ; preds = %161, %160
  %165 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %166 = load i32, ptr %85, align 4, !tbaa !29
  %167 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %.preheader.split.1

.preheader.split.1:                               ; preds = %164, %161
  %.5111.ph = phi i64 [ %.0106340, %161 ], [ %165, %164 ]
  %.590.ph = phi i32 [ %.085342, %161 ], [ %98, %164 ]
  %.576.ph = phi i32 [ %.071343, %161 ], [ %166, %164 ]
  %.564.ph = phi i32 [ %.059344, %161 ], [ 0, %164 ]
  %.5.ph = phi i32 [ %.058345, %161 ], [ %167, %164 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  %168 = icmp ugt i64 %.5111.ph, 3000
  br i1 %168, label %.split319.us, label %169

169:                                              ; preds = %.preheader.split.1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %170 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %170, ptr %84, align 8, !tbaa !28
  store i32 %90, ptr %85, align 4, !tbaa !29
  store i32 2, ptr %67, align 8, !tbaa !30
  store i32 %88, ptr %86, align 8, !tbaa !31
  %171 = load i32, ptr %4, align 4, !tbaa !32
  %172 = load i32, ptr %5, align 4, !tbaa !32
  %173 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %171, i32 noundef %172, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %174 unwind label %.loopexit238.split

174:                                              ; preds = %169
  %.not166.1 = icmp eq i32 %173, 0
  br i1 %.not166.1, label %175, label %.split.us

175:                                              ; preds = %174
  %176 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %177 = icmp ult i64 %176, %.5111.ph
  br i1 %177, label %178, label %.thread182.1

178:                                              ; preds = %175
  %179 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %180 = load i32, ptr %85, align 4, !tbaa !29
  %181 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %.thread182.1

.thread182.1:                                     ; preds = %178, %175
  %.5111.ph.1 = phi i64 [ %.5111.ph, %175 ], [ %179, %178 ]
  %.590.ph.1 = phi i32 [ %.590.ph, %175 ], [ %98, %178 ]
  %.576.ph.1 = phi i32 [ %.576.ph, %175 ], [ %180, %178 ]
  %.564.ph.1 = phi i32 [ %.564.ph, %175 ], [ 1, %178 ]
  %.5.ph.1 = phi i32 [ %.5.ph, %175 ], [ %181, %178 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %.split319.us

.split319.us:                                     ; preds = %.preheader.split.1, %.thread182.1
  %.us-phi320 = phi i64 [ %.5111.ph.1, %.thread182.1 ], [ %.5111.ph, %.preheader.split.1 ]
  %.us-phi322 = phi i32 [ %.590.ph.1, %.thread182.1 ], [ %.590.ph, %.preheader.split.1 ]
  %.us-phi323 = phi i32 [ %.576.ph.1, %.thread182.1 ], [ %.576.ph, %.preheader.split.1 ]
  %.us-phi324 = phi i32 [ %.564.ph.1, %.thread182.1 ], [ %.564.ph, %.preheader.split.1 ]
  %.us-phi325 = phi i32 [ %.5.ph.1, %.thread182.1 ], [ %.5.ph, %.preheader.split.1 ]
  %182 = icmp ugt i64 %.us-phi320, 3000
  br i1 %182, label %.thread202, label %122

183:                                              ; preds = %158
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %284

.thread202:                                       ; preds = %.split319.us, %.preheader.split.us.1, %.thread182.us.1
  %.us-phi320.ph = phi i64 [ %131, %.preheader.split.us.1 ], [ %.5111.ph.us.1, %.thread182.us.1 ], [ %.us-phi320, %.split319.us ]
  %.us-phi322.ph = phi i32 [ %98, %.preheader.split.us.1 ], [ %.590.ph.us.1, %.thread182.us.1 ], [ %.us-phi322, %.split319.us ]
  %.us-phi323.ph = phi i32 [ %132, %.preheader.split.us.1 ], [ %.576.ph.us.1, %.thread182.us.1 ], [ %.us-phi323, %.split319.us ]
  %.us-phi324.ph = phi i32 [ 0, %.preheader.split.us.1 ], [ %.564.ph.us.1, %.thread182.us.1 ], [ %.us-phi324, %.split319.us ]
  %.us-phi325.ph = phi i32 [ %133, %.preheader.split.us.1 ], [ %.5.ph.us.1, %.thread182.us.1 ], [ %.us-phi325, %.split319.us ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %184 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %184, ptr %84, align 8, !tbaa !28
  store i32 %93, ptr %85, align 4, !tbaa !29
  store i32 2, ptr %67, align 8, !tbaa !30
  store i32 %87, ptr %86, align 8, !tbaa !31
  %185 = load i32, ptr %4, align 4, !tbaa !32
  %186 = load i32, ptr %5, align 4, !tbaa !32
  %187 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %185, i32 noundef %186, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %188 unwind label %.loopexit238.split

188:                                              ; preds = %.thread202
  %.not166.1423 = icmp eq i32 %187, 0
  br i1 %.not166.1423, label %189, label %.split.us

189:                                              ; preds = %188
  %190 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %191 = icmp ult i64 %190, %.us-phi320.ph
  br i1 %191, label %192, label %.preheader.split.1.1

192:                                              ; preds = %189
  %193 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %194 = load i32, ptr %85, align 4, !tbaa !29
  %195 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %.preheader.split.1.1

.preheader.split.1.1:                             ; preds = %192, %189
  %.5111.ph.1424 = phi i64 [ %.us-phi320.ph, %189 ], [ %193, %192 ]
  %.590.ph.1425 = phi i32 [ %.us-phi322.ph, %189 ], [ %98, %192 ]
  %.576.ph.1426 = phi i32 [ %.us-phi323.ph, %189 ], [ %194, %192 ]
  %.564.ph.1427 = phi i32 [ %.us-phi324.ph, %189 ], [ 0, %192 ]
  %.5.ph.1428 = phi i32 [ %.us-phi325.ph, %189 ], [ %195, %192 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  %196 = icmp ugt i64 %.5111.ph.1424, 3000
  br i1 %196, label %.split319.us.1, label %197

197:                                              ; preds = %.preheader.split.1.1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %198 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %198, ptr %84, align 8, !tbaa !28
  store i32 %94, ptr %85, align 4, !tbaa !29
  store i32 2, ptr %67, align 8, !tbaa !30
  store i32 %88, ptr %86, align 8, !tbaa !31
  %199 = load i32, ptr %4, align 4, !tbaa !32
  %200 = load i32, ptr %5, align 4, !tbaa !32
  %201 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %199, i32 noundef %200, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %202 unwind label %.loopexit238.split

202:                                              ; preds = %197
  %.not166.1.1 = icmp eq i32 %201, 0
  br i1 %.not166.1.1, label %203, label %.split.us

203:                                              ; preds = %202
  %204 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %205 = icmp ult i64 %204, %.5111.ph.1424
  br i1 %205, label %206, label %.thread182.1.1

206:                                              ; preds = %203
  %207 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %208 = load i32, ptr %85, align 4, !tbaa !29
  %209 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %.thread182.1.1

.thread182.1.1:                                   ; preds = %206, %203
  %.5111.ph.1.1 = phi i64 [ %.5111.ph.1424, %203 ], [ %207, %206 ]
  %.590.ph.1.1 = phi i32 [ %.590.ph.1425, %203 ], [ %98, %206 ]
  %.576.ph.1.1 = phi i32 [ %.576.ph.1426, %203 ], [ %208, %206 ]
  %.564.ph.1.1 = phi i32 [ %.564.ph.1427, %203 ], [ 1, %206 ]
  %.5.ph.1.1 = phi i32 [ %.5.ph.1428, %203 ], [ %209, %206 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %.split319.us.1

.split319.us.1:                                   ; preds = %.thread182.1.1, %.preheader.split.1.1
  %.us-phi320.1 = phi i64 [ %.5111.ph.1.1, %.thread182.1.1 ], [ %.5111.ph.1424, %.preheader.split.1.1 ]
  %.us-phi322.1 = phi i32 [ %.590.ph.1.1, %.thread182.1.1 ], [ %.590.ph.1425, %.preheader.split.1.1 ]
  %.us-phi323.1 = phi i32 [ %.576.ph.1.1, %.thread182.1.1 ], [ %.576.ph.1426, %.preheader.split.1.1 ]
  %.us-phi324.1 = phi i32 [ %.564.ph.1.1, %.thread182.1.1 ], [ %.564.ph.1427, %.preheader.split.1.1 ]
  %.us-phi325.1 = phi i32 [ %.5.ph.1.1, %.thread182.1.1 ], [ %.5.ph.1428, %.preheader.split.1.1 ]
  %210 = icmp ugt i64 %.us-phi320.1, 3000
  br i1 %210, label %.thread202.1, label %211

211:                                              ; preds = %.split319.us.1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %212 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %212, ptr %84, align 8, !tbaa !28
  store i32 %95, ptr %85, align 4, !tbaa !29
  store i32 1, ptr %67, align 8, !tbaa !30
  store i32 %87, ptr %86, align 8, !tbaa !31
  %213 = load i32, ptr %4, align 4, !tbaa !32
  %214 = load i32, ptr %5, align 4, !tbaa !32
  %215 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %213, i32 noundef %214, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %216 unwind label %.loopexit238.split.us

216:                                              ; preds = %211
  %.not166.us.1429 = icmp eq i32 %215, 0
  br i1 %.not166.us.1429, label %217, label %.split.us

217:                                              ; preds = %216
  %218 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %219 = icmp ult i64 %218, %.us-phi320.1
  br i1 %219, label %.preheader.split.us.1.1, label %.preheader.split.us.1.thread364.1

.preheader.split.us.1.thread364.1:                ; preds = %217
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %224

.preheader.split.us.1.1:                          ; preds = %217
  %220 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %221 = load i32, ptr %85, align 4, !tbaa !29
  %222 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  %223 = icmp ugt i64 %220, 3000
  br i1 %223, label %.thread202.1, label %224

224:                                              ; preds = %.preheader.split.us.1.1, %.preheader.split.us.1.thread364.1
  %.5.ph.us374.1 = phi i32 [ %.us-phi325.1, %.preheader.split.us.1.thread364.1 ], [ %222, %.preheader.split.us.1.1 ]
  %.564.ph.us373.1 = phi i32 [ %.us-phi324.1, %.preheader.split.us.1.thread364.1 ], [ 0, %.preheader.split.us.1.1 ]
  %.576.ph.us372.1 = phi i32 [ %.us-phi323.1, %.preheader.split.us.1.thread364.1 ], [ %221, %.preheader.split.us.1.1 ]
  %.590.ph.us371.1 = phi i32 [ %.us-phi322.1, %.preheader.split.us.1.thread364.1 ], [ %98, %.preheader.split.us.1.1 ]
  %.5111.ph.us370.1 = phi i64 [ %.us-phi320.1, %.preheader.split.us.1.thread364.1 ], [ %220, %.preheader.split.us.1.1 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %225 = load i32, ptr %97, align 4, !tbaa !27
  store i32 %225, ptr %84, align 8, !tbaa !28
  store i32 %96, ptr %85, align 4, !tbaa !29
  store i32 1, ptr %67, align 8, !tbaa !30
  store i32 %88, ptr %86, align 8, !tbaa !31
  %226 = load i32, ptr %4, align 4, !tbaa !32
  %227 = load i32, ptr %5, align 4, !tbaa !32
  %228 = invoke noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %226, i32 noundef %227, ptr noundef nonnull align 8 dereferenceable(508) %9)
          to label %229 unwind label %.loopexit238.split.us

229:                                              ; preds = %224
  %.not166.us.1.1 = icmp eq i32 %228, 0
  br i1 %.not166.us.1.1, label %230, label %.split.us

230:                                              ; preds = %229
  %231 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %232 = icmp ult i64 %231, %.5111.ph.us370.1
  br i1 %232, label %233, label %.thread182.us.1.1

233:                                              ; preds = %230
  %234 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %235 = load i32, ptr %85, align 4, !tbaa !29
  %236 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZNSt6vectorIhSaIhEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %.thread182.us.1.1

.thread182.us.1.1:                                ; preds = %233, %230
  %.5111.ph.us.1.1 = phi i64 [ %.5111.ph.us370.1, %230 ], [ %234, %233 ]
  %.590.ph.us.1.1 = phi i32 [ %.590.ph.us371.1, %230 ], [ %98, %233 ]
  %.576.ph.us.1.1 = phi i32 [ %.576.ph.us372.1, %230 ], [ %235, %233 ]
  %.564.ph.us.1.1 = phi i32 [ %.564.ph.us373.1, %230 ], [ 1, %233 ]
  %.5.ph.us.1.1 = phi i32 [ %.5.ph.us374.1, %230 ], [ %236, %233 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %.thread202.1

.thread202.1:                                     ; preds = %.thread182.us.1.1, %.preheader.split.us.1.1, %.split319.us.1
  %.us-phi320.ph.1 = phi i64 [ %220, %.preheader.split.us.1.1 ], [ %.5111.ph.us.1.1, %.thread182.us.1.1 ], [ %.us-phi320.1, %.split319.us.1 ]
  %.us-phi322.ph.1 = phi i32 [ %98, %.preheader.split.us.1.1 ], [ %.590.ph.us.1.1, %.thread182.us.1.1 ], [ %.us-phi322.1, %.split319.us.1 ]
  %.us-phi323.ph.1 = phi i32 [ %221, %.preheader.split.us.1.1 ], [ %.576.ph.us.1.1, %.thread182.us.1.1 ], [ %.us-phi323.1, %.split319.us.1 ]
  %.us-phi324.ph.1 = phi i32 [ 0, %.preheader.split.us.1.1 ], [ %.564.ph.us.1.1, %.thread182.us.1.1 ], [ %.us-phi324.1, %.split319.us.1 ]
  %.us-phi325.ph.1 = phi i32 [ %222, %.preheader.split.us.1.1 ], [ %.5.ph.us.1.1, %.thread182.us.1.1 ], [ %.us-phi325.1, %.split319.us.1 ]
  %indvars.iv.next356 = add nuw nsw i64 %indvars.iv355, 1
  %exitcond357 = icmp eq i64 %indvars.iv.next356, 4
  br i1 %exitcond357, label %.thread228, label %.preheader240, !llvm.loop !33

.thread228:                                       ; preds = %.thread202.1
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
          to label %238 unwind label %290

238:                                              ; preds = %.thread228
  %239 = sext i32 %.us-phi322.ph.1 to i64
  %240 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %10, i64 0, i64 %239
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %237, ptr noundef nonnull align 8 dereferenceable(32) %240)
          to label %242 unwind label %290

242:                                              ; preds = %238
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %244 unwind label %290

244:                                              ; preds = %242
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
          to label %246 unwind label %290

246:                                              ; preds = %244
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %245, i32 noundef %.us-phi323.ph.1)
          to label %248 unwind label %290

248:                                              ; preds = %246
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %250 unwind label %290

250:                                              ; preds = %248
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
          to label %252 unwind label %290

252:                                              ; preds = %250
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %251, i32 noundef %.us-phi325.ph.1)
          to label %254 unwind label %290

254:                                              ; preds = %252
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %256 unwind label %290

256:                                              ; preds = %254
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.16)
          to label %258 unwind label %290

258:                                              ; preds = %256
  %259 = zext nneg i32 %.us-phi324.ph.1 to i64
  %260 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %15, i64 0, i64 %259
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %257, ptr noundef nonnull align 8 dereferenceable(32) %260)
          to label %262 unwind label %290

262:                                              ; preds = %258
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %261, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %264 unwind label %290

264:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  %265 = getelementptr inbounds i8, ptr %1, i64 16
  %266 = load ptr, ptr %265, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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) %19, ptr noundef %266, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %267 unwind label %292

267:                                              ; preds = %264
  %268 = invoke noundef i32 @_ZN7lodepng9save_fileERKSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %269 unwind label %294

269:                                              ; preds = %267
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.17)
          to label %271 unwind label %290

271:                                              ; preds = %269
  %272 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %270, i64 noundef %272)
          to label %274 unwind label %290

274:                                              ; preds = %271
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %273, ptr noundef nonnull @.str.4)
          to label %276 unwind label %290

276:                                              ; preds = %274
  %277 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %278 = lshr i64 %277, 10
  %279 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %275, i64 noundef %278)
          to label %280 unwind label %290

280:                                              ; preds = %276
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef nonnull @.str.5)
          to label %282 unwind label %290

282:                                              ; preds = %280
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %284 unwind label %290

284:                                              ; preds = %183, %282
  %285 = getelementptr inbounds i8, ptr %15, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %285) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  %286 = getelementptr inbounds i8, ptr %10, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %286) #7
  %287 = getelementptr inbounds i8, ptr %10, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %287) #7
  %288 = getelementptr inbounds i8, ptr %10, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %288) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #7
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %9) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %9) #7
  br label %289

289:                                              ; preds = %.invoke, %284
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret i32 0

290:                                              ; preds = %282, %280, %276, %274, %271, %269, %262, %258, %256, %254, %252, %250, %248, %246, %244, %242, %238, %.thread228
  %291 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit237.loopexit

292:                                              ; preds = %264
  %293 = landingpad { ptr, i32 }
          cleanup
  br label %296

294:                                              ; preds = %267
  %295 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %296

296:                                              ; preds = %294, %292
  %.pn167 = phi { ptr, i32 } [ %295, %294 ], [ %293, %292 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br label %.loopexit237.loopexit

.loopexit237.loopexit:                            ; preds = %296, %290, %.loopexit238
  %.pn169 = phi { ptr, i32 } [ %291, %290 ], [ %.pn167, %296 ], [ %lpad.phi, %.loopexit238 ]
  %297 = getelementptr inbounds i8, ptr %15, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %297) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %.loopexit237

.loopexit237:                                     ; preds = %.loopexit237.loopexit352, %.loopexit237.loopexit, %.thread179
  %.pn169.pn = phi { ptr, i32 } [ %120, %.thread179 ], [ %.pn169, %.loopexit237.loopexit ], [ %121, %.loopexit237.loopexit352 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  %298 = getelementptr inbounds i8, ptr %10, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %298) #7
  %299 = getelementptr inbounds i8, ptr %10, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %299) #7
  %300 = getelementptr inbounds i8, ptr %10, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %300) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %.loopexit

.loopexit:                                        ; preds = %116, %.loopexit237, %.thread
  %.pn169.pn.pn = phi { ptr, i32 } [ %107, %.thread ], [ %.pn169.pn, %.loopexit237 ], [ %.pn160.pn, %116 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #7
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %9) #7
  br label %301

301:                                              ; preds = %.loopexit, %105
  %.pn169.pn.pn.pn = phi { ptr, i32 } [ %.pn169.pn.pn, %.loopexit ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %9) #7
  br label %302

302:                                              ; preds = %103, %301, %50, %24
  %.pn175 = phi { ptr, i32 } [ %25, %24 ], [ %.pn, %50 ], [ %.pn169.pn.pn.pn, %301 ], [ %104, %103 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn175
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef i32 @_ZN7lodepng9load_fileERSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

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

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

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

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

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

declare void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(508)) unnamed_addr #5

declare noundef i32 @_ZN7lodepng6encodeERSt6vectorIhSaIhEERKS2_jjRNS_5StateE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(508)) local_unnamed_addr #5

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

declare noundef i32 @_ZN7lodepng9save_fileERKSt6vectorIhSaIhEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

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


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