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

; 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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

@stdout = external global ptr, align 8
@filters_used = external hidden global [256 x i32], align 16
@zero_samples = external hidden global i32, align 4
@test_one_file.fpin = external hidden global ptr, align 8
@test_one_file.fpout = external hidden global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@user_chunk_data = external hidden global [4 x i32], align 16
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@status_dots_requested = external hidden global i32, align 4
@tIME_string = external hidden global [29 x i8], align 16
@tIME_chunk_present = external hidden global i32, align 4
@__const.test_one_file.png_sTER = external hidden unnamed_addr constant [5 x i8], align 1
@verbose = external hidden global i32, align 4
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.test_one_file.png_vpAg = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@wrote_question = external hidden global i32, align 4
@.str.16 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @read_row_callback(ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local void @write_row_callback(ptr noundef, i32 noundef, i32 noundef) #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @test_one_file(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [256 x i8], align 16
  %21 = alloca [256 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca ptr, align 8
  %59 = alloca i32, align 4
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca ptr, align 8
  %63 = alloca i32, align 4
  %64 = alloca ptr, align 8
  %65 = alloca ptr, align 8
  %66 = alloca i32, align 4
  %67 = alloca ptr, align 8
  %68 = alloca i32, align 4
  %69 = alloca ptr, align 8
  %70 = alloca i32, align 4
  %71 = alloca i64, align 8
  %72 = alloca [5 x i8], align 1
  %73 = alloca [1 x i8], align 1
  %74 = alloca [5 x i8], align 1
  %75 = alloca [9 x i8], align 1
  %76 = alloca ptr, align 8
  %77 = alloca i32, align 4
  %78 = alloca ptr, align 8
  %79 = alloca ptr, align 8
  %80 = alloca i32, align 4
  %81 = alloca i64, align 8
  %82 = alloca i32, align 4
  %83 = alloca i32, align 4
  %84 = alloca i64, align 8
  %85 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr %21) #8
  store ptr null, ptr %12, align 8, !tbaa !5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = call noalias ptr @fopen(ptr noundef %86, ptr noundef @.str.4)
  store ptr %87, ptr @test_one_file.fpin, align 8, !tbaa !5
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %93

89:                                               ; preds = %2
  %90 = load ptr, ptr @stdout, align 8, !tbaa !5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.5, ptr noundef %91) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %683

93:                                               ; preds = %2
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = call noalias ptr @fopen(ptr noundef %94, ptr noundef @.str.6)
  store ptr %95, ptr @test_one_file.fpout, align 8, !tbaa !5
  %96 = icmp eq ptr %95, null
  br i1 %96, label %97, label %103

97:                                               ; preds = %93
  %98 = load ptr, ptr @stdout, align 8, !tbaa !5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.7, ptr noundef %99) #8
  %101 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %102 = call i32 @fclose(ptr noundef %101)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %683

103:                                              ; preds = %93
  %104 = call noalias ptr @png_create_read_struct(ptr noundef @.str.8, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %104, ptr %6, align 8, !tbaa !5
  store i32 0, ptr @user_chunk_data, align 16, !tbaa !9
  store i32 0, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 1), align 4, !tbaa !9
  store i32 0, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 2), align 8, !tbaa !9
  store i32 0, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 3), align 4, !tbaa !9
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_set_read_user_chunk_fn(ptr noundef %105, ptr noundef @user_chunk_data, ptr noundef @read_user_chunk_callback)
  %106 = call noalias ptr @png_create_write_struct(ptr noundef @.str.8, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %106, ptr %9, align 8, !tbaa !5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call noalias ptr @png_create_info_struct(ptr noundef %107)
  store ptr %108, ptr %7, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = call noalias ptr @png_create_info_struct(ptr noundef %109)
  store ptr %110, ptr %8, align 8, !tbaa !5
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = call noalias ptr @png_create_info_struct(ptr noundef %111)
  store ptr %112, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = call noalias ptr @png_create_info_struct(ptr noundef %113)
  store ptr %114, ptr %11, align 8, !tbaa !5
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = call ptr @png_set_longjmp_fn(ptr noundef %115, ptr noundef @longjmp, i64 noundef 200)
  %117 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %116, i64 0, i64 0
  %118 = call i32 @_setjmp(ptr noundef %117) #9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %132

120:                                              ; preds = %103
  %121 = load ptr, ptr @stdout, align 8, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.9, ptr noundef %122, ptr noundef %123) #8
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  call void @png_free(ptr noundef %125, ptr noundef %126)
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @png_destroy_read_struct(ptr noundef %6, ptr noundef %7, ptr noundef %8)
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_destroy_info_struct(ptr noundef %127, ptr noundef %11)
  call void @png_destroy_write_struct(ptr noundef %9, ptr noundef %10)
  %128 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %129 = call i32 @fclose(ptr noundef %128)
  %130 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %131 = call i32 @fclose(ptr noundef %130)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %683

132:                                              ; preds = %103
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = call ptr @png_set_longjmp_fn(ptr noundef %133, ptr noundef @longjmp, i64 noundef 200)
  %135 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %134, i64 0, i64 0
  %136 = call i32 @_setjmp(ptr noundef %135) #9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %148

138:                                              ; preds = %132
  %139 = load ptr, ptr @stdout, align 8, !tbaa !5
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.10, ptr noundef %140, ptr noundef %141) #8
  call void @png_destroy_read_struct(ptr noundef %6, ptr noundef %7, ptr noundef %8)
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_destroy_info_struct(ptr noundef %143, ptr noundef %11)
  call void @png_destroy_write_struct(ptr noundef %9, ptr noundef %10)
  %144 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %145 = call i32 @fclose(ptr noundef %144)
  %146 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %147 = call i32 @fclose(ptr noundef %146)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %683

148:                                              ; preds = %132
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  call void @png_init_io(ptr noundef %149, ptr noundef %150)
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  call void @png_init_io(ptr noundef %151, ptr noundef %152)
  %153 = load i32, ptr @status_dots_requested, align 4, !tbaa !9
  %154 = icmp eq i32 %153, 1
  br i1 %154, label %155, label %158

155:                                              ; preds = %148
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_set_write_status_fn(ptr noundef %156, ptr noundef @write_row_callback)
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_set_read_status_fn(ptr noundef %157, ptr noundef @read_row_callback)
  br label %161

158:                                              ; preds = %148
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_set_write_status_fn(ptr noundef %159, ptr noundef null)
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_set_read_status_fn(ptr noundef %160, ptr noundef null)
  br label %161

161:                                              ; preds = %158, %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %169, %161
  %163 = load i32, ptr %23, align 4, !tbaa !9
  %164 = icmp slt i32 %163, 256
  br i1 %164, label %165, label %172

165:                                              ; preds = %162
  %166 = load i32, ptr %23, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %167
  store i32 0, ptr %168, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %165
  %170 = load i32, ptr %23, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %23, align 4, !tbaa !9
  br label %162, !llvm.loop !11

172:                                              ; preds = %162
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_set_read_user_transform_fn(ptr noundef %173, ptr noundef @count_filters)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  store i32 0, ptr @zero_samples, align 4, !tbaa !9
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_set_write_user_transform_fn(ptr noundef %174, ptr noundef @count_zero_samples)
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_set_keep_unknown_chunks(ptr noundef %175, i32 noundef 3, ptr noundef null, i32 noundef 0)
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_set_keep_unknown_chunks(ptr noundef %176, i32 noundef 2, ptr noundef null, i32 noundef 0)
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_read_info(ptr noundef %177, ptr noundef %178)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = call i32 @png_get_IHDR(ptr noundef %179, ptr noundef %180, ptr noundef %14, ptr noundef %15, ptr noundef %18, ptr noundef %19, ptr noundef %24, ptr noundef %25, ptr noundef %26)
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %193

183:                                              ; preds = %172
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = load i32, ptr %14, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = load i32, ptr %19, align 4, !tbaa !9
  %190 = load i32, ptr %24, align 4, !tbaa !9
  %191 = load i32, ptr %25, align 4, !tbaa !9
  %192 = load i32, ptr %26, align 4, !tbaa !9
  call void @png_set_IHDR(ptr noundef %184, ptr noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191, i32 noundef %192)
  br label %193

193:                                              ; preds = %183, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = call i32 @png_get_cHRM_fixed(ptr noundef %194, ptr noundef %195, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34)
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %209

198:                                              ; preds = %193
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = load i32, ptr %27, align 4, !tbaa !9
  %202 = load i32, ptr %28, align 4, !tbaa !9
  %203 = load i32, ptr %29, align 4, !tbaa !9
  %204 = load i32, ptr %30, align 4, !tbaa !9
  %205 = load i32, ptr %31, align 4, !tbaa !9
  %206 = load i32, ptr %32, align 4, !tbaa !9
  %207 = load i32, ptr %33, align 4, !tbaa !9
  %208 = load i32, ptr %34, align 4, !tbaa !9
  call void @png_set_cHRM_fixed(ptr noundef %199, ptr noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203, i32 noundef %204, i32 noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef %208)
  br label %209

209:                                              ; preds = %198, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = call i32 @png_get_gAMA_fixed(ptr noundef %210, ptr noundef %211, ptr noundef %35)
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %218

214:                                              ; preds = %209
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = load i32, ptr %35, align 4, !tbaa !9
  call void @png_set_gAMA_fixed(ptr noundef %215, ptr noundef %216, i32 noundef %217)
  br label %218

218:                                              ; preds = %214, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = call i32 @png_get_iCCP(ptr noundef %219, ptr noundef %220, ptr noundef %36, ptr noundef %39, ptr noundef %37, ptr noundef %38)
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %230

223:                                              ; preds = %218
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  %226 = load ptr, ptr %36, align 8, !tbaa !5
  %227 = load i32, ptr %39, align 4, !tbaa !9
  %228 = load ptr, ptr %37, align 8, !tbaa !5
  %229 = load i32, ptr %38, align 4, !tbaa !9
  call void @png_set_iCCP(ptr noundef %224, ptr noundef %225, ptr noundef %226, i32 noundef %227, ptr noundef %228, i32 noundef %229)
  br label %230

230:                                              ; preds = %223, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = call i32 @png_get_sRGB(ptr noundef %231, ptr noundef %232, ptr noundef %40)
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %239

235:                                              ; preds = %230
  %236 = load ptr, ptr %9, align 8, !tbaa !5
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = load i32, ptr %40, align 4, !tbaa !9
  call void @png_set_sRGB(ptr noundef %236, ptr noundef %237, i32 noundef %238)
  br label %239

239:                                              ; preds = %235, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = call i32 @png_get_PLTE(ptr noundef %240, ptr noundef %241, ptr noundef %41, ptr noundef %42)
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %249

