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

; 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.Image = type { %"class.std::vector", i32, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.60 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #1

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5ImageC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13testFewColorsv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.Image, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i64, align 8
  %45 = alloca i64, align 8
  %46 = alloca i64, align 8
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.60)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 40, ptr %1) #5
  call void @_ZN5ImageC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #5
  %49 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  store i32 4, ptr %49, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 2
  store i32 4, ptr %50, align 4, !tbaa !16
  %51 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 3
  store i32 6, ptr %51, align 8, !tbaa !17
  %52 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 4
  store i32 8, ptr %52, align 4, !tbaa !18
  %53 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 0
  %54 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 2
  %57 = load i32, ptr %56, align 4, !tbaa !16
  %58 = mul i32 %55, %57
  %59 = mul i32 %58, 4
  %60 = zext i32 %59 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %60)
          to label %61 unwind label %91

61:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  store i8 0, ptr %5, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %62 unwind label %95

62:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  store i8 0, ptr %6, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %63 unwind label %99

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %64 unwind label %103

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  store i8 -1, ptr %8, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %65 unwind label %107

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  store i8 -1, ptr %9, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %66 unwind label %111

66:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 -1, ptr %10, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %67 unwind label %115

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 -1, ptr %11, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %68 unwind label %119

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 -1, ptr %12, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %69 unwind label %123

69:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 -128, ptr %13, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %70 unwind label %127

70:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  store i8 -128, ptr %14, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %71 unwind label %131

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  store i8 -128, ptr %15, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %72 unwind label %135

72:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  store i8 -1, ptr %16, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %73 unwind label %139

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  store i8 0, ptr %17, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %74 unwind label %143

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  store i8 0, ptr %18, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %75 unwind label %147

75:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  store i8 -1, ptr %19, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %76 unwind label %151

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  store i8 -1, ptr %20, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %77 unwind label %155

77:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  store i8 -1, ptr %21, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %78 unwind label %159

78:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  store i8 -1, ptr %22, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %79 unwind label %163

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  store i8 -1, ptr %23, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %80 unwind label %167

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  store i8 0, ptr %24, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %81 unwind label %171

81:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #5
  store i8 -1, ptr %25, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %82 unwind label %175

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  store i8 -1, ptr %26, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %83 unwind label %179

83:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  store i8 -1, ptr %27, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %84 unwind label %183

84:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #5
  store i8 1, ptr %28, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %85 unwind label %187

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  store i64 0, ptr %29, align 8, !tbaa !20
  br label %86

86:                                               ; preds = %306, %85
  %87 = load i64, ptr %29, align 8, !tbaa !20
  %88 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %89 = icmp ult i64 %87, %88
  br i1 %89, label %191, label %90

90:                                               ; preds = %86
  store i32 2, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %309

91:                                               ; preds = %0
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %2, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %3, align 4
  br label %433

95:                                               ; preds = %61
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %2, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %432

99:                                               ; preds = %62
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %2, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %432

103:                                              ; preds = %63
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %2, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %432

107:                                              ; preds = %64
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %2, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  br label %432

111:                                              ; preds = %65
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %2, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %432

115:                                              ; preds = %66
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %2, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %432

119:                                              ; preds = %67
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %2, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %432

123:                                              ; preds = %68
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %2, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %432

127:                                              ; preds = %69
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %2, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %432

131:                                              ; preds = %70
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %2, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %432

135:                                              ; preds = %71
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %2, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %432

139:                                              ; preds = %72
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %2, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %432

143:                                              ; preds = %73
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %2, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  br label %432

147:                                              ; preds = %74
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %2, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %432

151:                                              ; preds = %75
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %2, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %432

155:                                              ; preds = %76
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %2, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  br label %432

159:                                              ; preds = %77
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %2, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  br label %432

163:                                              ; preds = %78
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %2, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %432

167:                                              ; preds = %79
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %2, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  br label %432

171:                                              ; preds = %80
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %2, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %432

175:                                              ; preds = %81
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %2, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  br label %432

179:                                              ; preds = %82
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %2, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %432

183:                                              ; preds = %83
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %2, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  br label %432

187:                                              ; preds = %84
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %2, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  br label %432

191:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  store i64 0, ptr %31, align 8, !tbaa !20
  br label %192

192:                                              ; preds = %302, %191
  %193 = load i64, ptr %31, align 8, !tbaa !20
  %194 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %195 = icmp ult i64 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 5, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %305

197:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  store i64 0, ptr %32, align 8, !tbaa !20
  br label %198

198:                                              ; preds = %298, %197
  %199 = load i64, ptr %32, align 8, !tbaa !20
  %200 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %201 = icmp ult i64 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  store i32 8, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %301

203:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  store i64 0, ptr %33, align 8, !tbaa !20
  br label %204

204:                                              ; preds = %290, %203
  %205 = load i64, ptr %33, align 8, !tbaa !20
  %206 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %207 = icmp ult i64 %205, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %204
  store i32 11, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %297

209:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  store i32 0, ptr %34, align 4, !tbaa !22
  br label %210

210:                                              ; preds = %285, %209
  %211 = load i32, ptr %34, align 4, !tbaa !22
  %212 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 2
  %213 = load i32, ptr %212, align 4, !tbaa !16
  %214 = icmp ult i32 %211, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %210
  store i32 14, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %288

216:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !22
  br label %217

217:                                              ; preds = %281, %216
  %218 = load i32, ptr %35, align 4, !tbaa !22
  %219 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %220 = load i32, ptr %219, align 8, !tbaa !5
  %221 = icmp ult i32 %218, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %217
  store i32 17, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %284

223:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %224 = load i32, ptr %34, align 4, !tbaa !22
  %225 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %226 = load i32, ptr %225, align 8, !tbaa !5
  %227 = mul i32 %224, %226
  %228 = load i32, ptr %35, align 4, !tbaa !22
  %229 = add i32 %227, %228
  %230 = and i32 %229, 3
  %231 = zext i32 %230 to i64
  store i64 %231, ptr %36, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %232 = load i64, ptr %36, align 8, !tbaa !20
  %233 = icmp eq i64 %232, 0
  br i1 %233, label %234, label %236

234:                                              ; preds = %223
  %235 = load i64, ptr %29, align 8, !tbaa !20
  br label %252

236:                                              ; preds = %223
  %237 = load i64, ptr %36, align 8, !tbaa !20
  %238 = icmp eq i64 %237, 1
  br i1 %238, label %239, label %241

239:                                              ; preds = %236
  %240 = load i64, ptr %31, align 8, !tbaa !20
  br label %250

241:                                              ; preds = %236
  %242 = load i64, ptr %36, align 8, !tbaa !20
  %243 = icmp eq i64 %242, 2
  br i1 %243, label %244, label %246

244:                                              ; preds = %241
  %245 = load i64, ptr %32, align 8, !tbaa !20
  br label %248

246:                                              ; preds = %241
  %247 = load i64, ptr %33, align 8, !tbaa !20
  br label %248

248:                                              ; preds = %246, %244
  %249 = phi i64 [ %245, %244 ], [ %247, %246 ]
  br label %250

250:                                              ; preds = %248, %239
  %251 = phi i64 [ %240, %239 ], [ %249, %248 ]
  br label %252

252:                                              ; preds = %250, %234
  %253 = phi i64 [ %235, %234 ], [ %251, %250 ]
  store i64 %253, ptr %37, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  store i64 0, ptr %38, align 8, !tbaa !20
  br label %254

254:                                              ; preds = %277, %252
  %255 = load i64, ptr %38, align 8, !tbaa !20
  %256 = icmp ult i64 %255, 4
  br i1 %256, label %258, label %257

257:                                              ; preds = %254
  store i32 20, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  br label %280

258:                                              ; preds = %254
  %259 = load i64, ptr %37, align 8, !tbaa !20
  %260 = load i64, ptr %38, align 8, !tbaa !20
  %261 = add i64 %259, %260
  %262 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %261) #5
  %263 = load i8, ptr %262, align 1, !tbaa !19
  %264 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 0
  %265 = load i32, ptr %34, align 4, !tbaa !22
  %266 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %267 = load i32, ptr %266, align 8, !tbaa !5
  %268 = mul i32 %265, %267
  %269 = mul i32 %268, 4
  %270 = load i32, ptr %35, align 4, !tbaa !22
  %271 = mul i32 %270, 4
  %272 = add i32 %269, %271
  %273 = zext i32 %272 to i64
  %274 = load i64, ptr %38, align 8, !tbaa !20
  %275 = add i64 %273, %274
  %276 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %264, i64 noundef %275) #5
  store i8 %263, ptr %276, align 1, !tbaa !19
  br label %277

277:                                              ; preds = %258
  %278 = load i64, ptr %38, align 8, !tbaa !20
  %279 = add i64 %278, 1
  store i64 %279, ptr %38, align 8, !tbaa !20
  br label %254, !llvm.loop !23

280:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %35, align 4, !tbaa !22
  %283 = add i32 %282, 1
  store i32 %283, ptr %35, align 4, !tbaa !22
  br label %217, !llvm.loop !25

