; LLVM IR from niessner/Matterport :: code/gaps/pkgs/png (pngrutil)

; 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"

%struct.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i32, i32, ptr, i16, i16, [5 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, float, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, float, float, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, ptr, i8, i16, i16, i16, i32, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, %struct.png_unknown_chunk_t, i32, i32, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_row_info_struct = type { i32, i64, i8, i8, i8, i8 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_info_struct = type { i32, i32, i32, i64, ptr, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, [8 x i8], float, i8, i32, i32, ptr, %struct.png_time_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, %struct.png_color_16_struct, i32, i32, i8, i32, i32, i8, ptr, float, float, float, float, float, float, float, float, ptr, i32, i32, ptr, ptr, i8, i8, i32, ptr, i64, ptr, ptr, i32, i8, ptr, i32, i8, double, double, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_time_struct = type { i16, i8, i8, i8, i8, i8 }

@.str.46 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [28 x i8], align 1

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

declare void @png_error(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_crc_read(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_decompress_chunk(ptr noundef, i32 noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare void @png_warning(ptr noundef, ptr noundef) #1

declare void @png_free(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_iCCP(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca [50 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.png_struct_def, ptr %18, i32 0, i32 13
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = and i32 %20, 1
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %25, label %23

23:                                               ; preds = %3
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_error(ptr noundef %24, ptr noundef @.str.46)
  br label %46

25:                                               ; preds = %3
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.png_struct_def, ptr %26, i32 0, i32 13
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = and i32 %28, 4
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %36

31:                                               ; preds = %25
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %32, ptr noundef @.str.47)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = call i32 @png_crc_finish(ptr noundef %33, i32 noundef %34)
  store i32 1, ptr %16, align 4
  br label %241

36:                                               ; preds = %25
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.png_struct_def, ptr %37, i32 0, i32 13
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = and i32 %39, 2
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %36
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %43, ptr noundef @.str.48)
  br label %44

44:                                               ; preds = %42, %36
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45, %23
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %60

49:                                               ; preds = %46
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.png_info_struct, ptr %50, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !21
  %53 = and i32 %52, 4096
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %60

55:                                               ; preds = %49
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %56, ptr noundef @.str.49)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = call i32 @png_crc_finish(ptr noundef %57, i32 noundef %58)
  store i32 1, ptr %16, align 4
  br label %241

60:                                               ; preds = %49, %46
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.png_struct_def, ptr %62, i32 0, i32 136
  %64 = load ptr, ptr %63, align 8, !tbaa !25
  call void @png_free(ptr noundef %61, ptr noundef %64)
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = add i32 %66, 1
  %68 = zext i32 %67 to i64
  %69 = call ptr @png_malloc(ptr noundef %65, i64 noundef %68)
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.png_struct_def, ptr %70, i32 0, i32 136
  store ptr %69, ptr %71, align 8, !tbaa !25
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  store i64 %73, ptr %13, align 8, !tbaa !26
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.png_struct_def, ptr %75, i32 0, i32 136
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  %78 = load i64, ptr %13, align 8, !tbaa !26
  call void @png_crc_read(ptr noundef %74, ptr noundef %77, i64 noundef %78)
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = call i32 @png_crc_finish(ptr noundef %79, i32 noundef %80)
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %90

83:                                               ; preds = %60
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.png_struct_def, ptr %85, i32 0, i32 136
  %87 = load ptr, ptr %86, align 8, !tbaa !25
  call void @png_free(ptr noundef %84, ptr noundef %87)
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.png_struct_def, ptr %88, i32 0, i32 136
  store ptr null, ptr %89, align 8, !tbaa !25
  store i32 1, ptr %16, align 4
  br label %241

90:                                               ; preds = %60
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.png_struct_def, ptr %91, i32 0, i32 136
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  %94 = load i64, ptr %13, align 8, !tbaa !26
  %95 = getelementptr inbounds i8, ptr %93, i64 %94
  store i8 0, ptr %95, align 1, !tbaa !27
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.png_struct_def, ptr %96, i32 0, i32 136
  %98 = load ptr, ptr %97, align 8, !tbaa !25
  store ptr %98, ptr %9, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %104, %90
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load i8, ptr %100, align 1, !tbaa !27
  %102 = icmp ne i8 %101, 0
  br i1 %102, label %103, label %107

103:                                              ; preds = %99
  br label %104

104:                                              ; preds = %103
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i32 1
  store ptr %106, ptr %9, align 8, !tbaa !5
  br label %99, !llvm.loop !28

107:                                              ; preds = %99
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i32 1
  store ptr %109, ptr %9, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.png_struct_def, ptr %111, i32 0, i32 136
  %113 = load ptr, ptr %112, align 8, !tbaa !25
  %114 = load i64, ptr %13, align 8, !tbaa !26
  %115 = getelementptr inbounds i8, ptr %113, i64 %114
  %116 = getelementptr inbounds i8, ptr %115, i64 -1
  %117 = icmp uge ptr %110, %116
  br i1 %117, label %118, label %126

118:                                              ; preds = %107
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.png_struct_def, ptr %120, i32 0, i32 136
  %122 = load ptr, ptr %121, align 8, !tbaa !25
  call void @png_free(ptr noundef %119, ptr noundef %122)
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.png_struct_def, ptr %123, i32 0, i32 136
  store ptr null, ptr %124, align 8, !tbaa !25
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %125, ptr noundef @.str.50)
  store i32 1, ptr %16, align 4
  br label %241

126:                                              ; preds = %107
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i32 1
  store ptr %128, ptr %9, align 8, !tbaa !5
  %129 = load i8, ptr %127, align 1, !tbaa !27
  store i8 %129, ptr %7, align 1, !tbaa !27
  %130 = load i8, ptr %7, align 1, !tbaa !27
  %131 = icmp ne i8 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %126
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %133, ptr noundef @.str.51)
  store i8 0, ptr %7, align 1, !tbaa !27
  br label %134

134:                                              ; preds = %132, %126
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.png_struct_def, ptr %136, i32 0, i32 136
  %138 = load ptr, ptr %137, align 8, !tbaa !25
  %139 = ptrtoint ptr %135 to i64
  %140 = ptrtoint ptr %138 to i64
  %141 = sub i64 %139, %140
  store i64 %141, ptr %14, align 8, !tbaa !26
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = load i8, ptr %7, align 1, !tbaa !27
  %144 = zext i8 %143 to i32
  %145 = load i64, ptr %13, align 8, !tbaa !26
  %146 = load i64, ptr %14, align 8, !tbaa !26
  call void @png_decompress_chunk(ptr noundef %142, i32 noundef %144, i64 noundef %145, i64 noundef %146, ptr noundef %15)
  %147 = load i64, ptr %15, align 8, !tbaa !26
  %148 = load i64, ptr %14, align 8, !tbaa !26
  %149 = sub i64 %147, %148
  %150 = trunc i64 %149 to i32
  store i32 %150, ptr %12, align 4, !tbaa !9
  %151 = load i64, ptr %14, align 8, !tbaa !26
  %152 = load i64, ptr %15, align 8, !tbaa !26
  %153 = icmp ugt i64 %151, %152
  br i1 %153, label %157, label %154

154:                                              ; preds = %134
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = icmp ult i32 %155, 4
  br i1 %156, label %157, label %165

157:                                              ; preds = %154, %134
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.png_struct_def, ptr %159, i32 0, i32 136
  %161 = load ptr, ptr %160, align 8, !tbaa !25
  call void @png_free(ptr noundef %158, ptr noundef %161)
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.png_struct_def, ptr %162, i32 0, i32 136
  store ptr null, ptr %163, align 8, !tbaa !25
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %164, ptr noundef @.str.52)
  store i32 1, ptr %16, align 4
  br label %241

165:                                              ; preds = %154
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.png_struct_def, ptr %166, i32 0, i32 136
  %168 = load ptr, ptr %167, align 8, !tbaa !25
  %169 = load i64, ptr %14, align 8, !tbaa !26
  %170 = getelementptr inbounds i8, ptr %168, i64 %169
  store ptr %170, ptr %8, align 8, !tbaa !5
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = load i8, ptr %171, align 1, !tbaa !27
  %173 = zext i8 %172 to i32
  %174 = shl i32 %173, 24
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %175, i64 1
  %177 = load i8, ptr %176, align 1, !tbaa !27
  %178 = zext i8 %177 to i32
  %179 = shl i32 %178, 16
  %180 = or i32 %174, %179
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %181, i64 2
  %183 = load i8, ptr %182, align 1, !tbaa !27
  %184 = zext i8 %183 to i32
  %185 = shl i32 %184, 8
  %186 = or i32 %180, %185
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %187, i64 3
  %189 = load i8, ptr %188, align 1, !tbaa !27
  %190 = zext i8 %189 to i32
  %191 = or i32 %186, %190
  store i32 %191, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = icmp ult i32 %192, %193
  br i1 %194, label %195, label %197

195:                                              ; preds = %165
  %196 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %195, %165
  %198 = load i32, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = icmp ugt i32 %198, %199
  br i1 %200, label %201, label %221

201:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 50, ptr %17) #4
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.png_struct_def, ptr %203, i32 0, i32 136
  %205 = load ptr, ptr %204, align 8, !tbaa !25
  call void @png_free(ptr noundef %202, ptr noundef %205)
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.png_struct_def, ptr %206, i32 0, i32 136
  store ptr null, ptr %207, align 8, !tbaa !25
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %208, ptr noundef @.str.53)
  %209 = getelementptr inbounds [50 x i8], ptr %17, i64 0, i64 0
  %210 = load i32, ptr %11, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %209, i64 noundef 50, ptr noundef @.str.54, i64 noundef %211) #4
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds [50 x i8], ptr %17, i64 0, i64 0
  call void @png_warning(ptr noundef %213, ptr noundef %214)
  %215 = getelementptr inbounds [50 x i8], ptr %17, i64 0, i64 0
  %216 = load i32, ptr %12, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %215, i64 noundef 50, ptr noundef @.str.55, i64 noundef %217) #4
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds [50 x i8], ptr %17, i64 0, i64 0
  call void @png_warning(ptr noundef %219, ptr noundef %220)
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 50, ptr %17) #4
  br label %241

