; LLVM IR from rdguez-mariano/fast_imas_IPOL :: io_png/libs/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 i64], align 16
@zero_samples = external hidden global i64, align 8
@.str.8 = external hidden unnamed_addr constant [7 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 [39 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@png_libpng_ver = external constant [18 x i8], align 16
@.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 i64 @png_access_version_number()
  %23 = call ptr @png_get_header_version(ptr noundef null)
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.24, i64 noundef %22, ptr noundef %23) #6
  %25 = load ptr, ptr @stdout, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.25, i64 noundef 10237, ptr noundef @.str.26) #6
  %27 = load ptr, ptr @stdout, align 8, !tbaa !9
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.27, i64 noundef 1264, i64 noundef 464) #6
  %29 = call i32 @strcmp(ptr noundef @png_libpng_ver, ptr noundef @.str.8) #7
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %40

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

40:                                               ; preds = %31, %2
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %43, label %80

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

49:                                               ; preds = %43
  store i32 1, ptr %6, align 4, !tbaa !5
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %79

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

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

62:                                               ; preds = %56, %50
  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 %78

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

69:                                               ; preds = %63
  store i32 1, ptr @verbose, align 4, !tbaa !5
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 2
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  store ptr %72, ptr @inname, align 8, !tbaa !9
  br label %77

73:                                               ; preds = %63
  %74 = load ptr, ptr %5, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %74, i64 1
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  store ptr %76, ptr @inname, align 8, !tbaa !9
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %73, %69
  br label %78

78:                                               ; preds = %77, %62
  br label %79

79:                                               ; preds = %78, %49
  br label %80

80:                                               ; preds = %79, %40
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %95, label %83

83:                                               ; preds = %80
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = load i32, ptr @verbose, align 4, !tbaa !5
  %86 = add nsw i32 3, %85
  %87 = icmp eq i32 %84, %86
  br i1 %87, label %88, label %95

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

95:                                               ; preds = %88, %83, %80
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %103, label %98

98:                                               ; preds = %95
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = load i32, ptr @verbose, align 4, !tbaa !5
  %101 = add nsw i32 3, %100
  %102 = icmp sgt i32 %99, %101
  br i1 %102, label %109, label %103

103:                                              ; preds = %98, %95
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %123

106:                                              ; preds = %103
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = icmp slt i32 %107, 2
  br i1 %108, label %109, label %123

109:                                              ; preds = %106, %98
  %110 = load ptr, ptr @stdout, align 8, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !9
  %112 = getelementptr inbounds ptr, ptr %111, i64 0
  %113 = load ptr, ptr %112, 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 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.35, ptr noundef %113, ptr noundef %116) #6
  %118 = load ptr, ptr @stdout, align 8, !tbaa !9
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef @.str.36) #6
  %120 = load ptr, ptr @stdout, align 8, !tbaa !9
  %121 = load ptr, ptr @outname, align 8, !tbaa !9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.37, ptr noundef %121) #6
  call void @exit(i32 noundef 1) #8
  unreachable

123:                                              ; preds = %106, %103
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %191

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

127:                                              ; preds = %187, %126
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %131, label %190

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

148:                                              ; preds = %131
  %149 = load ptr, ptr @stdout, align 8, !tbaa !9
  %150 = load i64, ptr @zero_samples, align 8, !tbaa !11
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.39, i64 noundef %150) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %170, %148
  %153 = load i32, ptr %9, align 4, !tbaa !5
  %154 = icmp slt i32 %153, 256
  br i1 %154, label %155, label %173

155:                                              ; preds = %152
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !11
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %161, label %169

161:                                              ; preds = %155
  %162 = load ptr, ptr @stdout, align 8, !tbaa !9
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = load i32, ptr %9, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %165
  %167 = load i64, ptr %166, align 8, !tbaa !11
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.40, i32 noundef %163, i64 noundef %167) #6
  br label %169

169:                                              ; preds = %161, %155
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %9, align 4, !tbaa !5
  br label %152, !llvm.loop !13

173:                                              ; preds = %152
  %174 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !5
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %179

176:                                              ; preds = %173
  %177 = load ptr, ptr @stdout, align 8, !tbaa !9
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.41, ptr noundef @tIME_string) #6
  br label %179

179:                                              ; preds = %176, %173
  store i32 0, ptr @tIME_chunk_present, align 4, !tbaa !5
  br label %186

180:                                              ; preds = %131
  %181 = load ptr, ptr @stdout, align 8, !tbaa !9
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.42) #6
  %183 = load i32, ptr %10, align 4, !tbaa !5
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = add nsw i32 %184, %183
  store i32 %185, ptr %7, align 4, !tbaa !5
  br label %186

