; LLVM IR from catid/Zpng :: apps (zpng_test)

; 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.ZPNG_ImageData = type { %struct.ZPNG_Buffer, i32, i32, i32, i32, i32 }
%struct.ZPNG_Buffer = type { ptr, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZL11kTestImages = external hidden global [110 x ptr], align 16
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @stbi_image_free(ptr noundef) #0

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

; 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z11GetTimeUsecv() #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.ZPNG_ImageData, align 8
  %15 = alloca %struct.ZPNG_Buffer, align 8
  %16 = alloca %struct.ZPNG_ImageData, align 8
  %17 = alloca %struct.ZPNG_Buffer, align 8
  store i32 0, ptr %1, align 4
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %201, %0
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 110
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  store i32 2, ptr %6, align 4
  br label %204

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [110 x ptr], ptr @_ZL11kTestImages, i64 0, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  store ptr %28, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %29 = call noundef i64 @_Z11GetTimeUsecv()
  store i64 %29, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %30 = load ptr, ptr %7, align 8, !tbaa !11
  %31 = call ptr @stbi_load(ptr noundef %30, ptr noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef 0)
  store ptr %31, ptr %12, align 8, !tbaa !11
  %32 = load ptr, ptr %12, align 8, !tbaa !11
  %33 = icmp ne ptr %32, null
  br i1 %33, label %39, label %34

34:                                               ; preds = %24
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %36 = load ptr, ptr %7, align 8, !tbaa !11
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef %36)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 4, ptr %6, align 4
  br label %198

39:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %40 = call noundef i64 @_Z11GetTimeUsecv()
  store i64 %40, ptr %13, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
  %42 = load ptr, ptr %7, align 8, !tbaa !11
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr 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 @.str.14)
  %45 = load i64, ptr %13, align 8, !tbaa !5
  %46 = load i64, ptr %8, align 8, !tbaa !5
  %47 = sub i64 %45, %46
  %48 = uitofp i64 %47 to float
  %49 = fdiv float %48, 1.000000e+03
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %44, float noundef %49)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.15)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #8
  %53 = load ptr, ptr %12, align 8, !tbaa !11
  %54 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 0
  %55 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %54, i32 0, i32 0
  store ptr %53, ptr %55, align 8, !tbaa !13
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = mul nsw i32 %56, %57
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 0
  %62 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %61, i32 0, i32 1
  store i32 %60, ptr %62, align 8, !tbaa !16
  %63 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 1
  store i32 1, ptr %63, align 8, !tbaa !17
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 2
  store i32 %64, ptr %65, align 4, !tbaa !18
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 4
  store i32 %66, ptr %67, align 4, !tbaa !19
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 3
  store i32 %68, ptr %69, align 8, !tbaa !20
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !18
  %73 = mul i32 %70, %72
  %74 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 5
  store i32 %73, ptr %74, align 8, !tbaa !21
  %75 = call noundef i64 @_Z11GetTimeUsecv()
  store i64 %75, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %76 = call { ptr, i32 } @ZPNG_Compress(ptr noundef %14)
  %77 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %78 = extractvalue { ptr, i32 } %76, 0
  store ptr %78, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %80 = extractvalue { ptr, i32 } %76, 1
  store i32 %80, ptr %79, align 8
  %81 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %15, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !22
  %83 = icmp ne ptr %82, null
  br i1 %83, label %87, label %84

84:                                               ; preds = %39
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 -2, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %197

