; LLVM IR from venumb/ZSPACE :: cpp/depends/lodePNG/lodepng_unittest.ll (Z17testColorConvert2v)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.Combo = type { i32, i32 }
%"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.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 }
%"class.std::allocator" = type { i8 }
%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.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [18 x i8], align 1
@__const._Z17testColorConvert2v.combos = external hidden unnamed_addr constant [15 x %struct.Combo], align 16
@__const._Z17testColorConvert2v.eight = external hidden unnamed_addr constant [36 x i8], align 16
@.str.103 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4failv() #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: nounwind
declare void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508)) 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) #0 align 2

declare void @_Z23lodepng_color_mode_initP16LodePNGColorMode(ptr noundef) #2

declare noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17testColorConvert2v() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [15 x %struct.Combo], align 16
  %2 = alloca %"class.lodepng::State", align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.LodePNGColorMode, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca [36 x i8], align 16
  %14 = alloca [72 x i8], align 16
  %15 = alloca [72 x i8], align 16
  %16 = alloca [36 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca i1, align 1
  %28 = alloca i1, align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca i1, align 1
  %31 = alloca %"class.std::allocator", align 1
  %32 = alloca i1, align 1
  %33 = alloca i1, align 1
  %34 = alloca i1, align 1
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.102)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 120, ptr %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const._Z17testColorConvert2v.combos, i64 120, i1 false)
  call void @llvm.lifetime.start.p0(i64 512, ptr %2) #7
  call void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(508) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %37 = getelementptr inbounds %struct.LodePNGState, ptr %2, i32 0, i32 4
  %38 = getelementptr inbounds %struct.LodePNGInfo, ptr %37, i32 0, i32 3
  store ptr %38, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %39 = getelementptr inbounds %struct.LodePNGState, ptr %2, i32 0, i32 3
  store ptr %39, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #7
  invoke void @_Z23lodepng_color_mode_initP16LodePNGColorMode(ptr noundef %5)
          to label %40 unwind label %45

40:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %75, %40
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = icmp ult i64 %42, 256
  br i1 %43, label %49, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %82

45:                                               ; preds = %0
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  br label %332

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %50 = load i64, ptr %8, align 8, !tbaa !9
  %51 = icmp eq i64 %50, 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  br label %55

53:                                               ; preds = %49
  %54 = load i64, ptr %8, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %53, %52
  %56 = phi i64 [ 255, %52 ], [ %54, %53 ]
  store i64 %56, ptr %9, align 8, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = load i64, ptr %9, align 8, !tbaa !9
  %59 = trunc i64 %58 to i8
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = trunc i64 %60 to i8
  %62 = load i64, ptr %9, align 8, !tbaa !9
  %63 = trunc i64 %62 to i8
  %64 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef %57, i8 noundef zeroext %59, i8 noundef zeroext %61, i8 noundef zeroext %63, i8 noundef zeroext -1)
          to label %65 unwind label %78

65:                                               ; preds = %55
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = trunc i64 %67 to i8
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = trunc i64 %69 to i8
  %71 = load i64, ptr %9, align 8, !tbaa !9
  %72 = trunc i64 %71 to i8
  %73 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef %66, i8 noundef zeroext %68, i8 noundef zeroext %70, i8 noundef zeroext %72, i8 noundef zeroext -1)
          to label %74 unwind label %78

74:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %75

75:                                               ; preds = %74
  %76 = load i64, ptr %8, align 8, !tbaa !9
  %77 = add i64 %76, 1
  store i64 %77, ptr %8, align 8, !tbaa !9
  br label %41, !llvm.loop !11

78:                                               ; preds = %65, %55
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %332

82:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %328, %82
  %84 = load i64, ptr %10, align 8, !tbaa !9
  %85 = icmp ult i64 %84, 15
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %331

87:                                               ; preds = %83
  %88 = load i64, ptr %10, align 8, !tbaa !9
  %89 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %88
  %90 = getelementptr inbounds %struct.Combo, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !13
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.LodePNGColorMode, ptr %92, i32 0, i32 0
  store i32 %91, ptr %93, align 8, !tbaa !17
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.Combo, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 4, !tbaa !19
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.LodePNGColorMode, ptr %98, i32 0, i32 1
  store i32 %97, ptr %99, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %323, %87
  %101 = load i64, ptr %12, align 8, !tbaa !9
  %102 = icmp ult i64 %101, 15
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %327

104:                                              ; preds = %100
  %105 = load i64, ptr %10, align 8, !tbaa !9
  %106 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %105
  %107 = getelementptr inbounds %struct.Combo, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8, !tbaa !13
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.LodePNGColorMode, ptr %109, i32 0, i32 0
  store i32 %108, ptr %110, align 8, !tbaa !17
  %111 = load i64, ptr %10, align 8, !tbaa !9
  %112 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.Combo, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !19
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.LodePNGColorMode, ptr %115, i32 0, i32 1
  store i32 %114, ptr %116, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const._Z17testColorConvert2v.eight, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 36, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !21
  %117 = getelementptr inbounds [72 x i8], ptr %14, i64 0, i64 0
  %118 = getelementptr inbounds [36 x i8], ptr %13, i64 0, i64 0
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = invoke noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %5, i32 noundef 3, i32 noundef 3)
          to label %121 unwind label %135

121:                                              ; preds = %104
  %122 = load i32, ptr %17, align 4, !tbaa !21
  %123 = or i32 %122, %120
  store i32 %123, ptr %17, align 4, !tbaa !21
  %124 = load i32, ptr %17, align 4, !tbaa !21
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %139, label %126

126:                                              ; preds = %121
  %127 = getelementptr inbounds [72 x i8], ptr %15, i64 0, i64 0
  %128 = getelementptr inbounds [72 x i8], ptr %14, i64 0, i64 0
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = invoke noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef %127, ptr noundef %128, ptr noundef %129, ptr noundef %130, i32 noundef 3, i32 noundef 3)
          to label %132 unwind label %135

