; LLVM IR from cpuimage/cpuimagelib :: cpuimage (CPUImageGetImageSize)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @CPUImageGetImageSize(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.stat, align 8
  %14 = alloca [26 x i8], align 16
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i16, align 2
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i16, align 2
  %33 = alloca i16, align 2
  %34 = alloca i16, align 2
  %35 = alloca i8, align 1
  %36 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 0, ptr %10, align 1, !tbaa !9
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 -1, ptr %37, align 4, !tbaa !11
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 -1, ptr %38, align 4, !tbaa !11
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -1, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call noalias ptr @fopen(ptr noundef %40, ptr noundef @.str)
  store ptr %41, ptr %11, align 8, !tbaa !5
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %47

44:                                               ; preds = %4
  %45 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %46 = trunc i8 %45 to i1
  store i1 %46, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %371

47:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 144, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 26, ptr %14) #6
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = call i32 @fileno(ptr noundef %48) #6
  %50 = call i32 @fstat(i32 noundef %49, ptr noundef %13) #6
  %51 = icmp slt i32 %50, 0
  br i1 %51, label %52, label %57

52:                                               ; preds = %47
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call i32 @fclose(ptr noundef %53)
  %55 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %56 = trunc i8 %55 to i1
  store i1 %56, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %370

57:                                               ; preds = %47
  %58 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 8
  %59 = load i64, ptr %58, align 8, !tbaa !15
  %60 = trunc i64 %59 to i32
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %60, ptr %61, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %57
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = call i64 @fread(ptr noundef %14, i64 noundef 26, i64 noundef 1, ptr noundef %63)
  %65 = icmp ult i64 %64, 1
  br i1 %65, label %66, label %71

66:                                               ; preds = %62
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = call i32 @fclose(ptr noundef %67)
  %69 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  store i1 %70, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %370

71:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store ptr @.str.1, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr @.str.2, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr @.str.3, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr @.str.4, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store ptr @.str.5, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store ptr @.str.6, ptr %20, align 8, !tbaa !5
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = icmp sge i32 %73, 10
  br i1 %74, label %75, label %102

75:                                               ; preds = %71
  %76 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = call i64 @strlen(ptr noundef %78) #7
  %80 = call i32 @memcmp(ptr noundef %76, ptr noundef %77, i64 noundef %79) #7
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %89, label %82

82:                                               ; preds = %75
  %83 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = call i64 @strlen(ptr noundef %85) #7
  %87 = call i32 @memcmp(ptr noundef %83, ptr noundef %84, i64 noundef %86) #7
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %102

89:                                               ; preds = %82, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %90 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %91 = getelementptr inbounds i8, ptr %90, i64 6
  store ptr %91, ptr %21, align 8, !tbaa !5
  %92 = load ptr, ptr %21, align 8, !tbaa !5
  %93 = getelementptr inbounds i16, ptr %92, i64 0
  %94 = load i16, ptr %93, align 2, !tbaa !19
  %95 = zext i16 %94 to i32
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %95, ptr %96, align 4, !tbaa !11
  %97 = load ptr, ptr %21, align 8, !tbaa !5
  %98 = getelementptr inbounds i16, ptr %97, i64 1
  %99 = load i16, ptr %98, align 2, !tbaa !19
  %100 = zext i16 %99 to i32
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %100, ptr %101, align 4, !tbaa !11
  store i8 1, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %361

102:                                              ; preds = %82, %71
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = icmp sge i32 %104, 24
  br i1 %105, label %106, label %136

106:                                              ; preds = %102
  %107 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = call i64 @strlen(ptr noundef %109) #7
  %111 = call i32 @memcmp(ptr noundef %107, ptr noundef %108, i64 noundef %110) #7
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %136

113:                                              ; preds = %106
  %114 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %115 = getelementptr inbounds i8, ptr %114, i64 12
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = call i64 @strlen(ptr noundef %117) #7
  %119 = call i32 @memcmp(ptr noundef %115, ptr noundef %116, i64 noundef %118) #7
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %136

121:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %122 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %123 = getelementptr inbounds i8, ptr %122, i64 16
  store ptr %123, ptr %22, align 8, !tbaa !5
  %124 = load ptr, ptr %22, align 8, !tbaa !5
  %125 = getelementptr inbounds i64, ptr %124, i64 0
  %126 = load i64, ptr %125, align 8, !tbaa !21
  %127 = call i64 @byteswap_ulong(i64 noundef %126)
  %128 = trunc i64 %127 to i32
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %128, ptr %129, align 4, !tbaa !11
  %130 = load ptr, ptr %22, align 8, !tbaa !5
  %131 = getelementptr inbounds i64, ptr %130, i64 1
  %132 = load i64, ptr %131, align 8, !tbaa !21
  %133 = call i64 @byteswap_ulong(i64 noundef %132)
  %134 = trunc i64 %133 to i32
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %134, ptr %135, align 4, !tbaa !11
  store i8 1, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %360

136:                                              ; preds = %113, %106, %102
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !11
  %139 = icmp sge i32 %138, 16
  br i1 %139, label %140, label %162

140:                                              ; preds = %136
  %141 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = call i64 @strlen(ptr noundef %143) #7
  %145 = call i32 @memcmp(ptr noundef %141, ptr noundef %142, i64 noundef %144) #7
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %162

147:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %148 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  store ptr %149, ptr %23, align 8, !tbaa !5
  %150 = load ptr, ptr %23, align 8, !tbaa !5
  %151 = getelementptr inbounds i64, ptr %150, i64 0
  %152 = load i64, ptr %151, align 8, !tbaa !21
  %153 = call i64 @byteswap_ulong(i64 noundef %152)
  %154 = trunc i64 %153 to i32
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %154, ptr %155, align 4, !tbaa !11
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = getelementptr inbounds i64, ptr %156, i64 1
  %158 = load i64, ptr %157, align 8, !tbaa !21
  %159 = call i64 @byteswap_ulong(i64 noundef %158)
  %160 = trunc i64 %159 to i32
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %160, ptr %161, align 4, !tbaa !11
  store i8 1, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %359

162:                                              ; preds = %140, %136
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !11
  %165 = icmp sge i32 %164, 2
  br i1 %165, label %166, label %267

166:                                              ; preds = %162
  %167 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %168 = load ptr, ptr %19, align 8, !tbaa !5
  %169 = load ptr, ptr %19, align 8, !tbaa !5
  %170 = call i64 @strlen(ptr noundef %169) #7
  %171 = call i32 @memcmp(ptr noundef %167, ptr noundef %168, i64 noundef %170) #7
  %172 = icmp eq i32 %171, 0
  br i1 %172, label %173, label %267