87:                                               ; preds = %39
  %88 = call noundef i64 @_Z11GetTimeUsecv()
  store i64 %88, ptr %13, align 8, !tbaa !5
  %89 = load i64, ptr %13, align 8, !tbaa !5
  %90 = load i64, ptr %8, align 8, !tbaa !5
  %91 = sub i64 %89, %90
  %92 = load i64, ptr %2, align 8, !tbaa !5
  %93 = add i64 %92, %91
  store i64 %93, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %15, i32 0, i32 1
  %95 = load i32, ptr %94, align 8, !tbaa !23
  %96 = zext i32 %95 to i64
  %97 = load i64, ptr %4, align 8, !tbaa !5
  %98 = add i64 %97, %96
  store i64 %98, ptr %4, align 8, !tbaa !5
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
  %100 = load i64, ptr %13, align 8, !tbaa !5
  %101 = load i64, ptr %8, align 8, !tbaa !5
  %102 = sub i64 %100, %101
  %103 = uitofp i64 %102 to float
  %104 = fdiv float %103, 1.000000e+03
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %99, float noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.15)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
  %109 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %15, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !23
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %108, i32 noundef %110)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @.str.19)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %114 = call noundef i64 @_Z11GetTimeUsecv()
  store i64 %114, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !24
  %115 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %118 = load i32, ptr %117, align 8
  call void @ZPNG_Decompress(ptr dead_on_unwind writable sret(%struct.ZPNG_ImageData) align 8 %16, ptr %116, i32 %118)
  %119 = call noundef i64 @_Z11GetTimeUsecv()
  store i64 %119, ptr %13, align 8, !tbaa !5
  %120 = load i64, ptr %13, align 8, !tbaa !5
  %121 = load i64, ptr %8, align 8, !tbaa !5
  %122 = sub i64 %120, %121
  %123 = load i64, ptr %3, align 8, !tbaa !5
  %124 = add i64 %123, %122
  store i64 %124, ptr %3, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.20)
  %126 = load i64, ptr %13, align 8, !tbaa !5
  %127 = load i64, ptr %8, align 8, !tbaa !5
  %128 = sub i64 %126, %127
  %129 = uitofp i64 %128 to float
  %130 = fdiv float %129, 1.000000e+03
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %125, float noundef %130)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @.str.15)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %134 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 0
  %135 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %172

138:                                              ; preds = %87
  %139 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 1
  %140 = load i32, ptr %139, align 8, !tbaa !17
  %141 = icmp ne i32 %140, 1
  br i1 %141, label %172, label %142

142:                                              ; preds = %138
  %143 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 2
  %144 = load i32, ptr %143, align 4, !tbaa !18
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = icmp ne i32 %144, %145
  br i1 %146, label %172, label %147

147:                                              ; preds = %142
  %148 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 4
  %149 = load i32, ptr %148, align 4, !tbaa !19
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = icmp ne i32 %149, %150
  br i1 %151, label %172, label %152

152:                                              ; preds = %147
  %153 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 3
  %154 = load i32, ptr %153, align 8, !tbaa !20
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = icmp ne i32 %154, %155
  br i1 %156, label %172, label %157

157:                                              ; preds = %152
  %158 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 5
  %159 = load i32, ptr %158, align 8, !tbaa !21
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = mul nsw i32 %160, %161
  %163 = icmp ne i32 %159, %162
  br i1 %163, label %172, label %164

164:                                              ; preds = %157
  %165 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 0
  %166 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %165, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !16
  %168 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 0
  %169 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %168, i32 0, i32 1
  %170 = load i32, ptr %169, align 8, !tbaa !16
  %171 = icmp ne i32 %167, %170
  br i1 %171, label %172, label %175

172:                                              ; preds = %164, %157, %152, %147, %142, %138, %87
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.21)
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 -3, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %193

175:                                              ; preds = %164
  %176 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 0
  %177 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %176, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8, !tbaa !13
  %179 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 0
  %180 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !13
  %182 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %14, i32 0, i32 0
  %183 = getelementptr inbounds %struct.ZPNG_Buffer, ptr %182, i32 0, i32 1
  %184 = load i32, ptr %183, align 8, !tbaa !16
  %185 = zext i32 %184 to i64
  %186 = call i32 @memcmp(ptr noundef %178, ptr noundef %181, i64 noundef %185) #9
  %187 = icmp ne i32 0, %186
  br i1 %187, label %188, label %191

188:                                              ; preds = %175
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.22)
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 -4, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %193

191:                                              ; preds = %175
  %192 = getelementptr inbounds %struct.ZPNG_ImageData, ptr %16, i32 0, i32 0
  call void @ZPNG_Free(ptr noundef %192)
  store i32 0, ptr %6, align 4
  br label %193