132:                                              ; preds = %126
  %133 = load i32, ptr %17, align 4, !tbaa !21
  %134 = or i32 %133, %131
  store i32 %134, ptr %17, align 4, !tbaa !21
  br label %139

135:                                              ; preds = %319, %225, %219, %217, %211, %209, %203, %201, %195, %193, %190, %188, %185, %183, %180, %178, %142, %126, %104
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %6, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %7, align 4
  br label %326

139:                                              ; preds = %132, %121
  %140 = load i32, ptr %17, align 4, !tbaa !21
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %150, label %142

142:                                              ; preds = %139
  %143 = getelementptr inbounds [36 x i8], ptr %16, i64 0, i64 0
  %144 = getelementptr inbounds [72 x i8], ptr %15, i64 0, i64 0
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = invoke noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef %143, ptr noundef %144, ptr noundef %5, ptr noundef %145, i32 noundef 3, i32 noundef 3)
          to label %147 unwind label %135

147:                                              ; preds = %142
  %148 = load i32, ptr %17, align 4, !tbaa !21
  %149 = or i32 %148, %146
  store i32 %149, ptr %17, align 4, !tbaa !21
  br label %150

150:                                              ; preds = %147, %139
  %151 = load i32, ptr %17, align 4, !tbaa !21
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %175, label %153

153:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %170, %153
  %155 = load i64, ptr %18, align 8, !tbaa !9
  %156 = icmp ult i64 %155, 36
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  store i32 11, ptr %11, align 4
  br label %173

158:                                              ; preds = %154
  %159 = load i64, ptr %18, align 8, !tbaa !9
  %160 = getelementptr inbounds [36 x i8], ptr %13, i64 0, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !22
  %162 = zext i8 %161 to i32
  %163 = load i64, ptr %18, align 8, !tbaa !9
  %164 = getelementptr inbounds [36 x i8], ptr %16, i64 0, i64 %163
  %165 = load i8, ptr %164, align 1, !tbaa !22
  %166 = zext i8 %165 to i32
  %167 = icmp ne i32 %162, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %158
  store i32 99999, ptr %17, align 4, !tbaa !21
  store i32 11, ptr %11, align 4
  br label %173

169:                                              ; preds = %158
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %18, align 8, !tbaa !9
  %172 = add i64 %171, 1
  store i64 %172, ptr %18, align 8, !tbaa !9
  br label %154, !llvm.loop !23

173:                                              ; preds = %168, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174, %150
  %176 = load i32, ptr %17, align 4, !tbaa !21
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %322

178:                                              ; preds = %175
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.103)
          to label %180 unwind label %135

180:                                              ; preds = %178
  %181 = load i32, ptr %17, align 4, !tbaa !21
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %179, i32 noundef %181)
          to label %183 unwind label %135

183:                                              ; preds = %180
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef @.str.104)
          to label %185 unwind label %135

185:                                              ; preds = %183
  %186 = load i64, ptr %10, align 8, !tbaa !9
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %184, i64 noundef %186)
          to label %188 unwind label %135

188:                                              ; preds = %185
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef @.str.105)
          to label %190 unwind label %135

190:                                              ; preds = %188
  %191 = load i64, ptr %12, align 8, !tbaa !9
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %189, i64 noundef %191)
          to label %193 unwind label %135

193:                                              ; preds = %190
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef @.str.106)
          to label %195 unwind label %135

195:                                              ; preds = %193
  %196 = load i64, ptr %10, align 8, !tbaa !9
  %197 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %196
  %198 = getelementptr inbounds %struct.Combo, ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 8, !tbaa !13
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %194, i32 noundef %199)
          to label %201 unwind label %135

201:                                              ; preds = %195
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef @.str.107)
          to label %203 unwind label %135

203:                                              ; preds = %201
  %204 = load i64, ptr %10, align 8, !tbaa !9
  %205 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %204
  %206 = getelementptr inbounds %struct.Combo, ptr %205, i32 0, i32 1
  %207 = load i32, ptr %206, align 4, !tbaa !19
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %202, i32 noundef %207)
          to label %209 unwind label %135

209:                                              ; preds = %203
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @.str.108)
          to label %211 unwind label %135

211:                                              ; preds = %209
  %212 = load i64, ptr %12, align 8, !tbaa !9
  %213 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %212
  %214 = getelementptr inbounds %struct.Combo, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 8, !tbaa !13
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %210, i32 noundef %215)
          to label %217 unwind label %135

217:                                              ; preds = %211
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef @.str.109)
          to label %219 unwind label %135

219:                                              ; preds = %217
  %220 = load i64, ptr %12, align 8, !tbaa !9
  %221 = getelementptr inbounds [15 x %struct.Combo], ptr %1, i64 0, i64 %220
  %222 = getelementptr inbounds %struct.Combo, ptr %221, i32 0, i32 1
  %223 = load i32, ptr %222, align 4, !tbaa !19
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %218, i32 noundef %223)
          to label %225 unwind label %135

225:                                              ; preds = %219
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %227 unwind label %135

227:                                              ; preds = %225
  %228 = load i32, ptr %17, align 4, !tbaa !21
  %229 = icmp ne i32 %228, 99999
  br i1 %229, label %230, label %319

230:                                              ; preds = %227
  %231 = load i32, ptr %17, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %232 unwind label %262

232:                                              ; preds = %230
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.110)
          to label %233 unwind label %266

233:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  store i1 false, ptr %27, align 1
  store i1 false, ptr %28, align 1
  store i1 false, ptr %30, align 1
  store i1 false, ptr %32, align 1
  store i1 false, ptr %33, align 1
  store i1 false, ptr %34, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %234 unwind label %270

234:                                              ; preds = %233
  %235 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br i1 %235, label %236, label %238

236:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #7
  store i1 true, ptr %27, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #7
  store i1 true, ptr %28, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %237 unwind label %274