173:                                              ; preds = %166
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = call i32 @fseek(ptr noundef %175, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  store i8 0, ptr %24, align 1, !tbaa !22
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = call i64 @fread(ptr noundef %14, i64 noundef 2, i64 noundef 1, ptr noundef %177)
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = call i64 @fread(ptr noundef %24, i64 noundef 1, i64 noundef 1, ptr noundef %179)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 -1, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 -1, ptr %26, align 4, !tbaa !11
  br label %181

181:                                              ; preds = %252, %173
  %182 = load i8, ptr %24, align 1, !tbaa !22
  %183 = sext i8 %182 to i32
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %190

185:                                              ; preds = %181
  %186 = load i8, ptr %24, align 1, !tbaa !22
  %187 = zext i8 %186 to i32
  %188 = and i32 %187, 255
  %189 = icmp ne i32 %188, 218
  br label %190

190:                                              ; preds = %185, %181
  %191 = phi i1 [ false, %181 ], [ %189, %185 ]
  br i1 %191, label %192, label %255

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %198, %192
  %194 = load i8, ptr %24, align 1, !tbaa !22
  %195 = zext i8 %194 to i32
  %196 = and i32 %195, 255
  %197 = icmp ne i32 %196, 255
  br i1 %197, label %198, label %201

198:                                              ; preds = %193
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = call i64 @fread(ptr noundef %24, i64 noundef 1, i64 noundef 1, ptr noundef %199)
  br label %193, !llvm.loop !23

201:                                              ; preds = %193
  br label %202

202:                                              ; preds = %207, %201
  %203 = load i8, ptr %24, align 1, !tbaa !22
  %204 = zext i8 %203 to i32
  %205 = and i32 %204, 255
  %206 = icmp eq i32 %205, 255
  br i1 %206, label %207, label %210

207:                                              ; preds = %202
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = call i64 @fread(ptr noundef %24, i64 noundef 1, i64 noundef 1, ptr noundef %208)
  br label %202, !llvm.loop !25

210:                                              ; preds = %202
  %211 = load i8, ptr %24, align 1, !tbaa !22
  %212 = zext i8 %211 to i32
  %213 = and i32 %212, 255
  %214 = icmp sge i32 %213, 192
  br i1 %214, label %215, label %236

215:                                              ; preds = %210
  %216 = load i8, ptr %24, align 1, !tbaa !22
  %217 = zext i8 %216 to i32
  %218 = and i32 %217, 255
  %219 = icmp sle i32 %218, 195
  br i1 %219, label %220, label %236

220:                                              ; preds = %215
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  %222 = call i64 @fread(ptr noundef %14, i64 noundef 3, i64 noundef 1, ptr noundef %221)
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = call i64 @fread(ptr noundef %14, i64 noundef 4, i64 noundef 1, ptr noundef %223)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %225 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  store ptr %225, ptr %27, align 8, !tbaa !5
  %226 = load ptr, ptr %27, align 8, !tbaa !5
  %227 = getelementptr inbounds i16, ptr %226, i64 0
  %228 = load i16, ptr %227, align 2, !tbaa !19
  %229 = call zeroext i16 @byteswap_ushort(i16 noundef zeroext %228)
  %230 = zext i16 %229 to i32
  store i32 %230, ptr %26, align 4, !tbaa !11
  %231 = load ptr, ptr %27, align 8, !tbaa !5
  %232 = getelementptr inbounds i16, ptr %231, i64 1
  %233 = load i16, ptr %232, align 2, !tbaa !19
  %234 = call zeroext i16 @byteswap_ushort(i16 noundef zeroext %233)
  %235 = zext i16 %234 to i32
  store i32 %235, ptr %25, align 4, !tbaa !11
  store i32 3, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %255

236:                                              ; preds = %215, %210
  call void @llvm.lifetime.start.p0(i64 2, ptr %28) #6
  store i16 0, ptr %28, align 2, !tbaa !19
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = call i64 @fread(ptr noundef %28, i64 noundef 2, i64 noundef 1, ptr noundef %237)
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = load i16, ptr %28, align 2, !tbaa !19
  %241 = call zeroext i16 @byteswap_ushort(i16 noundef zeroext %240)
  %242 = zext i16 %241 to i32
  %243 = sub nsw i32 %242, 2
  %244 = sext i32 %243 to i64
  %245 = call i32 @fseek(ptr noundef %239, i64 noundef %244, i32 noundef 1)
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %248

247:                                              ; preds = %236
  store i32 3, ptr %12, align 4
  br label %249

248:                                              ; preds = %236
  store i32 0, ptr %12, align 4
  br label %249

249:                                              ; preds = %248, %247
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #6
  %250 = load i32, ptr %12, align 4
  switch i32 %250, label %373 [
    i32 0, label %251
    i32 3, label %255
  ]

251:                                              ; preds = %249
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = call i64 @fread(ptr noundef %24, i64 noundef 1, i64 noundef 1, ptr noundef %253)
  br label %181, !llvm.loop !26

255:                                              ; preds = %249, %220, %190
  %256 = load i32, ptr %25, align 4, !tbaa !11
  %257 = icmp ne i32 %256, -1
  br i1 %257, label %258, label %266

258:                                              ; preds = %255
  %259 = load i32, ptr %26, align 4, !tbaa !11
  %260 = icmp ne i32 %259, -1
  br i1 %260, label %261, label %266

261:                                              ; preds = %258
  %262 = load i32, ptr %25, align 4, !tbaa !11
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %262, ptr %263, align 4, !tbaa !11
  %264 = load i32, ptr %26, align 4, !tbaa !11
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %264, ptr %265, align 4, !tbaa !11
  br label %266

266:                                              ; preds = %261, %258, %255
  store i8 1, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %358

267:                                              ; preds = %166, %162
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = load i32, ptr %268, align 4, !tbaa !11
  %270 = icmp sge i32 %269, 26
  br i1 %270, label %271, label %315

271:                                              ; preds = %267
  %272 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %273 = load ptr, ptr %20, align 8, !tbaa !5
  %274 = load ptr, ptr %20, align 8, !tbaa !5
  %275 = call i64 @strlen(ptr noundef %274) #7
  %276 = call i32 @memcmp(ptr noundef %272, ptr noundef %273, i64 noundef %275) #7
  %277 = icmp eq i32 %276, 0
  br i1 %277, label %278, label %315

278:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %279 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %280 = getelementptr inbounds i8, ptr %279, i64 14
  %281 = load i8, ptr %280, align 1, !tbaa !22
  %282 = sext i8 %281 to i32
  store i32 %282, ptr %29, align 4, !tbaa !11
  %283 = load i32, ptr %29, align 4, !tbaa !11
  %284 = icmp eq i32 %283, 12
  br i1 %284, label %285, label %298

285:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %286 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %287 = getelementptr inbounds i8, ptr %286, i64 18
  store ptr %287, ptr %30, align 8, !tbaa !5
  %288 = load ptr, ptr %30, align 8, !tbaa !5
  %289 = getelementptr inbounds i16, ptr %288, i64 0
  %290 = load i16, ptr %289, align 2, !tbaa !19
  %291 = zext i16 %290 to i32
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %291, ptr %292, align 4, !tbaa !11
  %293 = load ptr, ptr %30, align 8, !tbaa !5
  %294 = getelementptr inbounds i16, ptr %293, i64 1
  %295 = load i16, ptr %294, align 2, !tbaa !19
  %296 = zext i16 %295 to i32
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %296, ptr %297, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %314

298:                                              ; preds = %278
  %299 = load i32, ptr %29, align 4, !tbaa !11
  %300 = icmp uge i32 %299, 40
  br i1 %300, label %301, label %313

301:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %302 = getelementptr inbounds [26 x i8], ptr %14, i64 0, i64 0
  %303 = getelementptr inbounds i8, ptr %302, i64 18
  store ptr %303, ptr %31, align 8, !tbaa !5
  %304 = load ptr, ptr %31, align 8, !tbaa !5
  %305 = getelementptr inbounds i32, ptr %304, i64 0
  %306 = load i32, ptr %305, align 4, !tbaa !11
  %307 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %306, ptr %307, align 4, !tbaa !11
  %308 = load ptr, ptr %31, align 8, !tbaa !5
  %309 = getelementptr inbounds i32, ptr %308, i64 1
  %310 = load i32, ptr %309, align 4, !tbaa !11
  %311 = call i32 @Abs(i32 noundef %310)
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %311, ptr %312, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %313

313:                                              ; preds = %301, %298
  br label %314

314:                                              ; preds = %313, %285
  store i8 1, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %357

315:                                              ; preds = %271, %267
  %316 = load ptr, ptr %9, align 8, !tbaa !5
  %317 = load i32, ptr %316, align 4, !tbaa !11
  %318 = icmp sge i32 %317, 2
  br i1 %318, label %319, label %356

319:                                              ; preds = %315
  %320 = load ptr, ptr %11, align 8, !tbaa !5
  %321 = call i32 @fseek(ptr noundef %320, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 2, ptr %32) #6
  store i16 0, ptr %32, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr %33) #6
  store i16 0, ptr %33, align 2, !tbaa !19
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  %323 = call i64 @fread(ptr noundef %33, i64 noundef 2, i64 noundef 1, ptr noundef %322)
  %324 = load ptr, ptr %11, align 8, !tbaa !5
  %325 = call i64 @fread(ptr noundef %32, i64 noundef 2, i64 noundef 1, ptr noundef %324)
  %326 = load i16, ptr %33, align 2, !tbaa !19
  %327 = zext i16 %326 to i32
  %328 = icmp eq i32 %327, 0
  br i1 %328, label %329, label %355