284:                                              ; preds = %222
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %34, align 4, !tbaa !22
  %287 = add i32 %286, 1
  store i32 %287, ptr %34, align 4, !tbaa !22
  br label %210, !llvm.loop !26

288:                                              ; preds = %215
  invoke void @_Z11doCodecTestR5Image(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %289 unwind label %293

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289
  %291 = load i64, ptr %33, align 8, !tbaa !20
  %292 = add i64 %291, 4
  store i64 %292, ptr %33, align 8, !tbaa !20
  br label %204, !llvm.loop !27

293:                                              ; preds = %288
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %2, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %432

297:                                              ; preds = %208
  br label %298

298:                                              ; preds = %297
  %299 = load i64, ptr %32, align 8, !tbaa !20
  %300 = add i64 %299, 4
  store i64 %300, ptr %32, align 8, !tbaa !20
  br label %198, !llvm.loop !28

301:                                              ; preds = %202
  br label %302

302:                                              ; preds = %301
  %303 = load i64, ptr %31, align 8, !tbaa !20
  %304 = add i64 %303, 4
  store i64 %304, ptr %31, align 8, !tbaa !20
  br label %192, !llvm.loop !29

305:                                              ; preds = %196
  br label %306

306:                                              ; preds = %305
  %307 = load i64, ptr %29, align 8, !tbaa !20
  %308 = add i64 %307, 4
  store i64 %308, ptr %29, align 8, !tbaa !20
  br label %86, !llvm.loop !30

309:                                              ; preds = %90
  %310 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  store i32 20, ptr %310, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 2
  store i32 20, ptr %311, align 4, !tbaa !16
  %312 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 0
  %313 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %314 = load i32, ptr %313, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 2
  %316 = load i32, ptr %315, align 4, !tbaa !16
  %317 = mul i32 %314, %316
  %318 = mul i32 %317, 4
  %319 = zext i32 %318 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %312, i64 noundef %319)
          to label %320 unwind label %326

320:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  store i64 0, ptr %39, align 8, !tbaa !20
  br label %321

321:                                              ; preds = %428, %320
  %322 = load i64, ptr %39, align 8, !tbaa !20
  %323 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %324 = icmp ult i64 %322, %323
  br i1 %324, label %330, label %325

325:                                              ; preds = %321
  store i32 23, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  br label %431

326:                                              ; preds = %309
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %2, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %3, align 4
  br label %432

330:                                              ; preds = %321
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  store i64 0, ptr %40, align 8, !tbaa !20
  br label %331

331:                                              ; preds = %424, %330
  %332 = load i64, ptr %40, align 8, !tbaa !20
  %333 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %334 = icmp ult i64 %332, %333
  br i1 %334, label %336, label %335

335:                                              ; preds = %331
  store i32 26, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %427

336:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  store i64 0, ptr %41, align 8, !tbaa !20
  br label %337

337:                                              ; preds = %416, %336
  %338 = load i64, ptr %41, align 8, !tbaa !20
  %339 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %340 = icmp ult i64 %338, %339
  br i1 %340, label %342, label %341

341:                                              ; preds = %337
  store i32 29, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  br label %423

342:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  store i32 0, ptr %42, align 4, !tbaa !22
  br label %343

343:                                              ; preds = %411, %342
  %344 = load i32, ptr %42, align 4, !tbaa !22
  %345 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 2
  %346 = load i32, ptr %345, align 4, !tbaa !16
  %347 = icmp ult i32 %344, %346
  br i1 %347, label %349, label %348

348:                                              ; preds = %343
  store i32 32, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  br label %414

349:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  store i32 0, ptr %43, align 4, !tbaa !22
  br label %350

350:                                              ; preds = %407, %349
  %351 = load i32, ptr %43, align 4, !tbaa !22
  %352 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %353 = load i32, ptr %352, align 8, !tbaa !5
  %354 = icmp ult i32 %351, %353
  br i1 %354, label %356, label %355

355:                                              ; preds = %350
  store i32 35, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  br label %410

356:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #5
  %357 = load i32, ptr %42, align 4, !tbaa !22
  %358 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %359 = load i32, ptr %358, align 8, !tbaa !5
  %360 = mul i32 %357, %359
  %361 = load i32, ptr %43, align 4, !tbaa !22
  %362 = add i32 %360, %361
  %363 = urem i32 %362, 3
  %364 = zext i32 %363 to i64
  store i64 %364, ptr %44, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #5
  %365 = load i64, ptr %44, align 8, !tbaa !20
  %366 = icmp eq i64 %365, 0
  br i1 %366, label %367, label %369

