; LLVM IR from venumb/ZSPACE :: cpp/depends/lodePNG/pngdetail.ll (Z14showColorStatsR4DataRK7Options)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Options = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.Data = type <{ %"class.std::__cxx11::basic_string", %"class.std::vector", %"class.std::vector", i32, i32, %"class.lodepng::State", i32, i8, [3 x i8] }>
%"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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [6 x i8], align 1
@__const._Z14showColorStatsR4DataRK7Options.min = external hidden unnamed_addr constant [4 x double], align 16
@.str.200 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [2 x i8], align 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) #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3hexRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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 noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14showColorStatsR4DataRK7Options(ptr noundef nonnull align 8 dereferenceable(605) %0, ptr noundef nonnull align 4 dereferenceable(36) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca [4 x double], align 16
  %17 = alloca [4 x double], align 16
  %18 = alloca [4 x double], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.Options, ptr %24, i32 0, i32 22
  %26 = load i8, ptr %25, align 1, !tbaa !9, !range !15, !noundef !16
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %29

28:                                               ; preds = %2
  br label %30

29:                                               ; preds = %2
  br label %30

30:                                               ; preds = %29, %28
  %31 = phi ptr [ @_ZSt3hexRSt8ios_base, %28 ], [ @_ZSt3decRSt8ios_base, %29 ]
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.Data, ptr %33, i32 0, i32 2
  store ptr %34, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Data, ptr %35, i32 0, i32 3
  store ptr %36, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Data, ptr %37, i32 0, i32 4
  store ptr %38, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4Data10loadPixelsEv(ptr noundef nonnull align 8 dereferenceable(605) %39)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Data, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %41, align 8, !tbaa !17
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %30
  store i32 1, ptr %8, align 4
  br label %275

45:                                               ; preds = %30
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Options, ptr %46, i32 0, i32 0
  %48 = load i8, ptr %47, align 4, !tbaa !37, !range !15, !noundef !16
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %59

50:                                               ; preds = %45
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.196)
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !38
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !38
  %56 = mul i32 %53, %55
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %51, i32 noundef %56)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %59

59:                                               ; preds = %50, %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.197)
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %61)
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !38
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 4, !tbaa !38
  %66 = invoke noundef i64 @_Z11countColorsSt6vectorIhSaIhEEjjPmS2_S2_S2_(ptr noundef %13, i32 noundef %63, i32 noundef %65, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
          to label %67 unwind label %98

67:                                               ; preds = %59
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %60, i64 noundef %66)
          to label %69 unwind label %98

69:                                               ; preds = %67
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.198)
  %71 = load i64, ptr %9, align 8, !tbaa !39
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %70, i64 noundef %71)
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @.str.172)
  %74 = load i64, ptr %10, align 8, !tbaa !39
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %73, i64 noundef %74)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @.str.173)
  %77 = load i64, ptr %11, align 8, !tbaa !39
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %76, i64 noundef %77)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str.199)
  %80 = load i64, ptr %12, align 8, !tbaa !39
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %79, i64 noundef %80)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @.str.10)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !38
  %86 = icmp ugt i32 %85, 0
  br i1 %86, label %87, label %274