221:                                              ; preds = %197
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.png_struct_def, ptr %224, i32 0, i32 136
  %226 = load ptr, ptr %225, align 8, !tbaa !25
  %227 = load i8, ptr %7, align 1, !tbaa !27
  %228 = zext i8 %227 to i32
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.png_struct_def, ptr %229, i32 0, i32 136
  %231 = load ptr, ptr %230, align 8, !tbaa !25
  %232 = load i64, ptr %14, align 8, !tbaa !26
  %233 = getelementptr inbounds i8, ptr %231, i64 %232
  %234 = load i32, ptr %12, align 4, !tbaa !9
  call void @png_set_iCCP(ptr noundef %222, ptr noundef %223, ptr noundef %226, i32 noundef %228, ptr noundef %233, i32 noundef %234)
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.png_struct_def, ptr %236, i32 0, i32 136
  %238 = load ptr, ptr %237, align 8, !tbaa !25
  call void @png_free(ptr noundef %235, ptr noundef %238)
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.png_struct_def, ptr %239, i32 0, i32 136
  store ptr null, ptr %240, align 8, !tbaa !25
  store i32 0, ptr %16, align 4
  br label %241

241:                                              ; preds = %221, %201, %157, %118, %83, %55, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  %242 = load i32, ptr %16, align 4
  switch i32 %242, label %244 [
    i32 0, label %243
    i32 1, label %243
  ]