237:                                              ; preds = %236
  br label %241

238:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  store i1 true, ptr %30, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #7
  store i1 true, ptr %32, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  store i1 true, ptr %33, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %239 unwind label %278

239:                                              ; preds = %238
  store i1 true, ptr %34, align 1
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %240 unwind label %282

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240, %237
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %242 unwind label %286

242:                                              ; preds = %241
  invoke void @_Z16assertNoPNGErrorjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %231, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %243 unwind label %290

243:                                              ; preds = %242
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  %244 = load i1, ptr %34, align 1
  br i1 %244, label %245, label %246

245:                                              ; preds = %243
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %246

246:                                              ; preds = %245, %243
  %247 = load i1, ptr %33, align 1
  br i1 %247, label %248, label %249

248:                                              ; preds = %246
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  br label %249

249:                                              ; preds = %248, %246
  %250 = load i1, ptr %32, align 1
  br i1 %250, label %251, label %252

251:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #7
  br label %252

252:                                              ; preds = %251, %249
  %253 = load i1, ptr %30, align 1
  br i1 %253, label %254, label %255

254:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %255

255:                                              ; preds = %254, %252
  %256 = load i1, ptr %28, align 1
  br i1 %256, label %257, label %258

257:                                              ; preds = %255
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #7
  br label %258

258:                                              ; preds = %257, %255
  %259 = load i1, ptr %27, align 1
  br i1 %259, label %260, label %261

260:                                              ; preds = %258
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  br label %261

261:                                              ; preds = %260, %258
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %321

262:                                              ; preds = %230
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %6, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %7, align 4
  br label %318

266:                                              ; preds = %232
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %6, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %7, align 4
  br label %317

270:                                              ; preds = %233
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %6, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %7, align 4
  br label %316

274:                                              ; preds = %236
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %6, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %7, align 4
  br label %309

278:                                              ; preds = %238
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %6, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %7, align 4
  br label %299

282:                                              ; preds = %239
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %6, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %7, align 4
  br label %295

286:                                              ; preds = %241
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %6, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %7, align 4
  br label %294

290:                                              ; preds = %242
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %6, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %294

294:                                              ; preds = %290, %286
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %295

295:                                              ; preds = %294, %282
  %296 = load i1, ptr %34, align 1
  br i1 %296, label %297, label %298

297:                                              ; preds = %295
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %298

298:                                              ; preds = %297, %295
  br label %299

299:                                              ; preds = %298, %278
  %300 = load i1, ptr %33, align 1
  br i1 %300, label %301, label %302

301:                                              ; preds = %299
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  br label %302

302:                                              ; preds = %301, %299
  %303 = load i1, ptr %32, align 1
  br i1 %303, label %304, label %305

304:                                              ; preds = %302
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #7
  br label %305

305:                                              ; preds = %304, %302
  %306 = load i1, ptr %30, align 1
  br i1 %306, label %307, label %308

307:                                              ; preds = %305
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %308

308:                                              ; preds = %307, %305
  br label %309

309:                                              ; preds = %308, %274
  %310 = load i1, ptr %28, align 1
  br i1 %310, label %311, label %312

311:                                              ; preds = %309
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #7
  br label %312

312:                                              ; preds = %311, %309
  %313 = load i1, ptr %27, align 1
  br i1 %313, label %314, label %315

314:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  br label %315

315:                                              ; preds = %314, %312
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %316

316:                                              ; preds = %315, %270
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %317

317:                                              ; preds = %316, %266
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %318

318:                                              ; preds = %317, %262
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %326

319:                                              ; preds = %227
  invoke void @_Z4failv()
          to label %320 unwind label %135

320:                                              ; preds = %319
  br label %321

321:                                              ; preds = %320, %261
  br label %322

322:                                              ; preds = %321, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #7
  br label %323

323:                                              ; preds = %322
  %324 = load i64, ptr %12, align 8, !tbaa !9
  %325 = add i64 %324, 1
  store i64 %325, ptr %12, align 8, !tbaa !9
  br label %100, !llvm.loop !24

326:                                              ; preds = %318, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %332

327:                                              ; preds = %103
  br label %328

328:                                              ; preds = %327
  %329 = load i64, ptr %10, align 8, !tbaa !9
  %330 = add i64 %329, 1
  store i64 %330, ptr %10, align 8, !tbaa !9
  br label %83, !llvm.loop !25

331:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %2) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %1) #7
  ret void

332:                                              ; preds = %326, %78, %45
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %2) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %1) #7
  br label %333

333:                                              ; preds = %332
  %334 = load ptr, ptr %6, align 8
  %335 = load i32, ptr %7, align 4
  %336 = insertvalue { ptr, i32 } poison, ptr %334, 0
  %337 = insertvalue { ptr, i32 } %336, i32 %335, 1
  resume { ptr, i32 } %337
}

; 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 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #2

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

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

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

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

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


; 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 }
%struct.Combo = type { i32, i32 }
%"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.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 }
%"class.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [18 x i8], align 1
@__const._Z17testColorConvert2v.combos = external hidden unnamed_addr constant [15 x %struct.Combo], align 16
@__const._Z17testColorConvert2v.eight = external hidden unnamed_addr constant [36 x i8], align 16
@.str.103 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4failv() local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: nounwind
declare void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508)) 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 #0 align 2

declare void @_Z23lodepng_color_mode_initP16LodePNGColorMode(ptr noundef) local_unnamed_addr #2

declare noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17testColorConvert2v() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.lodepng::State", align 8
  %2 = alloca %struct.LodePNGColorMode, align 8
  %3 = alloca [36 x i8], align 16
  %4 = alloca [72 x i8], align 16
  %5 = alloca [72 x i8], align 16
  %6 = alloca [36 x i8], align 16
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.102)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %1) #7
  call void @_ZN7lodepng5StateC1Ev(ptr noundef nonnull align 8 dereferenceable(508) %1)
  %19 = getelementptr inbounds i8, ptr %1, i64 208
  %20 = getelementptr inbounds i8, ptr %1, i64 152
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #7
  invoke void @_Z23lodepng_color_mode_initP16LodePNGColorMode(ptr noundef nonnull %2)
          to label %.preheader156.preheader unwind label %99

