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

@stdout = external global ptr, align 8
@filters_used = external hidden global [256 x i32], align 16
@zero_samples = external hidden global i32, align 4
@.str.8 = external hidden unnamed_addr constant [6 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
@verbose = external hidden global i32, align 4
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [3 x i8], align 1
@inname = external hidden global ptr, align 8
@outname = external hidden global ptr, align 8
@.str.35 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(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) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  %14 = load ptr, ptr @stdout, align 8, !tbaa !9
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.21, ptr noundef @.str.8) #6
  %16 = load ptr, ptr @stdout, align 8, !tbaa !9
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.22, ptr noundef @.str.19) #6
  %18 = load ptr, ptr @stdout, align 8, !tbaa !9
  %19 = call ptr @png_get_copyright(ptr noundef null)
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.23, ptr noundef %19) #6
  %21 = load ptr, ptr @stdout, align 8, !tbaa !9
  %22 = call i32 @png_access_version_number()
  %23 = zext i32 %22 to i64
  %24 = call ptr @png_get_header_version(ptr noundef null)
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.24, i64 noundef %23, ptr noundef %24) #6
  %26 = load ptr, ptr @stdout, align 8, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.25, i64 noundef 10404, ptr noundef @.str.26) #6
  %28 = load ptr, ptr @stdout, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.27, i64 noundef 1176, i64 noundef 368) #6
  %30 = call ptr @png_get_header_ver(ptr noundef null)
  %31 = call i32 @strcmp(ptr noundef %30, ptr noundef @.str.8) #7
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %43

33:                                               ; preds = %2
  %34 = load ptr, ptr @stdout, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.28) #6
  %36 = load ptr, ptr @stdout, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.29, ptr noundef @.str.8) #6
  %38 = load ptr, ptr @stdout, align 8, !tbaa !9
  %39 = call ptr @png_get_header_ver(ptr noundef null)
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.30, ptr noundef %39) #6
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %33, %2
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 1
  br i1 %45, label %46, label %83

46:                                               ; preds = %43
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 1
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call i32 @strcmp(ptr noundef %49, ptr noundef @.str.31) #7
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  store i32 1, ptr %6, align 4, !tbaa !5
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %82

53:                                               ; preds = %46
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 1
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call i32 @strcmp(ptr noundef %56, ptr noundef @.str.32) #7
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %65, label %59

59:                                               ; preds = %53
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %60, i64 1
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = call i32 @strcmp(ptr noundef %62, ptr noundef @.str.33) #7
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %59, %53
  store i32 1, ptr %6, align 4, !tbaa !5
  store i32 1, ptr @verbose, align 4, !tbaa !5
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !5
  br label %81

66:                                               ; preds = %59
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 1
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call i32 @strcmp(ptr noundef %69, ptr noundef @.str.34) #7
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %76

72:                                               ; preds = %66
  store i32 1, ptr @verbose, align 4, !tbaa !5
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !5
  %73 = load ptr, ptr %5, align 8, !tbaa !9
  %74 = getelementptr inbounds ptr, ptr %73, i64 2
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  store ptr %75, ptr @inname, align 8, !tbaa !9
  br label %80

76:                                               ; preds = %66
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %77, i64 1
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  store ptr %79, ptr @inname, align 8, !tbaa !9
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %76, %72
  br label %81

81:                                               ; preds = %80, %65
  br label %82

82:                                               ; preds = %81, %52
  br label %83

83:                                               ; preds = %82, %43
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %98, label %86

86:                                               ; preds = %83
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = load i32, ptr @verbose, align 4, !tbaa !5
  %89 = add nsw i32 3, %88
  %90 = icmp eq i32 %87, %89
  br i1 %90, label %91, label %98

91:                                               ; preds = %86
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = load i32, ptr @verbose, align 4, !tbaa !5
  %94 = add nsw i32 2, %93
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %92, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  store ptr %97, ptr @outname, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %91, %86, %83
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %106, label %101

101:                                              ; preds = %98
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = load i32, ptr @verbose, align 4, !tbaa !5
  %104 = add nsw i32 3, %103
  %105 = icmp sgt i32 %102, %104
  br i1 %105, label %112, label %106