243:                                              ; preds = %241, %241
  ret void

244:                                              ; preds = %241
  unreachable
}

declare ptr @png_malloc(ptr noundef, i64 noundef) #1

declare void @png_set_iCCP(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 284}
!12 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !7, i64 280, !7, i64 281, !10, i64 284, !10, i64 288, !10, i64 292, !13, i64 296, !6, i64 408, !14, i64 416, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !14, i64 464, !14, i64 472, !10, i64 480, !10, i64 484, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !15, i64 536, !10, i64 560, !10, i64 564, !6, i64 568, !16, i64 576, !16, i64 578, !7, i64 580, !7, i64 585, !7, i64 586, !7, i64 587, !7, i64 588, !7, i64 589, !7, i64 590, !7, i64 591, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !16, i64 598, !7, i64 600, !17, i64 604, !18, i64 608, !18, i64 618, !6, i64 632, !10, i64 640, !10, i64 644, !10, i64 648, !17, i64 652, !17, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !19, i64 712, !19, i64 717, !6, i64 728, !18, i64 736, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !10, i64 824, !10, i64 828, !14, i64 832, !14, i64 840, !14, i64 848, !14, i64 856, !10, i64 864, !10, i64 868, !14, i64 872, !14, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !7, i64 928, !7, i64 929, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !10, i64 984, !6, i64 992, !6, i64 1000, !10, i64 1008, !6, i64 1016, !7, i64 1024, !16, i64 1026, !16, i64 1028, !16, i64 1030, !10, i64 1032, !10, i64 1036, !7, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !7, i64 1104, !10, i64 1108, !10, i64 1112, !10, i64 1116, !20, i64 1120, !10, i64 1152, !10, i64 1156, !6, i64 1160, !10, i64 1168}
!13 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !14, i64 16, !6, i64 24, !10, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !14, i64 96, !14, i64 104}
!14 = !{!"long", !7, i64 0}
!15 = !{!"png_row_info_struct", !10, i64 0, !14, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!16 = !{!"short", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!"png_color_16_struct", !7, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8}
!19 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!20 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !14, i64 16, !7, i64 24}
!21 = !{!22, !10, i64 8}
!22 = !{!"png_info_struct", !10, i64 0, !10, i64 4, !10, i64 8, !14, i64 16, !6, i64 24, !16, i64 32, !16, i64 34, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !17, i64 52, !7, i64 56, !10, i64 60, !10, i64 64, !6, i64 72, !23, i64 80, !19, i64 88, !6, i64 96, !18, i64 104, !18, i64 114, !10, i64 124, !10, i64 128, !7, i64 132, !10, i64 136, !10, i64 140, !7, i64 144, !6, i64 152, !17, i64 160, !17, i64 164, !17, i64 168, !17, i64 172, !17, i64 176, !17, i64 180, !17, i64 184, !17, i64 188, !6, i64 192, !10, i64 200, !10, i64 204, !6, i64 208, !6, i64 216, !7, i64 224, !7, i64 225, !10, i64 228, !6, i64 232, !14, i64 240, !6, i64 248, !6, i64 256, !10, i64 264, !7, i64 268, !6, i64 272, !10, i64 280, !7, i64 284, !24, i64 288, !24, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360}
!23 = !{!"png_time_struct", !16, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!24 = !{!"double", !7, i64 0}
!25 = !{!12, !6, i64 1160}
!26 = !{!14, !14, i64 0}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"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"

@.str.46 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [28 x i8], align 1

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

declare void @png_error(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_crc_read(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_decompress_chunk(ptr noundef, i32 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @png_warning(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @png_free(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_iCCP(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca i64, align 8
  %5 = alloca [50 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 284
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = and i32 %7, 1
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %10

9:                                                ; preds = %3
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.46) #5
  br label %17

10:                                               ; preds = %3
  %11 = and i32 %7, 4
  %.not93 = icmp eq i32 %11, 0
  br i1 %.not93, label %14, label %12

12:                                               ; preds = %10
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.47) #5
  %13 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  br label %87

14:                                               ; preds = %10
  %15 = and i32 %7, 2
  %.not94 = icmp eq i32 %15, 0
  br i1 %.not94, label %17, label %16

16:                                               ; preds = %14
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.48) #5
  br label %17

17:                                               ; preds = %16, %14, %9
  %.not95 = icmp eq ptr %1, null
  br i1 %.not95, label %24, label %18

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !19
  %21 = and i32 %20, 4096
  %.not96 = icmp eq i32 %21, 0
  br i1 %.not96, label %24, label %22

22:                                               ; preds = %18
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.49) #5
  %23 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  br label %87

24:                                               ; preds = %18, %17
  %25 = getelementptr inbounds i8, ptr %0, i64 1160
  %26 = load ptr, ptr %25, align 8, !tbaa !23
  tail call void @png_free(ptr noundef nonnull %0, ptr noundef %26) #5
  %27 = add i32 %2, 1
  %28 = zext i32 %27 to i64
  %29 = tail call ptr @png_malloc(ptr noundef nonnull %0, i64 noundef %28) #5
  store ptr %29, ptr %25, align 8, !tbaa !23
  %30 = zext i32 %2 to i64
  tail call void @png_crc_read(ptr noundef nonnull %0, ptr noundef %29, i64 noundef %30)
  %31 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef 0)
  %.not97 = icmp eq i32 %31, 0
  %32 = load ptr, ptr %25, align 8, !tbaa !23
  br i1 %.not97, label %34, label %33

33:                                               ; preds = %24
  tail call void @png_free(ptr noundef nonnull %0, ptr noundef %32) #5
  store ptr null, ptr %25, align 8, !tbaa !23
  br label %87

34:                                               ; preds = %24
  %35 = getelementptr inbounds i8, ptr %32, i64 %30
  store i8 0, ptr %35, align 1, !tbaa !24
  %36 = load ptr, ptr %25, align 8, !tbaa !23
  br label %37

37:                                               ; preds = %37, %34
  %.085 = phi ptr [ %36, %34 ], [ %39, %37 ]
  %38 = load i8, ptr %.085, align 1, !tbaa !24
  %.not98 = icmp eq i8 %38, 0
  %39 = getelementptr inbounds i8, ptr %.085, i64 1
  br i1 %.not98, label %40, label %37, !llvm.loop !25

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %36, i64 %30
  %42 = getelementptr inbounds i8, ptr %41, i64 -1
  %.not99 = icmp ult ptr %39, %42
  br i1 %.not99, label %44, label %43

43:                                               ; preds = %40
  tail call void @png_free(ptr noundef %0, ptr noundef %36) #5
  store ptr null, ptr %25, align 8, !tbaa !23
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.50) #5
  br label %87

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %.085, i64 2
  %46 = load i8, ptr %39, align 1, !tbaa !24
  %.not100 = icmp eq i8 %46, 0
  br i1 %.not100, label %48, label %47

47:                                               ; preds = %44
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.51) #5
  %.pre = load ptr, ptr %25, align 8, !tbaa !23
  br label %48

48:                                               ; preds = %47, %44
  %49 = phi ptr [ %.pre, %47 ], [ %36, %44 ]
  %50 = ptrtoint ptr %45 to i64
  %51 = ptrtoint ptr %49 to i64
  %52 = sub i64 %50, %51
  call void @png_decompress_chunk(ptr noundef %0, i32 noundef 0, i64 noundef %30, i64 noundef %52, ptr noundef nonnull %4)
  %53 = load i64, ptr %4, align 8, !tbaa !27
  %54 = sub i64 %53, %52
  %55 = trunc i64 %54 to i32
  %56 = icmp ugt i64 %52, %53
  %57 = icmp ult i32 %55, 4
  %or.cond = or i1 %56, %57
  %58 = load ptr, ptr %25, align 8, !tbaa !23
  br i1 %or.cond, label %59, label %60

59:                                               ; preds = %48
  call void @png_free(ptr noundef nonnull %0, ptr noundef %58) #5
  store ptr null, ptr %25, align 8, !tbaa !23
  call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.52) #5
  br label %87