.preheader156.preheader:                          ; preds = %0
  %21 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef nonnull %19, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
          to label %22 unwind label %.loopexit.split-lp

22:                                               ; preds = %.preheader156.preheader
  %23 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef nonnull %20, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
          to label %.preheader156.peel.next unwind label %.loopexit.split-lp

.preheader156.peel.next:                          ; preds = %22
  %24 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef nonnull %19, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1)
          to label %25 unwind label %.loopexit.split-lp

25:                                               ; preds = %.preheader156.peel.next
  %26 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef nonnull %20, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1)
          to label %.preheader156 unwind label %.loopexit.split-lp

.preheader155:                                    ; preds = %105
  %27 = getelementptr inbounds i8, ptr %1, i64 212
  %28 = getelementptr inbounds i8, ptr %1, i64 156
  %29 = getelementptr inbounds i8, ptr %3, i64 1
  %30 = getelementptr inbounds i8, ptr %6, i64 1
  %31 = getelementptr inbounds i8, ptr %3, i64 2
  %32 = getelementptr inbounds i8, ptr %6, i64 2
  %33 = getelementptr inbounds i8, ptr %3, i64 3
  %34 = getelementptr inbounds i8, ptr %6, i64 3
  %35 = getelementptr inbounds i8, ptr %3, i64 4
  %36 = getelementptr inbounds i8, ptr %6, i64 4
  %37 = getelementptr inbounds i8, ptr %3, i64 5
  %38 = getelementptr inbounds i8, ptr %6, i64 5
  %39 = getelementptr inbounds i8, ptr %3, i64 6
  %40 = getelementptr inbounds i8, ptr %6, i64 6
  %41 = getelementptr inbounds i8, ptr %3, i64 7
  %42 = getelementptr inbounds i8, ptr %6, i64 7
  %43 = getelementptr inbounds i8, ptr %3, i64 8
  %44 = getelementptr inbounds i8, ptr %6, i64 8
  %45 = getelementptr inbounds i8, ptr %3, i64 9
  %46 = getelementptr inbounds i8, ptr %6, i64 9
  %47 = getelementptr inbounds i8, ptr %3, i64 10
  %48 = getelementptr inbounds i8, ptr %6, i64 10
  %49 = getelementptr inbounds i8, ptr %3, i64 11
  %50 = getelementptr inbounds i8, ptr %6, i64 11
  %51 = getelementptr inbounds i8, ptr %3, i64 12
  %52 = getelementptr inbounds i8, ptr %6, i64 12
  %53 = getelementptr inbounds i8, ptr %3, i64 13
  %54 = getelementptr inbounds i8, ptr %6, i64 13
  %55 = getelementptr inbounds i8, ptr %3, i64 14
  %56 = getelementptr inbounds i8, ptr %6, i64 14
  %57 = getelementptr inbounds i8, ptr %3, i64 15
  %58 = getelementptr inbounds i8, ptr %6, i64 15
  %59 = getelementptr inbounds i8, ptr %3, i64 16
  %60 = getelementptr inbounds i8, ptr %6, i64 16
  %61 = getelementptr inbounds i8, ptr %3, i64 17
  %62 = getelementptr inbounds i8, ptr %6, i64 17
  %63 = getelementptr inbounds i8, ptr %3, i64 18
  %64 = getelementptr inbounds i8, ptr %6, i64 18
  %65 = getelementptr inbounds i8, ptr %3, i64 19
  %66 = getelementptr inbounds i8, ptr %6, i64 19
  %67 = getelementptr inbounds i8, ptr %3, i64 20
  %68 = getelementptr inbounds i8, ptr %6, i64 20
  %69 = getelementptr inbounds i8, ptr %3, i64 21
  %70 = getelementptr inbounds i8, ptr %6, i64 21
  %71 = getelementptr inbounds i8, ptr %3, i64 22
  %72 = getelementptr inbounds i8, ptr %6, i64 22
  %73 = getelementptr inbounds i8, ptr %3, i64 23
  %74 = getelementptr inbounds i8, ptr %6, i64 23
  %75 = getelementptr inbounds i8, ptr %3, i64 24
  %76 = getelementptr inbounds i8, ptr %6, i64 24
  %77 = getelementptr inbounds i8, ptr %3, i64 25
  %78 = getelementptr inbounds i8, ptr %6, i64 25
  %79 = getelementptr inbounds i8, ptr %3, i64 26
  %80 = getelementptr inbounds i8, ptr %6, i64 26
  %81 = getelementptr inbounds i8, ptr %3, i64 27
  %82 = getelementptr inbounds i8, ptr %6, i64 27
  %83 = getelementptr inbounds i8, ptr %3, i64 28
  %84 = getelementptr inbounds i8, ptr %6, i64 28
  %85 = getelementptr inbounds i8, ptr %3, i64 29
  %86 = getelementptr inbounds i8, ptr %6, i64 29
  %87 = getelementptr inbounds i8, ptr %3, i64 30
  %88 = getelementptr inbounds i8, ptr %6, i64 30
  %89 = getelementptr inbounds i8, ptr %3, i64 31
  %90 = getelementptr inbounds i8, ptr %6, i64 31
  %91 = getelementptr inbounds i8, ptr %3, i64 32
  %92 = getelementptr inbounds i8, ptr %6, i64 32
  %93 = getelementptr inbounds i8, ptr %3, i64 33
  %94 = getelementptr inbounds i8, ptr %6, i64 33
  %95 = getelementptr inbounds i8, ptr %3, i64 34
  %96 = getelementptr inbounds i8, ptr %6, i64 34
  %97 = getelementptr inbounds i8, ptr %3, i64 35
  %98 = getelementptr inbounds i8, ptr %6, i64 35
  br label %108