193:                                              ; preds = %191, %188, %172
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #8
  %194 = load i32, ptr %6, align 4
  switch i32 %194, label %197 [
    i32 0, label %195
  ]

195:                                              ; preds = %193
  %196 = load ptr, ptr %12, align 8, !tbaa !11
  call void @stbi_image_free(ptr noundef %196)
  call void @ZPNG_Free(ptr noundef %15)
  store i32 0, ptr %6, align 4
  br label %197

197:                                              ; preds = %195, %193, %84
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %198

198:                                              ; preds = %197, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  %199 = load i32, ptr %6, align 4
  switch i32 %199, label %204 [
    i32 0, label %200
    i32 4, label %201
  ]

200:                                              ; preds = %198
  br label %201

201:                                              ; preds = %200, %198
  %202 = load i32, ptr %5, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %5, align 4, !tbaa !9
  br label %20, !llvm.loop !25

204:                                              ; preds = %198, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  %205 = load i32, ptr %6, align 4
  switch i32 %205, label %221 [
    i32 2, label %206
  ]

206:                                              ; preds = %204
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.23)
  %208 = load i64, ptr %4, align 8, !tbaa !5
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %207, i64 noundef %208)
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.24)
  %212 = load i64, ptr %2, align 8, !tbaa !5
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %211, i64 noundef %212)
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %213, ptr noundef @.str.25)
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.26)
  %217 = load i64, ptr %3, align 8, !tbaa !5
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %216, i64 noundef %217)
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %218, ptr noundef @.str.25)
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %221

221:                                              ; preds = %206, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %222 = load i32, ptr %1, align 4
  ret i32 %222
}

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

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

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

declare { ptr, i32 } @ZPNG_Compress(ptr noundef) #6

; 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

declare void @ZPNG_Decompress(ptr dead_on_unwind writable sret(%struct.ZPNG_ImageData) align 8, ptr, i32) #6

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #7

declare void @ZPNG_Free(ptr noundef) #6

; 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

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

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS14ZPNG_ImageData", !15, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!15 = !{!"_ZTS11ZPNG_Buffer", !12, i64 0, !10, i64 8}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !10, i64 16}
!18 = !{!14, !10, i64 20}
!19 = !{!14, !10, i64 28}
!20 = !{!14, !10, i64 24}
!21 = !{!14, !10, i64 32}
!22 = !{!15, !12, i64 0}
!23 = !{!15, !10, i64 8}
!24 = !{i64 0, i64 8, !11, i64 8, i64 4, !9}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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.ZPNG_ImageData = type { %struct.ZPNG_Buffer, i32, i32, i32, i32, i32 }
%struct.ZPNG_Buffer = type { ptr, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZL11kTestImages = external hidden local_unnamed_addr global [110 x ptr], align 16
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @stbi_image_free(ptr noundef) local_unnamed_addr #0

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

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z11GetTimeUsecv() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -4, 1) i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.ZPNG_ImageData, align 8
  %5 = alloca %struct.ZPNG_Buffer, align 8
  %6 = alloca %struct.ZPNG_ImageData, align 8
  %7 = 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.11)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %9 = getelementptr inbounds i8, ptr %4, i64 8
  %10 = getelementptr inbounds i8, ptr %4, i64 16
  %11 = getelementptr inbounds i8, ptr %4, i64 20
  %12 = getelementptr inbounds i8, ptr %4, i64 28
  %13 = getelementptr inbounds i8, ptr %4, i64 24
  %14 = getelementptr inbounds i8, ptr %4, i64 32
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  %16 = getelementptr inbounds i8, ptr %6, i64 16
  %17 = getelementptr inbounds i8, ptr %6, i64 20
  %18 = getelementptr inbounds i8, ptr %6, i64 28
  %19 = getelementptr inbounds i8, ptr %6, i64 24
  %20 = getelementptr inbounds i8, ptr %6, i64 32
  %21 = getelementptr inbounds i8, ptr %6, i64 8
  br label %22