106:                                              ; preds = %101, %98
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %126

109:                                              ; preds = %106
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = icmp slt i32 %110, 2
  br i1 %111, label %112, label %126

112:                                              ; preds = %109, %101
  %113 = load ptr, ptr @stdout, align 8, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %114, i64 0
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !9
  %118 = getelementptr inbounds ptr, ptr %117, i64 0
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.35, ptr noundef %116, ptr noundef %119) #6
  %121 = load ptr, ptr @stdout, align 8, !tbaa !9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.36) #6
  %123 = load ptr, ptr @stdout, align 8, !tbaa !9
  %124 = load ptr, ptr @outname, align 8, !tbaa !9
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.37, ptr noundef %124) #6
  call void @exit(i32 noundef 1) #8
  unreachable

126:                                              ; preds = %109, %106
  %127 = load i32, ptr %6, align 4, !tbaa !5
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %196

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 2, ptr %8, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %192, %129
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = load i32, ptr %4, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %134, label %195

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %135 = load ptr, ptr @stdout, align 8, !tbaa !9
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %136, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.38, ptr noundef %140) #6
  %142 = load ptr, ptr %5, align 8, !tbaa !9
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds ptr, ptr %142, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = load ptr, ptr @outname, align 8, !tbaa !9
  %148 = call i32 @test_one_file(ptr noundef %146, ptr noundef %147)
  store i32 %148, ptr %9, align 4, !tbaa !5
  %149 = load i32, ptr %9, align 4, !tbaa !5
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %185

151:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %152 = load ptr, ptr @stdout, align 8, !tbaa !9
  %153 = load i32, ptr @zero_samples, align 4, !tbaa !5
  %154 = zext i32 %153 to i64
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.39, i64 noundef %154) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %175, %151
  %157 = load i32, ptr %10, align 4, !tbaa !5
  %158 = icmp slt i32 %157, 256
  br i1 %158, label %159, label %178

159:                                              ; preds = %156
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %174

165:                                              ; preds = %159
  %166 = load ptr, ptr @stdout, align 8, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = load i32, ptr %10, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = zext i32 %171 to i64
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.40, i32 noundef %167, i64 noundef %172) #6
  br label %174

174:                                              ; preds = %165, %159
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %10, align 4, !tbaa !5
  br label %156, !llvm.loop !11

178:                                              ; preds = %156
  %179 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !5
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %184

181:                                              ; preds = %178
  %182 = load ptr, ptr @stdout, align 8, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.41, ptr noundef @tIME_string) #6
  br label %184

184:                                              ; preds = %181, %178
  store i32 0, ptr @tIME_chunk_present, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %191

185:                                              ; preds = %134
  %186 = load ptr, ptr @stdout, align 8, !tbaa !9
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.42) #6
  %188 = load i32, ptr %9, align 4, !tbaa !5
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = add nsw i32 %189, %188
  store i32 %190, ptr %7, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %185, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %8, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %8, align 4, !tbaa !5
  br label %130, !llvm.loop !13

195:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %290

196:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %286, %196
  %198 = load i32, ptr %11, align 4, !tbaa !5
  %199 = icmp slt i32 %198, 3
  br i1 %199, label %200, label %289

200:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %201 = load i32, ptr %11, align 4, !tbaa !5
  %202 = icmp eq i32 %201, 1
  br i1 %202, label %203, label %204

203:                                              ; preds = %200
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !5
  br label %209

204:                                              ; preds = %200
  %205 = load i32, ptr @verbose, align 4, !tbaa !5
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %208

207:                                              ; preds = %204
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %207, %204
  br label %209

209:                                              ; preds = %208, %203
  %210 = load i32, ptr %11, align 4, !tbaa !5
  %211 = icmp eq i32 %210, 0
  br i1 %211, label %218, label %212

212:                                              ; preds = %209
  %213 = load i32, ptr @verbose, align 4, !tbaa !5
  %214 = icmp eq i32 %213, 1
  br i1 %214, label %218, label %215

215:                                              ; preds = %212
  %216 = load i32, ptr %7, align 4, !tbaa !5
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %222