87:                                               ; preds = %69
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !38
  %90 = icmp ugt i32 %89, 0
  br i1 %90, label %91, label %274

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #7
  call void @llvm.memset.p0.i64(ptr align 16 %16, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const._Z14showColorStatsR4DataRK7Options.min, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 16 %18, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !38
  br label %92

92:                                               ; preds = %181, %91
  %93 = load i32, ptr %19, align 4, !tbaa !38
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !38
  %96 = icmp ult i32 %93, %95
  br i1 %96, label %102, label %97

97:                                               ; preds = %92
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %184

98:                                               ; preds = %67, %59
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %14, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %15, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %278

102:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !38
  br label %103

103:                                              ; preds = %177, %102
  %104 = load i32, ptr %20, align 4, !tbaa !38
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !38
  %107 = icmp ult i32 %104, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %103
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %180

109:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !38
  br label %110

110:                                              ; preds = %173, %109
  %111 = load i32, ptr %21, align 4, !tbaa !38
  %112 = icmp slt i32 %111, 4
  br i1 %112, label %114, label %113

113:                                              ; preds = %110
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %176

114:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load i32, ptr %19, align 4, !tbaa !38
  %117 = mul i32 %116, 8
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !38
  %120 = mul i32 %117, %119
  %121 = load i32, ptr %20, align 4, !tbaa !38
  %122 = mul i32 %121, 8
  %123 = add i32 %120, %122
  %124 = load i32, ptr %21, align 4, !tbaa !38
  %125 = mul nsw i32 %124, 2
  %126 = add i32 %123, %125
  %127 = zext i32 %126 to i64
  %128 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %127) #7
  %129 = load i8, ptr %128, align 1, !tbaa !40
  %130 = zext i8 %129 to i32
  %131 = mul nsw i32 256, %130
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load i32, ptr %19, align 4, !tbaa !38
  %134 = mul i32 %133, 8
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !38
  %137 = mul i32 %134, %136
  %138 = load i32, ptr %20, align 4, !tbaa !38
  %139 = mul i32 %138, 8
  %140 = add i32 %137, %139
  %141 = load i32, ptr %21, align 4, !tbaa !38
  %142 = mul nsw i32 %141, 2
  %143 = add i32 %140, %142
  %144 = add i32 %143, 1
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %145) #7
  %147 = load i8, ptr %146, align 1, !tbaa !40
  %148 = zext i8 %147 to i32
  %149 = add nsw i32 %131, %148
  %150 = sitofp i32 %149 to double
  store double %150, ptr %22, align 8, !tbaa !41
  %151 = load double, ptr %22, align 8, !tbaa !41
  %152 = load i32, ptr %21, align 4, !tbaa !38
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [4 x double], ptr %16, i64 0, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !41
  %156 = fadd double %155, %151
  store double %156, ptr %154, align 8, !tbaa !41
  %157 = load i32, ptr %21, align 4, !tbaa !38
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [4 x double], ptr %17, i64 0, i64 %158
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %161 = load double, ptr %160, align 8, !tbaa !41
  %162 = load i32, ptr %21, align 4, !tbaa !38
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [4 x double], ptr %17, i64 0, i64 %163
  store double %161, ptr %164, align 8, !tbaa !41
  %165 = load i32, ptr %21, align 4, !tbaa !38
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [4 x double], ptr %18, i64 0, i64 %166
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %169 = load double, ptr %168, align 8, !tbaa !41
  %170 = load i32, ptr %21, align 4, !tbaa !38
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [4 x double], ptr %18, i64 0, i64 %171
  store double %169, ptr %172, align 8, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %173

173:                                              ; preds = %114
  %174 = load i32, ptr %21, align 4, !tbaa !38
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %21, align 4, !tbaa !38
  br label %110, !llvm.loop !43

176:                                              ; preds = %113
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %20, align 4, !tbaa !38
  %179 = add i32 %178, 1
  store i32 %179, ptr %20, align 4, !tbaa !38
  br label %103, !llvm.loop !45

180:                                              ; preds = %108
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %19, align 4, !tbaa !38
  %183 = add i32 %182, 1
  store i32 %183, ptr %19, align 4, !tbaa !38
  br label %92, !llvm.loop !46

184:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !38
  br label %185

185:                                              ; preds = %212, %184
  %186 = load i32, ptr %23, align 4, !tbaa !38
  %187 = icmp slt i32 %186, 4
  br i1 %187, label %189, label %188

188:                                              ; preds = %185
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %215