367:                                              ; preds = %356
  %368 = load i64, ptr %39, align 8, !tbaa !20
  br label %378

369:                                              ; preds = %356
  %370 = load i64, ptr %44, align 8, !tbaa !20
  %371 = icmp eq i64 %370, 1
  br i1 %371, label %372, label %374

372:                                              ; preds = %369
  %373 = load i64, ptr %40, align 8, !tbaa !20
  br label %376

374:                                              ; preds = %369
  %375 = load i64, ptr %41, align 8, !tbaa !20
  br label %376

376:                                              ; preds = %374, %372
  %377 = phi i64 [ %373, %372 ], [ %375, %374 ]
  br label %378

378:                                              ; preds = %376, %367
  %379 = phi i64 [ %368, %367 ], [ %377, %376 ]
  store i64 %379, ptr %45, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #5
  store i64 0, ptr %46, align 8, !tbaa !20
  br label %380

380:                                              ; preds = %403, %378
  %381 = load i64, ptr %46, align 8, !tbaa !20
  %382 = icmp ult i64 %381, 4
  br i1 %382, label %384, label %383

383:                                              ; preds = %380
  store i32 38, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #5
  br label %406

384:                                              ; preds = %380
  %385 = load i64, ptr %45, align 8, !tbaa !20
  %386 = load i64, ptr %46, align 8, !tbaa !20
  %387 = add i64 %385, %386
  %388 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %387) #5
  %389 = load i8, ptr %388, align 1, !tbaa !19
  %390 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 0
  %391 = load i32, ptr %42, align 4, !tbaa !22
  %392 = getelementptr inbounds %struct.Image, ptr %1, i32 0, i32 1
  %393 = load i32, ptr %392, align 8, !tbaa !5
  %394 = mul i32 %391, %393
  %395 = mul i32 %394, 4
  %396 = load i32, ptr %43, align 4, !tbaa !22
  %397 = mul i32 %396, 4
  %398 = add i32 %395, %397
  %399 = zext i32 %398 to i64
  %400 = load i64, ptr %46, align 8, !tbaa !20
  %401 = add i64 %399, %400
  %402 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %390, i64 noundef %401) #5
  store i8 %389, ptr %402, align 1, !tbaa !19
  br label %403

403:                                              ; preds = %384
  %404 = load i64, ptr %46, align 8, !tbaa !20
  %405 = add i64 %404, 1
  store i64 %405, ptr %46, align 8, !tbaa !20
  br label %380, !llvm.loop !31

406:                                              ; preds = %383
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #5
  br label %407

407:                                              ; preds = %406
  %408 = load i32, ptr %43, align 4, !tbaa !22
  %409 = add i32 %408, 1
  store i32 %409, ptr %43, align 4, !tbaa !22
  br label %350, !llvm.loop !32

410:                                              ; preds = %355
  br label %411

411:                                              ; preds = %410
  %412 = load i32, ptr %42, align 4, !tbaa !22
  %413 = add i32 %412, 1
  store i32 %413, ptr %42, align 4, !tbaa !22
  br label %343, !llvm.loop !33

414:                                              ; preds = %348
  invoke void @_Z11doCodecTestR5Image(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %415 unwind label %419

415:                                              ; preds = %414
  br label %416

416:                                              ; preds = %415
  %417 = load i64, ptr %41, align 8, !tbaa !20
  %418 = add i64 %417, 4
  store i64 %418, ptr %41, align 8, !tbaa !20
  br label %337, !llvm.loop !34

419:                                              ; preds = %414
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %2, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  br label %432

423:                                              ; preds = %341
  br label %424

424:                                              ; preds = %423
  %425 = load i64, ptr %40, align 8, !tbaa !20
  %426 = add i64 %425, 4
  store i64 %426, ptr %40, align 8, !tbaa !20
  br label %331, !llvm.loop !35

427:                                              ; preds = %335
  br label %428

428:                                              ; preds = %427
  %429 = load i64, ptr %39, align 8, !tbaa !20
  %430 = add i64 %429, 4
  store i64 %430, ptr %39, align 8, !tbaa !20
  br label %321, !llvm.loop !36

431:                                              ; preds = %325
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @_ZN5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %1) #5
  ret void

432:                                              ; preds = %419, %326, %293, %187, %183, %179, %175, %171, %167, %163, %159, %155, %151, %147, %143, %139, %135, %131, %127, %123, %119, %115, %111, %107, %103, %99, %95
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  br label %433

433:                                              ; preds = %432, %91
  call void @_ZN5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %1) #5
  br label %434