99:                                               ; preds = %0
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %263

.preheader156:                                    ; preds = %25, %105
  %.087161 = phi i64 [ %106, %105 ], [ 2, %25 ]
  %101 = trunc nuw i64 %.087161 to i8
  %102 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef nonnull %19, i8 noundef zeroext %101, i8 noundef zeroext %101, i8 noundef zeroext %101, i8 noundef zeroext -1)
          to label %103 unwind label %.loopexit173

103:                                              ; preds = %.preheader156
  %104 = invoke noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef nonnull %20, i8 noundef zeroext %101, i8 noundef zeroext %101, i8 noundef zeroext %101, i8 noundef zeroext -1)
          to label %105 unwind label %.loopexit173

105:                                              ; preds = %103
  %106 = add nuw nsw i64 %.087161, 1
  %exitcond.not = icmp eq i64 %106, 256
  br i1 %exitcond.not, label %.preheader155, label %.preheader156, !llvm.loop !5

.loopexit173:                                     ; preds = %.preheader156, %103
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %263

.loopexit.split-lp:                               ; preds = %.preheader156.preheader, %22, %.preheader156.peel.next, %25
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %263

107:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %1) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %1) #7
  ret void

108:                                              ; preds = %.preheader155, %113
  %.082164 = phi i64 [ 0, %.preheader155 ], [ %114, %113 ]
  %109 = getelementptr inbounds [15 x %struct.Combo], ptr @__const._Z17testColorConvert2v.combos, i64 0, i64 %.082164
  %110 = load i32, ptr %109, align 8, !tbaa !8
  store i32 %110, ptr %19, align 8, !tbaa !14
  %111 = getelementptr inbounds i8, ptr %109, i64 4
  %112 = load i32, ptr %111, align 4, !tbaa !18
  store i32 %112, ptr %27, align 4, !tbaa !19
  br label %115

113:                                              ; preds = %.loopexit
  %114 = add nuw nsw i64 %.082164, 1
  %exitcond176.not = icmp eq i64 %114, 15
  br i1 %exitcond176.not, label %107, label %108, !llvm.loop !20

115:                                              ; preds = %108, %.loopexit
  %.081163 = phi i64 [ 0, %108 ], [ %261, %.loopexit ]
  store i32 %110, ptr %20, align 8, !tbaa !14
  store i32 %112, ptr %28, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %3, ptr noundef nonnull align 16 dereferenceable(36) @__const._Z17testColorConvert2v.eight, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %6) #7
  %116 = invoke noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %2, i32 noundef 3, i32 noundef 3)
          to label %117 unwind label %120

117:                                              ; preds = %115
  %.not = icmp eq i32 %116, 0
  br i1 %.not, label %118, label %.thread127

118:                                              ; preds = %117
  %119 = invoke noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %20, ptr noundef nonnull %19, i32 noundef 3, i32 noundef 3)
          to label %122 unwind label %120

120:                                              ; preds = %260, %229, %225, %223, %219, %217, %215, %213, %211, %209, %207, %205, %203, %201, %199, %.thread127, %123, %118, %115
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %262

122:                                              ; preds = %118
  %.not99 = icmp eq i32 %119, 0
  br i1 %.not99, label %123, label %.thread127

123:                                              ; preds = %122
  %124 = invoke noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %20, i32 noundef 3, i32 noundef 3)
          to label %125 unwind label %120

125:                                              ; preds = %123
  %.not100 = icmp eq i32 %124, 0
  br i1 %.not100, label %.preheader.preheader, label %.thread127

.preheader.preheader:                             ; preds = %125
  %126 = load i8, ptr %3, align 16, !tbaa !21
  %127 = load i8, ptr %6, align 16, !tbaa !21
  %.not101 = icmp eq i8 %126, %127
  br i1 %.not101, label %.preheader.1, label %.thread127

.preheader.1:                                     ; preds = %.preheader.preheader
  %128 = load i8, ptr %29, align 1, !tbaa !21
  %129 = load i8, ptr %30, align 1, !tbaa !21
  %.not101.1 = icmp eq i8 %128, %129
  br i1 %.not101.1, label %.preheader.2, label %.thread127

.preheader.2:                                     ; preds = %.preheader.1
  %130 = load i8, ptr %31, align 2, !tbaa !21
  %131 = load i8, ptr %32, align 2, !tbaa !21
  %.not101.2 = icmp eq i8 %130, %131
  br i1 %.not101.2, label %.preheader.3, label %.thread127

.preheader.3:                                     ; preds = %.preheader.2
  %132 = load i8, ptr %33, align 1, !tbaa !21
  %133 = load i8, ptr %34, align 1, !tbaa !21
  %.not101.3 = icmp eq i8 %132, %133
  br i1 %.not101.3, label %.preheader.4, label %.thread127

.preheader.4:                                     ; preds = %.preheader.3
  %134 = load i8, ptr %35, align 4, !tbaa !21
  %135 = load i8, ptr %36, align 4, !tbaa !21
  %.not101.4 = icmp eq i8 %134, %135
  br i1 %.not101.4, label %.preheader.5, label %.thread127

.preheader.5:                                     ; preds = %.preheader.4
  %136 = load i8, ptr %37, align 1, !tbaa !21
  %137 = load i8, ptr %38, align 1, !tbaa !21
  %.not101.5 = icmp eq i8 %136, %137
  br i1 %.not101.5, label %.preheader.6, label %.thread127

.preheader.6:                                     ; preds = %.preheader.5
  %138 = load i8, ptr %39, align 2, !tbaa !21
  %139 = load i8, ptr %40, align 2, !tbaa !21
  %.not101.6 = icmp eq i8 %138, %139
  br i1 %.not101.6, label %.preheader.7, label %.thread127