244:                                              ; preds = %239
  %245 = load ptr, ptr %9, align 8, !tbaa !5
  %246 = load ptr, ptr %10, align 8, !tbaa !5
  %247 = load ptr, ptr %41, align 8, !tbaa !5
  %248 = load i32, ptr %42, align 4, !tbaa !9
  call void @png_set_PLTE(ptr noundef %245, ptr noundef %246, ptr noundef %247, i32 noundef %248)
  br label %249

249:                                              ; preds = %244, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = call i32 @png_get_bKGD(ptr noundef %250, ptr noundef %251, ptr noundef %43)
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %254, label %258

254:                                              ; preds = %249
  %255 = load ptr, ptr %9, align 8, !tbaa !5
  %256 = load ptr, ptr %10, align 8, !tbaa !5
  %257 = load ptr, ptr %43, align 8, !tbaa !5
  call void @png_set_bKGD(ptr noundef %255, ptr noundef %256, ptr noundef %257)
  br label %258

258:                                              ; preds = %254, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = call i32 @png_get_hIST(ptr noundef %259, ptr noundef %260, ptr noundef %44)
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %267

263:                                              ; preds = %258
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = load ptr, ptr %10, align 8, !tbaa !5
  %266 = load ptr, ptr %44, align 8, !tbaa !5
  call void @png_set_hIST(ptr noundef %264, ptr noundef %265, ptr noundef %266)
  br label %267

267:                                              ; preds = %263, %258
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = call i32 @png_get_oFFs(ptr noundef %268, ptr noundef %269, ptr noundef %45, ptr noundef %46, ptr noundef %47)
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %278

272:                                              ; preds = %267
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = load ptr, ptr %10, align 8, !tbaa !5
  %275 = load i32, ptr %45, align 4, !tbaa !9
  %276 = load i32, ptr %46, align 4, !tbaa !9
  %277 = load i32, ptr %47, align 4, !tbaa !9
  call void @png_set_oFFs(ptr noundef %273, ptr noundef %274, i32 noundef %275, i32 noundef %276, i32 noundef %277)
  br label %278

278:                                              ; preds = %272, %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  %281 = call i32 @png_get_pCAL(ptr noundef %279, ptr noundef %280, ptr noundef %48, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %49, ptr noundef %50)
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %283, label %293

283:                                              ; preds = %278
  %284 = load ptr, ptr %9, align 8, !tbaa !5
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  %286 = load ptr, ptr %48, align 8, !tbaa !5
  %287 = load i32, ptr %51, align 4, !tbaa !9
  %288 = load i32, ptr %52, align 4, !tbaa !9
  %289 = load i32, ptr %53, align 4, !tbaa !9
  %290 = load i32, ptr %54, align 4, !tbaa !9
  %291 = load ptr, ptr %49, align 8, !tbaa !5
  %292 = load ptr, ptr %50, align 8, !tbaa !5
  call void @png_set_pCAL(ptr noundef %284, ptr noundef %285, ptr noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289, i32 noundef %290, ptr noundef %291, ptr noundef %292)
  br label %293

293:                                              ; preds = %283, %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #8
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = call i32 @png_get_pHYs(ptr noundef %294, ptr noundef %295, ptr noundef %55, ptr noundef %56, ptr noundef %57)
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %304

298:                                              ; preds = %293
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  %300 = load ptr, ptr %10, align 8, !tbaa !5
  %301 = load i32, ptr %55, align 4, !tbaa !9
  %302 = load i32, ptr %56, align 4, !tbaa !9
  %303 = load i32, ptr %57, align 4, !tbaa !9
  call void @png_set_pHYs(ptr noundef %299, ptr noundef %300, i32 noundef %301, i32 noundef %302, i32 noundef %303)
  br label %304

304:                                              ; preds = %298, %293
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = call i32 @png_get_sBIT(ptr noundef %305, ptr noundef %306, ptr noundef %58)
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %313

309:                                              ; preds = %304
  %310 = load ptr, ptr %9, align 8, !tbaa !5
  %311 = load ptr, ptr %10, align 8, !tbaa !5
  %312 = load ptr, ptr %58, align 8, !tbaa !5
  call void @png_set_sBIT(ptr noundef %310, ptr noundef %311, ptr noundef %312)
  br label %313

313:                                              ; preds = %309, %304
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #8
  %314 = load ptr, ptr %6, align 8, !tbaa !5
  %315 = load ptr, ptr %7, align 8, !tbaa !5
  %316 = call i32 @png_get_sCAL(ptr noundef %314, ptr noundef %315, ptr noundef %59, ptr noundef %60, ptr noundef %61)
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %324

318:                                              ; preds = %313
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = load ptr, ptr %10, align 8, !tbaa !5
  %321 = load i32, ptr %59, align 4, !tbaa !9
  %322 = load double, ptr %60, align 8, !tbaa !13
  %323 = load double, ptr %61, align 8, !tbaa !13
  call void @png_set_sCAL(ptr noundef %319, ptr noundef %320, i32 noundef %321, double noundef %322, double noundef %323)
  br label %324

324:                                              ; preds = %318, %313
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #8
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = load ptr, ptr %7, align 8, !tbaa !5
  %327 = call i32 @png_get_text(ptr noundef %325, ptr noundef %326, ptr noundef %62, ptr noundef %63)
  %328 = icmp ugt i32 %327, 0
  br i1 %328, label %329, label %334

329:                                              ; preds = %324
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = load ptr, ptr %10, align 8, !tbaa !5
  %332 = load ptr, ptr %62, align 8, !tbaa !5
  %333 = load i32, ptr %63, align 4, !tbaa !9
  call void @png_set_text(ptr noundef %330, ptr noundef %331, ptr noundef %332, i32 noundef %333)
  br label %334

334:                                              ; preds = %329, %324
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  %335 = load ptr, ptr %6, align 8, !tbaa !5
  %336 = load ptr, ptr %7, align 8, !tbaa !5
  %337 = call i32 @png_get_tIME(ptr noundef %335, ptr noundef %336, ptr noundef %64)
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %348

339:                                              ; preds = %334
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = load ptr, ptr %10, align 8, !tbaa !5
  %342 = load ptr, ptr %64, align 8, !tbaa !5
  call void @png_set_tIME(ptr noundef %340, ptr noundef %341, ptr noundef %342)
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  %344 = load ptr, ptr %64, align 8, !tbaa !5
  %345 = call ptr @png_convert_to_rfc1123(ptr noundef %343, ptr noundef %344)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @tIME_string, ptr align 1 %345, i64 29, i1 false)
  store i8 0, ptr getelementptr inbounds ([29 x i8], ptr @tIME_string, i64 0, i64 28), align 4, !tbaa !15
  %346 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr @tIME_chunk_present, align 4, !tbaa !9
  br label %348

348:                                              ; preds = %339, %334
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %349 = load ptr, ptr %6, align 8, !tbaa !5
  %350 = load ptr, ptr %7, align 8, !tbaa !5
  %351 = call i32 @png_get_tRNS(ptr noundef %349, ptr noundef %350, ptr noundef %65, ptr noundef %66, ptr noundef %67)
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %353, label %396

353:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #8
  %354 = load i32, ptr %18, align 4, !tbaa !9
  %355 = shl i32 1, %354
  store i32 %355, ptr %68, align 4, !tbaa !9
  %356 = load i32, ptr %19, align 4, !tbaa !9
  %357 = icmp eq i32 %356, 0
  br i1 %357, label %358, label %365

358:                                              ; preds = %353
  %359 = load ptr, ptr %67, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.png_color_16_struct, ptr %359, i32 0, i32 4
  %361 = load i16, ptr %360, align 2, !tbaa !16
  %362 = zext i16 %361 to i32
  %363 = load i32, ptr %68, align 4, !tbaa !9
  %364 = icmp sgt i32 %362, %363
  br i1 %364, label %395, label %365

365:                                              ; preds = %358, %353
  %366 = load i32, ptr %19, align 4, !tbaa !9
  %367 = icmp eq i32 %366, 2
  br i1 %367, label %368, label %389

368:                                              ; preds = %365
  %369 = load ptr, ptr %67, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.png_color_16_struct, ptr %369, i32 0, i32 1
  %371 = load i16, ptr %370, align 2, !tbaa !19
  %372 = zext i16 %371 to i32
  %373 = load i32, ptr %68, align 4, !tbaa !9
  %374 = icmp sgt i32 %372, %373
  br i1 %374, label %395, label %375

375:                                              ; preds = %368
  %376 = load ptr, ptr %67, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.png_color_16_struct, ptr %376, i32 0, i32 2
  %378 = load i16, ptr %377, align 2, !tbaa !20
  %379 = zext i16 %378 to i32
  %380 = load i32, ptr %68, align 4, !tbaa !9
  %381 = icmp sgt i32 %379, %380
  br i1 %381, label %395, label %382

382:                                              ; preds = %375
  %383 = load ptr, ptr %67, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.png_color_16_struct, ptr %383, i32 0, i32 3
  %385 = load i16, ptr %384, align 2, !tbaa !21
  %386 = zext i16 %385 to i32
  %387 = load i32, ptr %68, align 4, !tbaa !9
  %388 = icmp sgt i32 %386, %387
  br i1 %388, label %395, label %389

389:                                              ; preds = %382, %365
  %390 = load ptr, ptr %9, align 8, !tbaa !5
  %391 = load ptr, ptr %10, align 8, !tbaa !5
  %392 = load ptr, ptr %65, align 8, !tbaa !5
  %393 = load i32, ptr %66, align 4, !tbaa !9
  %394 = load ptr, ptr %67, align 8, !tbaa !5
  call void @png_set_tRNS(ptr noundef %390, ptr noundef %391, ptr noundef %392, i32 noundef %393, ptr noundef %394)
  br label %395

395:                                              ; preds = %389, %382, %375, %368, %358
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #8
  br label %396

396:                                              ; preds = %395, %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #8
  %397 = load ptr, ptr %6, align 8, !tbaa !5
  %398 = load ptr, ptr %7, align 8, !tbaa !5
  %399 = call i32 @png_get_unknown_chunks(ptr noundef %397, ptr noundef %398, ptr noundef %69)
  store i32 %399, ptr %70, align 4, !tbaa !9
  %400 = load i32, ptr %70, align 4, !tbaa !9
  %401 = icmp ne i32 %400, 0
  br i1 %401, label %402, label %427

402:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #8
  %403 = load ptr, ptr %9, align 8, !tbaa !5
  %404 = load ptr, ptr %10, align 8, !tbaa !5
  %405 = load ptr, ptr %69, align 8, !tbaa !5
  %406 = load i32, ptr %70, align 4, !tbaa !9
  call void @png_set_unknown_chunks(ptr noundef %403, ptr noundef %404, ptr noundef %405, i32 noundef %406)
  store i64 0, ptr %71, align 8, !tbaa !22
  br label %407