434:                                              ; preds = %433
  %435 = load ptr, ptr %2, align 8
  %436 = load i32, ptr %3, align 4
  %437 = insertvalue { ptr, i32 } poison, ptr %435, 0
  %438 = insertvalue { ptr, i32 } %437, i32 %436, 1
  resume { ptr, i32 } %438
}

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

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


; 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.Image = type { %"class.std::vector", i32, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.60 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5ImageC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13testFewColorsv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.Image, align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = 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.60)
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #5
  call void @_ZN5ImageC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #5
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %30 = getelementptr inbounds i8, ptr %1, i64 28
  store <4 x i32> <i32 4, i32 4, i32 6, i32 8>, ptr %29, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 64)
          to label %31 unwind label %59

31:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  store i8 0, ptr %3, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %32 unwind label %61

32:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  store i8 0, ptr %4, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %33 unwind label %63

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  store i8 0, ptr %5, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %34 unwind label %65

34:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 -1, ptr %6, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %35 unwind label %67

35:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  store i8 -1, ptr %7, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %36 unwind label %69

36:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  store i8 -1, ptr %8, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %37 unwind label %71

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  store i8 -1, ptr %9, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %38 unwind label %73

38:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  store i8 -1, ptr %10, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %39 unwind label %75

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  store i8 -128, ptr %11, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %40 unwind label %77

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  store i8 -128, ptr %12, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %41 unwind label %79

41:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  store i8 -128, ptr %13, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %42 unwind label %81

42:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  store i8 -1, ptr %14, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %43 unwind label %83

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #5
  store i8 0, ptr %15, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %44 unwind label %85

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  store i8 0, ptr %16, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %45 unwind label %87

45:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #5
  store i8 -1, ptr %17, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %46 unwind label %89

46:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #5
  store i8 -1, ptr %18, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %47 unwind label %91

47:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  store i8 -1, ptr %19, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %48 unwind label %93

48:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #5
  store i8 -1, ptr %20, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %49 unwind label %95

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #5
  store i8 -1, ptr %21, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %50 unwind label %97

50:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #5
  store i8 0, ptr %22, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %51 unwind label %99

51:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #5
  store i8 -1, ptr %23, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %52 unwind label %101

52:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #5
  store i8 -1, ptr %24, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %53 unwind label %103

53:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #5
  store i8 -1, ptr %25, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %54 unwind label %105

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #5
  store i8 1, ptr %26, align 1, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %55 unwind label %107

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #5
  %56 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not = icmp eq i64 %56, 0
  br i1 %.not, label %._crit_edge95, label %.preheader82

.preheader82:                                     ; preds = %55, %._crit_edge93
  %.06294 = phi i64 [ %110, %._crit_edge93 ], [ 0, %55 ]
  %57 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not109 = icmp eq i64 %57, 0
  br i1 %.not109, label %._crit_edge93, label %.preheader81

._crit_edge95:                                    ; preds = %._crit_edge93, %55
  store i32 20, ptr %29, align 8, !tbaa !8
  store i32 20, ptr %30, align 4, !tbaa !17
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1600)
          to label %.preheader77 unwind label %186

.preheader77:                                     ; preds = %._crit_edge95
  %58 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not115 = icmp eq i64 %58, 0
  br i1 %.not115, label %._crit_edge108, label %.preheader76

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

61:                                               ; preds = %31
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  br label %258

63:                                               ; preds = %32
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %258

65:                                               ; preds = %33
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %258

67:                                               ; preds = %34
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %258

69:                                               ; preds = %35
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %258

71:                                               ; preds = %36
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  br label %258

73:                                               ; preds = %37
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %258

75:                                               ; preds = %38
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  br label %258

77:                                               ; preds = %39
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  br label %258

79:                                               ; preds = %40
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  br label %258

81:                                               ; preds = %41
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  br label %258

83:                                               ; preds = %42
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  br label %258

85:                                               ; preds = %43
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  br label %258

87:                                               ; preds = %44
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  br label %258

89:                                               ; preds = %45
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  br label %258

91:                                               ; preds = %46
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #5
  br label %258

93:                                               ; preds = %47
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  br label %258

95:                                               ; preds = %48
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #5
  br label %258

97:                                               ; preds = %49
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #5
  br label %258

99:                                               ; preds = %50
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #5
  br label %258

101:                                              ; preds = %51
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #5
  br label %258

103:                                              ; preds = %52
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #5
  br label %258

105:                                              ; preds = %53
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #5
  br label %258

107:                                              ; preds = %54
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #5
  br label %258

.preheader81:                                     ; preds = %.preheader82, %._crit_edge91
  %.06792 = phi i64 [ %114, %._crit_edge91 ], [ 0, %.preheader82 ]
  %109 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not110 = icmp eq i64 %109, 0
  br i1 %.not110, label %._crit_edge91, label %.preheader80

._crit_edge93:                                    ; preds = %._crit_edge91, %.preheader82
  %110 = add i64 %.06294, 4
  %111 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %112 = icmp ult i64 %110, %111
  br i1 %112, label %.preheader82, label %._crit_edge95, !llvm.loop !18

.preheader80:                                     ; preds = %.preheader81, %._crit_edge89
  %.06690 = phi i64 [ %119, %._crit_edge89 ], [ 0, %.preheader81 ]
  %113 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not111 = icmp eq i64 %113, 0
  br i1 %.not111, label %._crit_edge89, label %.preheader79

._crit_edge91:                                    ; preds = %._crit_edge89, %.preheader81
  %114 = add i64 %.06792, 4
  %115 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %116 = icmp ult i64 %114, %115
  br i1 %116, label %.preheader81, label %._crit_edge93, !llvm.loop !20

.preheader79:                                     ; preds = %.preheader80, %179
  %.06587 = phi i64 [ %180, %179 ], [ 0, %.preheader80 ]
  %117 = load i32, ptr %30, align 4, !tbaa !17
  %.not112 = icmp eq i32 %117, 0
  %118 = load i32, ptr %29, align 8
  %.not113 = icmp eq i32 %118, 0
  %or.cond = select i1 %.not112, i1 true, i1 %.not113
  br i1 %or.cond, label %._crit_edge86, label %.preheader78

._crit_edge89:                                    ; preds = %179, %.preheader80
  %119 = add i64 %.06690, 4
  %120 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %121 = icmp ult i64 %119, %120
  br i1 %121, label %.preheader80, label %._crit_edge91, !llvm.loop !21

.preheader78:                                     ; preds = %.preheader79, %._crit_edge
  %122 = phi i32 [ %124, %._crit_edge ], [ %117, %.preheader79 ]
  %123 = phi i32 [ %125, %._crit_edge ], [ %118, %.preheader79 ]
  %.06485 = phi i32 [ %126, %._crit_edge ], [ 0, %.preheader79 ]
  %.not114 = icmp eq i32 %123, 0
  br i1 %.not114, label %._crit_edge, label %.lr.ph

._crit_edge86:                                    ; preds = %._crit_edge, %.preheader79
  invoke void @_Z11doCodecTestR5Image(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %179 unwind label %183

._crit_edge.loopexit:                             ; preds = %136
  %.pre = load i32, ptr %30, align 4, !tbaa !17
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader78
  %124 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %122, %.preheader78 ]
  %125 = phi i32 [ %177, %._crit_edge.loopexit ], [ 0, %.preheader78 ]
  %126 = add nuw i32 %.06485, 1
  %127 = icmp ult i32 %126, %124
  br i1 %127, label %.preheader78, label %._crit_edge86, !llvm.loop !22

.lr.ph:                                           ; preds = %.preheader78, %136
  %128 = phi i32 [ %177, %136 ], [ %123, %.preheader78 ]
  %.06384 = phi i32 [ %176, %136 ], [ 0, %.preheader78 ]
  %129 = mul i32 %128, %.06485
  %130 = add i32 %129, %.06384
  %131 = and i32 %130, 3
  switch i32 %131, label %133 [
    i32 0, label %136
    i32 1, label %132
  ]

132:                                              ; preds = %.lr.ph
  br label %136

133:                                              ; preds = %.lr.ph
  %134 = icmp eq i32 %131, 2
  %135 = select i1 %134, i64 %.06690, i64 %.06587
  br label %136