189:                                              ; preds = %185
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = load i32, ptr %190, align 4, !tbaa !38
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !38
  %194 = mul i32 %191, %193
  %195 = uitofp i32 %194 to double
  %196 = fmul double %195, 2.570000e+02
  %197 = load i32, ptr %23, align 4, !tbaa !38
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [4 x double], ptr %16, i64 0, i64 %198
  %200 = load double, ptr %199, align 8, !tbaa !41
  %201 = fdiv double %200, %196
  store double %201, ptr %199, align 8, !tbaa !41
  %202 = load i32, ptr %23, align 4, !tbaa !38
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [4 x double], ptr %17, i64 0, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !41
  %206 = fdiv double %205, 2.570000e+02
  store double %206, ptr %204, align 8, !tbaa !41
  %207 = load i32, ptr %23, align 4, !tbaa !38
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [4 x double], ptr %18, i64 0, i64 %208
  %210 = load double, ptr %209, align 8, !tbaa !41
  %211 = fdiv double %210, 2.570000e+02
  store double %211, ptr %209, align 8, !tbaa !41
  br label %212

212:                                              ; preds = %189
  %213 = load i32, ptr %23, align 4, !tbaa !38
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %23, align 4, !tbaa !38
  br label %185, !llvm.loop !47

215:                                              ; preds = %188
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.Options, ptr %216, i32 0, i32 0
  %218 = load i8, ptr %217, align 4, !tbaa !37, !range !15, !noundef !16
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %223

220:                                              ; preds = %215
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.200)
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %223

223:                                              ; preds = %220, %215
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.201)
  %225 = getelementptr inbounds [4 x double], ptr %16, i64 0, i64 0
  %226 = load double, ptr %225, align 16, !tbaa !41
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %224, double noundef %226)
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef @.str.39)
  %229 = getelementptr inbounds [4 x double], ptr %16, i64 0, i64 1
  %230 = load double, ptr %229, align 8, !tbaa !41
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %228, double noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @.str.39)
  %233 = getelementptr inbounds [4 x double], ptr %16, i64 0, i64 2
  %234 = load double, ptr %233, align 16, !tbaa !41
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %232, double noundef %234)
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @.str.39)
  %237 = getelementptr inbounds [4 x double], ptr %16, i64 0, i64 3
  %238 = load double, ptr %237, align 8, !tbaa !41
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %236, double noundef %238)
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.202)
  %242 = getelementptr inbounds [4 x double], ptr %17, i64 0, i64 0
  %243 = load double, ptr %242, align 16, !tbaa !41
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %241, double noundef %243)
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef @.str.203)
  %246 = getelementptr inbounds [4 x double], ptr %18, i64 0, i64 0
  %247 = load double, ptr %246, align 16, !tbaa !41
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %245, double noundef %247)
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef @.str.39)
  %250 = getelementptr inbounds [4 x double], ptr %17, i64 0, i64 1
  %251 = load double, ptr %250, align 8, !tbaa !41
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %249, double noundef %251)
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef @.str.203)
  %254 = getelementptr inbounds [4 x double], ptr %18, i64 0, i64 1
  %255 = load double, ptr %254, align 8, !tbaa !41
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %253, double noundef %255)
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef @.str.39)
  %258 = getelementptr inbounds [4 x double], ptr %17, i64 0, i64 2
  %259 = load double, ptr %258, align 16, !tbaa !41
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %257, double noundef %259)
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef @.str.203)
  %262 = getelementptr inbounds [4 x double], ptr %18, i64 0, i64 2
  %263 = load double, ptr %262, align 16, !tbaa !41
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %261, double noundef %263)
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef @.str.39)
  %266 = getelementptr inbounds [4 x double], ptr %17, i64 0, i64 3
  %267 = load double, ptr %266, align 8, !tbaa !41
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %265, double noundef %267)
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @.str.203)
  %270 = getelementptr inbounds [4 x double], ptr %18, i64 0, i64 3
  %271 = load double, ptr %270, align 8, !tbaa !41
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %269, double noundef %271)
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  br label %274

274:                                              ; preds = %223, %87, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  store i32 0, ptr %8, align 4
  br label %275

275:                                              ; preds = %274, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %276 = load i32, ptr %8, align 4
  switch i32 %276, label %283 [
    i32 0, label %277
    i32 1, label %277
  ]

277:                                              ; preds = %275, %275
  ret void

278:                                              ; preds = %98
  %279 = load ptr, ptr %14, align 8
  %280 = load i32, ptr %15, align 4
  %281 = insertvalue { ptr, i32 } poison, ptr %279, 0
  %282 = insertvalue { ptr, i32 } %281, i32 %280, 1
  resume { ptr, i32 } %282