60:                                               ; preds = %48
  %61 = getelementptr inbounds i8, ptr %58, i64 %52
  %62 = load i8, ptr %61, align 1, !tbaa !24
  %63 = zext i8 %62 to i32
  %64 = shl nuw i32 %63, 24
  %65 = getelementptr inbounds i8, ptr %61, i64 1
  %66 = load i8, ptr %65, align 1, !tbaa !24
  %67 = zext i8 %66 to i32
  %68 = shl nuw nsw i32 %67, 16
  %69 = or disjoint i32 %68, %64
  %70 = getelementptr inbounds i8, ptr %61, i64 2
  %71 = load i8, ptr %70, align 1, !tbaa !24
  %72 = zext i8 %71 to i32
  %73 = shl nuw nsw i32 %72, 8
  %74 = or disjoint i32 %69, %73
  %75 = getelementptr inbounds i8, ptr %61, i64 3
  %76 = load i8, ptr %75, align 1, !tbaa !24
  %77 = zext i8 %76 to i32
  %78 = or disjoint i32 %74, %77
  %spec.select = call i32 @llvm.umin.i32(i32 %78, i32 %55)
  %79 = icmp ugt i32 %78, %55
  br i1 %79, label %80, label %85

80:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %5) #5
  call void @png_free(ptr noundef nonnull %0, ptr noundef nonnull %58) #5
  store ptr null, ptr %25, align 8, !tbaa !23
  call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.53) #5
  %81 = zext i32 %78 to i64
  %82 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 50, ptr noundef nonnull @.str.54, i64 noundef %81) #5
  call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull %5) #5
  %83 = zext i32 %spec.select to i64
  %84 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 50, ptr noundef nonnull @.str.55, i64 noundef %83) #5
  call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %5) #5
  br label %87