186:                                              ; preds = %180, %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %8, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %8, align 4, !tbaa !5
  br label %127, !llvm.loop !15

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

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

192:                                              ; preds = %279, %191
  %193 = load i32, ptr %11, align 4, !tbaa !5
  %194 = icmp slt i32 %193, 3
  br i1 %194, label %195, label %282

195:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %196 = load i32, ptr %11, align 4, !tbaa !5
  %197 = icmp eq i32 %196, 1
  br i1 %197, label %198, label %199

198:                                              ; preds = %195
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !5
  br label %204

199:                                              ; preds = %195
  %200 = load i32, ptr @verbose, align 4, !tbaa !5
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %199
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %202, %199
  br label %204

204:                                              ; preds = %203, %198
  %205 = load i32, ptr %11, align 4, !tbaa !5
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %213, label %207

207:                                              ; preds = %204
  %208 = load i32, ptr @verbose, align 4, !tbaa !5
  %209 = icmp eq i32 %208, 1
  br i1 %209, label %213, label %210

210:                                              ; preds = %207
  %211 = load i32, ptr %7, align 4, !tbaa !5
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %217

213:                                              ; preds = %210, %207, %204
  %214 = load ptr, ptr @stdout, align 8, !tbaa !9
  %215 = load ptr, ptr @inname, align 8, !tbaa !9
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.38, ptr noundef %215) #6
  br label %217

217:                                              ; preds = %213, %210
  %218 = load ptr, ptr @inname, align 8, !tbaa !9
  %219 = load ptr, ptr @outname, align 8, !tbaa !9
  %220 = call i32 @test_one_file(ptr noundef %218, ptr noundef %219)
  store i32 %220, ptr %12, align 4, !tbaa !5
  %221 = load i32, ptr %12, align 4, !tbaa !5
  %222 = icmp eq i32 %221, 0
  br i1 %222, label %223, label %262

223:                                              ; preds = %217
  %224 = load i32, ptr @verbose, align 4, !tbaa !5
  %225 = icmp eq i32 %224, 1
  br i1 %225, label %229, label %226

226:                                              ; preds = %223
  %227 = load i32, ptr %11, align 4, !tbaa !5
  %228 = icmp eq i32 %227, 2
  br i1 %228, label %229, label %261

229:                                              ; preds = %226, %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %230 = load ptr, ptr @stdout, align 8, !tbaa !9
  %231 = load i64, ptr @zero_samples, align 8, !tbaa !11
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.39, i64 noundef %231) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %233

233:                                              ; preds = %251, %229
  %234 = load i32, ptr %13, align 4, !tbaa !5
  %235 = icmp slt i32 %234, 256
  br i1 %235, label %236, label %254

236:                                              ; preds = %233
  %237 = load i32, ptr %13, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %238
  %240 = load i64, ptr %239, align 8, !tbaa !11
  %241 = icmp ne i64 %240, 0
  br i1 %241, label %242, label %250

242:                                              ; preds = %236
  %243 = load ptr, ptr @stdout, align 8, !tbaa !9
  %244 = load i32, ptr %13, align 4, !tbaa !5
  %245 = load i32, ptr %13, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %246
  %248 = load i64, ptr %247, align 8, !tbaa !11
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.40, i32 noundef %244, i64 noundef %248) #6
  br label %250

250:                                              ; preds = %242, %236
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %13, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %13, align 4, !tbaa !5
  br label %233, !llvm.loop !16

254:                                              ; preds = %233
  %255 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !5
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %260

257:                                              ; preds = %254
  %258 = load ptr, ptr @stdout, align 8, !tbaa !9
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef @.str.41, ptr noundef @tIME_string) #6
  br label %260

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

261:                                              ; preds = %260, %226
  br label %278

262:                                              ; preds = %217
  %263 = load i32, ptr @verbose, align 4, !tbaa !5
  %264 = icmp eq i32 %263, 0
  br i1 %264, label %265, label %272

265:                                              ; preds = %262
  %266 = load i32, ptr %11, align 4, !tbaa !5
  %267 = icmp ne i32 %266, 2
  br i1 %267, label %268, label %272

268:                                              ; preds = %265
  %269 = load ptr, ptr @stdout, align 8, !tbaa !9
  %270 = load ptr, ptr @inname, align 8, !tbaa !9
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %269, ptr noundef @.str.38, ptr noundef %270) #6
  br label %272