283:                                              ; preds = %275
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [6 x i8], align 1
@__const._Z14showColorStatsR4DataRK7Options.min = external hidden unnamed_addr constant [4 x double], align 16
@.str.200 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [2 x i8], align 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 #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3hexRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #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 noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14showColorStatsR4DataRK7Options(ptr noundef nonnull align 8 dereferenceable(605) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(36) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca [4 x double], align 16
  %9 = alloca [4 x double], align 16
  %10 = alloca double, align 8
  %11 = getelementptr inbounds i8, ptr %1, i64 35
  %12 = load i8, ptr %11, align 1, !tbaa !5, !range !13, !noundef !14
  %13 = trunc nuw i8 %12 to i1
  %_ZSt3hexRSt8ios_base._ZSt3decRSt8ios_base = select i1 %13, ptr @_ZSt3hexRSt8ios_base, ptr @_ZSt3decRSt8ios_base
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %_ZSt3hexRSt8ios_base._ZSt3decRSt8ios_base)
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  %17 = getelementptr inbounds i8, ptr %0, i64 84
  tail call void @_ZN4Data10loadPixelsEv(ptr noundef nonnull align 8 dereferenceable(605) %0)
  %18 = getelementptr inbounds i8, ptr %0, i64 600
  %19 = load i32, ptr %18, align 8, !tbaa !15
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %20, label %235

20:                                               ; preds = %2
  %21 = load i8, ptr %1, align 4, !tbaa !36, !range !13, !noundef !14
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %23, label %30

23:                                               ; preds = %20
  %24 = 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.196)
  %25 = load i32, ptr %16, align 8, !tbaa !37
  %26 = load i32, ptr %17, align 4, !tbaa !37
  %27 = mul i32 %26, %25
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %27)
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %30

30:                                               ; preds = %23, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %31 = 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.197)
  call void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %32 = load i32, ptr %16, align 8, !tbaa !37
  %33 = load i32, ptr %17, align 4, !tbaa !37
  %34 = invoke noundef i64 @_Z11countColorsSt6vectorIhSaIhEEjjPmS2_S2_S2_(ptr noundef nonnull %7, i32 noundef %32, i32 noundef %33, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %35 unwind label %89

35:                                               ; preds = %30
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %34)
          to label %37 unwind label %89

37:                                               ; preds = %35
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %38 = 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.198)
  %39 = load i64, ptr %3, align 8, !tbaa !38
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %38, i64 noundef %39)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @.str.172)
  %42 = load i64, ptr %4, align 8, !tbaa !38
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @.str.173)
  %45 = load i64, ptr %5, align 8, !tbaa !38
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %44, i64 noundef %45)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.199)
  %48 = load i64, ptr %6, align 8, !tbaa !38
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %47, i64 noundef %48)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.10)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %52 = load i32, ptr %16, align 8, !tbaa !37
  %.not49 = icmp eq i32 %52, 0
  %53 = load i32, ptr %17, align 4
  %.not50 = icmp eq i32 %53, 0
  %or.cond = select i1 %.not49, i1 true, i1 %.not50
  br i1 %or.cond, label %234, label %.preheader52.preheader

.preheader52.preheader:                           ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) @__const._Z14showColorStatsR4DataRK7Options.min, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %9, i8 0, i64 32, i1 false)
  %54 = getelementptr inbounds i8, ptr %8, i64 8
  %55 = getelementptr inbounds i8, ptr %9, i64 8
  %56 = getelementptr inbounds i8, ptr %8, i64 16
  %57 = getelementptr inbounds i8, ptr %9, i64 16
  %58 = getelementptr inbounds i8, ptr %8, i64 24
  %59 = getelementptr inbounds i8, ptr %9, i64 24
  br label %.preheader52

