; LLVM IR from corentinartaud/graphics :: ThirdParty/FreeImage-3170/Source/LibPNG (pngwutil)

; 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, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, i32, %struct.z_stream_s, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, ptr, i16, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, i32, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, i32, 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, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, i8, [29 x i8], i32, ptr, ptr, i32, i32, ptr, i8, i8, i16, i16, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, i64, %struct.png_unknown_chunk_t, i64, ptr, i64, i32, i32, ptr, [4 x ptr], %struct.png_colorspace }
%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_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_colorspace = type { i32, %struct.png_xy, %struct.png_XYZ, i16, i16 }
%struct.png_xy = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_XYZ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_compression_buffer = type { ptr, [1 x i8] }

@.str.11 = external hidden unnamed_addr constant [35 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

; 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 hidden void @png_write_complete_chunk(ptr noalias noundef, i32 noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @png_free_buffer_list(ptr noalias noundef, ptr noundef) #1

; Function Attrs: noreturn
declare void @png_error(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @png_compress_IDAT(ptr noalias noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.png_struct_def, ptr %16, i32 0, i32 18
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = icmp ne i32 %18, 1229209940
  br i1 %19, label %20, label %72

20:                                               ; preds = %4
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.png_struct_def, ptr %21, i32 0, i32 20
  %23 = load ptr, ptr %22, align 8, !tbaa !23
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %39

25:                                               ; preds = %20
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 21
  %29 = load i32, ptr %28, align 8, !tbaa !24
  %30 = zext i32 %29 to i64
  %31 = add i64 8, %30
  %32 = call noalias ptr @png_malloc(ptr noundef %26, i64 noundef %31)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.png_struct_def, ptr %33, i32 0, i32 20
  store ptr %32, ptr %34, align 8, !tbaa !23
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.png_struct_def, ptr %35, i32 0, i32 20
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = getelementptr inbounds %struct.png_compression_buffer, ptr %37, i32 0, i32 0
  store ptr null, ptr %38, align 8, !tbaa !25
  br label %45

39:                                               ; preds = %20
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.png_struct_def, ptr %41, i32 0, i32 20
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = getelementptr inbounds %struct.png_compression_buffer, ptr %43, i32 0, i32 0
  call void @png_free_buffer_list(ptr noundef %40, ptr noundef %44)
  br label %45

45:                                               ; preds = %39, %25
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call i64 @png_image_size(ptr noundef %47)
  %49 = call i32 @png_deflate_claim(ptr noundef %46, i32 noundef 1229209940, i64 noundef %48)
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %57

51:                                               ; preds = %45
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.png_struct_def, ptr %53, i32 0, i32 19
  %55 = getelementptr inbounds %struct.z_stream_s, ptr %54, i32 0, i32 6
  %56 = load ptr, ptr %55, align 8, !tbaa !27
  call void @png_error(ptr noundef %52, ptr noundef %56) #4
  unreachable

57:                                               ; preds = %45
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 20
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = getelementptr inbounds %struct.png_compression_buffer, ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds [1 x i8], ptr %61, i64 0, i64 0
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.png_struct_def, ptr %63, i32 0, i32 19
  %65 = getelementptr inbounds %struct.z_stream_s, ptr %64, i32 0, i32 3
  store ptr %62, ptr %65, align 8, !tbaa !28
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.png_struct_def, ptr %66, i32 0, i32 21
  %68 = load i32, ptr %67, align 8, !tbaa !24
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.png_struct_def, ptr %69, i32 0, i32 19
  %71 = getelementptr inbounds %struct.z_stream_s, ptr %70, i32 0, i32 4
  store i32 %68, ptr %71, align 8, !tbaa !29
  br label %72

72:                                               ; preds = %57, %4
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.png_struct_def, ptr %74, i32 0, i32 19
  %76 = getelementptr inbounds %struct.z_stream_s, ptr %75, i32 0, i32 0
  store ptr %73, ptr %76, align 8, !tbaa !30
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.png_struct_def, ptr %77, i32 0, i32 19
  %79 = getelementptr inbounds %struct.z_stream_s, ptr %78, i32 0, i32 1
  store i32 0, ptr %79, align 8, !tbaa !31
  br label %80

80:                                               ; preds = %249, %247, %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 -1, ptr %10, align 4, !tbaa !11
  %81 = load i32, ptr %10, align 4, !tbaa !11
  %82 = zext i32 %81 to i64
  %83 = load i64, ptr %7, align 8, !tbaa !9
  %84 = icmp ugt i64 %82, %83
  br i1 %84, label %85, label %88

85:                                               ; preds = %80
  %86 = load i64, ptr %7, align 8, !tbaa !9
  %87 = trunc i64 %86 to i32
  store i32 %87, ptr %10, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %85, %80
  %89 = load i32, ptr %10, align 4, !tbaa !11
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.png_struct_def, ptr %90, i32 0, i32 19
  %92 = getelementptr inbounds %struct.z_stream_s, ptr %91, i32 0, i32 1
  store i32 %89, ptr %92, align 8, !tbaa !31
  %93 = load i32, ptr %10, align 4, !tbaa !11
  %94 = zext i32 %93 to i64
  %95 = load i64, ptr %7, align 8, !tbaa !9
  %96 = sub i64 %95, %94
  store i64 %96, ptr %7, align 8, !tbaa !9
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.png_struct_def, ptr %97, i32 0, i32 19
  %99 = load i64, ptr %7, align 8, !tbaa !9
  %100 = icmp ugt i64 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %88
  br label %104

102:                                              ; preds = %88
  %103 = load i32, ptr %8, align 4, !tbaa !11
  br label %104

104:                                              ; preds = %102, %101
  %105 = phi i32 [ 0, %101 ], [ %103, %102 ]
  %106 = call i32 @deflate(ptr noundef %98, i32 noundef %105)
  store i32 %106, ptr %9, align 4, !tbaa !11
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.png_struct_def, ptr %107, i32 0, i32 19
  %109 = getelementptr inbounds %struct.z_stream_s, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !31
  %111 = zext i32 %110 to i64
  %112 = load i64, ptr %7, align 8, !tbaa !9
  %113 = add i64 %112, %111
  store i64 %113, ptr %7, align 8, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.png_struct_def, ptr %114, i32 0, i32 19
  %116 = getelementptr inbounds %struct.z_stream_s, ptr %115, i32 0, i32 1
  store i32 0, ptr %116, align 8, !tbaa !31
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.png_struct_def, ptr %117, i32 0, i32 19
  %119 = getelementptr inbounds %struct.z_stream_s, ptr %118, i32 0, i32 4
  %120 = load i32, ptr %119, align 8, !tbaa !29
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %173

122:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.png_struct_def, ptr %123, i32 0, i32 20
  %125 = load ptr, ptr %124, align 8, !tbaa !23
  %126 = getelementptr inbounds %struct.png_compression_buffer, ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds [1 x i8], ptr %126, i64 0, i64 0
  store ptr %127, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.png_struct_def, ptr %128, i32 0, i32 21
  %130 = load i32, ptr %129, align 8, !tbaa !24
  store i32 %130, ptr %12, align 4, !tbaa !11
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.png_struct_def, ptr %131, i32 0, i32 15
  %133 = load i32, ptr %132, align 4, !tbaa !32
  %134 = and i32 %133, 4
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %146

136:                                              ; preds = %122
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.png_struct_def, ptr %137, i32 0, i32 139
  %139 = load i8, ptr %138, align 8, !tbaa !33
  %140 = zext i8 %139 to i32
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %146

142:                                              ; preds = %136
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = call i64 @png_image_size(ptr noundef %144)
  call void @optimize_cmf(ptr noundef %143, i64 noundef %145)
  br label %146

146:                                              ; preds = %142, %136, %122
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = load i32, ptr %12, align 4, !tbaa !11
  %150 = zext i32 %149 to i64
  call void @png_write_complete_chunk(ptr noundef %147, i32 noundef 1229209940, ptr noundef %148, i64 noundef %150)
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.png_struct_def, ptr %151, i32 0, i32 15
  %153 = load i32, ptr %152, align 4, !tbaa !32
  %154 = or i32 %153, 4
  store i32 %154, ptr %152, align 4, !tbaa !32
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.png_struct_def, ptr %156, i32 0, i32 19
  %158 = getelementptr inbounds %struct.z_stream_s, ptr %157, i32 0, i32 3
  store ptr %155, ptr %158, align 8, !tbaa !28
  %159 = load i32, ptr %12, align 4, !tbaa !11
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.png_struct_def, ptr %160, i32 0, i32 19
  %162 = getelementptr inbounds %struct.z_stream_s, ptr %161, i32 0, i32 4
  store i32 %159, ptr %162, align 8, !tbaa !29
  %163 = load i32, ptr %9, align 4, !tbaa !11
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %169

165:                                              ; preds = %146
  %166 = load i32, ptr %8, align 4, !tbaa !11
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %165
  store i32 3, ptr %13, align 4
  br label %170

169:                                              ; preds = %165, %146
  store i32 0, ptr %13, align 4
  br label %170

170:                                              ; preds = %169, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %171 = load i32, ptr %13, align 4
  switch i32 %171, label %247 [
    i32 0, label %172
  ]

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172, %104
  %174 = load i32, ptr %9, align 4, !tbaa !11
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %186

176:                                              ; preds = %173
  %177 = load i64, ptr %7, align 8, !tbaa !9
  %178 = icmp eq i64 %177, 0
  br i1 %178, label %179, label %185

179:                                              ; preds = %176
  %180 = load i32, ptr %8, align 4, !tbaa !11
  %181 = icmp eq i32 %180, 4
  br i1 %181, label %182, label %184

182:                                              ; preds = %179
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_error(ptr noundef %183, ptr noundef @.str.11) #4
  unreachable

184:                                              ; preds = %179
  store i32 1, ptr %13, align 4
  br label %247

185:                                              ; preds = %176
  br label %246

186:                                              ; preds = %173
  %187 = load i32, ptr %9, align 4, !tbaa !11
  %188 = icmp eq i32 %187, 1
  br i1 %188, label %189, label %238

189:                                              ; preds = %186
  %190 = load i32, ptr %8, align 4, !tbaa !11
  %191 = icmp eq i32 %190, 4
  br i1 %191, label %192, label %238

192:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.png_struct_def, ptr %193, i32 0, i32 20
  %195 = load ptr, ptr %194, align 8, !tbaa !23
  %196 = getelementptr inbounds %struct.png_compression_buffer, ptr %195, i32 0, i32 1
  %197 = getelementptr inbounds [1 x i8], ptr %196, i64 0, i64 0
  store ptr %197, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.png_struct_def, ptr %198, i32 0, i32 21
  %200 = load i32, ptr %199, align 8, !tbaa !24
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.png_struct_def, ptr %201, i32 0, i32 19
  %203 = getelementptr inbounds %struct.z_stream_s, ptr %202, i32 0, i32 4
  %204 = load i32, ptr %203, align 8, !tbaa !29
  %205 = sub i32 %200, %204
  store i32 %205, ptr %15, align 4, !tbaa !11
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.png_struct_def, ptr %206, i32 0, i32 15
  %208 = load i32, ptr %207, align 4, !tbaa !32
  %209 = and i32 %208, 4
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %211, label %221

211:                                              ; preds = %192
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.png_struct_def, ptr %212, i32 0, i32 139
  %214 = load i8, ptr %213, align 8, !tbaa !33
  %215 = zext i8 %214 to i32
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %221

217:                                              ; preds = %211
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = call i64 @png_image_size(ptr noundef %219)
  call void @optimize_cmf(ptr noundef %218, i64 noundef %220)
  br label %221

221:                                              ; preds = %217, %211, %192
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = load i32, ptr %15, align 4, !tbaa !11
  %225 = zext i32 %224 to i64
  call void @png_write_complete_chunk(ptr noundef %222, i32 noundef 1229209940, ptr noundef %223, i64 noundef %225)
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.png_struct_def, ptr %226, i32 0, i32 19
  %228 = getelementptr inbounds %struct.z_stream_s, ptr %227, i32 0, i32 4
  store i32 0, ptr %228, align 8, !tbaa !29
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.png_struct_def, ptr %229, i32 0, i32 19
  %231 = getelementptr inbounds %struct.z_stream_s, ptr %230, i32 0, i32 3
  store ptr null, ptr %231, align 8, !tbaa !28
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.png_struct_def, ptr %232, i32 0, i32 15
  %234 = load i32, ptr %233, align 4, !tbaa !32
  %235 = or i32 %234, 12
  store i32 %235, ptr %233, align 4, !tbaa !32
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.png_struct_def, ptr %236, i32 0, i32 18
  store i32 0, ptr %237, align 8, !tbaa !13
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %247

238:                                              ; preds = %189, %186
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = load i32, ptr %9, align 4, !tbaa !11
  call void @png_zstream_error(ptr noundef %239, i32 noundef %240)
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.png_struct_def, ptr %242, i32 0, i32 19
  %244 = getelementptr inbounds %struct.z_stream_s, ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !27
  call void @png_error(ptr noundef %241, ptr noundef %245) #4
  unreachable

246:                                              ; preds = %185
  store i32 0, ptr %13, align 4
  br label %247

247:                                              ; preds = %246, %221, %184, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %248 = load i32, ptr %13, align 4
  switch i32 %248, label %251 [
    i32 0, label %249
    i32 3, label %80
    i32 1, label %250
  ]

249:                                              ; preds = %247
  br label %80

250:                                              ; preds = %247
  ret void

251:                                              ; preds = %247
  unreachable
}

declare noalias ptr @png_malloc(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @png_deflate_claim(ptr noalias noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i64 @png_image_size(ptr noalias noundef) #1

declare i32 @deflate(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @optimize_cmf(ptr noundef, i64 noundef) #1

declare void @png_zstream_error(ptr noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { noreturn "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 = { "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 = { noreturn }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 312}
!14 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !10, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !15, i64 320, !6, i64 432, !12, i64 440, !12, i64 444, !12, i64 448, !12, i64 452, !12, i64 456, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !10, i64 520, !12, i64 528, !12, i64 532, !12, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !10, i64 592, !12, i64 600, !12, i64 604, !6, i64 608, !16, i64 616, !12, i64 620, !16, i64 624, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !7, i64 637, !7, i64 638, !7, i64 639, !16, i64 640, !7, i64 642, !12, i64 644, !17, i64 648, !17, i64 658, !6, i64 672, !12, i64 680, !12, i64 684, !12, i64 688, !12, i64 692, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !18, i64 744, !18, i64 749, !6, i64 760, !17, i64 768, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !12, i64 856, !12, i64 860, !10, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !12, i64 896, !12, i64 900, !6, i64 904, !6, i64 912, !7, i64 920, !7, i64 921, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !7, i64 968, !7, i64 969, !12, i64 1000, !6, i64 1008, !6, i64 1016, !12, i64 1024, !12, i64 1028, !6, i64 1032, !7, i64 1040, !7, i64 1041, !16, i64 1042, !16, i64 1044, !12, i64 1048, !7, i64 1052, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !7, i64 1112, !12, i64 1116, !12, i64 1120, !12, i64 1124, !10, i64 1128, !19, i64 1136, !10, i64 1168, !6, i64 1176, !10, i64 1184, !12, i64 1192, !12, i64 1196, !6, i64 1200, !7, i64 1208, !20, i64 1240}
!15 = !{!"z_stream_s", !6, i64 0, !12, i64 8, !10, i64 16, !6, i64 24, !12, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !10, i64 96, !10, i64 104}
!16 = !{!"short", !7, i64 0}
!17 = !{!"png_color_16_struct", !7, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !10, i64 16, !7, i64 24}
!20 = !{!"png_colorspace", !12, i64 0, !21, i64 4, !22, i64 36, !16, i64 72, !16, i64 74}
!21 = !{!"png_xy", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!22 = !{!"png_XYZ", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!23 = !{!14, !6, i64 432}
!24 = !{!14, !12, i64 440}
!25 = !{!26, !6, i64 0}
!26 = !{!"png_compression_buffer", !6, i64 0, !7, i64 8}
!27 = !{!14, !6, i64 368}
!28 = !{!14, !6, i64 344}
!29 = !{!14, !12, i64 352}
!30 = !{!14, !6, i64 320}
!31 = !{!14, !12, i64 328}
!32 = !{!14, !12, i64 300}
!33 = !{!14, !7, i64 1112}


; 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.11 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare hidden void @png_write_complete_chunk(ptr noalias noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_free_buffer_list(ptr noalias noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: noreturn
declare void @png_error(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @png_compress_IDAT(ptr noalias noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 312
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i32 %6, 1229209940
  br i1 %.not, label %31, label %7

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 432
  %9 = load ptr, ptr %8, align 8, !tbaa !20
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %17

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 440
  %13 = load i32, ptr %12, align 8, !tbaa !21
  %14 = zext i32 %13 to i64
  %15 = add nuw nsw i64 %14, 8
  %16 = tail call noalias ptr @png_malloc(ptr noundef nonnull %0, i64 noundef %15) #4
  store ptr %16, ptr %8, align 8, !tbaa !20
  store ptr null, ptr %16, align 8, !tbaa !22
  br label %18

17:                                               ; preds = %7
  tail call void @png_free_buffer_list(ptr noundef nonnull %0, ptr noundef nonnull %9)
  br label %18

18:                                               ; preds = %17, %11
  %19 = tail call i64 @png_image_size(ptr noundef nonnull %0)
  %20 = tail call i32 @png_deflate_claim(ptr noundef nonnull %0, i32 noundef 1229209940, i64 noundef %19)
  %.not81 = icmp eq i32 %20, 0
  br i1 %.not81, label %24, label %21

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 368
  %23 = load ptr, ptr %22, align 8, !tbaa !24
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef %23) #5
  unreachable

24:                                               ; preds = %18
  %25 = load ptr, ptr %8, align 8, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 344
  store ptr %26, ptr %27, align 8, !tbaa !25
  %28 = getelementptr inbounds i8, ptr %0, i64 440
  %29 = load i32, ptr %28, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 %29, ptr %30, align 8, !tbaa !26
  br label %31

31:                                               ; preds = %24, %4
  %32 = getelementptr inbounds i8, ptr %0, i64 320
  store ptr %1, ptr %32, align 8, !tbaa !27
  %33 = getelementptr inbounds i8, ptr %0, i64 328
  %34 = getelementptr inbounds i8, ptr %0, i64 352
  %35 = getelementptr inbounds i8, ptr %0, i64 432
  %36 = getelementptr inbounds i8, ptr %0, i64 440
  %37 = getelementptr inbounds i8, ptr %0, i64 300
  %38 = getelementptr inbounds i8, ptr %0, i64 1112
  %39 = getelementptr inbounds i8, ptr %0, i64 344
  %40 = icmp eq i32 %3, 0
  br i1 %40, label %.split.us, label %.split

.split.us:                                        ; preds = %31, %67
  %.0.us = phi i64 [ %45, %67 ], [ %2, %31 ]
  %spec.select88.us = tail call i64 @llvm.umin.i64(i64 %.0.us, i64 4294967295)
  %spec.select.us = trunc nuw i64 %spec.select88.us to i32
  store i32 %spec.select.us, ptr %33, align 8, !tbaa !28
  %41 = sub i64 %.0.us, %spec.select88.us
  %42 = tail call i32 @deflate(ptr noundef nonnull %32, i32 noundef 0) #4
  %43 = load i32, ptr %33, align 8, !tbaa !28
  %44 = zext i32 %43 to i64
  %45 = add i64 %41, %44
  store i32 0, ptr %33, align 8, !tbaa !28
  %46 = load i32, ptr %34, align 8, !tbaa !26
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %64

48:                                               ; preds = %.split.us
  %49 = load ptr, ptr %35, align 8, !tbaa !20
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load i32, ptr %36, align 8, !tbaa !21
  %52 = load i32, ptr %37, align 4, !tbaa !29
  %53 = and i32 %52, 4
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %60

55:                                               ; preds = %48
  %56 = load i8, ptr %38, align 8, !tbaa !30
  %57 = icmp eq i8 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = tail call i64 @png_image_size(ptr noundef nonnull %0)
  tail call void @optimize_cmf(ptr noundef nonnull %50, i64 noundef %59)
  br label %60

60:                                               ; preds = %58, %55, %48
  %61 = zext i32 %51 to i64
  tail call void @png_write_complete_chunk(ptr noundef nonnull %0, i32 noundef 1229209940, ptr noundef nonnull %50, i64 noundef %61)
  %62 = load i32, ptr %37, align 4, !tbaa !29
  %63 = or i32 %62, 4
  store i32 %63, ptr %37, align 4, !tbaa !29
  store ptr %50, ptr %39, align 8, !tbaa !25
  store i32 %51, ptr %34, align 8, !tbaa !26
  br label %64

64:                                               ; preds = %60, %.split.us
  %65 = phi i32 [ %51, %60 ], [ %46, %.split.us ]
  %66 = icmp eq i32 %42, 0
  br i1 %66, label %67, label %.split93.us

67:                                               ; preds = %64
  %68 = icmp eq i64 %45, 0
  br i1 %68, label %.split96.us, label %.split.us

.split:                                           ; preds = %31, %.split.backedge
  %.0 = phi i64 [ %74, %.split.backedge ], [ %2, %31 ]
  %spec.select88 = tail call i64 @llvm.umin.i64(i64 %.0, i64 4294967295)
  %spec.select = trunc nuw i64 %spec.select88 to i32
  store i32 %spec.select, ptr %33, align 8, !tbaa !28
  %69 = sub i64 %.0, %spec.select88
  %.not82 = icmp ult i64 %.0, 4294967296
  %70 = select i1 %.not82, i32 %3, i32 0
  %71 = tail call i32 @deflate(ptr noundef nonnull %32, i32 noundef %70) #4
  %72 = load i32, ptr %33, align 8, !tbaa !28
  %73 = zext i32 %72 to i64
  %74 = add i64 %69, %73
  store i32 0, ptr %33, align 8, !tbaa !28
  %75 = load i32, ptr %34, align 8, !tbaa !26
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %93

77:                                               ; preds = %.split
  %78 = load ptr, ptr %35, align 8, !tbaa !20
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = load i32, ptr %36, align 8, !tbaa !21
  %81 = load i32, ptr %37, align 4, !tbaa !29
  %82 = and i32 %81, 4
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %89

84:                                               ; preds = %77
  %85 = load i8, ptr %38, align 8, !tbaa !30
  %86 = icmp eq i8 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %84
  %88 = tail call i64 @png_image_size(ptr noundef nonnull %0)
  tail call void @optimize_cmf(ptr noundef nonnull %79, i64 noundef %88)
  br label %89

89:                                               ; preds = %87, %84, %77
  %90 = zext i32 %80 to i64
  tail call void @png_write_complete_chunk(ptr noundef nonnull %0, i32 noundef 1229209940, ptr noundef nonnull %79, i64 noundef %90)
  %91 = load i32, ptr %37, align 4, !tbaa !29
  %92 = or i32 %91, 4
  store i32 %92, ptr %37, align 4, !tbaa !29
  store ptr %79, ptr %39, align 8, !tbaa !25
  store i32 %80, ptr %34, align 8, !tbaa !26
  %cond = icmp eq i32 %71, 0
  br i1 %cond, label %.split.backedge, label %.split93.us

.split.backedge:                                  ; preds = %89, %95
  br label %.split

93:                                               ; preds = %.split
  %94 = icmp eq i32 %71, 0
  br i1 %94, label %95, label %.split93.us

95:                                               ; preds = %93
  %96 = icmp eq i64 %74, 0
  br i1 %96, label %.split96.us, label %.split.backedge

.split96.us:                                      ; preds = %95, %67
  %97 = icmp eq i32 %3, 4
  br i1 %97, label %98, label %.thread

98:                                               ; preds = %.split96.us
  tail call void @png_error(ptr noundef %0, ptr noundef nonnull @.str.11) #5
  unreachable

.split93.us:                                      ; preds = %89, %93, %64
  %99 = phi i32 [ %65, %64 ], [ %80, %89 ], [ %75, %93 ]
  %.us-phi = phi i32 [ %42, %64 ], [ %71, %93 ], [ %71, %89 ]
  %100 = icmp eq i32 %.us-phi, 1
  %101 = icmp eq i32 %3, 4
  %or.cond3 = and i1 %101, %100
  br i1 %or.cond3, label %102, label %119

102:                                              ; preds = %.split93.us
  %103 = load ptr, ptr %35, align 8, !tbaa !20
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load i32, ptr %36, align 8, !tbaa !21
  %106 = sub i32 %105, %99
  %107 = load i32, ptr %37, align 4, !tbaa !29
  %108 = and i32 %107, 4
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %102
  %111 = load i8, ptr %38, align 8, !tbaa !30
  %112 = icmp eq i8 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %110
  %114 = tail call i64 @png_image_size(ptr noundef nonnull %0)
  tail call void @optimize_cmf(ptr noundef nonnull %104, i64 noundef %114)
  br label %115

115:                                              ; preds = %113, %110, %102
  %116 = zext i32 %106 to i64
  tail call void @png_write_complete_chunk(ptr noundef nonnull %0, i32 noundef 1229209940, ptr noundef nonnull %104, i64 noundef %116)
  store i32 0, ptr %34, align 8, !tbaa !26
  store ptr null, ptr %39, align 8, !tbaa !25
  %117 = load i32, ptr %37, align 4, !tbaa !29
  %118 = or i32 %117, 12
  store i32 %118, ptr %37, align 4, !tbaa !29
  store i32 0, ptr %5, align 8, !tbaa !5
  br label %.thread

119:                                              ; preds = %.split93.us
  tail call void @png_zstream_error(ptr noundef %0, i32 noundef %.us-phi) #4
  %120 = getelementptr inbounds i8, ptr %0, i64 368
  %121 = load ptr, ptr %120, align 8, !tbaa !24
  tail call void @png_error(ptr noundef %0, ptr noundef %121) #5
  unreachable

.thread:                                          ; preds = %.split96.us, %115
  ret void
}

declare noalias ptr @png_malloc(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @png_deflate_claim(ptr noalias noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @png_image_size(ptr noalias noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden void @optimize_cmf(ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @png_zstream_error(ptr noundef, i32 noundef) local_unnamed_addr #2

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

attributes #0 = { 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 = { noreturn "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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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, !11, i64 312}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !10, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !7, i64 296, !7, i64 297, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !12, i64 320, !9, i64 432, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !10, i64 520, !11, i64 528, !11, i64 532, !11, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !9, i64 568, !9, i64 576, !9, i64 584, !10, i64 592, !11, i64 600, !11, i64 604, !9, i64 608, !13, i64 616, !11, i64 620, !13, i64 624, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !7, i64 637, !7, i64 638, !7, i64 639, !13, i64 640, !7, i64 642, !11, i64 644, !14, i64 648, !14, i64 658, !9, i64 672, !11, i64 680, !11, i64 684, !11, i64 688, !11, i64 692, !9, i64 696, !9, i64 704, !9, i64 712, !9, i64 720, !9, i64 728, !9, i64 736, !15, i64 744, !15, i64 749, !9, i64 760, !14, i64 768, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !9, i64 840, !9, i64 848, !11, i64 856, !11, i64 860, !10, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !11, i64 896, !11, i64 900, !9, i64 904, !9, i64 912, !7, i64 920, !7, i64 921, !9, i64 928, !9, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !7, i64 968, !7, i64 969, !11, i64 1000, !9, i64 1008, !9, i64 1016, !11, i64 1024, !11, i64 1028, !9, i64 1032, !7, i64 1040, !7, i64 1041, !13, i64 1042, !13, i64 1044, !11, i64 1048, !7, i64 1052, !9, i64 1056, !9, i64 1064, !9, i64 1072, !9, i64 1080, !9, i64 1088, !9, i64 1096, !9, i64 1104, !7, i64 1112, !11, i64 1116, !11, i64 1120, !11, i64 1124, !10, i64 1128, !16, i64 1136, !10, i64 1168, !9, i64 1176, !10, i64 1184, !11, i64 1192, !11, i64 1196, !9, i64 1200, !7, i64 1208, !17, i64 1240}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !9, i64 0, !11, i64 8, !10, i64 16, !9, i64 24, !11, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !11, i64 88, !10, i64 96, !10, i64 104}
!13 = !{!"short", !7, i64 0}
!14 = !{!"png_color_16_struct", !7, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!15 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!16 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!17 = !{!"png_colorspace", !11, i64 0, !18, i64 4, !19, i64 36, !13, i64 72, !13, i64 74}
!18 = !{!"png_xy", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!19 = !{!"png_XYZ", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!20 = !{!6, !9, i64 432}
!21 = !{!6, !11, i64 440}
!22 = !{!23, !9, i64 0}
!23 = !{!"png_compression_buffer", !9, i64 0, !7, i64 8}
!24 = !{!6, !9, i64 368}
!25 = !{!6, !9, i64 344}
!26 = !{!6, !11, i64 352}
!27 = !{!6, !9, i64 320}
!28 = !{!6, !11, i64 328}
!29 = !{!6, !11, i64 300}
!30 = !{!6, !7, i64 1112}


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