136:                                              ; preds = %.lr.ph, %132, %133
  %137 = phi i64 [ %.06792, %132 ], [ %135, %133 ], [ %.06294, %.lr.ph ]
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %137) #5
  %139 = load i8, ptr %138, align 1, !tbaa !5
  %140 = load i32, ptr %29, align 8, !tbaa !8
  %141 = mul i32 %140, %.06485
  %142 = add i32 %141, %.06384
  %143 = shl i32 %142, 2
  %144 = zext i32 %143 to i64
  %145 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %144) #5
  store i8 %139, ptr %145, align 1, !tbaa !5
  %146 = add nuw nsw i64 %137, 1
  %147 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %146) #5
  %148 = load i8, ptr %147, align 1, !tbaa !5
  %149 = load i32, ptr %29, align 8, !tbaa !8
  %150 = mul i32 %149, %.06485
  %151 = add i32 %150, %.06384
  %152 = shl i32 %151, 2
  %153 = or disjoint i32 %152, 1
  %154 = zext i32 %153 to i64
  %155 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %154) #5
  store i8 %148, ptr %155, align 1, !tbaa !5
  %156 = add nuw nsw i64 %137, 2
  %157 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %156) #5
  %158 = load i8, ptr %157, align 1, !tbaa !5
  %159 = load i32, ptr %29, align 8, !tbaa !8
  %160 = mul i32 %159, %.06485
  %161 = add i32 %160, %.06384
  %162 = shl i32 %161, 2
  %163 = or disjoint i32 %162, 2
  %164 = zext i32 %163 to i64
  %165 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %164) #5
  store i8 %158, ptr %165, align 1, !tbaa !5
  %166 = add nuw nsw i64 %137, 3
  %167 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %166) #5
  %168 = load i8, ptr %167, align 1, !tbaa !5
  %169 = load i32, ptr %29, align 8, !tbaa !8
  %170 = mul i32 %169, %.06485
  %171 = add i32 %170, %.06384
  %172 = shl i32 %171, 2
  %173 = or disjoint i32 %172, 3
  %174 = zext i32 %173 to i64
  %175 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %174) #5
  store i8 %168, ptr %175, align 1, !tbaa !5
  %176 = add nuw i32 %.06384, 1
  %177 = load i32, ptr %29, align 8, !tbaa !8
  %178 = icmp ult i32 %176, %177
  br i1 %178, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !24

179:                                              ; preds = %._crit_edge86
  %180 = add i64 %.06587, 4
  %181 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %182 = icmp ult i64 %180, %181
  br i1 %182, label %.preheader79, label %._crit_edge89, !llvm.loop !25

183:                                              ; preds = %._crit_edge86
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %258

.preheader76:                                     ; preds = %.preheader77, %._crit_edge106
  %.060107 = phi i64 [ %189, %._crit_edge106 ], [ 0, %.preheader77 ]
  %185 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not116 = icmp eq i64 %185, 0
  br i1 %.not116, label %._crit_edge106, label %.preheader75

._crit_edge108:                                   ; preds = %._crit_edge106, %.preheader77
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  call void @_ZN5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #5
  ret void

186:                                              ; preds = %._crit_edge95
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %258

.preheader75:                                     ; preds = %.preheader76, %._crit_edge104
  %.059105 = phi i64 [ %194, %._crit_edge104 ], [ 0, %.preheader76 ]
  %188 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not117 = icmp eq i64 %188, 0
  br i1 %.not117, label %._crit_edge104, label %.preheader74

._crit_edge106:                                   ; preds = %._crit_edge104, %.preheader76
  %189 = add i64 %.060107, 4
  %190 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %191 = icmp ult i64 %189, %190
  br i1 %191, label %.preheader76, label %._crit_edge108, !llvm.loop !26

.preheader74:                                     ; preds = %.preheader75, %252
  %.058102 = phi i64 [ %253, %252 ], [ 0, %.preheader75 ]
  %192 = load i32, ptr %30, align 4, !tbaa !17
  %.not118 = icmp eq i32 %192, 0
  %193 = load i32, ptr %29, align 8
  %.not119 = icmp eq i32 %193, 0
  %or.cond125 = select i1 %.not118, i1 true, i1 %.not119
  br i1 %or.cond125, label %._crit_edge101, label %.preheader

._crit_edge104:                                   ; preds = %252, %.preheader75
  %194 = add i64 %.059105, 4
  %195 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %196 = icmp ult i64 %194, %195
  br i1 %196, label %.preheader75, label %._crit_edge106, !llvm.loop !27

.preheader:                                       ; preds = %.preheader74, %._crit_edge99
  %197 = phi i32 [ %199, %._crit_edge99 ], [ %192, %.preheader74 ]
  %198 = phi i32 [ %200, %._crit_edge99 ], [ %193, %.preheader74 ]
  %.057100 = phi i32 [ %201, %._crit_edge99 ], [ 0, %.preheader74 ]
  %.not120 = icmp eq i32 %198, 0
  br i1 %.not120, label %._crit_edge99, label %.lr.ph98