.preheader52:                                     ; preds = %.preheader52.preheader, %._crit_edge
  %60 = phi double [ 0.000000e+00, %.preheader52.preheader ], [ %190, %._crit_edge ]
  %61 = phi i32 [ %53, %.preheader52.preheader ], [ %191, %._crit_edge ]
  %62 = phi i32 [ %52, %.preheader52.preheader ], [ %192, %._crit_edge ]
  %63 = phi i32 [ %52, %.preheader52.preheader ], [ %193, %._crit_edge ]
  %.sroa.0.0 = phi double [ 0.000000e+00, %.preheader52.preheader ], [ %.sroa.0.3, %._crit_edge ]
  %.sroa.8.0 = phi double [ 0.000000e+00, %.preheader52.preheader ], [ %.sroa.8.3, %._crit_edge ]
  %.sroa.13.0 = phi double [ 0.000000e+00, %.preheader52.preheader ], [ %.sroa.13.3, %._crit_edge ]
  %.sroa.18.0 = phi double [ 0.000000e+00, %.preheader52.preheader ], [ %.sroa.18.3, %._crit_edge ]
  %.04855 = phi i32 [ 0, %.preheader52.preheader ], [ %194, %._crit_edge ]
  %.not59 = icmp eq i32 %63, 0
  br i1 %.not59, label %._crit_edge, label %.preheader51.lr.ph

.preheader51.lr.ph:                               ; preds = %.preheader52
  %64 = shl i32 %.04855, 3
  br label %.preheader51

.preheader:                                       ; preds = %._crit_edge
  %.phi.trans.insert74 = getelementptr inbounds i8, ptr %9, i64 16
  %65 = load <2 x double>, ptr %.phi.trans.insert74, align 16
  %66 = mul i32 %192, %191
  %67 = uitofp i32 %66 to double
  %68 = fmul double %67, 2.570000e+02
  %69 = fdiv double %.sroa.0.3, %68
  %70 = fdiv double %.sroa.8.3, %68
  %71 = getelementptr inbounds i8, ptr %8, i64 8
  %72 = load <2 x double>, ptr %8, align 16, !tbaa !39
  %73 = fdiv <2 x double> %72, <double 2.570000e+02, double 2.570000e+02>
  store <2 x double> %73, ptr %8, align 16, !tbaa !39
  %74 = getelementptr inbounds i8, ptr %9, i64 8
  %75 = load <2 x double>, ptr %9, align 16, !tbaa !39
  %76 = fdiv <2 x double> %75, <double 2.570000e+02, double 2.570000e+02>
  store <2 x double> %76, ptr %9, align 16, !tbaa !39
  %77 = fdiv double %.sroa.13.3, %68
  %78 = getelementptr inbounds i8, ptr %8, i64 16
  %79 = getelementptr inbounds i8, ptr %9, i64 16
  %80 = fdiv double %.sroa.18.3, %68
  %81 = getelementptr inbounds i8, ptr %8, i64 24
  %82 = load <2 x double>, ptr %78, align 16, !tbaa !39
  %83 = fdiv <2 x double> %82, <double 2.570000e+02, double 2.570000e+02>
  store <2 x double> %83, ptr %78, align 16, !tbaa !39
  %84 = getelementptr inbounds i8, ptr %9, i64 24
  %85 = insertelement <2 x double> %65, double %190, i64 1
  %86 = fdiv <2 x double> %85, <double 2.570000e+02, double 2.570000e+02>
  store <2 x double> %86, ptr %79, align 16, !tbaa !39
  %87 = load i8, ptr %1, align 4, !tbaa !36, !range !13, !noundef !14
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %196, label %199

89:                                               ; preds = %35, %30
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %90

.preheader51:                                     ; preds = %.preheader51.lr.ph, %.preheader51
  %91 = phi i32 [ %62, %.preheader51.lr.ph ], [ %188, %.preheader51 ]
  %.sroa.0.2 = phi double [ %.sroa.0.0, %.preheader51.lr.ph ], [ %110, %.preheader51 ]
  %.sroa.8.2 = phi double [ %.sroa.8.0, %.preheader51.lr.ph ], [ %134, %.preheader51 ]
  %.sroa.13.2 = phi double [ %.sroa.13.0, %.preheader51.lr.ph ], [ %158, %.preheader51 ]
  %.sroa.18.2 = phi double [ %.sroa.18.0, %.preheader51.lr.ph ], [ %182, %.preheader51 ]
  %.04754 = phi i32 [ 0, %.preheader51.lr.ph ], [ %187, %.preheader51 ]
  %92 = shl i32 %.04754, 3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %93 = mul i32 %91, %64
  %94 = add i32 %93, %92
  %95 = zext i32 %94 to i64
  %96 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %95) #7
  %97 = load i8, ptr %96, align 1, !tbaa !41
  %98 = zext i8 %97 to i32
  %99 = shl nuw nsw i32 %98, 8
  %100 = load i32, ptr %16, align 8, !tbaa !37
  %101 = mul i32 %100, %64
  %102 = add i32 %101, %92
  %103 = or disjoint i32 %102, 1
  %104 = zext i32 %103 to i64
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %104) #7
  %106 = load i8, ptr %105, align 1, !tbaa !41
  %107 = zext i8 %106 to i32
  %108 = or disjoint i32 %99, %107
  %109 = uitofp nneg i32 %108 to double
  store double %109, ptr %10, align 8, !tbaa !39
  %110 = fadd double %.sroa.0.2, %109
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %112 = load double, ptr %111, align 8, !tbaa !39
  store double %112, ptr %8, align 16, !tbaa !39
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %114 = load double, ptr %113, align 8, !tbaa !39
  store double %114, ptr %9, align 16, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %115 = load i32, ptr %16, align 8, !tbaa !37
  %116 = mul i32 %115, %64
  %117 = add i32 %116, %92
  %118 = or disjoint i32 %117, 2
  %119 = zext i32 %118 to i64
  %120 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %119) #7
  %121 = load i8, ptr %120, align 1, !tbaa !41
  %122 = zext i8 %121 to i32
  %123 = shl nuw nsw i32 %122, 8
  %124 = load i32, ptr %16, align 8, !tbaa !37
  %125 = mul i32 %124, %64
  %126 = add i32 %125, %92
  %127 = or disjoint i32 %126, 3
  %128 = zext i32 %127 to i64
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %128) #7
  %130 = load i8, ptr %129, align 1, !tbaa !41
  %131 = zext i8 %130 to i32
  %132 = or disjoint i32 %123, %131
  %133 = uitofp nneg i32 %132 to double
  store double %133, ptr %10, align 8, !tbaa !39
  %134 = fadd double %.sroa.8.2, %133
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %136 = load double, ptr %135, align 8, !tbaa !39
  store double %136, ptr %54, align 8, !tbaa !39
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %138 = load double, ptr %137, align 8, !tbaa !39
  store double %138, ptr %55, align 8, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %139 = load i32, ptr %16, align 8, !tbaa !37
  %140 = mul i32 %139, %64
  %141 = add i32 %140, %92
  %142 = or disjoint i32 %141, 4
  %143 = zext i32 %142 to i64
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %143) #7
  %145 = load i8, ptr %144, align 1, !tbaa !41
  %146 = zext i8 %145 to i32
  %147 = shl nuw nsw i32 %146, 8
  %148 = load i32, ptr %16, align 8, !tbaa !37
  %149 = mul i32 %148, %64
  %150 = add i32 %149, %92
  %151 = or disjoint i32 %150, 5
  %152 = zext i32 %151 to i64
  %153 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %152) #7
  %154 = load i8, ptr %153, align 1, !tbaa !41
  %155 = zext i8 %154 to i32
  %156 = or disjoint i32 %147, %155
  %157 = uitofp nneg i32 %156 to double
  store double %157, ptr %10, align 8, !tbaa !39
  %158 = fadd double %.sroa.13.2, %157
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %160 = load double, ptr %159, align 8, !tbaa !39
  store double %160, ptr %56, align 16, !tbaa !39
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %162 = load double, ptr %161, align 8, !tbaa !39
  store double %162, ptr %57, align 16, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %163 = load i32, ptr %16, align 8, !tbaa !37
  %164 = mul i32 %163, %64
  %165 = add i32 %164, %92
  %166 = or disjoint i32 %165, 6
  %167 = zext i32 %166 to i64
  %168 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %167) #7
  %169 = load i8, ptr %168, align 1, !tbaa !41
  %170 = zext i8 %169 to i32
  %171 = shl nuw nsw i32 %170, 8
  %172 = load i32, ptr %16, align 8, !tbaa !37
  %173 = mul i32 %172, %64
  %174 = add i32 %173, %92
  %175 = or disjoint i32 %174, 7
  %176 = zext i32 %175 to i64
  %177 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %176) #7
  %178 = load i8, ptr %177, align 1, !tbaa !41
  %179 = zext i8 %178 to i32
  %180 = or disjoint i32 %171, %179
  %181 = uitofp nneg i32 %180 to double
  store double %181, ptr %10, align 8, !tbaa !39
  %182 = fadd double %.sroa.18.2, %181
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %184 = load double, ptr %183, align 8, !tbaa !39
  store double %184, ptr %58, align 8, !tbaa !39
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %186 = load double, ptr %185, align 8, !tbaa !39
  store double %186, ptr %59, align 8, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %187 = add nuw i32 %.04754, 1
  %188 = load i32, ptr %16, align 8, !tbaa !37
  %189 = icmp ult i32 %187, %188
  br i1 %189, label %.preheader51, label %._crit_edge.loopexit, !llvm.loop !42

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader52
  %190 = phi double [ %60, %.preheader52 ], [ %186, %._crit_edge.loopexit ]
  %191 = phi i32 [ %61, %.preheader52 ], [ %.pre, %._crit_edge.loopexit ]
  %192 = phi i32 [ %62, %.preheader52 ], [ %188, %._crit_edge.loopexit ]
  %193 = phi i32 [ 0, %.preheader52 ], [ %188, %._crit_edge.loopexit ]
  %.sroa.0.3 = phi double [ %.sroa.0.0, %.preheader52 ], [ %110, %._crit_edge.loopexit ]
  %.sroa.8.3 = phi double [ %.sroa.8.0, %.preheader52 ], [ %134, %._crit_edge.loopexit ]
  %.sroa.13.3 = phi double [ %.sroa.13.0, %.preheader52 ], [ %158, %._crit_edge.loopexit ]
  %.sroa.18.3 = phi double [ %.sroa.18.0, %.preheader52 ], [ %182, %._crit_edge.loopexit ]
  %194 = add nuw i32 %.04855, 1
  %195 = icmp ult i32 %194, %191
  br i1 %195, label %.preheader52, label %.preheader, !llvm.loop !44