.preheader.7:                                     ; preds = %.preheader.6
  %140 = load i8, ptr %41, align 1, !tbaa !21
  %141 = load i8, ptr %42, align 1, !tbaa !21
  %.not101.7 = icmp eq i8 %140, %141
  br i1 %.not101.7, label %.preheader.8, label %.thread127

.preheader.8:                                     ; preds = %.preheader.7
  %142 = load i8, ptr %43, align 8, !tbaa !21
  %143 = load i8, ptr %44, align 8, !tbaa !21
  %.not101.8 = icmp eq i8 %142, %143
  br i1 %.not101.8, label %.preheader.9, label %.thread127

.preheader.9:                                     ; preds = %.preheader.8
  %144 = load i8, ptr %45, align 1, !tbaa !21
  %145 = load i8, ptr %46, align 1, !tbaa !21
  %.not101.9 = icmp eq i8 %144, %145
  br i1 %.not101.9, label %.preheader.10, label %.thread127

.preheader.10:                                    ; preds = %.preheader.9
  %146 = load i8, ptr %47, align 2, !tbaa !21
  %147 = load i8, ptr %48, align 2, !tbaa !21
  %.not101.10 = icmp eq i8 %146, %147
  br i1 %.not101.10, label %.preheader.11, label %.thread127

.preheader.11:                                    ; preds = %.preheader.10
  %148 = load i8, ptr %49, align 1, !tbaa !21
  %149 = load i8, ptr %50, align 1, !tbaa !21
  %.not101.11 = icmp eq i8 %148, %149
  br i1 %.not101.11, label %.preheader.12, label %.thread127

.preheader.12:                                    ; preds = %.preheader.11
  %150 = load i8, ptr %51, align 4, !tbaa !21
  %151 = load i8, ptr %52, align 4, !tbaa !21
  %.not101.12 = icmp eq i8 %150, %151
  br i1 %.not101.12, label %.preheader.13, label %.thread127

.preheader.13:                                    ; preds = %.preheader.12
  %152 = load i8, ptr %53, align 1, !tbaa !21
  %153 = load i8, ptr %54, align 1, !tbaa !21
  %.not101.13 = icmp eq i8 %152, %153
  br i1 %.not101.13, label %.preheader.14, label %.thread127

.preheader.14:                                    ; preds = %.preheader.13
  %154 = load i8, ptr %55, align 2, !tbaa !21
  %155 = load i8, ptr %56, align 2, !tbaa !21
  %.not101.14 = icmp eq i8 %154, %155
  br i1 %.not101.14, label %.preheader.15, label %.thread127

.preheader.15:                                    ; preds = %.preheader.14
  %156 = load i8, ptr %57, align 1, !tbaa !21
  %157 = load i8, ptr %58, align 1, !tbaa !21
  %.not101.15 = icmp eq i8 %156, %157
  br i1 %.not101.15, label %.preheader.16, label %.thread127

.preheader.16:                                    ; preds = %.preheader.15
  %158 = load i8, ptr %59, align 16, !tbaa !21
  %159 = load i8, ptr %60, align 16, !tbaa !21
  %.not101.16 = icmp eq i8 %158, %159
  br i1 %.not101.16, label %.preheader.17, label %.thread127

.preheader.17:                                    ; preds = %.preheader.16
  %160 = load i8, ptr %61, align 1, !tbaa !21
  %161 = load i8, ptr %62, align 1, !tbaa !21
  %.not101.17 = icmp eq i8 %160, %161
  br i1 %.not101.17, label %.preheader.18, label %.thread127

.preheader.18:                                    ; preds = %.preheader.17
  %162 = load i8, ptr %63, align 2, !tbaa !21
  %163 = load i8, ptr %64, align 2, !tbaa !21
  %.not101.18 = icmp eq i8 %162, %163
  br i1 %.not101.18, label %.preheader.19, label %.thread127

.preheader.19:                                    ; preds = %.preheader.18
  %164 = load i8, ptr %65, align 1, !tbaa !21
  %165 = load i8, ptr %66, align 1, !tbaa !21
  %.not101.19 = icmp eq i8 %164, %165
  br i1 %.not101.19, label %.preheader.20, label %.thread127

.preheader.20:                                    ; preds = %.preheader.19
  %166 = load i8, ptr %67, align 4, !tbaa !21
  %167 = load i8, ptr %68, align 4, !tbaa !21
  %.not101.20 = icmp eq i8 %166, %167
  br i1 %.not101.20, label %.preheader.21, label %.thread127

.preheader.21:                                    ; preds = %.preheader.20
  %168 = load i8, ptr %69, align 1, !tbaa !21
  %169 = load i8, ptr %70, align 1, !tbaa !21
  %.not101.21 = icmp eq i8 %168, %169
  br i1 %.not101.21, label %.preheader.22, label %.thread127

.preheader.22:                                    ; preds = %.preheader.21
  %170 = load i8, ptr %71, align 2, !tbaa !21
  %171 = load i8, ptr %72, align 2, !tbaa !21
  %.not101.22 = icmp eq i8 %170, %171
  br i1 %.not101.22, label %.preheader.23, label %.thread127

.preheader.23:                                    ; preds = %.preheader.22
  %172 = load i8, ptr %73, align 1, !tbaa !21
  %173 = load i8, ptr %74, align 1, !tbaa !21
  %.not101.23 = icmp eq i8 %172, %173
  br i1 %.not101.23, label %.preheader.24, label %.thread127

.preheader.24:                                    ; preds = %.preheader.23
  %174 = load i8, ptr %75, align 8, !tbaa !21
  %175 = load i8, ptr %76, align 8, !tbaa !21
  %.not101.24 = icmp eq i8 %174, %175
  br i1 %.not101.24, label %.preheader.25, label %.thread127

.preheader.25:                                    ; preds = %.preheader.24
  %176 = load i8, ptr %77, align 1, !tbaa !21
  %177 = load i8, ptr %78, align 1, !tbaa !21
  %.not101.25 = icmp eq i8 %176, %177
  br i1 %.not101.25, label %.preheader.26, label %.thread127