329:                                              ; preds = %319
  %330 = load i16, ptr %32, align 2, !tbaa !19
  %331 = zext i16 %330 to i32
  %332 = icmp eq i32 %331, 1
  br i1 %332, label %333, label %355

333:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 2, ptr %34) #6
  store i16 0, ptr %34, align 2, !tbaa !19
  %334 = load ptr, ptr %11, align 8, !tbaa !5
  %335 = call i64 @fread(ptr noundef %34, i64 noundef 2, i64 noundef 1, ptr noundef %334)
  %336 = load i16, ptr %34, align 2, !tbaa !19
  %337 = zext i16 %336 to i32
  %338 = icmp sgt i32 %337, 1
  br i1 %338, label %339, label %341

339:                                              ; preds = %333
  %340 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %354

341:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #6
  store i8 0, ptr %35, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  store i8 0, ptr %36, align 1, !tbaa !22
  %342 = load ptr, ptr %11, align 8, !tbaa !5
  %343 = call i64 @fread(ptr noundef %35, i64 noundef 1, i64 noundef 1, ptr noundef %342)
  %344 = load ptr, ptr %11, align 8, !tbaa !5
  %345 = call i64 @fread(ptr noundef %36, i64 noundef 1, i64 noundef 1, ptr noundef %344)
  %346 = load i8, ptr %35, align 1, !tbaa !22
  %347 = zext i8 %346 to i32
  %348 = and i32 %347, 255
  %349 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %348, ptr %349, align 4, !tbaa !11
  %350 = load i8, ptr %36, align 1, !tbaa !22
  %351 = zext i8 %350 to i32
  %352 = and i32 %351, 255
  %353 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %352, ptr %353, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #6
  br label %354

354:                                              ; preds = %341, %339
  call void @llvm.lifetime.end.p0(i64 2, ptr %34) #6
  br label %355

355:                                              ; preds = %354, %329, %319
  store i8 1, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %32) #6
  br label %356

356:                                              ; preds = %355, %315
  br label %357

357:                                              ; preds = %356, %314
  br label %358

358:                                              ; preds = %357, %266
  br label %359

359:                                              ; preds = %358, %147
  br label %360

360:                                              ; preds = %359, %121
  br label %361

361:                                              ; preds = %360, %89
  %362 = load ptr, ptr %11, align 8, !tbaa !5
  %363 = icmp ne ptr %362, null
  br i1 %363, label %364, label %367

364:                                              ; preds = %361
  %365 = load ptr, ptr %11, align 8, !tbaa !5
  %366 = call i32 @fclose(ptr noundef %365)
  br label %367

367:                                              ; preds = %364, %361
  %368 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %369 = trunc i8 %368 to i1
  store i1 %369, ptr %5, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %370

370:                                              ; preds = %367, %66, %52
  call void @llvm.lifetime.end.p0(i64 26, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %13) #6
  br label %371

371:                                              ; preds = %370, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  %372 = load i1, ptr %5, align 1
  ret i1 %372

373:                                              ; preds = %249
  unreachable
}

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

; Function Attrs: nounwind
declare i32 @fstat(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #3

declare i32 @fclose(ptr noundef) #2

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @byteswap_ulong(i64 noundef) #5

declare i32 @printf(ptr noundef, ...) #2

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @byteswap_ushort(i16 noundef zeroext) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Abs(i32 noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !17, i64 48}
!16 = !{!"stat", !17, i64 0, !17, i64 8, !17, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !18, i64 72, !18, i64 88, !18, i64 104, !7, i64 120}
!17 = !{!"long", !7, i64 0}
!18 = !{!"timespec", !17, i64 0, !17, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @CPUImageGetImageSize(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef %3) local_unnamed_addr #1 {
  %5 = alloca %struct.stat, align 8
  %6 = alloca [26 x i8], align 16
  %7 = alloca i8, align 1
  %8 = alloca i16, align 2
  %9 = alloca i16, align 2
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  store i32 -1, ptr %2, align 4, !tbaa !5
  store i32 -1, ptr %1, align 4, !tbaa !5
  store i32 -1, ptr %3, align 4, !tbaa !5
  %14 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
  %15 = icmp eq ptr %14, null
  br i1 %15, label %161, label %16

16:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 26, ptr nonnull %6) #6
  %17 = tail call i32 @fileno(ptr noundef nonnull %14) #6
  %18 = call i32 @fstat(i32 noundef %17, ptr noundef nonnull %5) #6
  %19 = icmp slt i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %16
  %21 = tail call i32 @fclose(ptr noundef nonnull %14)
  br label %160

22:                                               ; preds = %16
  %23 = getelementptr inbounds i8, ptr %5, i64 48
  %24 = load i64, ptr %23, align 8, !tbaa !9
  %25 = trunc i64 %24 to i32
  store i32 %25, ptr %3, align 4, !tbaa !5
  %26 = call i64 @fread(ptr noundef nonnull %6, i64 noundef 26, i64 noundef 1, ptr noundef nonnull %14)
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %28, label %30

28:                                               ; preds = %22
  %29 = tail call i32 @fclose(ptr noundef nonnull %14)
  br label %160

30:                                               ; preds = %22
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = icmp sgt i32 %31, 9
  br i1 %32, label %33, label %77

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

36:                                               ; preds = %33
  %37 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %bcmp96 = call i32 @bcmp(ptr nonnull %6, ptr nonnull @.str.4, i64 %37)
  %38 = icmp eq i32 %bcmp96, 0
  br i1 %38, label %39, label %46

39:                                               ; preds = %36, %33
  %40 = getelementptr inbounds i8, ptr %6, i64 6
  %41 = load i16, ptr %40, align 2, !tbaa !13
  %42 = zext i16 %41 to i32
  store i32 %42, ptr %1, align 4, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %6, i64 8
  %44 = load i16, ptr %43, align 8, !tbaa !13
  %45 = zext i16 %44 to i32
  store i32 %45, ptr %2, align 4, !tbaa !5
  br label %.thread114

46:                                               ; preds = %36
  %47 = icmp ugt i32 %31, 23
  br i1 %47, label %48, label %64

48:                                               ; preds = %46
  %49 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.1) #7
  %bcmp97 = call i32 @bcmp(ptr nonnull %6, ptr nonnull @.str.1, i64 %49)
  %50 = icmp eq i32 %bcmp97, 0
  br i1 %50, label %51, label %.thread104

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %6, i64 12
  %53 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %bcmp98 = call i32 @bcmp(ptr nonnull %52, ptr nonnull @.str.2, i64 %53)
  %54 = icmp eq i32 %bcmp98, 0
  br i1 %54, label %55, label %.thread104

55:                                               ; preds = %51
  %56 = getelementptr inbounds i8, ptr %6, i64 16
  %57 = load i64, ptr %56, align 16, !tbaa !15
  %58 = tail call i64 @byteswap_ulong(i64 noundef %57)
  %59 = trunc i64 %58 to i32
  store i32 %59, ptr %1, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %6, i64 24
  %61 = load i64, ptr %60, align 8, !tbaa !15
  %62 = tail call i64 @byteswap_ulong(i64 noundef %61)
  %63 = trunc i64 %62 to i32
  store i32 %63, ptr %2, align 4, !tbaa !5
  br label %.thread114

64:                                               ; preds = %46
  %65 = icmp ugt i32 %31, 15
  br i1 %65, label %.thread104, label %.thread107

.thread104:                                       ; preds = %48, %51, %64
  %66 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.1) #7
  %bcmp99 = call i32 @bcmp(ptr nonnull %6, ptr nonnull @.str.1, i64 %66)
  %67 = icmp eq i32 %bcmp99, 0
  br i1 %67, label %68, label %.thread107

68:                                               ; preds = %.thread104
  %69 = getelementptr inbounds i8, ptr %6, i64 8
  %70 = load i64, ptr %69, align 8, !tbaa !15
  %71 = tail call i64 @byteswap_ulong(i64 noundef %70)
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %1, align 4, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %6, i64 16
  %74 = load i64, ptr %73, align 16, !tbaa !15
  %75 = tail call i64 @byteswap_ulong(i64 noundef %74)
  %76 = trunc i64 %75 to i32
  store i32 %76, ptr %2, align 4, !tbaa !5
  br label %.thread114

77:                                               ; preds = %30
  %78 = icmp sgt i32 %31, 1
  br i1 %78, label %.thread107, label %.thread114

.thread107:                                       ; preds = %64, %.thread104, %77
  %79 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %bcmp100 = call i32 @bcmp(ptr nonnull %6, ptr nonnull @.str.5, i64 %79)
  %80 = icmp eq i32 %bcmp100, 0
  br i1 %80, label %81, label %112

81:                                               ; preds = %.thread107
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %83 = tail call i32 @fseek(ptr noundef nonnull %14, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  store i8 0, ptr %7, align 1, !tbaa !16
  %84 = call i64 @fread(ptr noundef nonnull %6, i64 noundef 2, i64 noundef 1, ptr noundef nonnull %14)
  %85 = call i64 @fread(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 1, ptr noundef nonnull %14)
  br label %86

86:                                               ; preds = %100, %81
  %87 = load i8, ptr %7, align 1
  switch i8 %87, label %.lr.ph [
    i8 -38, label %.thread109
    i8 0, label %.thread109
    i8 -1, label %.lr.ph117.preheader
  ]

.lr.ph:                                           ; preds = %86, %.lr.ph
  %88 = call i64 @fread(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 1, ptr noundef %14)
  %.pr = load i8, ptr %7, align 1, !tbaa !16
  %.not = icmp eq i8 %.pr, -1
  br i1 %.not, label %.lr.ph117.preheader, label %.lr.ph, !llvm.loop !17

.lr.ph117.preheader:                              ; preds = %.lr.ph, %86
  br label %.lr.ph117

.lr.ph117:                                        ; preds = %.lr.ph117.preheader, %.lr.ph117
  %89 = call i64 @fread(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 1, ptr noundef %14)
  %90 = load i8, ptr %7, align 1, !tbaa !16
  %91 = icmp eq i8 %90, -1
  br i1 %91, label %.lr.ph117, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph117
  %92 = and i8 %90, -4
  %or.cond103 = icmp eq i8 %92, -64
  br i1 %or.cond103, label %102, label %93

93:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #6
  store i16 0, ptr %8, align 2, !tbaa !13
  %94 = call i64 @fread(ptr noundef nonnull %8, i64 noundef 2, i64 noundef 1, ptr noundef %14)
  %95 = load i16, ptr %8, align 2, !tbaa !13
  %96 = tail call zeroext i16 @byteswap_ushort(i16 noundef zeroext %95)
  %97 = zext i16 %96 to i64
  %98 = add nsw i64 %97, -2
  %99 = tail call i32 @fseek(ptr noundef %14, i64 noundef %98, i32 noundef 1)
  %.not102 = icmp eq i32 %99, 0
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  br i1 %.not102, label %100, label %.thread109

100:                                              ; preds = %93
  %101 = call i64 @fread(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 1, ptr noundef %14)
  br label %86, !llvm.loop !20

102:                                              ; preds = %._crit_edge
  %103 = call i64 @fread(ptr noundef nonnull %6, i64 noundef 3, i64 noundef 1, ptr noundef %14)
  %104 = call i64 @fread(ptr noundef nonnull %6, i64 noundef 4, i64 noundef 1, ptr noundef %14)
  %105 = load i16, ptr %6, align 16, !tbaa !13
  %106 = tail call zeroext i16 @byteswap_ushort(i16 noundef zeroext %105)
  %107 = getelementptr inbounds i8, ptr %6, i64 2
  %108 = load i16, ptr %107, align 2, !tbaa !13
  %109 = tail call zeroext i16 @byteswap_ushort(i16 noundef zeroext %108)
  %110 = zext i16 %109 to i32
  %111 = zext i16 %106 to i32
  store i32 %110, ptr %1, align 4, !tbaa !5
  store i32 %111, ptr %2, align 4, !tbaa !5
  br label %.thread109

.thread109:                                       ; preds = %93, %86, %86, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %.thread114

112:                                              ; preds = %.thread107
  %113 = icmp ugt i32 %31, 25
  br i1 %113, label %114, label %136

114:                                              ; preds = %112
  %115 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.6) #7
  %bcmp101 = call i32 @bcmp(ptr nonnull %6, ptr nonnull @.str.6, i64 %115)
  %116 = icmp eq i32 %bcmp101, 0
  br i1 %116, label %117, label %136

117:                                              ; preds = %114
  %118 = getelementptr inbounds i8, ptr %6, i64 14
  %119 = load i8, ptr %118, align 2, !tbaa !16
  %120 = icmp eq i8 %119, 12
  br i1 %120, label %121, label %128

121:                                              ; preds = %117
  %122 = getelementptr inbounds i8, ptr %6, i64 18
  %123 = load i16, ptr %122, align 2, !tbaa !13
  %124 = zext i16 %123 to i32
  store i32 %124, ptr %1, align 4, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %6, i64 20
  %126 = load i16, ptr %125, align 4, !tbaa !13
  %127 = zext i16 %126 to i32
  store i32 %127, ptr %2, align 4, !tbaa !5
  br label %.thread114

128:                                              ; preds = %117
  %129 = icmp ugt i8 %119, 39
  br i1 %129, label %130, label %.thread114

130:                                              ; preds = %128
  %131 = getelementptr inbounds i8, ptr %6, i64 18
  %132 = load i32, ptr %131, align 4, !tbaa !5
  store i32 %132, ptr %1, align 4, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %6, i64 22
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = tail call i32 @Abs(i32 noundef %134)
  store i32 %135, ptr %2, align 4, !tbaa !5
  br label %.thread114

136:                                              ; preds = %112, %114
  %137 = tail call i32 @fseek(ptr noundef nonnull %14, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %9) #6
  store i16 0, ptr %9, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %10) #6
  store i16 0, ptr %10, align 2, !tbaa !13
  %138 = call i64 @fread(ptr noundef nonnull %10, i64 noundef 2, i64 noundef 1, ptr noundef nonnull %14)
  %139 = call i64 @fread(ptr noundef nonnull %9, i64 noundef 2, i64 noundef 1, ptr noundef nonnull %14)
  %140 = load i16, ptr %10, align 2, !tbaa !13
  %141 = icmp eq i16 %140, 0
  %142 = load i16, ptr %9, align 2
  %143 = icmp eq i16 %142, 1
  %or.cond4 = select i1 %141, i1 %143, i1 false
  br i1 %or.cond4, label %144, label %158

144:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #6
  store i16 0, ptr %11, align 2, !tbaa !13
  %145 = call i64 @fread(ptr noundef nonnull %11, i64 noundef 2, i64 noundef 1, ptr noundef nonnull %14)
  %146 = load i16, ptr %11, align 2, !tbaa !13
  %147 = icmp ugt i16 %146, 1
  br i1 %147, label %148, label %150

148:                                              ; preds = %144
  %149 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %157

150:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  store i8 0, ptr %12, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  store i8 0, ptr %13, align 1, !tbaa !16
  %151 = call i64 @fread(ptr noundef nonnull %12, i64 noundef 1, i64 noundef 1, ptr noundef nonnull %14)
  %152 = call i64 @fread(ptr noundef nonnull %13, i64 noundef 1, i64 noundef 1, ptr noundef nonnull %14)
  %153 = load i8, ptr %12, align 1, !tbaa !16
  %154 = zext i8 %153 to i32
  store i32 %154, ptr %1, align 4, !tbaa !5
  %155 = load i8, ptr %13, align 1, !tbaa !16
  %156 = zext i8 %155 to i32
  store i32 %156, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %157

157:                                              ; preds = %150, %148
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #6
  br label %158

158:                                              ; preds = %157, %136
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #6
  br label %.thread114

.thread114:                                       ; preds = %77, %39, %68, %158, %.thread109, %55, %128, %130, %121
  %.089 = phi i1 [ true, %39 ], [ true, %55 ], [ true, %68 ], [ true, %.thread109 ], [ true, %158 ], [ true, %128 ], [ true, %130 ], [ true, %121 ], [ false, %77 ]
  %159 = tail call i32 @fclose(ptr noundef %14)
  br label %160

160:                                              ; preds = %.thread114, %28, %20
  %.0 = phi i1 [ false, %20 ], [ false, %28 ], [ %.089, %.thread114 ]
  call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #6
  br label %161

161:                                              ; preds = %4, %160
  %.1 = phi i1 [ %.0, %160 ], [ false, %4 ]
  ret i1 %.1
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @fstat(i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @byteswap_ulong(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @byteswap_ushort(i16 noundef zeroext) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Abs(i32 noundef) local_unnamed_addr #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 48}
!10 = !{!"stat", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !12, i64 88, !12, i64 104, !7, i64 120}
!11 = !{!"long", !7, i64 0}
!12 = !{!"timespec", !11, i64 0, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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