196:                                              ; preds = %.preheader
  %197 = 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.200)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %199

199:                                              ; preds = %196, %.preheader
  %200 = 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.201)
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %200, double noundef %69)
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull @.str.39)
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %202, double noundef %70)
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull @.str.39)
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %204, double noundef %77)
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef nonnull @.str.39)
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %206, double noundef %80)
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %209 = 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.202)
  %210 = load double, ptr %8, align 16, !tbaa !39
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %209, double noundef %210)
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef nonnull @.str.203)
  %213 = load double, ptr %9, align 16, !tbaa !39
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %212, double noundef %213)
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef nonnull @.str.39)
  %216 = load double, ptr %71, align 8, !tbaa !39
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %215, double noundef %216)
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef nonnull @.str.203)
  %219 = load double, ptr %74, align 8, !tbaa !39
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %218, double noundef %219)
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %220, ptr noundef nonnull @.str.39)
  %222 = load double, ptr %78, align 16, !tbaa !39
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %221, double noundef %222)
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef nonnull @.str.203)
  %225 = load double, ptr %79, align 16, !tbaa !39
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %224, double noundef %225)
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull @.str.39)
  %228 = load double, ptr %81, align 8, !tbaa !39
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %227, double noundef %228)
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef nonnull @.str.203)
  %231 = load double, ptr %84, align 8, !tbaa !39
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %230, double noundef %231)
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %234

234:                                              ; preds = %199, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %235

235:                                              ; preds = %2, %234
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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


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