22:                                               ; preds = %0, %106
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %106 ]
  %.03199 = phi i64 [ 0, %0 ], [ %.23370, %106 ]
  %.03598 = phi i64 [ 0, %0 ], [ %.23769, %106 ]
  %.03997 = phi i64 [ 0, %0 ], [ %.24168, %106 ]
  %23 = getelementptr inbounds [110 x ptr], ptr @_ZL11kTestImages, i64 0, i64 %indvars.iv
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = call noundef i64 @_Z11GetTimeUsecv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %26 = call ptr @stbi_load(ptr noundef %24, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 0)
  %.not = icmp eq ptr %26, null
  br i1 %.not, label %.thread62, label %30

.thread62:                                        ; preds = %22
  %27 = 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.12)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %24)
  %29 = 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_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %106

30:                                               ; preds = %22
  %31 = call noundef i64 @_Z11GetTimeUsecv()
  %32 = 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.13)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef %24)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.14)
  %35 = sub i64 %31, %25
  %36 = uitofp i64 %35 to float
  %37 = fdiv float %36, 1.000000e+03
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %34, float noundef %37)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @.str.15)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  store ptr %26, ptr %4, align 8, !tbaa !9
  %41 = load i32, ptr %1, align 4, !tbaa !13
  %42 = load i32, ptr %2, align 4, !tbaa !13
  %43 = load i32, ptr %3, align 4, !tbaa !13
  %44 = mul i32 %43, %41
  %45 = mul i32 %44, %42
  store i32 %45, ptr %9, align 8, !tbaa !14
  store i32 1, ptr %10, align 8, !tbaa !15
  store i32 %43, ptr %11, align 4, !tbaa !16
  store i32 %42, ptr %12, align 4, !tbaa !17
  store i32 %41, ptr %13, align 8, !tbaa !18
  store i32 %44, ptr %14, align 8, !tbaa !19
  %46 = call noundef i64 @_Z11GetTimeUsecv()
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %47 = call { ptr, i32 } @ZPNG_Compress(ptr noundef nonnull %4)
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %15, align 8
  %.not53 = icmp eq ptr %48, null
  br i1 %.not53, label %50, label %53

50:                                               ; preds = %30
  %51 = 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.16)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %107

53:                                               ; preds = %30
  %54 = call noundef i64 @_Z11GetTimeUsecv()
  %55 = sub i64 %54, %46
  %56 = add i64 %55, %.03199
  %57 = load i32, ptr %15, align 8, !tbaa !20
  %58 = zext i32 %57 to i64
  %59 = add i64 %.03997, %58
  %60 = 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.17)
  %61 = uitofp i64 %55 to float
  %62 = fdiv float %61, 1.000000e+03
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %60, float noundef %62)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.15)
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %66 = 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.18)
  %67 = load i32, ptr %15, align 8, !tbaa !20
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 noundef %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.19)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %71 = call noundef i64 @_Z11GetTimeUsecv()
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  %.sroa.0.0.copyload = load ptr, ptr %5, align 8, !tbaa !5
  %.sroa.2.0.copyload = load i32, ptr %15, align 8, !tbaa !13
  call void @ZPNG_Decompress(ptr dead_on_unwind nonnull writable sret(%struct.ZPNG_ImageData) align 8 %6, ptr %.sroa.0.0.copyload, i32 %.sroa.2.0.copyload)
  %72 = call noundef i64 @_Z11GetTimeUsecv()
  %73 = sub i64 %72, %71
  %74 = add i64 %73, %.03598
  %75 = 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.20)
  %76 = uitofp i64 %73 to float
  %77 = fdiv float %76, 1.000000e+03
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %75, float 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 nonnull @.str.15)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %81 = load ptr, ptr %6, align 8, !tbaa !9
  %82 = icmp eq ptr %81, null
  %83 = load i32, ptr %16, align 8
  %84 = icmp ne i32 %83, 1
  %or.cond = select i1 %82, i1 true, i1 %84
  br i1 %or.cond, label %.thread, label %85

85:                                               ; preds = %53
  %86 = load i32, ptr %17, align 4, !tbaa !16
  %87 = load i32, ptr %3, align 4, !tbaa !13
  %.not54 = icmp eq i32 %86, %87
  br i1 %.not54, label %88, label %.thread