.preheader.26:                                    ; preds = %.preheader.25
  %178 = load i8, ptr %79, align 2, !tbaa !21
  %179 = load i8, ptr %80, align 2, !tbaa !21
  %.not101.26 = icmp eq i8 %178, %179
  br i1 %.not101.26, label %.preheader.27, label %.thread127

.preheader.27:                                    ; preds = %.preheader.26
  %180 = load i8, ptr %81, align 1, !tbaa !21
  %181 = load i8, ptr %82, align 1, !tbaa !21
  %.not101.27 = icmp eq i8 %180, %181
  br i1 %.not101.27, label %.preheader.28, label %.thread127

.preheader.28:                                    ; preds = %.preheader.27
  %182 = load i8, ptr %83, align 4, !tbaa !21
  %183 = load i8, ptr %84, align 4, !tbaa !21
  %.not101.28 = icmp eq i8 %182, %183
  br i1 %.not101.28, label %.preheader.29, label %.thread127

.preheader.29:                                    ; preds = %.preheader.28
  %184 = load i8, ptr %85, align 1, !tbaa !21
  %185 = load i8, ptr %86, align 1, !tbaa !21
  %.not101.29 = icmp eq i8 %184, %185
  br i1 %.not101.29, label %.preheader.30, label %.thread127

.preheader.30:                                    ; preds = %.preheader.29
  %186 = load i8, ptr %87, align 2, !tbaa !21
  %187 = load i8, ptr %88, align 2, !tbaa !21
  %.not101.30 = icmp eq i8 %186, %187
  br i1 %.not101.30, label %.preheader.31, label %.thread127

.preheader.31:                                    ; preds = %.preheader.30
  %188 = load i8, ptr %89, align 1, !tbaa !21
  %189 = load i8, ptr %90, align 1, !tbaa !21
  %.not101.31 = icmp eq i8 %188, %189
  br i1 %.not101.31, label %.preheader.32, label %.thread127

.preheader.32:                                    ; preds = %.preheader.31
  %190 = load i8, ptr %91, align 16, !tbaa !21
  %191 = load i8, ptr %92, align 16, !tbaa !21
  %.not101.32 = icmp eq i8 %190, %191
  br i1 %.not101.32, label %.preheader.33, label %.thread127

.preheader.33:                                    ; preds = %.preheader.32
  %192 = load i8, ptr %93, align 1, !tbaa !21
  %193 = load i8, ptr %94, align 1, !tbaa !21
  %.not101.33 = icmp eq i8 %192, %193
  br i1 %.not101.33, label %.preheader.34, label %.thread127

.preheader.34:                                    ; preds = %.preheader.33
  %194 = load i8, ptr %95, align 2, !tbaa !21
  %195 = load i8, ptr %96, align 2, !tbaa !21
  %.not101.34 = icmp eq i8 %194, %195
  br i1 %.not101.34, label %.preheader.35, label %.thread127

.preheader.35:                                    ; preds = %.preheader.34
  %196 = load i8, ptr %97, align 1, !tbaa !21
  %197 = load i8, ptr %98, align 1, !tbaa !21
  %.not101.35 = icmp eq i8 %196, %197
  br i1 %.not101.35, label %.loopexit, label %.thread127

.thread127:                                       ; preds = %.preheader.preheader, %.preheader.1, %.preheader.2, %.preheader.3, %.preheader.4, %.preheader.5, %.preheader.6, %.preheader.7, %.preheader.8, %.preheader.9, %.preheader.10, %.preheader.11, %.preheader.12, %.preheader.13, %.preheader.14, %.preheader.15, %.preheader.16, %.preheader.17, %.preheader.18, %.preheader.19, %.preheader.20, %.preheader.21, %.preheader.22, %.preheader.23, %.preheader.24, %.preheader.25, %.preheader.26, %.preheader.27, %.preheader.28, %.preheader.29, %.preheader.30, %.preheader.31, %.preheader.32, %.preheader.33, %.preheader.34, %.preheader.35, %117, %122, %125
  %.380.ph = phi i32 [ %124, %125 ], [ %119, %122 ], [ %116, %117 ], [ 99999, %.preheader.35 ], [ 99999, %.preheader.34 ], [ 99999, %.preheader.33 ], [ 99999, %.preheader.32 ], [ 99999, %.preheader.31 ], [ 99999, %.preheader.30 ], [ 99999, %.preheader.29 ], [ 99999, %.preheader.28 ], [ 99999, %.preheader.27 ], [ 99999, %.preheader.26 ], [ 99999, %.preheader.25 ], [ 99999, %.preheader.24 ], [ 99999, %.preheader.23 ], [ 99999, %.preheader.22 ], [ 99999, %.preheader.21 ], [ 99999, %.preheader.20 ], [ 99999, %.preheader.19 ], [ 99999, %.preheader.18 ], [ 99999, %.preheader.17 ], [ 99999, %.preheader.16 ], [ 99999, %.preheader.15 ], [ 99999, %.preheader.14 ], [ 99999, %.preheader.13 ], [ 99999, %.preheader.12 ], [ 99999, %.preheader.11 ], [ 99999, %.preheader.10 ], [ 99999, %.preheader.9 ], [ 99999, %.preheader.8 ], [ 99999, %.preheader.7 ], [ 99999, %.preheader.6 ], [ 99999, %.preheader.5 ], [ 99999, %.preheader.4 ], [ 99999, %.preheader.3 ], [ 99999, %.preheader.2 ], [ 99999, %.preheader.1 ], [ 99999, %.preheader.preheader ]
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.103)
          to label %199 unwind label %120

199:                                              ; preds = %.thread127
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %198, i32 noundef %.380.ph)
          to label %201 unwind label %120

201:                                              ; preds = %199
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull @.str.104)
          to label %203 unwind label %120