85:                                               ; preds = %60
  call void @png_set_iCCP(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %58, i32 noundef 0, ptr noundef nonnull %61, i32 noundef %spec.select) #5
  %86 = load ptr, ptr %25, align 8, !tbaa !23
  call void @png_free(ptr noundef nonnull %0, ptr noundef %86) #5
  store ptr null, ptr %25, align 8, !tbaa !23
  br label %87

87:                                               ; preds = %85, %80, %59, %43, %33, %22, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void
}

declare ptr @png_malloc(ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @png_set_iCCP(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 284}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !7, i64 280, !7, i64 281, !10, i64 284, !10, i64 288, !10, i64 292, !11, i64 296, !9, i64 408, !12, i64 416, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !12, i64 464, !12, i64 472, !10, i64 480, !10, i64 484, !9, i64 488, !9, i64 496, !9, i64 504, !9, i64 512, !9, i64 520, !9, i64 528, !13, i64 536, !10, i64 560, !10, i64 564, !9, i64 568, !14, i64 576, !14, i64 578, !7, i64 580, !7, i64 585, !7, i64 586, !7, i64 587, !7, i64 588, !7, i64 589, !7, i64 590, !7, i64 591, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !14, i64 598, !7, i64 600, !15, i64 604, !16, i64 608, !16, i64 618, !9, i64 632, !10, i64 640, !10, i64 644, !10, i64 648, !15, i64 652, !15, i64 656, !9, i64 664, !9, i64 672, !9, i64 680, !9, i64 688, !9, i64 696, !9, i64 704, !17, i64 712, !17, i64 717, !9, i64 728, !16, i64 736, !9, i64 752, !9, i64 760, !9, i64 768, !9, i64 776, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !10, i64 824, !10, i64 828, !12, i64 832, !12, i64 840, !12, i64 848, !12, i64 856, !10, i64 864, !10, i64 868, !12, i64 872, !12, i64 880, !9, i64 888, !9, i64 896, !9, i64 904, !9, i64 912, !9, i64 920, !7, i64 928, !7, i64 929, !9, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !9, i64 968, !9, i64 976, !10, i64 984, !9, i64 992, !9, i64 1000, !10, i64 1008, !9, i64 1016, !7, i64 1024, !14, i64 1026, !14, i64 1028, !14, i64 1030, !10, i64 1032, !10, i64 1036, !7, i64 1040, !9, i64 1048, !9, i64 1056, !9, i64 1064, !9, i64 1072, !9, i64 1080, !9, i64 1088, !9, i64 1096, !7, i64 1104, !10, i64 1108, !10, i64 1112, !10, i64 1116, !18, i64 1120, !10, i64 1152, !10, i64 1156, !9, i64 1160, !10, i64 1168}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"z_stream_s", !9, i64 0, !10, i64 8, !12, i64 16, !9, i64 24, !10, i64 32, !12, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !10, i64 88, !12, i64 96, !12, i64 104}
!12 = !{!"long", !7, i64 0}
!13 = !{!"png_row_info_struct", !10, i64 0, !12, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!17 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!18 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !12, i64 16, !7, i64 24}
!19 = !{!20, !10, i64 8}
!20 = !{!"png_info_struct", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 16, !9, i64 24, !14, i64 32, !14, i64 34, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !15, i64 52, !7, i64 56, !10, i64 60, !10, i64 64, !9, i64 72, !21, i64 80, !17, i64 88, !9, i64 96, !16, i64 104, !16, i64 114, !10, i64 124, !10, i64 128, !7, i64 132, !10, i64 136, !10, i64 140, !7, i64 144, !9, i64 152, !15, i64 160, !15, i64 164, !15, i64 168, !15, i64 172, !15, i64 176, !15, i64 180, !15, i64 184, !15, i64 188, !9, i64 192, !10, i64 200, !10, i64 204, !9, i64 208, !9, i64 216, !7, i64 224, !7, i64 225, !10, i64 228, !9, i64 232, !12, i64 240, !9, i64 248, !9, i64 256, !10, i64 264, !7, i64 268, !9, i64 272, !10, i64 280, !7, i64 284, !22, i64 288, !22, i64 296, !9, i64 304, !9, i64 312, !9, i64 320, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360}
!21 = !{!"png_time_struct", !14, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!22 = !{!"double", !7, i64 0}
!23 = !{!6, !9, i64 1160}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !12, i64 0}


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