88:                                               ; preds = %85
  %89 = load i32, ptr %18, align 4, !tbaa !17
  %90 = load i32, ptr %2, align 4, !tbaa !13
  %.not55 = icmp eq i32 %89, %90
  br i1 %.not55, label %91, label %.thread

91:                                               ; preds = %88
  %92 = load i32, ptr %19, align 8, !tbaa !18
  %93 = load i32, ptr %1, align 4, !tbaa !13
  %.not56 = icmp eq i32 %92, %93
  br i1 %.not56, label %94, label %.thread

94:                                               ; preds = %91
  %95 = load i32, ptr %20, align 8, !tbaa !19
  %96 = mul nsw i32 %92, %86
  %.not57 = icmp eq i32 %95, %96
  br i1 %.not57, label %97, label %.thread

97:                                               ; preds = %94
  %98 = load i32, ptr %21, align 8, !tbaa !14
  %99 = load i32, ptr %9, align 8, !tbaa !14
  %.not58 = icmp eq i32 %98, %99
  br i1 %.not58, label %100, label %.thread

100:                                              ; preds = %97
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = zext i32 %98 to i64
  %bcmp = call i32 @bcmp(ptr %101, ptr nonnull %81, i64 %102)
  %.not59 = icmp eq i32 %bcmp, 0
  br i1 %.not59, label %105, label %.thread

.thread:                                          ; preds = %100, %53, %85, %88, %91, %94, %97
  %.str.21.sink = phi ptr [ @.str.21, %97 ], [ @.str.21, %94 ], [ @.str.21, %91 ], [ @.str.21, %88 ], [ @.str.21, %85 ], [ @.str.21, %53 ], [ @.str.22, %100 ]
  %.1.ph = phi i32 [ -3, %97 ], [ -3, %94 ], [ -3, %91 ], [ -3, %88 ], [ -3, %85 ], [ -3, %53 ], [ -4, %100 ]
  %103 = 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.21.sink)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  br label %107

105:                                              ; preds = %100
  call void @ZPNG_Free(ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @stbi_image_free(ptr noundef nonnull %26)
  call void @ZPNG_Free(ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %106

106:                                              ; preds = %105, %.thread62
  %.23370 = phi i64 [ %.03199, %.thread62 ], [ %56, %105 ]
  %.23769 = phi i64 [ %.03598, %.thread62 ], [ %74, %105 ]
  %.24168 = phi i64 [ %.03997, %.thread62 ], [ %59, %105 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, 110
  br i1 %exitcond, label %108, label %22, !llvm.loop !21

107:                                              ; preds = %50, %.thread
  %.2.ph = phi i32 [ %.1.ph, %.thread ], [ -2, %50 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %120

108:                                              ; preds = %106
  %109 = 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.23)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %109, i64 noundef %.24168)
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %112 = 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.24)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %112, i64 noundef %.23370)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @.str.25)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %116 = 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.26)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %116, i64 noundef %.23769)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @.str.25)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %120

120:                                              ; preds = %107, %108
  %.5 = phi i32 [ 0, %108 ], [ %.2.ph, %107 ]
  ret i32 %.5
}

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

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

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

declare { ptr, i32 } @ZPNG_Compress(ptr noundef) local_unnamed_addr #5

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

declare void @ZPNG_Decompress(ptr dead_on_unwind writable sret(%struct.ZPNG_ImageData) align 8, ptr, i32) local_unnamed_addr #5

declare void @ZPNG_Free(ptr noundef) local_unnamed_addr #5

; 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: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #6

attributes #0 = { 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 #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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree nounwind willreturn memory(argmem: read) }
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, !6, i64 0}
!10 = !{!"_ZTS14ZPNG_ImageData", !11, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!11 = !{!"_ZTS11ZPNG_Buffer", !6, i64 0, !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !12, i64 8}
!15 = !{!10, !12, i64 16}
!16 = !{!10, !12, i64 20}
!17 = !{!10, !12, i64 28}
!18 = !{!10, !12, i64 24}
!19 = !{!10, !12, i64 32}
!20 = !{!11, !12, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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