203:                                              ; preds = %201
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %202, i64 noundef %.082164)
          to label %205 unwind label %120

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

207:                                              ; preds = %205
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %206, i64 noundef %.081163)
          to label %209 unwind label %120

209:                                              ; preds = %207
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef nonnull @.str.106)
          to label %211 unwind label %120

211:                                              ; preds = %209
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %210, i32 noundef %110)
          to label %213 unwind label %120

213:                                              ; preds = %211
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef nonnull @.str.107)
          to label %215 unwind label %120

215:                                              ; preds = %213
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %214, i32 noundef %112)
          to label %217 unwind label %120

217:                                              ; preds = %215
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef nonnull @.str.108)
          to label %219 unwind label %120

219:                                              ; preds = %217
  %220 = getelementptr inbounds [15 x %struct.Combo], ptr @__const._Z17testColorConvert2v.combos, i64 0, i64 %.081163
  %221 = load i32, ptr %220, align 8, !tbaa !8
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %218, i32 noundef %221)
          to label %223 unwind label %120

223:                                              ; preds = %219
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef nonnull @.str.109)
          to label %225 unwind label %120

225:                                              ; preds = %223
  %226 = getelementptr inbounds i8, ptr %220, i64 4
  %227 = load i32, ptr %226, align 4, !tbaa !18
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %224, i32 noundef %227)
          to label %229 unwind label %120

229:                                              ; preds = %225
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %228, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %231 unwind label %120

231:                                              ; preds = %229
  %.not103 = icmp eq i32 %.380.ph, 99999
  br i1 %.not103, label %260, label %232

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %233 unwind label %243

233:                                              ; preds = %232
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.110)
          to label %234 unwind label %245

234:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  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) %12, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %235 unwind label %247

235:                                              ; preds = %234
  %236 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br i1 %236, label %237, label %238

237:                                              ; preds = %235
  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) %11, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %240 unwind label %.critedge121.thread

238:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 32, 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.2, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %239 unwind label %.critedge120.thread

239:                                              ; preds = %238
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %240 unwind label %.thread135

240:                                              ; preds = %239, %237
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %241 unwind label %252

241:                                              ; preds = %240
  invoke void @_Z16assertNoPNGErrorjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %.380.ph, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %242 unwind label %254

242:                                              ; preds = %241
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br i1 %236, label %.critedge124, label %.critedge

.critedge:                                        ; preds = %242
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #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 @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  br label %.critedge118

.critedge124:                                     ; preds = %242
  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 %.critedge118

.critedge118:                                     ; preds = %.critedge, %.critedge124
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #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 @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %.loopexit

243:                                              ; preds = %232
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %259

245:                                              ; preds = %233
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %258

247:                                              ; preds = %234
  %248 = landingpad { ptr, i32 }
          cleanup
  br label %257

.critedge121.thread:                              ; preds = %237
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge121

.critedge120.thread:                              ; preds = %238
  %250 = 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
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  br label %.critedge123

.thread135:                                       ; preds = %239
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge120

252:                                              ; preds = %240
  %253 = landingpad { ptr, i32 }
          cleanup
  br label %256

254:                                              ; preds = %241
  %255 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %256

256:                                              ; preds = %252, %254
  %.pn = phi { ptr, i32 } [ %255, %254 ], [ %253, %252 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br i1 %236, label %.critedge121, label %.critedge120

.critedge120:                                     ; preds = %256, %.thread135
  %.pn.pn139 = phi { ptr, i32 } [ %251, %.thread135 ], [ %.pn, %256 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #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 @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  br label %.critedge123

.critedge121:                                     ; preds = %256, %.critedge121.thread
  %.pn.pn.pn.pn152 = phi { ptr, i32 } [ %249, %.critedge121.thread ], [ %.pn, %256 ]
  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 %.critedge123

.critedge123:                                     ; preds = %.critedge120, %.critedge120.thread, %.critedge121
  %.pn.pn.pn.pn151 = phi { ptr, i32 } [ %.pn.pn.pn.pn152, %.critedge121 ], [ %.pn.pn139, %.critedge120 ], [ %250, %.critedge120.thread ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %257

257:                                              ; preds = %.critedge123, %247
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn151, %.critedge123 ], [ %248, %247 ]
  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 @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %258

258:                                              ; preds = %257, %245
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %257 ], [ %246, %245 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %259

259:                                              ; preds = %258, %243
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %258 ], [ %244, %243 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %262

260:                                              ; preds = %231
  invoke void @_Z4failv()
          to label %.loopexit unwind label %120

.loopexit:                                        ; preds = %.preheader.35, %.critedge118, %260
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #7
  %261 = add nuw nsw i64 %.081163, 1
  %exitcond175.not = icmp eq i64 %261, 15
  br i1 %exitcond175.not, label %113, label %115, !llvm.loop !22

262:                                              ; preds = %259, %120
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %259 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #7
  br label %263

263:                                              ; preds = %.loopexit173, %.loopexit.split-lp, %262, %99
  %.pn112 = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %262 ], [ %100, %99 ], [ %lpad.loopexit, %.loopexit173 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  call void @_ZN7lodepng5StateD1Ev(ptr noundef nonnull align 8 dereferenceable(508) %1) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn112
}

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

declare noundef i32 @_Z19lodepng_palette_addP16LodePNGColorModehhhh(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #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 #0 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 2}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSZ17testColorConvert2vE5Combo", !10, i64 0, !13, i64 4}
!10 = !{!"_ZTS16LodePNGColorType", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"int", !11, i64 0}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS16LodePNGColorMode", !10, i64 0, !13, i64 4, !16, i64 8, !17, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36}
!16 = !{!"any pointer", !11, i64 0}
!17 = !{!"long", !11, i64 0}
!18 = !{!9, !13, i64 4}
!19 = !{!15, !13, i64 4}
!20 = distinct !{!20, !6}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !6}


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