218:                                              ; preds = %215, %212, %209
  %219 = load ptr, ptr @stdout, align 8, !tbaa !9
  %220 = load ptr, ptr @inname, align 8, !tbaa !9
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %219, ptr noundef @.str.38, ptr noundef %220) #6
  br label %222

222:                                              ; preds = %218, %215
  %223 = load ptr, ptr @inname, align 8, !tbaa !9
  %224 = load ptr, ptr @outname, align 8, !tbaa !9
  %225 = call i32 @test_one_file(ptr noundef %223, ptr noundef %224)
  store i32 %225, ptr %12, align 4, !tbaa !5
  %226 = load i32, ptr %12, align 4, !tbaa !5
  %227 = icmp eq i32 %226, 0
  br i1 %227, label %228, label %269

228:                                              ; preds = %222
  %229 = load i32, ptr @verbose, align 4, !tbaa !5
  %230 = icmp eq i32 %229, 1
  br i1 %230, label %234, label %231

231:                                              ; preds = %228
  %232 = load i32, ptr %11, align 4, !tbaa !5
  %233 = icmp eq i32 %232, 2
  br i1 %233, label %234, label %268

234:                                              ; preds = %231, %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %235 = load ptr, ptr @stdout, align 8, !tbaa !9
  %236 = load i32, ptr @zero_samples, align 4, !tbaa !5
  %237 = zext i32 %236 to i64
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.39, i64 noundef %237) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %258, %234
  %240 = load i32, ptr %13, align 4, !tbaa !5
  %241 = icmp slt i32 %240, 256
  br i1 %241, label %242, label %261

242:                                              ; preds = %239
  %243 = load i32, ptr %13, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %257

248:                                              ; preds = %242
  %249 = load ptr, ptr @stdout, align 8, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !5
  %251 = load i32, ptr %13, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = zext i32 %254 to i64
  %256 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %249, ptr noundef @.str.40, i32 noundef %250, i64 noundef %255) #6
  br label %257

257:                                              ; preds = %248, %242
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %13, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %13, align 4, !tbaa !5
  br label %239, !llvm.loop !14

261:                                              ; preds = %239
  %262 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !5
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %267

264:                                              ; preds = %261
  %265 = load ptr, ptr @stdout, align 8, !tbaa !9
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.41, ptr noundef @tIME_string) #6
  br label %267

267:                                              ; preds = %264, %261
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %268

268:                                              ; preds = %267, %231
  br label %285

269:                                              ; preds = %222
  %270 = load i32, ptr @verbose, align 4, !tbaa !5
  %271 = icmp eq i32 %270, 0
  br i1 %271, label %272, label %279

272:                                              ; preds = %269
  %273 = load i32, ptr %11, align 4, !tbaa !5
  %274 = icmp ne i32 %273, 2
  br i1 %274, label %275, label %279

275:                                              ; preds = %272
  %276 = load ptr, ptr @stdout, align 8, !tbaa !9
  %277 = load ptr, ptr @inname, align 8, !tbaa !9
  %278 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %276, ptr noundef @.str.38, ptr noundef %277) #6
  br label %279

279:                                              ; preds = %275, %272, %269
  %280 = load ptr, ptr @stdout, align 8, !tbaa !9
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.42) #6
  %282 = load i32, ptr %12, align 4, !tbaa !5
  %283 = load i32, ptr %7, align 4, !tbaa !5
  %284 = add nsw i32 %283, %282
  store i32 %284, ptr %7, align 4, !tbaa !5
  br label %285

285:                                              ; preds = %279, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %11, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %11, align 4, !tbaa !5
  br label %197, !llvm.loop !15

289:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %290

290:                                              ; preds = %289, %195
  %291 = load i32, ptr %7, align 4, !tbaa !5
  %292 = icmp eq i32 %291, 0
  br i1 %292, label %293, label %296

293:                                              ; preds = %290
  %294 = load ptr, ptr @stdout, align 8, !tbaa !9
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str.43) #6
  br label %299

296:                                              ; preds = %290
  %297 = load ptr, ptr @stdout, align 8, !tbaa !9
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %297, ptr noundef @.str.44) #6
  br label %299

299:                                              ; preds = %296, %293
  %300 = load i32, ptr %7, align 4, !tbaa !5
  %301 = icmp ne i32 %300, 0
  %302 = zext i1 %301 to i32
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 %302
}

declare ptr @png_get_copyright(ptr noundef) #3

declare i32 @png_access_version_number() #3

declare ptr @png_get_header_version(ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

declare ptr @png_get_header_ver(ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !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"

@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
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@status_dots_requested = external hidden local_unnamed_addr global i32, align 4
@tIME_string = external hidden global [29 x i8], align 16
@tIME_chunk_present = external hidden local_unnamed_addr global i32, align 4
@verbose = external hidden local_unnamed_addr global i32, align 4
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [3 x i8], align 1
@inname = external hidden local_unnamed_addr global ptr, align 8
@outname = external hidden local_unnamed_addr global ptr, align 8
@.str.35 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr @stdout, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.8) #5
  %5 = load ptr, ptr @stdout, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.19) #5
  %7 = load ptr, ptr @stdout, align 8, !tbaa !5
  %8 = tail call ptr @png_get_copyright(ptr noundef null) #5
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.23, ptr noundef %8) #5
  %10 = load ptr, ptr @stdout, align 8, !tbaa !5
  %11 = tail call i32 @png_access_version_number() #5
  %12 = zext i32 %11 to i64
  %13 = tail call ptr @png_get_header_version(ptr noundef null) #5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.24, i64 noundef %12, ptr noundef %13) #5
  %15 = load ptr, ptr @stdout, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.25, i64 noundef 10404, ptr noundef nonnull @.str.26) #5
  %17 = load ptr, ptr @stdout, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.27, i64 noundef 1176, i64 noundef 368) #5
  %19 = tail call ptr @png_get_header_ver(ptr noundef null) #5
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.8) #6
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %29, label %21

21:                                               ; preds = %2
  %22 = load ptr, ptr @stdout, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.28) #5
  %24 = load ptr, ptr @stdout, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.8) #5
  %26 = load ptr, ptr @stdout, align 8, !tbaa !5
  %27 = tail call ptr @png_get_header_ver(ptr noundef null) #5
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.30, ptr noundef %27) #5
  br label %29

29:                                               ; preds = %21, %2
  %.061 = phi i32 [ 1, %21 ], [ 0, %2 ]
  %30 = icmp sgt i32 %0, 1
  br i1 %30, label %31, label %thread-pre-split

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %1, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str.31) #6
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %.critedge, label %36

36:                                               ; preds = %31
  %37 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str.32) #6
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %42, label %39

39:                                               ; preds = %36
  %40 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str.33) #6
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %39, %36
  store i32 1, ptr @verbose, align 4, !tbaa !9
  br label %.critedge

43:                                               ; preds = %39
  %44 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str.34) #6
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  store i32 1, ptr @verbose, align 4, !tbaa !9
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %1, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %48, ptr @inname, align 8, !tbaa !5
  br label %50

49:                                               ; preds = %43
  store ptr %33, ptr @inname, align 8, !tbaa !5
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !9
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %29, %49
  %.pr = load i32, ptr @verbose, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %thread-pre-split, %46
  %51 = phi i32 [ %.pr, %thread-pre-split ], [ 1, %46 ]
  %52 = add nsw i32 %51, 3
  %53 = icmp eq i32 %52, %0
  br i1 %53, label %54, label %59

54:                                               ; preds = %50
  %55 = sext i32 %51 to i64
  %56 = getelementptr ptr, ptr %1, i64 %55
  %57 = getelementptr i8, ptr %56, i64 16
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %58, ptr @outname, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %50, %54
  %60 = icmp slt i32 %52, %0
  br i1 %60, label %61, label %.preheader.preheader

.critedge:                                        ; preds = %31, %42
  %storemerge = phi i32 [ 1, %42 ], [ 0, %31 ]
  store i32 %storemerge, ptr @status_dots_requested, align 4, !tbaa !9
  %.not79 = icmp eq i32 %0, 2
  br i1 %.not79, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.critedge
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph

61:                                               ; preds = %59
  %62 = load ptr, ptr @stdout, align 8, !tbaa !5
  %63 = load ptr, ptr %1, align 8, !tbaa !5
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.35, ptr noundef %63, ptr noundef %63) #5
  %65 = load ptr, ptr @stdout, align 8, !tbaa !5
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.36) #5
  %67 = load ptr, ptr @stdout, align 8, !tbaa !5
  %68 = load ptr, ptr @outname, align 8, !tbaa !5
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.37, ptr noundef %68) #5
  tail call void @exit(i32 noundef 1) #7
  unreachable

.lr.ph:                                           ; preds = %.lr.ph.preheader, %101
  %indvars.iv87 = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next88, %101 ]
  %.178 = phi i32 [ %.061, %.lr.ph.preheader ], [ %.2, %101 ]
  %70 = load ptr, ptr @stdout, align 8, !tbaa !5
  %71 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv87
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.38, ptr noundef %72) #5
  %74 = load ptr, ptr %71, align 8, !tbaa !5
  %75 = load ptr, ptr @outname, align 8, !tbaa !5
  %76 = tail call i32 @test_one_file(ptr noundef %74, ptr noundef %75)
  %77 = icmp eq i32 %76, 0
  %78 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %77, label %79, label %98

79:                                               ; preds = %.lr.ph
  %80 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.39, i64 noundef %81) #5
  br label %83

83:                                               ; preds = %79, %91
  %indvars.iv83 = phi i64 [ 0, %79 ], [ %indvars.iv.next84, %91 ]
  %84 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %.not70 = icmp eq i32 %85, 0
  br i1 %.not70, label %91, label %86

86:                                               ; preds = %83
  %87 = load ptr, ptr @stdout, align 8, !tbaa !5
  %88 = zext i32 %85 to i64
  %89 = trunc nuw nsw i64 %indvars.iv83 to i32
  %90 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef nonnull @.str.40, i32 noundef %89, i64 noundef %88) #5
  br label %91

91:                                               ; preds = %83, %86
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next84, 256
  br i1 %exitcond86.not, label %92, label %83, !llvm.loop !11

92:                                               ; preds = %91
  %93 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not69 = icmp eq i32 %93, 0
  br i1 %.not69, label %97, label %94

94:                                               ; preds = %92
  %95 = load ptr, ptr @stdout, align 8, !tbaa !5
  %96 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.41, ptr noundef nonnull @tIME_string) #5
  br label %97

97:                                               ; preds = %94, %92
  store i32 0, ptr @tIME_chunk_present, align 4, !tbaa !9
  br label %101

98:                                               ; preds = %.lr.ph
  %99 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.42) #5
  %100 = add nsw i32 %76, %.178
  br label %101

101:                                              ; preds = %98, %97
  %.2 = phi i32 [ %.178, %97 ], [ %100, %98 ]
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count
  br i1 %exitcond90.not, label %.loopexit, label %.lr.ph, !llvm.loop !13

.preheader.preheader:                             ; preds = %59
  %102 = icmp eq i32 %51, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %.preheader.preheader
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %.preheader.preheader, %103
  %105 = load ptr, ptr @stdout, align 8, !tbaa !5
  %106 = load ptr, ptr @inname, align 8, !tbaa !5
  %107 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.38, ptr noundef %106) #5
  %108 = load ptr, ptr @inname, align 8, !tbaa !5
  %109 = load ptr, ptr @outname, align 8, !tbaa !5
  %110 = tail call i32 @test_one_file(ptr noundef %108, ptr noundef %109)
  %111 = icmp eq i32 %110, 0
  %112 = load i32, ptr @verbose, align 4
  br i1 %111, label %113, label %134

113:                                              ; preds = %104
  %114 = icmp eq i32 %112, 1
  br i1 %114, label %115, label %144

115:                                              ; preds = %113
  %116 = load ptr, ptr @stdout, align 8, !tbaa !5
  %117 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef nonnull @.str.39, i64 noundef %118) #5
  br label %120

120:                                              ; preds = %115, %128
  %indvars.iv = phi i64 [ 0, %115 ], [ %indvars.iv.next, %128 ]
  %121 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %.not68 = icmp eq i32 %122, 0
  br i1 %.not68, label %128, label %123

123:                                              ; preds = %120
  %124 = load ptr, ptr @stdout, align 8, !tbaa !5
  %125 = zext i32 %122 to i64
  %126 = trunc nuw nsw i64 %indvars.iv to i32
  %127 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.40, i32 noundef %126, i64 noundef %125) #5
  br label %128

128:                                              ; preds = %120, %123
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %129, label %120, !llvm.loop !14

129:                                              ; preds = %128
  %130 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not67 = icmp eq i32 %130, 0
  br i1 %.not67, label %144, label %131

131:                                              ; preds = %129
  %132 = load ptr, ptr @stdout, align 8, !tbaa !5
  %133 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef nonnull @.str.41, ptr noundef nonnull @tIME_string) #5
  br label %144

134:                                              ; preds = %104
  %135 = icmp eq i32 %112, 0
  br i1 %135, label %136, label %140

136:                                              ; preds = %134
  %137 = load ptr, ptr @stdout, align 8, !tbaa !5
  %138 = load ptr, ptr @inname, align 8, !tbaa !5
  %139 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef nonnull @.str.38, ptr noundef %138) #5
  br label %140

140:                                              ; preds = %136, %134
  %141 = load ptr, ptr @stdout, align 8, !tbaa !5
  %142 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull @.str.42) #5
  %143 = add nsw i32 %110, %.061
  br label %144

144:                                              ; preds = %129, %131, %113, %140
  %.4 = phi i32 [ %.061, %113 ], [ %143, %140 ], [ %.061, %131 ], [ %.061, %129 ]
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !9
  %.pre = load i32, ptr @verbose, align 4
  %145 = icmp eq i32 %.pre, 1
  %146 = icmp ne i32 %.4, 0
  %or.cond5.1 = select i1 %145, i1 true, i1 %146
  br i1 %or.cond5.1, label %147, label %151

147:                                              ; preds = %144
  %148 = load ptr, ptr @stdout, align 8, !tbaa !5
  %149 = load ptr, ptr @inname, align 8, !tbaa !5
  %150 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef nonnull @.str.38, ptr noundef %149) #5
  br label %151

151:                                              ; preds = %147, %144
  %152 = load ptr, ptr @inname, align 8, !tbaa !5
  %153 = load ptr, ptr @outname, align 8, !tbaa !5
  %154 = tail call i32 @test_one_file(ptr noundef %152, ptr noundef %153)
  %155 = icmp eq i32 %154, 0
  %156 = load i32, ptr @verbose, align 4
  br i1 %155, label %167, label %157

157:                                              ; preds = %151
  %158 = icmp eq i32 %156, 0
  br i1 %158, label %159, label %163

159:                                              ; preds = %157
  %160 = load ptr, ptr @stdout, align 8, !tbaa !5
  %161 = load ptr, ptr @inname, align 8, !tbaa !5
  %162 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef nonnull @.str.38, ptr noundef %161) #5
  br label %163

163:                                              ; preds = %159, %157
  %164 = load ptr, ptr @stdout, align 8, !tbaa !5
  %165 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef nonnull @.str.42) #5
  %166 = add nsw i32 %154, %.4
  br label %.preheader.2thread-pre-split

167:                                              ; preds = %151
  %168 = icmp eq i32 %156, 1
  br i1 %168, label %169, label %.preheader.2

169:                                              ; preds = %167
  %170 = load ptr, ptr @stdout, align 8, !tbaa !5
  %171 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef nonnull @.str.39, i64 noundef %172) #5
  br label %174

174:                                              ; preds = %182, %169
  %indvars.iv.1 = phi i64 [ 0, %169 ], [ %indvars.iv.next.1, %182 ]
  %175 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv.1
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %.not68.1 = icmp eq i32 %176, 0
  br i1 %.not68.1, label %182, label %177

177:                                              ; preds = %174
  %178 = load ptr, ptr @stdout, align 8, !tbaa !5
  %179 = zext i32 %176 to i64
  %180 = trunc nuw nsw i64 %indvars.iv.1 to i32
  %181 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef nonnull @.str.40, i32 noundef %180, i64 noundef %179) #5
  br label %182

182:                                              ; preds = %177, %174
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 256
  br i1 %exitcond.1.not, label %183, label %174, !llvm.loop !14

183:                                              ; preds = %182
  %184 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not67.1 = icmp eq i32 %184, 0
  br i1 %.not67.1, label %.preheader.2thread-pre-split, label %185

185:                                              ; preds = %183
  %186 = load ptr, ptr @stdout, align 8, !tbaa !5
  %187 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef nonnull @.str.41, ptr noundef nonnull @tIME_string) #5
  br label %.preheader.2thread-pre-split

.preheader.2thread-pre-split:                     ; preds = %185, %183, %163
  %.4.1.ph = phi i32 [ %.4, %183 ], [ %.4, %185 ], [ %166, %163 ]
  %.pr94 = load i32, ptr @verbose, align 4
  br label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.2thread-pre-split, %167
  %188 = phi i32 [ %.pr94, %.preheader.2thread-pre-split ], [ %156, %167 ]
  %.4.1 = phi i32 [ %.4.1.ph, %.preheader.2thread-pre-split ], [ %.4, %167 ]
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %.preheader.2
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %190, %.preheader.2
  %192 = icmp eq i32 %188, 1
  %193 = icmp ne i32 %.4.1, 0
  %or.cond5.2 = select i1 %192, i1 true, i1 %193
  br i1 %or.cond5.2, label %194, label %198

194:                                              ; preds = %191
  %195 = load ptr, ptr @stdout, align 8, !tbaa !5
  %196 = load ptr, ptr @inname, align 8, !tbaa !5
  %197 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %195, ptr noundef nonnull @.str.38, ptr noundef %196) #5
  br label %198

198:                                              ; preds = %194, %191
  %199 = load ptr, ptr @inname, align 8, !tbaa !5
  %200 = load ptr, ptr @outname, align 8, !tbaa !5
  %201 = tail call i32 @test_one_file(ptr noundef %199, ptr noundef %200)
  %202 = icmp eq i32 %201, 0
  %203 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %202, label %207, label %204

204:                                              ; preds = %198
  %205 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef nonnull @.str.42) #5
  %206 = add nsw i32 %201, %.4.1
  br label %.loopexit

207:                                              ; preds = %198
  %208 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef nonnull @.str.39, i64 noundef %209) #5
  br label %211

211:                                              ; preds = %219, %207
  %indvars.iv.2 = phi i64 [ 0, %207 ], [ %indvars.iv.next.2, %219 ]
  %212 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv.2
  %213 = load i32, ptr %212, align 4, !tbaa !9
  %.not68.2 = icmp eq i32 %213, 0
  br i1 %.not68.2, label %219, label %214

214:                                              ; preds = %211
  %215 = load ptr, ptr @stdout, align 8, !tbaa !5
  %216 = zext i32 %213 to i64
  %217 = trunc nuw nsw i64 %indvars.iv.2 to i32
  %218 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef nonnull @.str.40, i32 noundef %217, i64 noundef %216) #5
  br label %219

219:                                              ; preds = %214, %211
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, 256
  br i1 %exitcond.2.not, label %220, label %211, !llvm.loop !14

220:                                              ; preds = %219
  %221 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not67.2 = icmp eq i32 %221, 0
  br i1 %.not67.2, label %.loopexit, label %222

222:                                              ; preds = %220
  %223 = load ptr, ptr @stdout, align 8, !tbaa !5
  %224 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef nonnull @.str.41, ptr noundef nonnull @tIME_string) #5
  br label %.loopexit

.loopexit:                                        ; preds = %101, %204, %220, %222, %.critedge
  %.5 = phi i32 [ %.061, %.critedge ], [ %206, %204 ], [ %.4.1, %222 ], [ %.4.1, %220 ], [ %.2, %101 ]
  %225 = icmp eq i32 %.5, 0
  %226 = load ptr, ptr @stdout, align 8, !tbaa !5
  %.str.43..str.44 = select i1 %225, ptr @.str.43, ptr @.str.44
  %227 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef nonnull %.str.43..str.44) #5
  %228 = icmp ne i32 %.5, 0
  %229 = zext i1 %228 to i32
  ret i32 %229
}

declare ptr @png_get_copyright(ptr noundef) local_unnamed_addr #2

declare i32 @png_access_version_number() local_unnamed_addr #2

declare ptr @png_get_header_version(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

declare ptr @png_get_header_ver(ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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