272:                                              ; preds = %268, %265, %262
  %273 = load ptr, ptr @stdout, align 8, !tbaa !9
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.42) #6
  %275 = load i32, ptr %12, align 4, !tbaa !5
  %276 = load i32, ptr %7, align 4, !tbaa !5
  %277 = add nsw i32 %276, %275
  store i32 %277, ptr %7, align 4, !tbaa !5
  br label %278

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

279:                                              ; preds = %278
  %280 = load i32, ptr %11, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %11, align 4, !tbaa !5
  br label %192, !llvm.loop !17

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

283:                                              ; preds = %282, %190
  %284 = load i32, ptr %7, align 4, !tbaa !5
  %285 = icmp eq i32 %284, 0
  br i1 %285, label %286, label %289

286:                                              ; preds = %283
  %287 = load ptr, ptr @stdout, align 8, !tbaa !9
  %288 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %287, ptr noundef @.str.43) #6
  br label %292

289:                                              ; preds = %283
  %290 = load ptr, ptr @stdout, align 8, !tbaa !9
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.44) #6
  br label %292

292:                                              ; preds = %289, %286
  %293 = load i32, ptr %7, align 4, !tbaa !5
  %294 = icmp ne i32 %293, 0
  %295 = zext i1 %294 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 %295
}

declare ptr @png_get_copyright(ptr noundef) #3

declare i64 @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

; 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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 i64], align 16
@zero_samples = external hidden local_unnamed_addr global i64, align 8
@.str.8 = external hidden unnamed_addr constant [7 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 [39 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@png_libpng_ver = external constant [18 x i8], align 16
@.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 i64 @png_access_version_number() #5
  %12 = tail call ptr @png_get_header_version(ptr noundef null) #5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.24, i64 noundef %11, ptr noundef %12) #5
  %14 = load ptr, ptr @stdout, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.25, i64 noundef 10237, ptr noundef nonnull @.str.26) #5
  %16 = load ptr, ptr @stdout, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.27, i64 noundef 1264, i64 noundef 464) #5
  %18 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @png_libpng_ver, ptr noundef nonnull dereferenceable(1) @.str.8) #6
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %26, label %19

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

26:                                               ; preds = %19, %2
  %.060 = phi i32 [ 1, %19 ], [ 0, %2 ]
  %27 = icmp sgt i32 %0, 1
  br i1 %27, label %28, label %thread-pre-split

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

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

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

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

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

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

46:                                               ; preds = %40
  store ptr %30, 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 = %26, %46
  %.pr = load i32, ptr @verbose, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %thread-pre-split, %43
  %48 = phi i32 [ %.pr, %thread-pre-split ], [ 1, %43 ]
  %49 = add nsw i32 %48, 3
  %50 = icmp eq i32 %49, %0
  br i1 %50, label %51, label %56

51:                                               ; preds = %47
  %52 = sext i32 %48 to i64
  %53 = getelementptr ptr, ptr %1, i64 %52
  %54 = getelementptr i8, ptr %53, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  store ptr %55, ptr @outname, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %47, %51
  %57 = icmp slt i32 %49, %0
  br i1 %57, label %58, label %.preheader.preheader

.critedge:                                        ; preds = %28, %39
  %storemerge = phi i32 [ 1, %39 ], [ 0, %28 ]
  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

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

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

76:                                               ; preds = %.lr.ph
  %77 = load i64, ptr @zero_samples, align 8, !tbaa !11
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.39, i64 noundef %77) #5
  br label %79

79:                                               ; preds = %76, %86
  %indvars.iv83 = phi i64 [ 0, %76 ], [ %indvars.iv.next84, %86 ]
  %80 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %indvars.iv83
  %81 = load i64, ptr %80, align 8, !tbaa !11
  %.not70 = icmp eq i64 %81, 0
  br i1 %.not70, label %86, label %82

82:                                               ; preds = %79
  %83 = load ptr, ptr @stdout, align 8, !tbaa !5
  %84 = trunc nuw nsw i64 %indvars.iv83 to i32
  %85 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str.40, i32 noundef %84, i64 noundef %81) #5
  br label %86

86:                                               ; preds = %79, %82
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next84, 256
  br i1 %exitcond86.not, label %87, label %79, !llvm.loop !13

87:                                               ; preds = %86
  %88 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not69 = icmp eq i32 %88, 0
  br i1 %.not69, label %92, label %89

89:                                               ; preds = %87
  %90 = load ptr, ptr @stdout, align 8, !tbaa !5
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.41, ptr noundef nonnull @tIME_string) #5
  br label %92

92:                                               ; preds = %89, %87
  store i32 0, ptr @tIME_chunk_present, align 4, !tbaa !9
  br label %96

93:                                               ; preds = %.lr.ph
  %94 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.42) #5
  %95 = add nsw i32 %73, %.178
  br label %96

96:                                               ; preds = %93, %92
  %.2 = phi i32 [ %.178, %92 ], [ %95, %93 ]
  %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 !15

.preheader.preheader:                             ; preds = %56
  %97 = icmp eq i32 %48, 0
  br i1 %97, label %98, label %99

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

99:                                               ; preds = %.preheader.preheader, %98
  %100 = load ptr, ptr @stdout, align 8, !tbaa !5
  %101 = load ptr, ptr @inname, align 8, !tbaa !5
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.38, ptr noundef %101) #5
  %103 = load ptr, ptr @inname, align 8, !tbaa !5
  %104 = load ptr, ptr @outname, align 8, !tbaa !5
  %105 = tail call i32 @test_one_file(ptr noundef %103, ptr noundef %104)
  %106 = icmp eq i32 %105, 0
  %107 = load i32, ptr @verbose, align 4
  br i1 %106, label %108, label %127

108:                                              ; preds = %99
  %109 = icmp eq i32 %107, 1
  br i1 %109, label %110, label %137

110:                                              ; preds = %108
  %111 = load ptr, ptr @stdout, align 8, !tbaa !5
  %112 = load i64, ptr @zero_samples, align 8, !tbaa !11
  %113 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.39, i64 noundef %112) #5
  br label %114

114:                                              ; preds = %110, %121
  %indvars.iv = phi i64 [ 0, %110 ], [ %indvars.iv.next, %121 ]
  %115 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %indvars.iv
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %.not68 = icmp eq i64 %116, 0
  br i1 %.not68, label %121, label %117

117:                                              ; preds = %114
  %118 = load ptr, ptr @stdout, align 8, !tbaa !5
  %119 = trunc nuw nsw i64 %indvars.iv to i32
  %120 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef nonnull @.str.40, i32 noundef %119, i64 noundef %116) #5
  br label %121

121:                                              ; preds = %114, %117
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %122, label %114, !llvm.loop !16

122:                                              ; preds = %121
  %123 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not67 = icmp eq i32 %123, 0
  br i1 %.not67, label %137, label %124

124:                                              ; preds = %122
  %125 = load ptr, ptr @stdout, align 8, !tbaa !5
  %126 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef nonnull @.str.41, ptr noundef nonnull @tIME_string) #5
  br label %137

127:                                              ; preds = %99
  %128 = icmp eq i32 %107, 0
  br i1 %128, label %129, label %133

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

133:                                              ; preds = %129, %127
  %134 = load ptr, ptr @stdout, align 8, !tbaa !5
  %135 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull @.str.42) #5
  %136 = add nsw i32 %105, %.060
  br label %137

137:                                              ; preds = %122, %124, %108, %133
  %.4 = phi i32 [ %.060, %108 ], [ %136, %133 ], [ %.060, %124 ], [ %.060, %122 ]
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !9
  %.pre = load i32, ptr @verbose, align 4
  %138 = icmp eq i32 %.pre, 1
  %139 = icmp ne i32 %.4, 0
  %or.cond5.1 = select i1 %138, i1 true, i1 %139
  br i1 %or.cond5.1, label %140, label %144

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

144:                                              ; preds = %140, %137
  %145 = load ptr, ptr @inname, align 8, !tbaa !5
  %146 = load ptr, ptr @outname, align 8, !tbaa !5
  %147 = tail call i32 @test_one_file(ptr noundef %145, ptr noundef %146)
  %148 = icmp eq i32 %147, 0
  %149 = load i32, ptr @verbose, align 4
  br i1 %148, label %160, label %150

150:                                              ; preds = %144
  %151 = icmp eq i32 %149, 0
  br i1 %151, label %152, label %156

152:                                              ; preds = %150
  %153 = load ptr, ptr @stdout, align 8, !tbaa !5
  %154 = load ptr, ptr @inname, align 8, !tbaa !5
  %155 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef nonnull @.str.38, ptr noundef %154) #5
  br label %156

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

160:                                              ; preds = %144
  %161 = icmp eq i32 %149, 1
  br i1 %161, label %162, label %.preheader.2

162:                                              ; preds = %160
  %163 = load ptr, ptr @stdout, align 8, !tbaa !5
  %164 = load i64, ptr @zero_samples, align 8, !tbaa !11
  %165 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef nonnull @.str.39, i64 noundef %164) #5
  br label %166

166:                                              ; preds = %173, %162
  %indvars.iv.1 = phi i64 [ 0, %162 ], [ %indvars.iv.next.1, %173 ]
  %167 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %indvars.iv.1
  %168 = load i64, ptr %167, align 8, !tbaa !11
  %.not68.1 = icmp eq i64 %168, 0
  br i1 %.not68.1, label %173, label %169

169:                                              ; preds = %166
  %170 = load ptr, ptr @stdout, align 8, !tbaa !5
  %171 = trunc nuw nsw i64 %indvars.iv.1 to i32
  %172 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef nonnull @.str.40, i32 noundef %171, i64 noundef %168) #5
  br label %173

173:                                              ; preds = %169, %166
  %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 %174, label %166, !llvm.loop !16

174:                                              ; preds = %173
  %175 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not67.1 = icmp eq i32 %175, 0
  br i1 %.not67.1, label %.preheader.2thread-pre-split, label %176

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

.preheader.2thread-pre-split:                     ; preds = %176, %174, %156
  %.4.1.ph = phi i32 [ %.4, %174 ], [ %.4, %176 ], [ %159, %156 ]
  %.pr94 = load i32, ptr @verbose, align 4
  br label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.2thread-pre-split, %160
  %179 = phi i32 [ %.pr94, %.preheader.2thread-pre-split ], [ %149, %160 ]
  %.4.1 = phi i32 [ %.4.1.ph, %.preheader.2thread-pre-split ], [ %.4, %160 ]
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %182

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

182:                                              ; preds = %181, %.preheader.2
  %183 = icmp eq i32 %179, 1
  %184 = icmp ne i32 %.4.1, 0
  %or.cond5.2 = select i1 %183, i1 true, i1 %184
  br i1 %or.cond5.2, label %185, label %189

185:                                              ; preds = %182
  %186 = load ptr, ptr @stdout, align 8, !tbaa !5
  %187 = load ptr, ptr @inname, align 8, !tbaa !5
  %188 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef nonnull @.str.38, ptr noundef %187) #5
  br label %189

189:                                              ; preds = %185, %182
  %190 = load ptr, ptr @inname, align 8, !tbaa !5
  %191 = load ptr, ptr @outname, align 8, !tbaa !5
  %192 = tail call i32 @test_one_file(ptr noundef %190, ptr noundef %191)
  %193 = icmp eq i32 %192, 0
  %194 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %193, label %198, label %195

195:                                              ; preds = %189
  %196 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %194, ptr noundef nonnull @.str.42) #5
  %197 = add nsw i32 %192, %.4.1
  br label %.loopexit

198:                                              ; preds = %189
  %199 = load i64, ptr @zero_samples, align 8, !tbaa !11
  %200 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %194, ptr noundef nonnull @.str.39, i64 noundef %199) #5
  br label %201

201:                                              ; preds = %208, %198
  %indvars.iv.2 = phi i64 [ 0, %198 ], [ %indvars.iv.next.2, %208 ]
  %202 = getelementptr inbounds [256 x i64], ptr @filters_used, i64 0, i64 %indvars.iv.2
  %203 = load i64, ptr %202, align 8, !tbaa !11
  %.not68.2 = icmp eq i64 %203, 0
  br i1 %.not68.2, label %208, label %204

204:                                              ; preds = %201
  %205 = load ptr, ptr @stdout, align 8, !tbaa !5
  %206 = trunc nuw nsw i64 %indvars.iv.2 to i32
  %207 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef nonnull @.str.40, i32 noundef %206, i64 noundef %203) #5
  br label %208

208:                                              ; preds = %204, %201
  %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 %209, label %201, !llvm.loop !16

209:                                              ; preds = %208
  %210 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not67.2 = icmp eq i32 %210, 0
  br i1 %.not67.2, label %.loopexit, label %211

211:                                              ; preds = %209
  %212 = load ptr, ptr @stdout, align 8, !tbaa !5
  %213 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef nonnull @.str.41, ptr noundef nonnull @tIME_string) #5
  br label %.loopexit

.loopexit:                                        ; preds = %96, %195, %209, %211, %.critedge
  %.5 = phi i32 [ %.060, %.critedge ], [ %197, %195 ], [ %.4.1, %211 ], [ %.4.1, %209 ], [ %.2, %96 ]
  %214 = icmp eq i32 %.5, 0
  %215 = load ptr, ptr @stdout, align 8, !tbaa !5
  %.str.43..str.44 = select i1 %214, ptr @.str.43, ptr @.str.44
  %216 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef nonnull %.str.43..str.44) #5
  %217 = icmp ne i32 %.5, 0
  %218 = zext i1 %217 to i32
  ret i32 %218
}

declare ptr @png_get_copyright(ptr noundef) local_unnamed_addr #2

declare i64 @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

; 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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