._crit_edge101:                                   ; preds = %._crit_edge99, %.preheader74
  invoke void @_Z11doCodecTestR5Image(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %252 unwind label %256

._crit_edge99.loopexit:                           ; preds = %.lr.ph98
  %.pre123 = load i32, ptr %30, align 4, !tbaa !17
  br label %._crit_edge99

._crit_edge99:                                    ; preds = %._crit_edge99.loopexit, %.preheader
  %199 = phi i32 [ %.pre123, %._crit_edge99.loopexit ], [ %197, %.preheader ]
  %200 = phi i32 [ %250, %._crit_edge99.loopexit ], [ 0, %.preheader ]
  %201 = add nuw i32 %.057100, 1
  %202 = icmp ult i32 %201, %199
  br i1 %202, label %.preheader, label %._crit_edge101, !llvm.loop !28

.lr.ph98:                                         ; preds = %.preheader, %.lr.ph98
  %203 = phi i32 [ %250, %.lr.ph98 ], [ %198, %.preheader ]
  %.05697 = phi i32 [ %249, %.lr.ph98 ], [ 0, %.preheader ]
  %204 = mul i32 %203, %.057100
  %205 = add i32 %204, %.05697
  %206 = urem i32 %205, 3
  %207 = icmp eq i32 %206, 0
  %208 = icmp eq i32 %206, 1
  %209 = select i1 %208, i64 %.059105, i64 %.058102
  %210 = select i1 %207, i64 %.060107, i64 %209
  %211 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %210) #5
  %212 = load i8, ptr %211, align 1, !tbaa !5
  %213 = load i32, ptr %29, align 8, !tbaa !8
  %214 = mul i32 %213, %.057100
  %215 = add i32 %214, %.05697
  %216 = shl i32 %215, 2
  %217 = zext i32 %216 to i64
  %218 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %217) #5
  store i8 %212, ptr %218, align 1, !tbaa !5
  %219 = or disjoint i64 %210, 1
  %220 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %219) #5
  %221 = load i8, ptr %220, align 1, !tbaa !5
  %222 = load i32, ptr %29, align 8, !tbaa !8
  %223 = mul i32 %222, %.057100
  %224 = add i32 %223, %.05697
  %225 = shl i32 %224, 2
  %226 = or disjoint i32 %225, 1
  %227 = zext i32 %226 to i64
  %228 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %227) #5
  store i8 %221, ptr %228, align 1, !tbaa !5
  %229 = or disjoint i64 %210, 2
  %230 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %229) #5
  %231 = load i8, ptr %230, align 1, !tbaa !5
  %232 = load i32, ptr %29, align 8, !tbaa !8
  %233 = mul i32 %232, %.057100
  %234 = add i32 %233, %.05697
  %235 = shl i32 %234, 2
  %236 = or disjoint i32 %235, 2
  %237 = zext i32 %236 to i64
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %237) #5
  store i8 %231, ptr %238, align 1, !tbaa !5
  %239 = or disjoint i64 %210, 3
  %240 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %239) #5
  %241 = load i8, ptr %240, align 1, !tbaa !5
  %242 = load i32, ptr %29, align 8, !tbaa !8
  %243 = mul i32 %242, %.057100
  %244 = add i32 %243, %.05697
  %245 = shl i32 %244, 2
  %246 = or disjoint i32 %245, 3
  %247 = zext i32 %246 to i64
  %248 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %247) #5
  store i8 %241, ptr %248, align 1, !tbaa !5
  %249 = add nuw i32 %.05697, 1
  %250 = load i32, ptr %29, align 8, !tbaa !8
  %251 = icmp ult i32 %249, %250
  br i1 %251, label %.lr.ph98, label %._crit_edge99.loopexit, !llvm.loop !29

252:                                              ; preds = %._crit_edge101
  %253 = add i64 %.058102, 4
  %254 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %255 = icmp ult i64 %253, %254
  br i1 %255, label %.preheader74, label %._crit_edge104, !llvm.loop !30

256:                                              ; preds = %._crit_edge101
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %258

258:                                              ; preds = %256, %186, %183, %107, %105, %103, %101, %99, %97, %95, %93, %91, %89, %87, %85, %83, %81, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61
  %.pn = phi { ptr, i32 } [ %184, %183 ], [ %257, %256 ], [ %187, %186 ], [ %108, %107 ], [ %106, %105 ], [ %104, %103 ], [ %102, %101 ], [ %100, %99 ], [ %98, %97 ], [ %96, %95 ], [ %94, %93 ], [ %92, %91 ], [ %90, %89 ], [ %88, %87 ], [ %86, %85 ], [ %84, %83 ], [ %82, %81 ], [ %80, %79 ], [ %78, %77 ], [ %76, %75 ], [ %74, %73 ], [ %72, %71 ], [ %70, %69 ], [ %68, %67 ], [ %66, %65 ], [ %64, %63 ], [ %62, %61 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %259

259:                                              ; preds = %258, %59
  %.pn.pn = phi { ptr, i32 } [ %.pn, %258 ], [ %60, %59 ]
  call void @_ZN5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn.pn
}

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass