; LLVM IR from corentinartaud/graphics :: ThirdParty/FreeImage-3170/Source/LibPNG (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
@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@status_dots_requested = external hidden global i32, align 4
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@verbose = external hidden global i32, align 4
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@inname = external hidden global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@strict = external hidden global i32, align 4
@relaxed = external hidden global i32, align 4
@.str.16 = external hidden unnamed_addr constant [10 x i8], align 1
@outname = external hidden global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@zero_samples = external hidden global i32, align 4
@filters_used = external hidden global [256 x i32], align 16
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@tIME_chunk_present = external hidden global i32, align 4
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@tIME_string = external hidden global [29 x i8], align 16
@.str.24 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %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, ptr noundef @.str.1) #6
  %16 = load ptr, ptr @stdout, align 8, !tbaa !9
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.2, ptr noundef @.str.3) #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.4, 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.5, 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.6, i64 noundef 10616, ptr noundef @.str.7) #6
  %28 = call ptr @png_get_header_ver(ptr noundef null)
  %29 = call i32 @strcmp(ptr noundef %28, ptr noundef @.str.1) #7
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %41

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

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

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

50:                                               ; preds = %44
  store i32 1, ptr %6, align 4, !tbaa !5
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %106

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

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

63:                                               ; preds = %57, %51
  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 %105

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

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

74:                                               ; preds = %64
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 1
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = call i32 @strcmp(ptr noundef %77, ptr noundef @.str.15) #7
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %86

80:                                               ; preds = %74
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  store i32 1, ptr @verbose, align 4, !tbaa !5
  %81 = load ptr, ptr %5, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %81, i64 2
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  store ptr %83, ptr @inname, align 8, !tbaa !9
  %84 = load i32, ptr @strict, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr @strict, align 4, !tbaa !5
  store i32 0, ptr @relaxed, align 4, !tbaa !5
  br label %103

86:                                               ; preds = %74
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %87, i64 1
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = call i32 @strcmp(ptr noundef %89, ptr noundef @.str.16) #7
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %98

92:                                               ; preds = %86
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  store i32 1, ptr @verbose, align 4, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  %94 = getelementptr inbounds ptr, ptr %93, i64 2
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  store ptr %95, ptr @inname, align 8, !tbaa !9
  store i32 0, ptr @strict, align 4, !tbaa !5
  %96 = load i32, ptr @relaxed, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr @relaxed, align 4, !tbaa !5
  br label %102

98:                                               ; preds = %86
  %99 = load ptr, ptr %5, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %99, i64 1
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  store ptr %101, ptr @inname, align 8, !tbaa !9
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %98, %92
  br label %103

103:                                              ; preds = %102, %80
  br label %104

104:                                              ; preds = %103, %70
  br label %105

105:                                              ; preds = %104, %63
  br label %106

106:                                              ; preds = %105, %50
  br label %107

107:                                              ; preds = %106, %41
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %122

110:                                              ; preds = %107
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = load i32, ptr @verbose, align 4, !tbaa !5
  %113 = add nsw i32 3, %112
  %114 = icmp eq i32 %111, %113
  br i1 %114, label %115, label %122

115:                                              ; preds = %110
  %116 = load ptr, ptr %5, align 8, !tbaa !9
  %117 = load i32, ptr @verbose, align 4, !tbaa !5
  %118 = add nsw i32 2, %117
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %116, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  store ptr %121, ptr @outname, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %115, %110, %107
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %130

125:                                              ; preds = %122
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = load i32, ptr @verbose, align 4, !tbaa !5
  %128 = add nsw i32 3, %127
  %129 = icmp sgt i32 %126, %128
  br i1 %129, label %136, label %130

130:                                              ; preds = %125, %122
  %131 = load i32, ptr %6, align 4, !tbaa !5
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %150

133:                                              ; preds = %130
  %134 = load i32, ptr %4, align 4, !tbaa !5
  %135 = icmp slt i32 %134, 2
  br i1 %135, label %136, label %150

136:                                              ; preds = %133, %125
  %137 = load ptr, ptr @stdout, align 8, !tbaa !9
  %138 = load ptr, ptr %5, align 8, !tbaa !9
  %139 = getelementptr inbounds ptr, ptr %138, i64 0
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = load ptr, ptr %5, align 8, !tbaa !9
  %142 = getelementptr inbounds ptr, ptr %141, i64 0
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.17, ptr noundef %140, ptr noundef %143) #6
  %145 = load ptr, ptr @stdout, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.18) #6
  %147 = load ptr, ptr @stdout, align 8, !tbaa !9
  %148 = load ptr, ptr @outname, align 8, !tbaa !9
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.19, ptr noundef %148) #6
  call void @exit(i32 noundef 1) #8
  unreachable

150:                                              ; preds = %133, %130
  %151 = load i32, ptr %6, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %220

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

154:                                              ; preds = %216, %153
  %155 = load i32, ptr %8, align 4, !tbaa !5
  %156 = load i32, ptr %4, align 4, !tbaa !5
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %158, label %219

158:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %159 = load ptr, ptr @stdout, align 8, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !9
  %161 = load i32, ptr %8, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds ptr, ptr %160, i64 %162
  %164 = load ptr, ptr %163, align 8, !tbaa !9
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str.20, ptr noundef %164) #6
  %166 = load ptr, ptr %5, align 8, !tbaa !9
  %167 = load i32, ptr %8, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %166, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  %171 = load ptr, ptr @outname, align 8, !tbaa !9
  %172 = call i32 @test_one_file(ptr noundef %170, ptr noundef %171)
  store i32 %172, ptr %9, align 4, !tbaa !5
  %173 = load i32, ptr %9, align 4, !tbaa !5
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %175, label %209

175:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %176 = load ptr, ptr @stdout, align 8, !tbaa !9
  %177 = load i32, ptr @zero_samples, align 4, !tbaa !5
  %178 = zext i32 %177 to i64
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.21, i64 noundef %178) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %199, %175
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = icmp slt i32 %181, 256
  br i1 %182, label %183, label %202

183:                                              ; preds = %180
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %198

189:                                              ; preds = %183
  %190 = load ptr, ptr @stdout, align 8, !tbaa !9
  %191 = load i32, ptr %10, align 4, !tbaa !5
  %192 = load i32, ptr %10, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = zext i32 %195 to i64
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.22, i32 noundef %191, i64 noundef %196) #6
  br label %198

198:                                              ; preds = %189, %183
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %10, align 4, !tbaa !5
  br label %180, !llvm.loop !11

202:                                              ; preds = %180
  %203 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !5
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %208

205:                                              ; preds = %202
  %206 = load ptr, ptr @stdout, align 8, !tbaa !9
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.23, ptr noundef @tIME_string) #6
  br label %208

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

209:                                              ; preds = %158
  %210 = load ptr, ptr @stdout, align 8, !tbaa !9
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.24) #6
  %212 = load i32, ptr %9, align 4, !tbaa !5
  %213 = load i32, ptr %7, align 4, !tbaa !5
  %214 = add nsw i32 %213, %212
  store i32 %214, ptr %7, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %209, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %8, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %8, align 4, !tbaa !5
  br label %154, !llvm.loop !13

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

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

221:                                              ; preds = %310, %220
  %222 = load i32, ptr %11, align 4, !tbaa !5
  %223 = icmp slt i32 %222, 3
  br i1 %223, label %224, label %313

224:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %225 = load i32, ptr %11, align 4, !tbaa !5
  %226 = icmp eq i32 %225, 1
  br i1 %226, label %227, label %228

227:                                              ; preds = %224
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !5
  br label %233

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

231:                                              ; preds = %228
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %231, %228
  br label %233

233:                                              ; preds = %232, %227
  %234 = load i32, ptr %11, align 4, !tbaa !5
  %235 = icmp eq i32 %234, 0
  br i1 %235, label %242, label %236

236:                                              ; preds = %233
  %237 = load i32, ptr @verbose, align 4, !tbaa !5
  %238 = icmp eq i32 %237, 1
  br i1 %238, label %242, label %239

239:                                              ; preds = %236
  %240 = load i32, ptr %7, align 4, !tbaa !5
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %246

242:                                              ; preds = %239, %236, %233
  %243 = load ptr, ptr @stdout, align 8, !tbaa !9
  %244 = load ptr, ptr @inname, align 8, !tbaa !9
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.20, ptr noundef %244) #6
  br label %246

246:                                              ; preds = %242, %239
  %247 = load ptr, ptr @inname, align 8, !tbaa !9
  %248 = load ptr, ptr @outname, align 8, !tbaa !9
  %249 = call i32 @test_one_file(ptr noundef %247, ptr noundef %248)
  store i32 %249, ptr %12, align 4, !tbaa !5
  %250 = load i32, ptr %12, align 4, !tbaa !5
  %251 = icmp eq i32 %250, 0
  br i1 %251, label %252, label %293

252:                                              ; preds = %246
  %253 = load i32, ptr @verbose, align 4, !tbaa !5
  %254 = icmp eq i32 %253, 1
  br i1 %254, label %258, label %255

255:                                              ; preds = %252
  %256 = load i32, ptr %11, align 4, !tbaa !5
  %257 = icmp eq i32 %256, 2
  br i1 %257, label %258, label %292

258:                                              ; preds = %255, %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %259 = load ptr, ptr @stdout, align 8, !tbaa !9
  %260 = load i32, ptr @zero_samples, align 4, !tbaa !5
  %261 = zext i32 %260 to i64
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.21, i64 noundef %261) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %282, %258
  %264 = load i32, ptr %13, align 4, !tbaa !5
  %265 = icmp slt i32 %264, 256
  br i1 %265, label %266, label %285

266:                                              ; preds = %263
  %267 = load i32, ptr %13, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !5
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %281

272:                                              ; preds = %266
  %273 = load ptr, ptr @stdout, align 8, !tbaa !9
  %274 = load i32, ptr %13, align 4, !tbaa !5
  %275 = load i32, ptr %13, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = zext i32 %278 to i64
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.22, i32 noundef %274, i64 noundef %279) #6
  br label %281

281:                                              ; preds = %272, %266
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %13, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %13, align 4, !tbaa !5
  br label %263, !llvm.loop !14

285:                                              ; preds = %263
  %286 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !5
  %287 = icmp ne i32 %286, 0
  br i1 %287, label %288, label %291

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

291:                                              ; preds = %288, %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %292

292:                                              ; preds = %291, %255
  br label %309

293:                                              ; preds = %246
  %294 = load i32, ptr @verbose, align 4, !tbaa !5
  %295 = icmp eq i32 %294, 0
  br i1 %295, label %296, label %303

296:                                              ; preds = %293
  %297 = load i32, ptr %11, align 4, !tbaa !5
  %298 = icmp ne i32 %297, 2
  br i1 %298, label %299, label %303

299:                                              ; preds = %296
  %300 = load ptr, ptr @stdout, align 8, !tbaa !9
  %301 = load ptr, ptr @inname, align 8, !tbaa !9
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %300, ptr noundef @.str.20, ptr noundef %301) #6
  br label %303

303:                                              ; preds = %299, %296, %293
  %304 = load ptr, ptr @stdout, align 8, !tbaa !9
  %305 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %304, ptr noundef @.str.24) #6
  %306 = load i32, ptr %12, align 4, !tbaa !5
  %307 = load i32, ptr %7, align 4, !tbaa !5
  %308 = add nsw i32 %307, %306
  store i32 %308, ptr %7, align 4, !tbaa !5
  br label %309

309:                                              ; preds = %303, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %310

310:                                              ; preds = %309
  %311 = load i32, ptr %11, align 4, !tbaa !5
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %11, align 4, !tbaa !5
  br label %221, !llvm.loop !15

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

314:                                              ; preds = %313, %219
  %315 = load i32, ptr %7, align 4, !tbaa !5
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %317, label %320

317:                                              ; preds = %314
  %318 = load ptr, ptr @stdout, align 8, !tbaa !9
  %319 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %318, ptr noundef @.str.25) #6
  br label %323

320:                                              ; preds = %314
  %321 = load ptr, ptr @stdout, align 8, !tbaa !9
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str.26) #6
  br label %323

323:                                              ; preds = %320, %317
  %324 = load i32, ptr %7, align 4, !tbaa !5
  %325 = icmp ne i32 %324, 0
  %326 = zext i1 %325 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 %326
}

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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
@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@status_dots_requested = external hidden local_unnamed_addr global i32, align 4
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@verbose = external hidden local_unnamed_addr global i32, align 4
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@inname = external hidden local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@strict = external hidden local_unnamed_addr global i32, align 4
@relaxed = external hidden local_unnamed_addr global i32, align 4
@.str.16 = external hidden unnamed_addr constant [10 x i8], align 1
@outname = external hidden local_unnamed_addr global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@zero_samples = external hidden local_unnamed_addr global i32, align 4
@filters_used = external hidden local_unnamed_addr global [256 x i32], align 16
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@tIME_chunk_present = external hidden local_unnamed_addr global i32, align 4
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@tIME_string = external hidden global [29 x i8], align 16
@.str.24 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 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 #0 {
  %3 = load ptr, ptr @stdout, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #5
  %5 = load ptr, ptr @stdout, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3) #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.4, 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.5, 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.6, i64 noundef 10616, ptr noundef nonnull @.str.7) #5
  %17 = tail call ptr @png_get_header_ver(ptr noundef null) #5
  %18 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.1) #6
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %27, 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.8) #5
  %22 = load ptr, ptr @stdout, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1) #5
  %24 = load ptr, ptr @stdout, align 8, !tbaa !5
  %25 = tail call ptr @png_get_header_ver(ptr noundef null) #5
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.10, ptr noundef %25) #5
  br label %27

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

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

34:                                               ; preds = %29
  %35 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %31, ptr noundef nonnull dereferenceable(1) @.str.12) #6
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %40, label %37

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

40:                                               ; preds = %37, %34
  store i32 1, ptr @verbose, align 4, !tbaa !9
  br label %.critedge

41:                                               ; preds = %37
  %42 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %31, ptr noundef nonnull dereferenceable(1) @.str.14) #6
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %47

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

47:                                               ; preds = %41
  %48 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %31, ptr noundef nonnull dereferenceable(1) @.str.15) #6
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %55

50:                                               ; preds = %47
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !9
  store i32 1, ptr @verbose, align 4, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %1, i64 16
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  store ptr %52, ptr @inname, align 8, !tbaa !5
  %53 = load i32, ptr @strict, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr @strict, align 4, !tbaa !9
  store i32 0, ptr @relaxed, align 4, !tbaa !9
  br label %thread-pre-split

55:                                               ; preds = %47
  %56 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %31, ptr noundef nonnull dereferenceable(1) @.str.16) #6
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %63

58:                                               ; preds = %55
  store i32 0, ptr @status_dots_requested, align 4, !tbaa !9
  store i32 1, ptr @verbose, align 4, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %1, i64 16
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %60, ptr @inname, align 8, !tbaa !5
  store i32 0, ptr @strict, align 4, !tbaa !9
  %61 = load i32, ptr @relaxed, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr @relaxed, align 4, !tbaa !9
  br label %thread-pre-split

63:                                               ; preds = %55
  store ptr %31, 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 = %27, %63, %58, %50
  %.pr = load i32, ptr @verbose, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %thread-pre-split, %44
  %65 = phi i32 [ %.pr, %thread-pre-split ], [ 1, %44 ]
  %66 = add nsw i32 %65, 3
  %67 = icmp eq i32 %66, %0
  br i1 %67, label %68, label %73

68:                                               ; preds = %64
  %69 = sext i32 %65 to i64
  %70 = getelementptr ptr, ptr %1, i64 %69
  %71 = getelementptr i8, ptr %70, i64 16
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  store ptr %72, ptr @outname, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %64, %68
  %74 = icmp slt i32 %66, %0
  br i1 %74, label %75, label %.preheader.preheader

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

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

75:                                               ; preds = %73
  %76 = load ptr, ptr @stdout, align 8, !tbaa !5
  %77 = load ptr, ptr %1, align 8, !tbaa !5
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.17, ptr noundef %77, ptr noundef %77) #5
  %79 = load ptr, ptr @stdout, align 8, !tbaa !5
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.18) #5
  %81 = load ptr, ptr @stdout, align 8, !tbaa !5
  %82 = load ptr, ptr @outname, align 8, !tbaa !5
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.19, ptr noundef %82) #5
  tail call void @exit(i32 noundef 1) #7
  unreachable

.lr.ph:                                           ; preds = %.lr.ph.preheader, %115
  %indvars.iv91 = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next92, %115 ]
  %.182 = phi i32 [ %.065, %.lr.ph.preheader ], [ %.2, %115 ]
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv91
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.20, ptr noundef %86) #5
  %88 = load ptr, ptr %85, align 8, !tbaa !5
  %89 = load ptr, ptr @outname, align 8, !tbaa !5
  %90 = tail call i32 @test_one_file(ptr noundef %88, ptr noundef %89)
  %91 = icmp eq i32 %90, 0
  %92 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %91, label %93, label %112

93:                                               ; preds = %.lr.ph
  %94 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.21, i64 noundef %95) #5
  br label %97

97:                                               ; preds = %93, %105
  %indvars.iv87 = phi i64 [ 0, %93 ], [ %indvars.iv.next88, %105 ]
  %98 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv87
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %.not74 = icmp eq i32 %99, 0
  br i1 %.not74, label %105, label %100

100:                                              ; preds = %97
  %101 = load ptr, ptr @stdout, align 8, !tbaa !5
  %102 = zext i32 %99 to i64
  %103 = trunc nuw nsw i64 %indvars.iv87 to i32
  %104 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.22, i32 noundef %103, i64 noundef %102) #5
  br label %105

105:                                              ; preds = %97, %100
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next88, 256
  br i1 %exitcond90.not, label %106, label %97, !llvm.loop !11

106:                                              ; preds = %105
  %107 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not73 = icmp eq i32 %107, 0
  br i1 %.not73, label %111, label %108

108:                                              ; preds = %106
  %109 = load ptr, ptr @stdout, align 8, !tbaa !5
  %110 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.23, ptr noundef nonnull @tIME_string) #5
  br label %111

111:                                              ; preds = %108, %106
  store i32 0, ptr @tIME_chunk_present, align 4, !tbaa !9
  br label %115

112:                                              ; preds = %.lr.ph
  %113 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.24) #5
  %114 = add nsw i32 %90, %.182
  br label %115

115:                                              ; preds = %112, %111
  %.2 = phi i32 [ %.182, %111 ], [ %114, %112 ]
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next92, %wide.trip.count
  br i1 %exitcond94.not, label %.loopexit, label %.lr.ph, !llvm.loop !13

.preheader.preheader:                             ; preds = %73
  %116 = icmp eq i32 %65, 0
  br i1 %116, label %117, label %118

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

118:                                              ; preds = %.preheader.preheader, %117
  %119 = load ptr, ptr @stdout, align 8, !tbaa !5
  %120 = load ptr, ptr @inname, align 8, !tbaa !5
  %121 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef nonnull @.str.20, ptr noundef %120) #5
  %122 = load ptr, ptr @inname, align 8, !tbaa !5
  %123 = load ptr, ptr @outname, align 8, !tbaa !5
  %124 = tail call i32 @test_one_file(ptr noundef %122, ptr noundef %123)
  %125 = icmp eq i32 %124, 0
  %126 = load i32, ptr @verbose, align 4
  br i1 %125, label %127, label %148

127:                                              ; preds = %118
  %128 = icmp eq i32 %126, 1
  br i1 %128, label %129, label %158

129:                                              ; preds = %127
  %130 = load ptr, ptr @stdout, align 8, !tbaa !5
  %131 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef nonnull @.str.21, i64 noundef %132) #5
  br label %134

134:                                              ; preds = %129, %142
  %indvars.iv = phi i64 [ 0, %129 ], [ %indvars.iv.next, %142 ]
  %135 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %.not72 = icmp eq i32 %136, 0
  br i1 %.not72, label %142, label %137

137:                                              ; preds = %134
  %138 = load ptr, ptr @stdout, align 8, !tbaa !5
  %139 = zext i32 %136 to i64
  %140 = trunc nuw nsw i64 %indvars.iv to i32
  %141 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.22, i32 noundef %140, i64 noundef %139) #5
  br label %142

142:                                              ; preds = %134, %137
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %143, label %134, !llvm.loop !14

143:                                              ; preds = %142
  %144 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not71 = icmp eq i32 %144, 0
  br i1 %.not71, label %158, label %145

145:                                              ; preds = %143
  %146 = load ptr, ptr @stdout, align 8, !tbaa !5
  %147 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef nonnull @.str.23, ptr noundef nonnull @tIME_string) #5
  br label %158

148:                                              ; preds = %118
  %149 = icmp eq i32 %126, 0
  br i1 %149, label %150, label %154

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

154:                                              ; preds = %150, %148
  %155 = load ptr, ptr @stdout, align 8, !tbaa !5
  %156 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.24) #5
  %157 = add nsw i32 %124, %.065
  br label %158

158:                                              ; preds = %143, %145, %127, %154
  %.4 = phi i32 [ %.065, %127 ], [ %157, %154 ], [ %.065, %145 ], [ %.065, %143 ]
  store i32 1, ptr @status_dots_requested, align 4, !tbaa !9
  %.pre = load i32, ptr @verbose, align 4
  %159 = icmp eq i32 %.pre, 1
  %160 = icmp ne i32 %.4, 0
  %or.cond5.1 = select i1 %159, i1 true, i1 %160
  br i1 %or.cond5.1, label %161, label %165

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

165:                                              ; preds = %161, %158
  %166 = load ptr, ptr @inname, align 8, !tbaa !5
  %167 = load ptr, ptr @outname, align 8, !tbaa !5
  %168 = tail call i32 @test_one_file(ptr noundef %166, ptr noundef %167)
  %169 = icmp eq i32 %168, 0
  %170 = load i32, ptr @verbose, align 4
  br i1 %169, label %181, label %171

171:                                              ; preds = %165
  %172 = icmp eq i32 %170, 0
  br i1 %172, label %173, label %177

173:                                              ; preds = %171
  %174 = load ptr, ptr @stdout, align 8, !tbaa !5
  %175 = load ptr, ptr @inname, align 8, !tbaa !5
  %176 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef nonnull @.str.20, ptr noundef %175) #5
  br label %177

177:                                              ; preds = %173, %171
  %178 = load ptr, ptr @stdout, align 8, !tbaa !5
  %179 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef nonnull @.str.24) #5
  %180 = add nsw i32 %168, %.4
  br label %.preheader.2thread-pre-split

181:                                              ; preds = %165
  %182 = icmp eq i32 %170, 1
  br i1 %182, label %183, label %.preheader.2

183:                                              ; preds = %181
  %184 = load ptr, ptr @stdout, align 8, !tbaa !5
  %185 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef nonnull @.str.21, i64 noundef %186) #5
  br label %188

188:                                              ; preds = %196, %183
  %indvars.iv.1 = phi i64 [ 0, %183 ], [ %indvars.iv.next.1, %196 ]
  %189 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv.1
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %.not72.1 = icmp eq i32 %190, 0
  br i1 %.not72.1, label %196, label %191

191:                                              ; preds = %188
  %192 = load ptr, ptr @stdout, align 8, !tbaa !5
  %193 = zext i32 %190 to i64
  %194 = trunc nuw nsw i64 %indvars.iv.1 to i32
  %195 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %192, ptr noundef nonnull @.str.22, i32 noundef %194, i64 noundef %193) #5
  br label %196

196:                                              ; preds = %191, %188
  %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 %197, label %188, !llvm.loop !14

197:                                              ; preds = %196
  %198 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not71.1 = icmp eq i32 %198, 0
  br i1 %.not71.1, label %.preheader.2thread-pre-split, label %199

199:                                              ; preds = %197
  %200 = load ptr, ptr @stdout, align 8, !tbaa !5
  %201 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef nonnull @.str.23, ptr noundef nonnull @tIME_string) #5
  br label %.preheader.2thread-pre-split

.preheader.2thread-pre-split:                     ; preds = %199, %197, %177
  %.4.1.ph = phi i32 [ %.4, %197 ], [ %.4, %199 ], [ %180, %177 ]
  %.pr98 = load i32, ptr @verbose, align 4
  br label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.2thread-pre-split, %181
  %202 = phi i32 [ %.pr98, %.preheader.2thread-pre-split ], [ %170, %181 ]
  %.4.1 = phi i32 [ %.4.1.ph, %.preheader.2thread-pre-split ], [ %.4, %181 ]
  %203 = icmp eq i32 %202, 0
  br i1 %203, label %204, label %205

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

205:                                              ; preds = %204, %.preheader.2
  %206 = icmp eq i32 %202, 1
  %207 = icmp ne i32 %.4.1, 0
  %or.cond5.2 = select i1 %206, i1 true, i1 %207
  br i1 %or.cond5.2, label %208, label %212

208:                                              ; preds = %205
  %209 = load ptr, ptr @stdout, align 8, !tbaa !5
  %210 = load ptr, ptr @inname, align 8, !tbaa !5
  %211 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef nonnull @.str.20, ptr noundef %210) #5
  br label %212

212:                                              ; preds = %208, %205
  %213 = load ptr, ptr @inname, align 8, !tbaa !5
  %214 = load ptr, ptr @outname, align 8, !tbaa !5
  %215 = tail call i32 @test_one_file(ptr noundef %213, ptr noundef %214)
  %216 = icmp eq i32 %215, 0
  %217 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %216, label %221, label %218

218:                                              ; preds = %212
  %219 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef nonnull @.str.24) #5
  %220 = add nsw i32 %215, %.4.1
  br label %.loopexit

221:                                              ; preds = %212
  %222 = load i32, ptr @zero_samples, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef nonnull @.str.21, i64 noundef %223) #5
  br label %225

225:                                              ; preds = %233, %221
  %indvars.iv.2 = phi i64 [ 0, %221 ], [ %indvars.iv.next.2, %233 ]
  %226 = getelementptr inbounds [256 x i32], ptr @filters_used, i64 0, i64 %indvars.iv.2
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %.not72.2 = icmp eq i32 %227, 0
  br i1 %.not72.2, label %233, label %228

228:                                              ; preds = %225
  %229 = load ptr, ptr @stdout, align 8, !tbaa !5
  %230 = zext i32 %227 to i64
  %231 = trunc nuw nsw i64 %indvars.iv.2 to i32
  %232 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef nonnull @.str.22, i32 noundef %231, i64 noundef %230) #5
  br label %233

233:                                              ; preds = %228, %225
  %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 %234, label %225, !llvm.loop !14

234:                                              ; preds = %233
  %235 = load i32, ptr @tIME_chunk_present, align 4, !tbaa !9
  %.not71.2 = icmp eq i32 %235, 0
  br i1 %.not71.2, label %.loopexit, label %236

236:                                              ; preds = %234
  %237 = load ptr, ptr @stdout, align 8, !tbaa !5
  %238 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef nonnull @.str.23, ptr noundef nonnull @tIME_string) #5
  br label %.loopexit

.loopexit:                                        ; preds = %115, %218, %234, %236, %.critedge
  %.5 = phi i32 [ %.065, %.critedge ], [ %220, %218 ], [ %.4.1, %236 ], [ %.4.1, %234 ], [ %.2, %115 ]
  %239 = icmp eq i32 %.5, 0
  %240 = load ptr, ptr @stdout, align 8, !tbaa !5
  %.str.25..str.26 = select i1 %239, ptr @.str.25, ptr @.str.26
  %241 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef nonnull %.str.25..str.26) #5
  %242 = icmp ne i32 %.5, 0
  %243 = zext i1 %242 to i32
  ret i32 %243
}

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

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

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

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