407:                                              ; preds = %423, %402
  %408 = load i64, ptr %71, align 8, !tbaa !22
  %409 = load i32, ptr %70, align 4, !tbaa !9
  %410 = sext i32 %409 to i64
  %411 = icmp ult i64 %408, %410
  br i1 %411, label %412, label %426

412:                                              ; preds = %407
  %413 = load ptr, ptr %9, align 8, !tbaa !5
  %414 = load ptr, ptr %10, align 8, !tbaa !5
  %415 = load i64, ptr %71, align 8, !tbaa !22
  %416 = trunc i64 %415 to i32
  %417 = load ptr, ptr %69, align 8, !tbaa !5
  %418 = load i64, ptr %71, align 8, !tbaa !22
  %419 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %417, i64 %418
  %420 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %419, i32 0, i32 3
  %421 = load i8, ptr %420, align 8, !tbaa !24
  %422 = zext i8 %421 to i32
  call void @png_set_unknown_chunk_location(ptr noundef %413, ptr noundef %414, i32 noundef %416, i32 noundef %422)
  br label %423

423:                                              ; preds = %412
  %424 = load i64, ptr %71, align 8, !tbaa !22
  %425 = add i64 %424, 1
  store i64 %425, ptr %71, align 8, !tbaa !22
  br label %407, !llvm.loop !26

426:                                              ; preds = %407
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  br label %427

427:                                              ; preds = %426, %396
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  %428 = load ptr, ptr %9, align 8, !tbaa !5
  %429 = load ptr, ptr %10, align 8, !tbaa !5
  call void @png_write_info(ptr noundef %428, ptr noundef %429)
  %430 = load i32, ptr @user_chunk_data, align 16, !tbaa !9
  %431 = icmp ne i32 %430, 0
  br i1 %431, label %432, label %449

432:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 5, ptr %72) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %72, ptr align 1 @__const.test_one_file.png_sTER, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %73) #8
  %433 = load i32, ptr @verbose, align 4, !tbaa !9
  %434 = icmp ne i32 %433, 0
  br i1 %434, label %435, label %441

435:                                              ; preds = %432
  %436 = load ptr, ptr @stdout, align 8, !tbaa !5
  %437 = load i32, ptr @user_chunk_data, align 16, !tbaa !9
  %438 = sub i32 %437, 1
  %439 = zext i32 %438 to i64
  %440 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %436, ptr noundef @.str.11, i64 noundef %439) #8
  br label %441

441:                                              ; preds = %435, %432
  %442 = load i32, ptr @user_chunk_data, align 16, !tbaa !9
  %443 = sub i32 %442, 1
  %444 = trunc i32 %443 to i8
  %445 = getelementptr inbounds [1 x i8], ptr %73, i64 0, i64 0
  store i8 %444, ptr %445, align 1, !tbaa !15
  %446 = load ptr, ptr %9, align 8, !tbaa !5
  %447 = getelementptr inbounds [5 x i8], ptr %72, i64 0, i64 0
  %448 = getelementptr inbounds [1 x i8], ptr %73, i64 0, i64 0
  call void @png_write_chunk(ptr noundef %446, ptr noundef %447, ptr noundef %448, i64 noundef 1)
  call void @llvm.lifetime.end.p0(i64 1, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 5, ptr %72) #8
  br label %449

449:                                              ; preds = %441, %427
  %450 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 1), align 4, !tbaa !9
  %451 = icmp ne i32 %450, 0
  br i1 %451, label %455, label %452

452:                                              ; preds = %449
  %453 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 2), align 8, !tbaa !9
  %454 = icmp ne i32 %453, 0
  br i1 %454, label %455, label %480

455:                                              ; preds = %452, %449
  call void @llvm.lifetime.start.p0(i64 5, ptr %74) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %74, ptr align 1 @__const.test_one_file.png_vpAg, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 9, ptr %75) #8
  %456 = load i32, ptr @verbose, align 4, !tbaa !9
  %457 = icmp ne i32 %456, 0
  br i1 %457, label %458, label %467

458:                                              ; preds = %455
  %459 = load ptr, ptr @stdout, align 8, !tbaa !5
  %460 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 1), align 4, !tbaa !9
  %461 = zext i32 %460 to i64
  %462 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 2), align 8, !tbaa !9
  %463 = zext i32 %462 to i64
  %464 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 3), align 4, !tbaa !9
  %465 = zext i32 %464 to i64
  %466 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %459, ptr noundef @.str.12, i64 noundef %461, i64 noundef %463, i64 noundef %465) #8
  br label %467

467:                                              ; preds = %458, %455
  %468 = getelementptr inbounds [9 x i8], ptr %75, i64 0, i64 0
  %469 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 1), align 4, !tbaa !9
  call void @png_save_uint_32(ptr noundef %468, i32 noundef %469)
  %470 = getelementptr inbounds [9 x i8], ptr %75, i64 0, i64 0
  %471 = getelementptr inbounds i8, ptr %470, i64 4
  %472 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 2), align 8, !tbaa !9
  call void @png_save_uint_32(ptr noundef %471, i32 noundef %472)
  %473 = load i32, ptr getelementptr inbounds ([4 x i32], ptr @user_chunk_data, i64 0, i64 3), align 4, !tbaa !9
  %474 = and i32 %473, 255
  %475 = trunc i32 %474 to i8
  %476 = getelementptr inbounds [9 x i8], ptr %75, i64 0, i64 8
  store i8 %475, ptr %476, align 1, !tbaa !15
  %477 = load ptr, ptr %9, align 8, !tbaa !5
  %478 = getelementptr inbounds [5 x i8], ptr %74, i64 0, i64 0
  %479 = getelementptr inbounds [9 x i8], ptr %75, i64 0, i64 0
  call void @png_write_chunk(ptr noundef %477, ptr noundef %478, ptr noundef %479, i64 noundef 9)
  call void @llvm.lifetime.end.p0(i64 9, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 5, ptr %74) #8
  br label %480

480:                                              ; preds = %467, %452
  %481 = load ptr, ptr %6, align 8, !tbaa !5
  %482 = load ptr, ptr %6, align 8, !tbaa !5
  %483 = load ptr, ptr %7, align 8, !tbaa !5
  %484 = call i64 @png_get_rowbytes(ptr noundef %482, ptr noundef %483)
  %485 = call noalias ptr @png_malloc(ptr noundef %481, i64 noundef %484)
  store ptr %485, ptr %12, align 8, !tbaa !5
  %486 = load ptr, ptr %6, align 8, !tbaa !5
  %487 = call i32 @png_set_interlace_handling(ptr noundef %486)
  store i32 %487, ptr %16, align 4, !tbaa !9
  %488 = load ptr, ptr %9, align 8, !tbaa !5
  %489 = call i32 @png_set_interlace_handling(ptr noundef %488)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %490

490:                                              ; preds = %506, %480
  %491 = load i32, ptr %17, align 4, !tbaa !9
  %492 = load i32, ptr %16, align 4, !tbaa !9
  %493 = icmp slt i32 %491, %492
  br i1 %493, label %494, label %509

494:                                              ; preds = %490
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %495

495:                                              ; preds = %502, %494
  %496 = load i32, ptr %13, align 4, !tbaa !9
  %497 = load i32, ptr %15, align 4, !tbaa !9
  %498 = icmp ult i32 %496, %497
  br i1 %498, label %499, label %505

499:                                              ; preds = %495
  %500 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_read_rows(ptr noundef %500, ptr noundef %12, ptr noundef null, i32 noundef 1)
  %501 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_write_rows(ptr noundef %501, ptr noundef %12, i32 noundef 1)
  br label %502

502:                                              ; preds = %499
  %503 = load i32, ptr %13, align 4, !tbaa !9
  %504 = add i32 %503, 1
  store i32 %504, ptr %13, align 4, !tbaa !9
  br label %495, !llvm.loop !27

505:                                              ; preds = %495
  br label %506

506:                                              ; preds = %505
  %507 = load i32, ptr %17, align 4, !tbaa !9
  %508 = add nsw i32 %507, 1
  store i32 %508, ptr %17, align 4, !tbaa !9
  br label %490, !llvm.loop !28

509:                                              ; preds = %490
  %510 = load ptr, ptr %6, align 8, !tbaa !5
  %511 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free_data(ptr noundef %510, ptr noundef %511, i32 noundef 512, i32 noundef -1)
  %512 = load ptr, ptr %9, align 8, !tbaa !5
  %513 = load ptr, ptr %10, align 8, !tbaa !5
  call void @png_free_data(ptr noundef %512, ptr noundef %513, i32 noundef 512, i32 noundef -1)
  %514 = load ptr, ptr %6, align 8, !tbaa !5
  %515 = load ptr, ptr %8, align 8, !tbaa !5
  call void @png_read_end(ptr noundef %514, ptr noundef %515)
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %77) #8
  %516 = load ptr, ptr %6, align 8, !tbaa !5
  %517 = load ptr, ptr %8, align 8, !tbaa !5
  %518 = call i32 @png_get_text(ptr noundef %516, ptr noundef %517, ptr noundef %76, ptr noundef %77)
  %519 = icmp ugt i32 %518, 0
  br i1 %519, label %520, label %525

520:                                              ; preds = %509
  %521 = load ptr, ptr %9, align 8, !tbaa !5
  %522 = load ptr, ptr %11, align 8, !tbaa !5
  %523 = load ptr, ptr %76, align 8, !tbaa !5
  %524 = load i32, ptr %77, align 4, !tbaa !9
  call void @png_set_text(ptr noundef %521, ptr noundef %522, ptr noundef %523, i32 noundef %524)
  br label %525

525:                                              ; preds = %520, %509
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #8
  %526 = load ptr, ptr %6, align 8, !tbaa !5
  %527 = load ptr, ptr %8, align 8, !tbaa !5
  %528 = call i32 @png_get_tIME(ptr noundef %526, ptr noundef %527, ptr noundef %78)
  %529 = icmp ne i32 %528, 0
  br i1 %529, label %530, label %539

530:                                              ; preds = %525
  %531 = load ptr, ptr %9, align 8, !tbaa !5
  %532 = load ptr, ptr %11, align 8, !tbaa !5
  %533 = load ptr, ptr %78, align 8, !tbaa !5
  call void @png_set_tIME(ptr noundef %531, ptr noundef %532, ptr noundef %533)
  %534 = load ptr, ptr %6, align 8, !tbaa !5
  %535 = load ptr, ptr %78, align 8, !tbaa !5
  %536 = call ptr @png_convert_to_rfc1123(ptr noundef %534, ptr noundef %535)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @tIME_string, ptr align 1 %536, i64 29, i1 false)
  store i8 0, ptr getelementptr inbounds ([29 x i8], ptr @tIME_string, i64 0, i64 28), align 4, !tbaa !15
  %537 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %538 = add nsw i32 %537, 1
  store i32 %538, ptr @tIME_chunk_present, align 4, !tbaa !9
  br label %539

539:                                              ; preds = %530, %525
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #8
  %540 = load ptr, ptr %6, align 8, !tbaa !5
  %541 = load ptr, ptr %8, align 8, !tbaa !5
  %542 = call i32 @png_get_unknown_chunks(ptr noundef %540, ptr noundef %541, ptr noundef %79)
  store i32 %542, ptr %80, align 4, !tbaa !9
  %543 = load i32, ptr %80, align 4, !tbaa !9
  %544 = icmp ne i32 %543, 0
  br i1 %544, label %545, label %570

545:                                              ; preds = %539
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #8
  %546 = load ptr, ptr %9, align 8, !tbaa !5
  %547 = load ptr, ptr %11, align 8, !tbaa !5
  %548 = load ptr, ptr %79, align 8, !tbaa !5
  %549 = load i32, ptr %80, align 4, !tbaa !9
  call void @png_set_unknown_chunks(ptr noundef %546, ptr noundef %547, ptr noundef %548, i32 noundef %549)
  store i64 0, ptr %81, align 8, !tbaa !22
  br label %550

550:                                              ; preds = %566, %545
  %551 = load i64, ptr %81, align 8, !tbaa !22
  %552 = load i32, ptr %80, align 4, !tbaa !9
  %553 = sext i32 %552 to i64
  %554 = icmp ult i64 %551, %553
  br i1 %554, label %555, label %569

555:                                              ; preds = %550
  %556 = load ptr, ptr %9, align 8, !tbaa !5
  %557 = load ptr, ptr %11, align 8, !tbaa !5
  %558 = load i64, ptr %81, align 8, !tbaa !22
  %559 = trunc i64 %558 to i32
  %560 = load ptr, ptr %79, align 8, !tbaa !5
  %561 = load i64, ptr %81, align 8, !tbaa !22
  %562 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %560, i64 %561
  %563 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %562, i32 0, i32 3
  %564 = load i8, ptr %563, align 8, !tbaa !24
  %565 = zext i8 %564 to i32
  call void @png_set_unknown_chunk_location(ptr noundef %556, ptr noundef %557, i32 noundef %559, i32 noundef %565)
  br label %566

566:                                              ; preds = %555
  %567 = load i64, ptr %81, align 8, !tbaa !22
  %568 = add i64 %567, 1
  store i64 %568, ptr %81, align 8, !tbaa !22
  br label %550, !llvm.loop !29

569:                                              ; preds = %550
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #8
  br label %570

570:                                              ; preds = %569, %539
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #8
  %571 = load ptr, ptr %9, align 8, !tbaa !5
  %572 = load ptr, ptr %11, align 8, !tbaa !5
  call void @png_write_end(ptr noundef %571, ptr noundef %572)
  %573 = load i32, ptr @verbose, align 4, !tbaa !9
  %574 = icmp ne i32 %573, 0
  br i1 %574, label %575, label %588

575:                                              ; preds = %570
  call void @llvm.lifetime.start.p0(i64 4, ptr %82) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #8
  %576 = load ptr, ptr %9, align 8, !tbaa !5
  %577 = load ptr, ptr %10, align 8, !tbaa !5
  %578 = call i32 @png_get_image_width(ptr noundef %576, ptr noundef %577)
  store i32 %578, ptr %82, align 4, !tbaa !9
  %579 = load ptr, ptr %9, align 8, !tbaa !5
  %580 = load ptr, ptr %10, align 8, !tbaa !5
  %581 = call i32 @png_get_image_height(ptr noundef %579, ptr noundef %580)
  store i32 %581, ptr %83, align 4, !tbaa !9
  %582 = load ptr, ptr @stdout, align 8, !tbaa !5
  %583 = load i32, ptr %82, align 4, !tbaa !9
  %584 = zext i32 %583 to i64
  %585 = load i32, ptr %83, align 4, !tbaa !9
  %586 = zext i32 %585 to i64
  %587 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %582, ptr noundef @.str.13, i64 noundef %584, i64 noundef %586) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #8
  br label %588

588:                                              ; preds = %575, %570
  %589 = load ptr, ptr %6, align 8, !tbaa !5
  %590 = load ptr, ptr %12, align 8, !tbaa !5
  call void @png_free(ptr noundef %589, ptr noundef %590)
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @png_destroy_read_struct(ptr noundef %6, ptr noundef %7, ptr noundef %8)
  %591 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_destroy_info_struct(ptr noundef %591, ptr noundef %11)
  call void @png_destroy_write_struct(ptr noundef %9, ptr noundef %10)
  %592 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %593 = call i32 @fclose(ptr noundef %592)
  %594 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %595 = call i32 @fclose(ptr noundef %594)
  %596 = load ptr, ptr %4, align 8, !tbaa !5
  %597 = call noalias ptr @fopen(ptr noundef %596, ptr noundef @.str.4)
  store ptr %597, ptr @test_one_file.fpin, align 8, !tbaa !5
  %598 = icmp eq ptr %597, null
  br i1 %598, label %599, label %603

599:                                              ; preds = %588
  %600 = load ptr, ptr @stdout, align 8, !tbaa !5
  %601 = load ptr, ptr %4, align 8, !tbaa !5
  %602 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %600, ptr noundef @.str.14, ptr noundef %601) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %683

603:                                              ; preds = %588
  %604 = load ptr, ptr %5, align 8, !tbaa !5
  %605 = call noalias ptr @fopen(ptr noundef %604, ptr noundef @.str.4)
  store ptr %605, ptr @test_one_file.fpout, align 8, !tbaa !5
  %606 = icmp eq ptr %605, null
  br i1 %606, label %607, label %613

607:                                              ; preds = %603
  %608 = load ptr, ptr @stdout, align 8, !tbaa !5
  %609 = load ptr, ptr %5, align 8, !tbaa !5
  %610 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %608, ptr noundef @.str.14, ptr noundef %609) #8
  %611 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %612 = call i32 @fclose(ptr noundef %611)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %683

613:                                              ; preds = %603
  br label %614

614:                                              ; preds = %677, %613
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %85) #8
  %615 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  %616 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %617 = call i64 @fread(ptr noundef %615, i64 noundef 1, i64 noundef 1, ptr noundef %616)
  store i64 %617, ptr %84, align 8, !tbaa !22
  %618 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 0
  %619 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %620 = call i64 @fread(ptr noundef %618, i64 noundef 1, i64 noundef 1, ptr noundef %619)
  store i64 %620, ptr %85, align 8, !tbaa !22
  %621 = load i64, ptr %84, align 8, !tbaa !22
  %622 = load i64, ptr %85, align 8, !tbaa !22
  %623 = icmp ne i64 %621, %622
  br i1 %623, label %624, label %644

624:                                              ; preds = %614
  %625 = load ptr, ptr @stdout, align 8, !tbaa !5
  %626 = load ptr, ptr %4, align 8, !tbaa !5
  %627 = load ptr, ptr %5, align 8, !tbaa !5
  %628 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %625, ptr noundef @.str.15, ptr noundef %626, ptr noundef %627) #8
  %629 = load i32, ptr @wrote_question, align 4, !tbaa !9
  %630 = icmp eq i32 %629, 0
  br i1 %630, label %631, label %639

631:                                              ; preds = %624
  %632 = load ptr, ptr @stdout, align 8, !tbaa !5
  %633 = load ptr, ptr %4, align 8, !tbaa !5
  %634 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %632, ptr noundef @.str.16, ptr noundef %633, i32 noundef 8192) #8
  %635 = load ptr, ptr @stdout, align 8, !tbaa !5
  %636 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %635, ptr noundef @.str.17) #8
  %637 = load ptr, ptr @stdout, align 8, !tbaa !5
  %638 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %637, ptr noundef @.str.18, ptr noundef @.str.19) #8
  store i32 1, ptr @wrote_question, align 4, !tbaa !9
  br label %639

639:                                              ; preds = %631, %624
  %640 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %641 = call i32 @fclose(ptr noundef %640)
  %642 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %643 = call i32 @fclose(ptr noundef %642)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %675

644:                                              ; preds = %614
  %645 = load i64, ptr %84, align 8, !tbaa !22
  %646 = icmp ne i64 %645, 0
  br i1 %646, label %648, label %647

647:                                              ; preds = %644
  store i32 17, ptr %22, align 4
  br label %675

648:                                              ; preds = %644
  %649 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  %650 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 0
  %651 = load i64, ptr %84, align 8, !tbaa !22
  %652 = call i32 @memcmp(ptr noundef %649, ptr noundef %650, i64 noundef %651) #10
  %653 = icmp ne i32 %652, 0
  br i1 %653, label %654, label %674

654:                                              ; preds = %648
  %655 = load ptr, ptr @stdout, align 8, !tbaa !5
  %656 = load ptr, ptr %4, align 8, !tbaa !5
  %657 = load ptr, ptr %5, align 8, !tbaa !5
  %658 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %655, ptr noundef @.str.20, ptr noundef %656, ptr noundef %657) #8
  %659 = load i32, ptr @wrote_question, align 4, !tbaa !9
  %660 = icmp eq i32 %659, 0
  br i1 %660, label %661, label %669

661:                                              ; preds = %654
  %662 = load ptr, ptr @stdout, align 8, !tbaa !5
  %663 = load ptr, ptr %4, align 8, !tbaa !5
  %664 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %662, ptr noundef @.str.16, ptr noundef %663, i32 noundef 8192) #8
  %665 = load ptr, ptr @stdout, align 8, !tbaa !5
  %666 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %665, ptr noundef @.str.17) #8
  %667 = load ptr, ptr @stdout, align 8, !tbaa !5
  %668 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %667, ptr noundef @.str.18, ptr noundef @.str.19) #8
  store i32 1, ptr @wrote_question, align 4, !tbaa !9
  br label %669

669:                                              ; preds = %661, %654
  %670 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %671 = call i32 @fclose(ptr noundef %670)
  %672 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %673 = call i32 @fclose(ptr noundef %672)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %675

674:                                              ; preds = %648
  store i32 0, ptr %22, align 4
  br label %675

675:                                              ; preds = %674, %669, %647, %639
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #8
  %676 = load i32, ptr %22, align 4
  switch i32 %676, label %683 [
    i32 0, label %677
    i32 17, label %678
  ]

677:                                              ; preds = %675
  br label %614

678:                                              ; preds = %675
  %679 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %680 = call i32 @fclose(ptr noundef %679)
  %681 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %682 = call i32 @fclose(ptr noundef %681)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %683

683:                                              ; preds = %678, %675, %607, %599, %138, %120, %97, %89
  call void @llvm.lifetime.end.p0(i64 256, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %684 = load i32, ptr %3, align 4
  ret i32 %684
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

declare i32 @fclose(ptr noundef) #3

declare noalias ptr @png_create_read_struct(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @png_set_read_user_chunk_fn(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @read_user_chunk_callback(ptr noundef, ptr noundef) #0

declare noalias ptr @png_create_write_struct(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noalias ptr @png_create_info_struct(ptr noundef) #3

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #4

declare ptr @png_set_longjmp_fn(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: noreturn nounwind
declare void @longjmp(ptr noundef, i32 noundef) #5

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

declare void @png_destroy_read_struct(ptr noundef, ptr noundef, ptr noundef) #3

declare void @png_destroy_info_struct(ptr noundef, ptr noundef) #3

declare void @png_destroy_write_struct(ptr noundef, ptr noundef) #3

declare void @png_init_io(ptr noundef, ptr noundef) #3

declare void @png_set_write_status_fn(ptr noundef, ptr noundef) #3

declare void @png_set_read_status_fn(ptr noundef, ptr noundef) #3

declare void @png_set_read_user_transform_fn(ptr noundef, ptr noundef) #3

declare void @png_set_write_user_transform_fn(ptr noundef, ptr noundef) #3

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

declare void @png_read_info(ptr noundef, ptr noundef) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @png_set_bKGD(ptr noundef, ptr noundef, ptr noundef) #3

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

declare void @png_set_hIST(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

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

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

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

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

declare void @png_set_sBIT(ptr noundef, ptr noundef, ptr noundef) #3

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

declare void @png_set_sCAL(ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef) #3

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

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

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

declare void @png_set_tIME(ptr noundef, ptr noundef, ptr noundef) #3

declare ptr @png_convert_to_rfc1123(ptr noundef, ptr noundef) #3

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

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

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

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

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

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

declare void @png_write_info(ptr noundef, ptr noundef) #3

declare void @png_write_chunk(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

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

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

declare i64 @png_get_rowbytes(ptr noundef, ptr noundef) #3

declare i32 @png_set_interlace_handling(ptr noundef) #3

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

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

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

declare void @png_read_end(ptr noundef, ptr noundef) #3

declare void @png_write_end(ptr noundef, ptr noundef) #3

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

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

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

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind returns_twice "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 = { noreturn 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 returns_twice }
attributes #10 = { 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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !18, i64 8}
!17 = !{!"png_color_16_struct", !7, i64 0, !18, i64 2, !18, i64 4, !18, i64 6, !18, i64 8}
!18 = !{!"short", !7, i64 0}
!19 = !{!17, !18, i64 2}
!20 = !{!17, !18, i64 4}
!21 = !{!17, !18, i64 6}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!25, !7, i64 24}
!25 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !23, i64 16, !7, i64 24}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}


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

%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

@stdout = external local_unnamed_addr global ptr, align 8
@filters_used = external hidden local_unnamed_addr global [256 x i32], align 16
@zero_samples = external hidden local_unnamed_addr global i32, align 4
@test_one_file.fpin = external hidden local_unnamed_addr global ptr, align 8
@test_one_file.fpout = external hidden local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@user_chunk_data = external hidden global [4 x i32], align 16
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@status_dots_requested = external hidden local_unnamed_addr global i32, align 4
@tIME_string = external hidden local_unnamed_addr global [29 x i8], align 16
@tIME_chunk_present = external hidden local_unnamed_addr global i32, align 4
@__const.test_one_file.png_sTER = external hidden unnamed_addr constant [5 x i8], align 1
@verbose = external hidden local_unnamed_addr global i32, align 4
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.test_one_file.png_vpAg = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@wrote_question = external hidden local_unnamed_addr global i32, align 4
@.str.16 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @read_row_callback(ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @write_row_callback(ptr noundef, i32 noundef, i32 noundef) #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @test_one_file(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca 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 i32, align 4
  %14 = alloca [256 x i8], align 16
  %15 = alloca [256 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca double, align 8
  %53 = alloca double, align 8
  %54 = alloca ptr, align 8
  %55 = alloca i32, align 4
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca i32, align 4
  %59 = alloca ptr, align 8
  %60 = alloca ptr, align 8
  %61 = alloca [5 x i8], align 1
  %62 = alloca [1 x i8], align 1
  %63 = alloca [5 x i8], align 1
  %64 = alloca [9 x i8], align 1
  %65 = alloca ptr, align 8
  %66 = alloca i32, align 4
  %67 = alloca ptr, align 8
  %68 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %15) #9
  store ptr null, ptr %9, align 8, !tbaa !5
  %69 = call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.4)
  store ptr %69, ptr @test_one_file.fpin, align 8, !tbaa !5
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %74

71:                                               ; preds = %2
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.5, ptr noundef %0) #9
  br label %.thread90

74:                                               ; preds = %2
  %75 = call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.6)
  store ptr %75, ptr @test_one_file.fpout, align 8, !tbaa !5
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %82

77:                                               ; preds = %74
  %78 = load ptr, ptr @stdout, align 8, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.7, ptr noundef %1) #9
  %80 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %81 = call i32 @fclose(ptr noundef %80)
  br label %.thread90

82:                                               ; preds = %74
  %83 = call noalias ptr @png_create_read_struct(ptr noundef nonnull @.str.8, ptr noundef null, ptr noundef null, ptr noundef null) #9
  store ptr %83, ptr %3, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) @user_chunk_data, i8 0, i64 16, i1 false)
  call void @png_set_read_user_chunk_fn(ptr noundef %83, ptr noundef nonnull @user_chunk_data, ptr noundef nonnull @read_user_chunk_callback) #9
  %84 = call noalias ptr @png_create_write_struct(ptr noundef nonnull @.str.8, ptr noundef null, ptr noundef null, ptr noundef null) #9
  store ptr %84, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = call noalias ptr @png_create_info_struct(ptr noundef %85) #9
  store ptr %86, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = call noalias ptr @png_create_info_struct(ptr noundef %87) #9
  store ptr %88, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = call noalias ptr @png_create_info_struct(ptr noundef %89) #9
  store ptr %90, ptr %7, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call noalias ptr @png_create_info_struct(ptr noundef %91) #9
  store ptr %92, ptr %8, align 8, !tbaa !5
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = call ptr @png_set_longjmp_fn(ptr noundef %93, ptr noundef nonnull @longjmp, i64 noundef 200) #9
  %95 = call i32 @_setjmp(ptr noundef %94) #10
  %.not = icmp eq i32 %95, 0
  br i1 %.not, label %106, label %96

96:                                               ; preds = %82
  %97 = load ptr, ptr @stdout, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.9, ptr noundef %0, ptr noundef %1) #9
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_free(ptr noundef %99, ptr noundef %100) #9
  call void @png_destroy_read_struct(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #9
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_destroy_info_struct(ptr noundef %101, ptr noundef nonnull %8) #9
  call void @png_destroy_write_struct(ptr noundef nonnull %6, ptr noundef nonnull %7) #9
  %102 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %103 = call i32 @fclose(ptr noundef %102)
  %104 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %105 = call i32 @fclose(ptr noundef %104)
  br label %.thread90

106:                                              ; preds = %82
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call ptr @png_set_longjmp_fn(ptr noundef %107, ptr noundef nonnull @longjmp, i64 noundef 200) #9
  %109 = call i32 @_setjmp(ptr noundef %108) #10
  %.not62 = icmp eq i32 %109, 0
  br i1 %.not62, label %118, label %110

110:                                              ; preds = %106
  %111 = load ptr, ptr @stdout, align 8, !tbaa !5
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.10, ptr noundef %0, ptr noundef %1) #9
  call void @png_destroy_read_struct(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #9
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_destroy_info_struct(ptr noundef %113, ptr noundef nonnull %8) #9
  call void @png_destroy_write_struct(ptr noundef nonnull %6, ptr noundef nonnull %7) #9
  %114 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %115 = call i32 @fclose(ptr noundef %114)
  %116 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %117 = call i32 @fclose(ptr noundef %116)
  br label %.thread90

118:                                              ; preds = %106
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  call void @png_init_io(ptr noundef %119, ptr noundef %120) #9
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  call void @png_init_io(ptr noundef %121, ptr noundef %122) #9
  %123 = load i32, ptr @status_dots_requested, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 1
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  br i1 %124, label %126, label %128

126:                                              ; preds = %118
  call void @png_set_write_status_fn(ptr noundef %125, ptr noundef nonnull @write_row_callback) #9
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_set_read_status_fn(ptr noundef %127, ptr noundef nonnull @read_row_callback) #9
  br label %130

128:                                              ; preds = %118
  call void @png_set_write_status_fn(ptr noundef %125, ptr noundef null) #9
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_set_read_status_fn(ptr noundef %129, ptr noundef null) #9
  br label %130

130:                                              ; preds = %128, %126
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) @filters_used, i8 0, i64 1024, i1 false), !tbaa !9
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_set_read_user_transform_fn(ptr noundef %131, ptr noundef nonnull @count_filters) #9
  store i32 0, ptr @zero_samples, align 4, !tbaa !9
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_set_write_user_transform_fn(ptr noundef %132, ptr noundef nonnull @count_zero_samples) #9
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_set_keep_unknown_chunks(ptr noundef %133, i32 noundef 3, ptr noundef null, i32 noundef 0) #9
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_set_keep_unknown_chunks(ptr noundef %134, i32 noundef 2, ptr noundef null, i32 noundef 0) #9
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_read_info(ptr noundef %135, ptr noundef %136) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = call i32 @png_get_IHDR(ptr noundef %137, ptr noundef %138, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18) #9
  %.not63 = icmp eq i32 %139, 0
  br i1 %.not63, label %150, label %140

140:                                              ; preds = %130
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %17, align 4, !tbaa !9
  %149 = load i32, ptr %18, align 4, !tbaa !9
  call void @png_set_IHDR(ptr noundef %141, ptr noundef %142, i32 noundef %143, i32 noundef %144, i32 noundef %145, i32 noundef %146, i32 noundef %147, i32 noundef %148, i32 noundef %149) #9
  br label %150

150:                                              ; preds = %140, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #9
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = call i32 @png_get_cHRM_fixed(ptr noundef %151, ptr noundef %152, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26) #9
  %.not64 = icmp eq i32 %153, 0
  br i1 %.not64, label %165, label %154

154:                                              ; preds = %150
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = load i32, ptr %19, align 4, !tbaa !9
  %158 = load i32, ptr %20, align 4, !tbaa !9
  %159 = load i32, ptr %21, align 4, !tbaa !9
  %160 = load i32, ptr %22, align 4, !tbaa !9
  %161 = load i32, ptr %23, align 4, !tbaa !9
  %162 = load i32, ptr %24, align 4, !tbaa !9
  %163 = load i32, ptr %25, align 4, !tbaa !9
  %164 = load i32, ptr %26, align 4, !tbaa !9
  call void @png_set_cHRM_fixed(ptr noundef %155, ptr noundef %156, i32 noundef %157, i32 noundef %158, i32 noundef %159, i32 noundef %160, i32 noundef %161, i32 noundef %162, i32 noundef %163, i32 noundef %164) #9
  br label %165

165:                                              ; preds = %154, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #9
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = call i32 @png_get_gAMA_fixed(ptr noundef %166, ptr noundef %167, ptr noundef nonnull %27) #9
  %.not65 = icmp eq i32 %168, 0
  br i1 %.not65, label %173, label %169

169:                                              ; preds = %165
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = load i32, ptr %27, align 4, !tbaa !9
  call void @png_set_gAMA_fixed(ptr noundef %170, ptr noundef %171, i32 noundef %172) #9
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #9
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = call i32 @png_get_iCCP(ptr noundef %174, ptr noundef %175, ptr noundef nonnull %28, ptr noundef nonnull %31, ptr noundef nonnull %29, ptr noundef nonnull %30) #9
  %.not66 = icmp eq i32 %176, 0
  br i1 %.not66, label %184, label %177

177:                                              ; preds = %173
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = load ptr, ptr %28, align 8, !tbaa !5
  %181 = load i32, ptr %31, align 4, !tbaa !9
  %182 = load ptr, ptr %29, align 8, !tbaa !5
  %183 = load i32, ptr %30, align 4, !tbaa !9
  call void @png_set_iCCP(ptr noundef %178, ptr noundef %179, ptr noundef %180, i32 noundef %181, ptr noundef %182, i32 noundef %183) #9
  br label %184

184:                                              ; preds = %177, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #9
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = call i32 @png_get_sRGB(ptr noundef %185, ptr noundef %186, ptr noundef nonnull %32) #9
  %.not67 = icmp eq i32 %187, 0
  br i1 %.not67, label %192, label %188

188:                                              ; preds = %184
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = load i32, ptr %32, align 4, !tbaa !9
  call void @png_set_sRGB(ptr noundef %189, ptr noundef %190, i32 noundef %191) #9
  br label %192

192:                                              ; preds = %188, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #9
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = call i32 @png_get_PLTE(ptr noundef %193, ptr noundef %194, ptr noundef nonnull %33, ptr noundef nonnull %34) #9
  %.not68 = icmp eq i32 %195, 0
  br i1 %.not68, label %201, label %196

196:                                              ; preds = %192
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = load ptr, ptr %33, align 8, !tbaa !5
  %200 = load i32, ptr %34, align 4, !tbaa !9
  call void @png_set_PLTE(ptr noundef %197, ptr noundef %198, ptr noundef %199, i32 noundef %200) #9
  br label %201

201:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #9
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = call i32 @png_get_bKGD(ptr noundef %202, ptr noundef %203, ptr noundef nonnull %35) #9
  %.not69 = icmp eq i32 %204, 0
  br i1 %.not69, label %209, label %205

205:                                              ; preds = %201
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load ptr, ptr %35, align 8, !tbaa !5
  call void @png_set_bKGD(ptr noundef %206, ptr noundef %207, ptr noundef %208) #9
  br label %209

209:                                              ; preds = %205, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #9
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = call i32 @png_get_hIST(ptr noundef %210, ptr noundef %211, ptr noundef nonnull %36) #9
  %.not70 = icmp eq i32 %212, 0
  br i1 %.not70, label %217, label %213

213:                                              ; preds = %209
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = load ptr, ptr %36, align 8, !tbaa !5
  call void @png_set_hIST(ptr noundef %214, ptr noundef %215, ptr noundef %216) #9
  br label %217

217:                                              ; preds = %213, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #9
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = call i32 @png_get_oFFs(ptr noundef %218, ptr noundef %219, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull %39) #9
  %.not71 = icmp eq i32 %220, 0
  br i1 %.not71, label %227, label %221

221:                                              ; preds = %217
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = load i32, ptr %37, align 4, !tbaa !9
  %225 = load i32, ptr %38, align 4, !tbaa !9
  %226 = load i32, ptr %39, align 4, !tbaa !9
  call void @png_set_oFFs(ptr noundef %222, ptr noundef %223, i32 noundef %224, i32 noundef %225, i32 noundef %226) #9
  br label %227

227:                                              ; preds = %221, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %46) #9
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = call i32 @png_get_pCAL(ptr noundef %228, ptr noundef %229, ptr noundef nonnull %40, ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %41, ptr noundef nonnull %42) #9
  %.not72 = icmp eq i32 %230, 0
  br i1 %.not72, label %241, label %231

231:                                              ; preds = %227
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = load ptr, ptr %40, align 8, !tbaa !5
  %235 = load i32, ptr %43, align 4, !tbaa !9
  %236 = load i32, ptr %44, align 4, !tbaa !9
  %237 = load i32, ptr %45, align 4, !tbaa !9
  %238 = load i32, ptr %46, align 4, !tbaa !9
  %239 = load ptr, ptr %41, align 8, !tbaa !5
  %240 = load ptr, ptr %42, align 8, !tbaa !5
  call void @png_set_pCAL(ptr noundef %232, ptr noundef %233, ptr noundef %234, i32 noundef %235, i32 noundef %236, i32 noundef %237, i32 noundef %238, ptr noundef %239, ptr noundef %240) #9
  br label %241

241:                                              ; preds = %231, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %47) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %48) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %49) #9
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = call i32 @png_get_pHYs(ptr noundef %242, ptr noundef %243, ptr noundef nonnull %47, ptr noundef nonnull %48, ptr noundef nonnull %49) #9
  %.not73 = icmp eq i32 %244, 0
  br i1 %.not73, label %251, label %245

245:                                              ; preds = %241
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  %248 = load i32, ptr %47, align 4, !tbaa !9
  %249 = load i32, ptr %48, align 4, !tbaa !9
  %250 = load i32, ptr %49, align 4, !tbaa !9
  call void @png_set_pHYs(ptr noundef %246, ptr noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250) #9
  br label %251

251:                                              ; preds = %245, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %48) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %47) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %50) #9
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = call i32 @png_get_sBIT(ptr noundef %252, ptr noundef %253, ptr noundef nonnull %50) #9
  %.not74 = icmp eq i32 %254, 0
  br i1 %.not74, label %259, label %255

255:                                              ; preds = %251
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = load ptr, ptr %50, align 8, !tbaa !5
  call void @png_set_sBIT(ptr noundef %256, ptr noundef %257, ptr noundef %258) #9
  br label %259

259:                                              ; preds = %255, %251
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %51) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %52) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %53) #9
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = call i32 @png_get_sCAL(ptr noundef %260, ptr noundef %261, ptr noundef nonnull %51, ptr noundef nonnull %52, ptr noundef nonnull %53) #9
  %.not75 = icmp eq i32 %262, 0
  br i1 %.not75, label %269, label %263

263:                                              ; preds = %259
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = load i32, ptr %51, align 4, !tbaa !9
  %267 = load double, ptr %52, align 8, !tbaa !11
  %268 = load double, ptr %53, align 8, !tbaa !11
  call void @png_set_sCAL(ptr noundef %264, ptr noundef %265, i32 noundef %266, double noundef %267, double noundef %268) #9
  br label %269

269:                                              ; preds = %263, %259
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %53) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %51) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %54) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %55) #9
  %270 = load ptr, ptr %3, align 8, !tbaa !5
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = call i32 @png_get_text(ptr noundef %270, ptr noundef %271, ptr noundef nonnull %54, ptr noundef nonnull %55) #9
  %.not76 = icmp eq i32 %272, 0
  br i1 %.not76, label %278, label %273

273:                                              ; preds = %269
  %274 = load ptr, ptr %6, align 8, !tbaa !5
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = load ptr, ptr %54, align 8, !tbaa !5
  %277 = load i32, ptr %55, align 4, !tbaa !9
  call void @png_set_text(ptr noundef %274, ptr noundef %275, ptr noundef %276, i32 noundef %277) #9
  br label %278

278:                                              ; preds = %273, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %55) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %56) #9
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = call i32 @png_get_tIME(ptr noundef %279, ptr noundef %280, ptr noundef nonnull %56) #9
  %.not77 = icmp eq i32 %281, 0
  br i1 %.not77, label %291, label %282

282:                                              ; preds = %278
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = load ptr, ptr %56, align 8, !tbaa !5
  call void @png_set_tIME(ptr noundef %283, ptr noundef %284, ptr noundef %285) #9
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = load ptr, ptr %56, align 8, !tbaa !5
  %288 = call ptr @png_convert_to_rfc1123(ptr noundef %286, ptr noundef %287) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(29) @tIME_string, ptr noundef nonnull align 1 dereferenceable(29) %288, i64 29, i1 false)
  store i8 0, ptr getelementptr inbounds (i8, ptr @tIME_string, i64 28), align 4, !tbaa !13
  %289 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr @tIME_chunk_present, align 4, !tbaa !9
  br label %291

291:                                              ; preds = %282, %278
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %56) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %57) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %58) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %59) #9
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = call i32 @png_get_tRNS(ptr noundef %292, ptr noundef %293, ptr noundef nonnull %57, ptr noundef nonnull %58, ptr noundef nonnull %59) #9
  %.not78 = icmp eq i32 %294, 0
  br i1 %.not78, label %323, label %295

295:                                              ; preds = %291
  %296 = load i32, ptr %12, align 4, !tbaa !9
  %297 = shl nuw i32 1, %296
  %298 = load i32, ptr %13, align 4, !tbaa !9
  %.pre = load ptr, ptr %59, align 8, !tbaa !5
  switch i32 %298, label %.thread [
    i32 0, label %299
    i32 2, label %304
  ]

299:                                              ; preds = %295
  %300 = getelementptr inbounds i8, ptr %.pre, i64 8
  %301 = load i16, ptr %300, align 2, !tbaa !14
  %302 = zext i16 %301 to i32
  %303 = icmp slt i32 %297, %302
  br i1 %303, label %323, label %.thread

304:                                              ; preds = %295
  %305 = getelementptr inbounds i8, ptr %.pre, i64 2
  %306 = load i16, ptr %305, align 2, !tbaa !17
  %307 = zext i16 %306 to i32
  %308 = icmp slt i32 %297, %307
  br i1 %308, label %323, label %309

309:                                              ; preds = %304
  %310 = getelementptr inbounds i8, ptr %.pre, i64 4
  %311 = load i16, ptr %310, align 2, !tbaa !18
  %312 = zext i16 %311 to i32
  %313 = icmp ult i32 %297, %312
  br i1 %313, label %323, label %314

314:                                              ; preds = %309
  %315 = getelementptr inbounds i8, ptr %.pre, i64 6
  %316 = load i16, ptr %315, align 2, !tbaa !19
  %317 = zext i16 %316 to i32
  %318 = icmp ult i32 %297, %317
  br i1 %318, label %323, label %.thread

.thread:                                          ; preds = %295, %299, %314
  %319 = load ptr, ptr %6, align 8, !tbaa !5
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = load ptr, ptr %57, align 8, !tbaa !5
  %322 = load i32, ptr %58, align 4, !tbaa !9
  call void @png_set_tRNS(ptr noundef %319, ptr noundef %320, ptr noundef %321, i32 noundef %322, ptr noundef %.pre) #9
  br label %323

323:                                              ; preds = %299, %304, %309, %314, %.thread, %291
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %58) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %57) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %60) #9
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = call i32 @png_get_unknown_chunks(ptr noundef %324, ptr noundef %325, ptr noundef nonnull %60) #9
  %.not79 = icmp eq i32 %326, 0
  br i1 %.not79, label %.loopexit95, label %327

327:                                              ; preds = %323
  %328 = load ptr, ptr %6, align 8, !tbaa !5
  %329 = load ptr, ptr %7, align 8, !tbaa !5
  %330 = load ptr, ptr %60, align 8, !tbaa !5
  call void @png_set_unknown_chunks(ptr noundef %328, ptr noundef %329, ptr noundef %330, i32 noundef %326) #9
  %331 = sext i32 %326 to i64
  br label %332

332:                                              ; preds = %327, %332
  %.05797 = phi i64 [ 0, %327 ], [ %340, %332 ]
  %333 = load ptr, ptr %6, align 8, !tbaa !5
  %334 = load ptr, ptr %7, align 8, !tbaa !5
  %335 = trunc i64 %.05797 to i32
  %336 = load ptr, ptr %60, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %336, i64 %.05797, i32 3
  %338 = load i8, ptr %337, align 8, !tbaa !20
  %339 = zext i8 %338 to i32
  call void @png_set_unknown_chunk_location(ptr noundef %333, ptr noundef %334, i32 noundef %335, i32 noundef %339) #9
  %340 = add nuw i64 %.05797, 1
  %exitcond.not = icmp eq i64 %340, %331
  br i1 %exitcond.not, label %.loopexit95, label %332, !llvm.loop !23

.loopexit95:                                      ; preds = %332, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #9
  %341 = load ptr, ptr %6, align 8, !tbaa !5
  %342 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_write_info(ptr noundef %341, ptr noundef %342) #9
  %343 = load i32, ptr @user_chunk_data, align 16, !tbaa !9
  %.not80 = icmp eq i32 %343, 0
  br i1 %.not80, label %356, label %344

344:                                              ; preds = %.loopexit95
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %61) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %61, ptr noundef nonnull align 1 dereferenceable(5) @__const.test_one_file.png_sTER, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %62) #9
  %345 = load i32, ptr @verbose, align 4, !tbaa !9
  %.not81 = icmp eq i32 %345, 0
  br i1 %.not81, label %351, label %346

346:                                              ; preds = %344
  %347 = load ptr, ptr @stdout, align 8, !tbaa !5
  %348 = add i32 %343, -1
  %349 = zext i32 %348 to i64
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %347, ptr noundef nonnull @.str.11, i64 noundef %349) #9
  %.pre108 = load i32, ptr @user_chunk_data, align 16, !tbaa !9
  br label %351

351:                                              ; preds = %346, %344
  %352 = phi i32 [ %.pre108, %346 ], [ %343, %344 ]
  %353 = trunc i32 %352 to i8
  %354 = add i8 %353, -1
  store i8 %354, ptr %62, align 1, !tbaa !13
  %355 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_write_chunk(ptr noundef %355, ptr noundef nonnull %61, ptr noundef nonnull %62, i64 noundef 1) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %62) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %61) #9
  br label %356

356:                                              ; preds = %351, %.loopexit95
  %357 = load i32, ptr getelementptr inbounds (i8, ptr @user_chunk_data, i64 4), align 4, !tbaa !9
  %358 = icmp ne i32 %357, 0
  %359 = load i32, ptr getelementptr inbounds (i8, ptr @user_chunk_data, i64 8), align 8
  %360 = icmp ne i32 %359, 0
  %or.cond = select i1 %358, i1 true, i1 %360
  br i1 %or.cond, label %361, label %378

361:                                              ; preds = %356
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %63) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %63, ptr noundef nonnull align 1 dereferenceable(5) @__const.test_one_file.png_vpAg, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 9, ptr nonnull %64) #9
  %362 = load i32, ptr @verbose, align 4, !tbaa !9
  %.not82 = icmp eq i32 %362, 0
  br i1 %.not82, label %370, label %363

363:                                              ; preds = %361
  %364 = load ptr, ptr @stdout, align 8, !tbaa !5
  %365 = zext i32 %357 to i64
  %366 = zext i32 %359 to i64
  %367 = load i32, ptr getelementptr inbounds (i8, ptr @user_chunk_data, i64 12), align 4, !tbaa !9
  %368 = zext i32 %367 to i64
  %369 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %364, ptr noundef nonnull @.str.12, i64 noundef %365, i64 noundef %366, i64 noundef %368) #9
  %.pre109 = load i32, ptr getelementptr inbounds (i8, ptr @user_chunk_data, i64 4), align 4, !tbaa !9
  br label %370

370:                                              ; preds = %363, %361
  %371 = phi i32 [ %.pre109, %363 ], [ %357, %361 ]
  call void @png_save_uint_32(ptr noundef nonnull %64, i32 noundef %371) #9
  %372 = getelementptr inbounds i8, ptr %64, i64 4
  %373 = load i32, ptr getelementptr inbounds (i8, ptr @user_chunk_data, i64 8), align 8, !tbaa !9
  call void @png_save_uint_32(ptr noundef nonnull %372, i32 noundef %373) #9
  %374 = load i32, ptr getelementptr inbounds (i8, ptr @user_chunk_data, i64 12), align 4, !tbaa !9
  %375 = trunc i32 %374 to i8
  %376 = getelementptr inbounds i8, ptr %64, i64 8
  store i8 %375, ptr %376, align 1, !tbaa !13
  %377 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_write_chunk(ptr noundef %377, ptr noundef nonnull %63, ptr noundef nonnull %64, i64 noundef 9) #9
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %64) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %63) #9
  br label %378

378:                                              ; preds = %356, %370
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = call i64 @png_get_rowbytes(ptr noundef %379, ptr noundef %380) #9
  %382 = call noalias ptr @png_malloc(ptr noundef %379, i64 noundef %381) #9
  store ptr %382, ptr %9, align 8, !tbaa !5
  %383 = load ptr, ptr %3, align 8, !tbaa !5
  %384 = call i32 @png_set_interlace_handling(ptr noundef %383) #9
  %385 = load ptr, ptr %6, align 8, !tbaa !5
  %386 = call i32 @png_set_interlace_handling(ptr noundef %385) #9
  %387 = icmp slt i32 %384, 1
  %388 = load i32, ptr %11, align 4
  %.not102 = icmp eq i32 %388, 0
  %or.cond110 = select i1 %387, i1 true, i1 %.not102
  br i1 %or.cond110, label %._crit_edge100, label %.preheader94

.preheader94:                                     ; preds = %378, %._crit_edge
  %389 = phi i32 [ %395, %._crit_edge ], [ 1, %378 ]
  %.05399 = phi i32 [ %396, %._crit_edge ], [ 0, %378 ]
  %.not103 = icmp eq i32 %389, 0
  br i1 %.not103, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader94, %.lr.ph
  %.05298 = phi i32 [ %392, %.lr.ph ], [ 0, %.preheader94 ]
  %390 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_read_rows(ptr noundef %390, ptr noundef nonnull %9, ptr noundef null, i32 noundef 1) #9
  %391 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_write_rows(ptr noundef %391, ptr noundef nonnull %9, i32 noundef 1) #9
  %392 = add nuw i32 %.05298, 1
  %393 = load i32, ptr %11, align 4, !tbaa !9
  %394 = icmp ult i32 %392, %393
  br i1 %394, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph, %.preheader94
  %395 = phi i32 [ 0, %.preheader94 ], [ %393, %.lr.ph ]
  %396 = add nuw nsw i32 %.05399, 1
  %exitcond106.not = icmp eq i32 %396, %384
  br i1 %exitcond106.not, label %._crit_edge100, label %.preheader94, !llvm.loop !26

._crit_edge100:                                   ; preds = %._crit_edge, %378
  %397 = load ptr, ptr %3, align 8, !tbaa !5
  %398 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_free_data(ptr noundef %397, ptr noundef %398, i32 noundef 512, i32 noundef -1) #9
  %399 = load ptr, ptr %6, align 8, !tbaa !5
  %400 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free_data(ptr noundef %399, ptr noundef %400, i32 noundef 512, i32 noundef -1) #9
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_read_end(ptr noundef %401, ptr noundef %402) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %66) #9
  %403 = load ptr, ptr %3, align 8, !tbaa !5
  %404 = load ptr, ptr %5, align 8, !tbaa !5
  %405 = call i32 @png_get_text(ptr noundef %403, ptr noundef %404, ptr noundef nonnull %65, ptr noundef nonnull %66) #9
  %.not83 = icmp eq i32 %405, 0
  br i1 %.not83, label %411, label %406

406:                                              ; preds = %._crit_edge100
  %407 = load ptr, ptr %6, align 8, !tbaa !5
  %408 = load ptr, ptr %8, align 8, !tbaa !5
  %409 = load ptr, ptr %65, align 8, !tbaa !5
  %410 = load i32, ptr %66, align 4, !tbaa !9
  call void @png_set_text(ptr noundef %407, ptr noundef %408, ptr noundef %409, i32 noundef %410) #9
  br label %411

411:                                              ; preds = %406, %._crit_edge100
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %66) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %67) #9
  %412 = load ptr, ptr %3, align 8, !tbaa !5
  %413 = load ptr, ptr %5, align 8, !tbaa !5
  %414 = call i32 @png_get_tIME(ptr noundef %412, ptr noundef %413, ptr noundef nonnull %67) #9
  %.not84 = icmp eq i32 %414, 0
  br i1 %.not84, label %424, label %415

415:                                              ; preds = %411
  %416 = load ptr, ptr %6, align 8, !tbaa !5
  %417 = load ptr, ptr %8, align 8, !tbaa !5
  %418 = load ptr, ptr %67, align 8, !tbaa !5
  call void @png_set_tIME(ptr noundef %416, ptr noundef %417, ptr noundef %418) #9
  %419 = load ptr, ptr %3, align 8, !tbaa !5
  %420 = load ptr, ptr %67, align 8, !tbaa !5
  %421 = call ptr @png_convert_to_rfc1123(ptr noundef %419, ptr noundef %420) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(29) @tIME_string, ptr noundef nonnull align 1 dereferenceable(29) %421, i64 29, i1 false)
  store i8 0, ptr getelementptr inbounds (i8, ptr @tIME_string, i64 28), align 4, !tbaa !13
  %422 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %423 = add nsw i32 %422, 1
  store i32 %423, ptr @tIME_chunk_present, align 4, !tbaa !9
  br label %424

424:                                              ; preds = %415, %411
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %68) #9
  %425 = load ptr, ptr %3, align 8, !tbaa !5
  %426 = load ptr, ptr %5, align 8, !tbaa !5
  %427 = call i32 @png_get_unknown_chunks(ptr noundef %425, ptr noundef %426, ptr noundef nonnull %68) #9
  %.not85 = icmp eq i32 %427, 0
  br i1 %.not85, label %.loopexit, label %428

428:                                              ; preds = %424
  %429 = load ptr, ptr %6, align 8, !tbaa !5
  %430 = load ptr, ptr %8, align 8, !tbaa !5
  %431 = load ptr, ptr %68, align 8, !tbaa !5
  call void @png_set_unknown_chunks(ptr noundef %429, ptr noundef %430, ptr noundef %431, i32 noundef %427) #9
  %432 = sext i32 %427 to i64
  br label %433

433:                                              ; preds = %428, %433
  %.055101 = phi i64 [ 0, %428 ], [ %441, %433 ]
  %434 = load ptr, ptr %6, align 8, !tbaa !5
  %435 = load ptr, ptr %8, align 8, !tbaa !5
  %436 = trunc i64 %.055101 to i32
  %437 = load ptr, ptr %68, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %437, i64 %.055101, i32 3
  %439 = load i8, ptr %438, align 8, !tbaa !20
  %440 = zext i8 %439 to i32
  call void @png_set_unknown_chunk_location(ptr noundef %434, ptr noundef %435, i32 noundef %436, i32 noundef %440) #9
  %441 = add nuw i64 %.055101, 1
  %exitcond107.not = icmp eq i64 %441, %432
  br i1 %exitcond107.not, label %.loopexit, label %433, !llvm.loop !28

.loopexit:                                        ; preds = %433, %424
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %68) #9
  %442 = load ptr, ptr %6, align 8, !tbaa !5
  %443 = load ptr, ptr %8, align 8, !tbaa !5
  call void @png_write_end(ptr noundef %442, ptr noundef %443) #9
  %444 = load i32, ptr @verbose, align 4, !tbaa !9
  %.not86 = icmp eq i32 %444, 0
  br i1 %.not86, label %456, label %445

445:                                              ; preds = %.loopexit
  %446 = load ptr, ptr %6, align 8, !tbaa !5
  %447 = load ptr, ptr %7, align 8, !tbaa !5
  %448 = call i32 @png_get_image_width(ptr noundef %446, ptr noundef %447) #9
  %449 = load ptr, ptr %6, align 8, !tbaa !5
  %450 = load ptr, ptr %7, align 8, !tbaa !5
  %451 = call i32 @png_get_image_height(ptr noundef %449, ptr noundef %450) #9
  %452 = load ptr, ptr @stdout, align 8, !tbaa !5
  %453 = zext i32 %448 to i64
  %454 = zext i32 %451 to i64
  %455 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %452, ptr noundef nonnull @.str.13, i64 noundef %453, i64 noundef %454) #9
  br label %456

456:                                              ; preds = %445, %.loopexit
  %457 = load ptr, ptr %3, align 8, !tbaa !5
  %458 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_free(ptr noundef %457, ptr noundef %458) #9
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @png_destroy_read_struct(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #9
  %459 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_destroy_info_struct(ptr noundef %459, ptr noundef nonnull %8) #9
  call void @png_destroy_write_struct(ptr noundef nonnull %6, ptr noundef nonnull %7) #9
  %460 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %461 = call i32 @fclose(ptr noundef %460)
  %462 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %463 = call i32 @fclose(ptr noundef %462)
  %464 = call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.4)
  store ptr %464, ptr @test_one_file.fpin, align 8, !tbaa !5
  %465 = icmp eq ptr %464, null
  br i1 %465, label %466, label %469

466:                                              ; preds = %456
  %467 = load ptr, ptr @stdout, align 8, !tbaa !5
  %468 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %467, ptr noundef nonnull @.str.14, ptr noundef %0) #9
  br label %.thread90

469:                                              ; preds = %456
  %470 = call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.4)
  store ptr %470, ptr @test_one_file.fpout, align 8, !tbaa !5
  %471 = icmp eq ptr %470, null
  br i1 %471, label %472, label %.preheader

472:                                              ; preds = %469
  %473 = load ptr, ptr @stdout, align 8, !tbaa !5
  %474 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %473, ptr noundef nonnull @.str.14, ptr noundef %1) #9
  %475 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %476 = call i32 @fclose(ptr noundef %475)
  br label %.thread90

.preheader:                                       ; preds = %469, %499
  %477 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %478 = call i64 @fread(ptr noundef nonnull %14, i64 noundef 1, i64 noundef 1, ptr noundef %477)
  %479 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %480 = call i64 @fread(ptr noundef nonnull %15, i64 noundef 1, i64 noundef 1, ptr noundef %479)
  %.not87 = icmp eq i64 %478, %480
  br i1 %.not87, label %498, label %481

481:                                              ; preds = %.preheader
  %482 = load ptr, ptr @stdout, align 8, !tbaa !5
  %483 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %482, ptr noundef nonnull @.str.15, ptr noundef %0, ptr noundef %1) #9
  %484 = load i32, ptr @wrote_question, align 4, !tbaa !9
  %485 = icmp eq i32 %484, 0
  br i1 %485, label %486, label %493

486:                                              ; preds = %481
  %487 = load ptr, ptr @stdout, align 8, !tbaa !5
  %488 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %487, ptr noundef nonnull @.str.16, ptr noundef %0, i32 noundef 8192) #9
  %489 = load ptr, ptr @stdout, align 8, !tbaa !5
  %490 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %489, ptr noundef nonnull @.str.17) #9
  %491 = load ptr, ptr @stdout, align 8, !tbaa !5
  %492 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %491, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19) #9
  store i32 1, ptr @wrote_question, align 4, !tbaa !9
  br label %493

493:                                              ; preds = %486, %481
  %494 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %495 = call i32 @fclose(ptr noundef %494)
  %496 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %497 = call i32 @fclose(ptr noundef %496)
  br label %.thread90

498:                                              ; preds = %.preheader
  %.not88 = icmp eq i64 %478, 0
  br i1 %.not88, label %517, label %499

499:                                              ; preds = %498
  %bcmp = call i32 @bcmp(ptr nonnull %14, ptr nonnull %15, i64 %478)
  %.not89 = icmp eq i32 %bcmp, 0
  br i1 %.not89, label %.preheader, label %500

500:                                              ; preds = %499
  %501 = load ptr, ptr @stdout, align 8, !tbaa !5
  %502 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %501, ptr noundef nonnull @.str.20, ptr noundef %0, ptr noundef %1) #9
  %503 = load i32, ptr @wrote_question, align 4, !tbaa !9
  %504 = icmp eq i32 %503, 0
  br i1 %504, label %505, label %512

505:                                              ; preds = %500
  %506 = load ptr, ptr @stdout, align 8, !tbaa !5
  %507 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %506, ptr noundef nonnull @.str.16, ptr noundef %0, i32 noundef 8192) #9
  %508 = load ptr, ptr @stdout, align 8, !tbaa !5
  %509 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %508, ptr noundef nonnull @.str.17) #9
  %510 = load ptr, ptr @stdout, align 8, !tbaa !5
  %511 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %510, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19) #9
  store i32 1, ptr @wrote_question, align 4, !tbaa !9
  br label %512

512:                                              ; preds = %505, %500
  %513 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %514 = call i32 @fclose(ptr noundef %513)
  %515 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %516 = call i32 @fclose(ptr noundef %515)
  br label %.thread90

517:                                              ; preds = %498
  %518 = load ptr, ptr @test_one_file.fpin, align 8, !tbaa !5
  %519 = call i32 @fclose(ptr noundef %518)
  %520 = load ptr, ptr @test_one_file.fpout, align 8, !tbaa !5
  %521 = call i32 @fclose(ptr noundef %520)
  br label %.thread90

.thread90:                                        ; preds = %512, %493, %517, %472, %466, %110, %96, %77, %71
  %.2 = phi i32 [ 1, %71 ], [ 1, %77 ], [ 1, %96 ], [ 1, %110 ], [ 1, %466 ], [ 1, %472 ], [ 0, %517 ], [ 0, %493 ], [ 0, %512 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret i32 %.2
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

declare noalias ptr @png_create_read_struct(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_read_user_chunk_fn(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @read_user_chunk_callback(ptr noundef, ptr noundef) #0

declare noalias ptr @png_create_write_struct(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noalias ptr @png_create_info_struct(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #4

declare ptr @png_set_longjmp_fn(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @longjmp(ptr noundef, i32 noundef) #5

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

declare void @png_destroy_read_struct(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_destroy_info_struct(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_destroy_write_struct(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_init_io(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_write_status_fn(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_read_status_fn(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_read_user_transform_fn(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_write_user_transform_fn(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_keep_unknown_chunks(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @png_read_info(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_IHDR(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_IHDR(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_cHRM_fixed(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_cHRM_fixed(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_gAMA_fixed(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_gAMA_fixed(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_iCCP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @png_get_sRGB(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_sRGB(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_PLTE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_PLTE(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_bKGD(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_bKGD(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_hIST(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_hIST(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_oFFs(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_oFFs(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_pCAL(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_pCAL(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_pHYs(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_pHYs(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_sBIT(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_sBIT(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_sCAL(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_sCAL(ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef) local_unnamed_addr #3

declare i32 @png_get_text(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_text(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @png_get_tIME(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_tIME(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @png_convert_to_rfc1123(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @png_get_tRNS(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_tRNS(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_unknown_chunks(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_set_unknown_chunks(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @png_set_unknown_chunk_location(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @png_write_info(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_write_chunk(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @png_save_uint_32(ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i64 @png_get_rowbytes(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_set_interlace_handling(ptr noundef) local_unnamed_addr #3

declare void @png_read_rows(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @png_write_rows(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @png_free_data(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @png_read_end(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_write_end(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_image_width(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @png_get_image_height(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

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

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind returns_twice "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 = { noreturn 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nofree nounwind willreturn memory(argmem: read) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { nounwind returns_twice }

!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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 8}
!15 = !{!"png_color_16_struct", !7, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8}
!16 = !{!"short", !7, i64 0}
!17 = !{!15, !16, i64 2}
!18 = !{!15, !16, i64 4}
!19 = !{!15, !16, i64 6}
!20 = !{!21, !7, i64 24}
!21 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !22, i64 16, !7, i64 24}
!22 = !{!"long", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24, !27}
!27 = !{!"llvm.loop.unswitch.partial.disable"}
!28 = distinct !{!28, !24}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass