; LLVM IR from GPUOpen-LibrariesAndSDKs/TAN :: tan/common/wav.ll (Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf)

; 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.RiffWave = type { %struct.RiffHeader, %struct.WaveHeader }
%struct.RiffHeader = type { [4 x i8], i32 }
%struct.WaveHeader = type { [4 x i8], %struct.WaveFormat, %struct.DataHeader }
%struct.WaveFormat = type { [4 x i8], i32, %struct.WaveInfo }
%struct.WaveInfo = type { i16, i16, i32, i32, i16, i16 }
%struct.DataHeader = type { [4 x i8], i32 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

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

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

44:                                               ; preds = %7
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %45)
  store i1 false, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %463

47:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 44, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 1 %18, i8 0, i64 44, i1 false)
  %48 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 0
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  %50 = call i64 @fread(ptr noundef %48, i64 noundef 8, i64 noundef 1, ptr noundef %49)
  %51 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 0
  %52 = getelementptr inbounds %struct.RiffHeader, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds [4 x i8], ptr %52, i64 0, i64 0
  %54 = call i32 @memcmp(ptr noundef %53, ptr noundef @.str.2, i64 noundef 4) #8
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %47
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %57)
  store i1 false, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %462

59:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 0, ptr %20, align 8, !tbaa !13
  br label %60

60:                                               ; preds = %79, %59
  %61 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %62 = getelementptr inbounds %struct.WaveHeader, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds [4 x i8], ptr %62, i64 0, i64 0
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = call i64 @fread(ptr noundef %63, i64 noundef 4, i64 noundef 1, ptr noundef %64)
  store i64 %65, ptr %20, align 8, !tbaa !13
  %66 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %67 = getelementptr inbounds %struct.WaveHeader, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds [4 x i8], ptr %67, i64 0, i64 0
  %69 = call i32 @memcmp(ptr noundef %68, ptr noundef @.str.4, i64 noundef 4) #8
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %60
  br label %82

72:                                               ; preds = %60
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = call i64 @fread(ptr noundef %19, i64 noundef 4, i64 noundef 1, ptr noundef %73)
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = load i32, ptr %19, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = call i32 @fseek(ptr noundef %75, i64 noundef %77, i32 noundef 1)
  br label %79

79:                                               ; preds = %72
  %80 = load i64, ptr %20, align 8, !tbaa !13
  %81 = icmp ugt i64 %80, 0
  br i1 %81, label %60, label %82, !llvm.loop !15

82:                                               ; preds = %79, %71
  br label %83

83:                                               ; preds = %104, %82
  %84 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %85 = getelementptr inbounds %struct.WaveHeader, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds %struct.WaveFormat, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds [4 x i8], ptr %86, i64 0, i64 0
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = call i64 @fread(ptr noundef %87, i64 noundef 4, i64 noundef 1, ptr noundef %88)
  store i64 %89, ptr %20, align 8, !tbaa !13
  %90 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %91 = getelementptr inbounds %struct.WaveHeader, ptr %90, i32 0, i32 1
  %92 = getelementptr inbounds %struct.WaveFormat, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds [4 x i8], ptr %92, i64 0, i64 0
  %94 = call i32 @memcmp(ptr noundef %93, ptr noundef @.str.5, i64 noundef 4) #8
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %83
  br label %107

97:                                               ; preds = %83
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = call i64 @fread(ptr noundef %19, i64 noundef 4, i64 noundef 1, ptr noundef %98)
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  %101 = load i32, ptr %19, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = call i32 @fseek(ptr noundef %100, i64 noundef %102, i32 noundef 1)
  br label %104

104:                                              ; preds = %97
  %105 = load i64, ptr %20, align 8, !tbaa !13
  %106 = icmp ugt i64 %105, 0
  br i1 %106, label %83, label %107, !llvm.loop !17

107:                                              ; preds = %104, %96
  %108 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %109 = getelementptr inbounds %struct.WaveHeader, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds %struct.WaveFormat, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = call i64 @fread(ptr noundef %110, i64 noundef 4, i64 noundef 1, ptr noundef %111)
  %113 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %114 = getelementptr inbounds %struct.WaveHeader, ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds %struct.WaveFormat, ptr %114, i32 0, i32 2
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = call i64 @fread(ptr noundef %115, i64 noundef 16, i64 noundef 1, ptr noundef %116)
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %120 = getelementptr inbounds %struct.WaveHeader, ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds %struct.WaveFormat, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 1, !tbaa !18
  %123 = sub i32 %122, 16
  %124 = zext i32 %123 to i64
  %125 = call i32 @fseek(ptr noundef %118, i64 noundef %124, i32 noundef 1)
  %126 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %127 = getelementptr inbounds %struct.WaveHeader, ptr %126, i32 0, i32 2
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = call i64 @fread(ptr noundef %127, i64 noundef 8, i64 noundef 1, ptr noundef %128)
  br label %130

130:                                              ; preds = %137, %107
  %131 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %132 = getelementptr inbounds %struct.WaveHeader, ptr %131, i32 0, i32 2
  %133 = getelementptr inbounds %struct.DataHeader, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds [4 x i8], ptr %133, i64 0, i64 0
  %135 = call i32 @memcmp(ptr noundef %134, ptr noundef @.str.6, i64 noundef 4) #8
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %149

137:                                              ; preds = %130
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %140 = getelementptr inbounds %struct.WaveHeader, ptr %139, i32 0, i32 2
  %141 = getelementptr inbounds %struct.DataHeader, ptr %140, i32 0, i32 1
  %142 = load i32, ptr %141, align 1, !tbaa !25
  %143 = zext i32 %142 to i64
  %144 = call i32 @fseek(ptr noundef %138, i64 noundef %143, i32 noundef 1)
  %145 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %146 = getelementptr inbounds %struct.WaveHeader, ptr %145, i32 0, i32 2
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = call i64 @fread(ptr noundef %146, i64 noundef 8, i64 noundef 1, ptr noundef %147)
  br label %130, !llvm.loop !26

149:                                              ; preds = %130
  %150 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %151 = getelementptr inbounds %struct.WaveHeader, ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds %struct.WaveFormat, ptr %151, i32 0, i32 2
  %153 = getelementptr inbounds %struct.WaveInfo, ptr %152, i32 0, i32 2
  %154 = load i32, ptr %153, align 1, !tbaa !27
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %154, ptr %155, align 4, !tbaa !9
  %156 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %157 = getelementptr inbounds %struct.WaveHeader, ptr %156, i32 0, i32 1
  %158 = getelementptr inbounds %struct.WaveFormat, ptr %157, i32 0, i32 2
  %159 = getelementptr inbounds %struct.WaveInfo, ptr %158, i32 0, i32 5
  %160 = load i16, ptr %159, align 1, !tbaa !28
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  store i16 %160, ptr %161, align 2, !tbaa !11
  %162 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %163 = getelementptr inbounds %struct.WaveHeader, ptr %162, i32 0, i32 1
  %164 = getelementptr inbounds %struct.WaveFormat, ptr %163, i32 0, i32 2
  %165 = getelementptr inbounds %struct.WaveInfo, ptr %164, i32 0, i32 1
  %166 = load i16, ptr %165, align 1, !tbaa !29
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  store i16 %166, ptr %167, align 2, !tbaa !11
  %168 = getelementptr inbounds %struct.RiffWave, ptr %18, i32 0, i32 1
  %169 = getelementptr inbounds %struct.WaveHeader, ptr %168, i32 0, i32 2
  %170 = getelementptr inbounds %struct.DataHeader, ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 1, !tbaa !25
  %172 = mul i32 %171, 8
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = load i16, ptr %173, align 2, !tbaa !11
  %175 = zext i16 %174 to i32
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load i16, ptr %176, align 2, !tbaa !11
  %178 = zext i16 %177 to i32
  %179 = mul nsw i32 %175, %178
  %180 = udiv i32 %172, %179
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %180, ptr %181, align 4, !tbaa !9
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load i16, ptr %185, align 2, !tbaa !11
  %187 = zext i16 %186 to i32
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %182, i32 noundef %184, i32 noundef %187)
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %190)
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = load i16, ptr %192, align 2, !tbaa !11
  %194 = zext i16 %193 to i32
  %195 = icmp eq i32 %194, 2
  %196 = zext i1 %195 to i64
  %197 = select i1 %195, ptr @.str.9, ptr @.str.10
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  %199 = load i16, ptr %198, align 2, !tbaa !11
  %200 = zext i16 %199 to i32
  %201 = call i32 (ptr, ...) @printf(ptr noundef %197, i32 noundef %200)
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = load i32, ptr %202, align 4, !tbaa !9
  %204 = uitofp i32 %203 to float
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = load i32, ptr %205, align 4, !tbaa !9
  %207 = uitofp i32 %206 to float
  %208 = fdiv float %204, %207
  %209 = fpext float %208 to double
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %209)
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = load i16, ptr %211, align 2, !tbaa !11
  %213 = zext i16 %212 to i64
  %214 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %213, i64 8)
  %215 = extractvalue { i64, i1 } %214, 1
  %216 = extractvalue { i64, i1 } %214, 0
  %217 = select i1 %215, i64 -1, i64 %216
  %218 = call noalias noundef nonnull ptr @_Znam(i64 noundef %217) #9
  %219 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %218, ptr %219, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %269, %149
  %221 = load i32, ptr %21, align 4, !tbaa !9
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = load i16, ptr %222, align 2, !tbaa !11
  %224 = zext i16 %223 to i32
  %225 = icmp slt i32 %221, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %220
  store i32 8, ptr %17, align 4
  br label %272

227:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = add i32 %229, 1
  %231 = zext i32 %230 to i64
  %232 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %231, i64 4)
  %233 = extractvalue { i64, i1 } %232, 1
  %234 = extractvalue { i64, i1 } %232, 0
  %235 = select i1 %233, i64 -1, i64 %234
  %236 = call noalias noundef nonnull ptr @_Znam(i64 noundef %235) #9
  store ptr %236, ptr %22, align 8, !tbaa !5
  %237 = load ptr, ptr %15, align 8, !tbaa !5
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load i32, ptr %21, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds ptr, ptr %238, i64 %240
  store ptr %236, ptr %241, align 8, !tbaa !5
  %242 = load ptr, ptr %22, align 8, !tbaa !5
  %243 = icmp eq ptr %242, null
  br i1 %243, label %244, label %249

244:                                              ; preds = %227
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = add i32 %246, 1
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %247)
  store i1 false, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %266

249:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %262, %249
  %251 = load i32, ptr %23, align 4, !tbaa !9
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = add i32 %253, 1
  %255 = icmp ult i32 %251, %254
  br i1 %255, label %257, label %256

256:                                              ; preds = %250
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %265

257:                                              ; preds = %250
  %258 = load ptr, ptr %22, align 8, !tbaa !5
  %259 = load i32, ptr %23, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds float, ptr %258, i64 %260
  store float 0.000000e+00, ptr %261, align 4, !tbaa !30
  br label %262

262:                                              ; preds = %257
  %263 = load i32, ptr %23, align 4, !tbaa !9
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %23, align 4, !tbaa !9
  br label %250, !llvm.loop !32

265:                                              ; preds = %256
  store i32 0, ptr %17, align 4
  br label %266

266:                                              ; preds = %265, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %267 = load i32, ptr %17, align 4
  switch i32 %267, label %272 [
    i32 0, label %268
  ]

268:                                              ; preds = %266
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %21, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %21, align 4, !tbaa !9
  br label %220, !llvm.loop !33

272:                                              ; preds = %266, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  %273 = load i32, ptr %17, align 4
  switch i32 %273, label %461 [
    i32 8, label %274
  ]

274:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = load i16, ptr %275, align 2, !tbaa !11
  %277 = zext i16 %276 to i32
  %278 = sdiv i32 %277, 8
  store i32 %278, ptr %24, align 4, !tbaa !9
  %279 = load i32, ptr %24, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %283, label %281

281:                                              ; preds = %274
  %282 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i1 false, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %460

283:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %284 = load ptr, ptr %12, align 8, !tbaa !5
  %285 = load i16, ptr %284, align 2, !tbaa !11
  %286 = zext i16 %285 to i32
  %287 = load ptr, ptr %13, align 8, !tbaa !5
  %288 = load i32, ptr %287, align 4, !tbaa !9
  %289 = mul i32 %286, %288
  %290 = load i32, ptr %24, align 4, !tbaa !9
  %291 = mul i32 %289, %290
  store i32 %291, ptr %25, align 4, !tbaa !9
  %292 = load i32, ptr %25, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = call noalias noundef nonnull ptr @_Znam(i64 noundef %293) #9
  %295 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %294, ptr %295, align 8, !tbaa !5
  %296 = load ptr, ptr %14, align 8, !tbaa !5
  %297 = load ptr, ptr %296, align 8, !tbaa !5
  %298 = icmp ne ptr %297, null
  br i1 %298, label %302, label %299

299:                                              ; preds = %283
  %300 = load i32, ptr %25, align 4, !tbaa !9
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %300)
  store i1 false, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %459

302:                                              ; preds = %283
  %303 = load ptr, ptr %14, align 8, !tbaa !5
  %304 = load ptr, ptr %303, align 8, !tbaa !5
  %305 = load i32, ptr %25, align 4, !tbaa !9
  %306 = zext i32 %305 to i64
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = call i64 @fread(ptr noundef %304, i64 noundef %306, i64 noundef 1, ptr noundef %307)
  %309 = load ptr, ptr %11, align 8, !tbaa !5
  %310 = load i16, ptr %309, align 2, !tbaa !11
  %311 = zext i16 %310 to i32
  switch i32 %311, label %456 [
    i32 8, label %312
    i32 16, label %362
    i32 32, label %410
  ]

312:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %313

313:                                              ; preds = %358, %312
  %314 = load i32, ptr %26, align 4, !tbaa !9
  %315 = load ptr, ptr %13, align 8, !tbaa !5
  %316 = load i32, ptr %315, align 4, !tbaa !9
  %317 = icmp ult i32 %314, %316
  br i1 %317, label %319, label %318

318:                                              ; preds = %313
  store i32 15, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %361

319:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %320 = load i32, ptr %26, align 4, !tbaa !9
  %321 = load ptr, ptr %12, align 8, !tbaa !5
  %322 = load i16, ptr %321, align 2, !tbaa !11
  %323 = zext i16 %322 to i32
  %324 = mul nsw i32 %320, %323
  store i32 %324, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %325

325:                                              ; preds = %354, %319
  %326 = load i32, ptr %28, align 4, !tbaa !9
  %327 = load ptr, ptr %12, align 8, !tbaa !5
  %328 = load i16, ptr %327, align 2, !tbaa !11
  %329 = zext i16 %328 to i32
  %330 = icmp slt i32 %326, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %325
  store i32 18, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %357

332:                                              ; preds = %325
  %333 = load ptr, ptr %14, align 8, !tbaa !5
  %334 = load ptr, ptr %333, align 8, !tbaa !5
  %335 = load i32, ptr %27, align 4, !tbaa !9
  %336 = load i32, ptr %28, align 4, !tbaa !9
  %337 = add nsw i32 %335, %336
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds i8, ptr %334, i64 %338
  %340 = load i8, ptr %339, align 1, !tbaa !34
  %341 = zext i8 %340 to i32
  %342 = sub nsw i32 %341, 127
  %343 = sitofp i32 %342 to float
  %344 = fdiv float %343, 2.560000e+02
  %345 = load ptr, ptr %15, align 8, !tbaa !5
  %346 = load ptr, ptr %345, align 8, !tbaa !5
  %347 = load i32, ptr %28, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds ptr, ptr %346, i64 %348
  %350 = load ptr, ptr %349, align 8, !tbaa !5
  %351 = load i32, ptr %26, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds float, ptr %350, i64 %352
  store float %344, ptr %353, align 4, !tbaa !30
  br label %354

354:                                              ; preds = %332
  %355 = load i32, ptr %28, align 4, !tbaa !9
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %28, align 4, !tbaa !9
  br label %325, !llvm.loop !35

357:                                              ; preds = %331
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %358

358:                                              ; preds = %357
  %359 = load i32, ptr %26, align 4, !tbaa !9
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %26, align 4, !tbaa !9
  br label %313, !llvm.loop !36

361:                                              ; preds = %318
  br label %456

362:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %363

363:                                              ; preds = %406, %362
  %364 = load i32, ptr %29, align 4, !tbaa !9
  %365 = load ptr, ptr %13, align 8, !tbaa !5
  %366 = load i32, ptr %365, align 4, !tbaa !9
  %367 = icmp ult i32 %364, %366
  br i1 %367, label %369, label %368

368:                                              ; preds = %363
  store i32 21, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %409

369:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %370 = load i32, ptr %29, align 4, !tbaa !9
  %371 = load ptr, ptr %12, align 8, !tbaa !5
  %372 = load i16, ptr %371, align 2, !tbaa !11
  %373 = zext i16 %372 to i32
  %374 = mul nsw i32 %370, %373
  store i32 %374, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %375

375:                                              ; preds = %402, %369
  %376 = load i32, ptr %31, align 4, !tbaa !9
  %377 = load ptr, ptr %12, align 8, !tbaa !5
  %378 = load i16, ptr %377, align 2, !tbaa !11
  %379 = zext i16 %378 to i32
  %380 = icmp slt i32 %376, %379
  br i1 %380, label %382, label %381

381:                                              ; preds = %375
  store i32 24, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %405

382:                                              ; preds = %375
  %383 = load ptr, ptr %14, align 8, !tbaa !5
  %384 = load ptr, ptr %383, align 8, !tbaa !5
  %385 = load i32, ptr %30, align 4, !tbaa !9
  %386 = load i32, ptr %31, align 4, !tbaa !9
  %387 = add nsw i32 %385, %386
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds i16, ptr %384, i64 %388
  %390 = load i16, ptr %389, align 2, !tbaa !11
  %391 = sitofp i16 %390 to float
  %392 = fdiv float %391, 3.276800e+04
  %393 = load ptr, ptr %15, align 8, !tbaa !5
  %394 = load ptr, ptr %393, align 8, !tbaa !5
  %395 = load i32, ptr %31, align 4, !tbaa !9
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds ptr, ptr %394, i64 %396
  %398 = load ptr, ptr %397, align 8, !tbaa !5
  %399 = load i32, ptr %29, align 4, !tbaa !9
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds float, ptr %398, i64 %400
  store float %392, ptr %401, align 4, !tbaa !30
  br label %402

402:                                              ; preds = %382
  %403 = load i32, ptr %31, align 4, !tbaa !9
  %404 = add nsw i32 %403, 1
  store i32 %404, ptr %31, align 4, !tbaa !9
  br label %375, !llvm.loop !37

405:                                              ; preds = %381
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %406

406:                                              ; preds = %405
  %407 = load i32, ptr %29, align 4, !tbaa !9
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %29, align 4, !tbaa !9
  br label %363, !llvm.loop !38

409:                                              ; preds = %368
  br label %456

410:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %411

411:                                              ; preds = %452, %410
  %412 = load i32, ptr %32, align 4, !tbaa !9
  %413 = load ptr, ptr %13, align 8, !tbaa !5
  %414 = load i32, ptr %413, align 4, !tbaa !9
  %415 = icmp ult i32 %412, %414
  br i1 %415, label %417, label %416

416:                                              ; preds = %411
  store i32 27, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %455

417:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %418 = load i32, ptr %32, align 4, !tbaa !9
  %419 = load ptr, ptr %12, align 8, !tbaa !5
  %420 = load i16, ptr %419, align 2, !tbaa !11
  %421 = zext i16 %420 to i32
  %422 = mul nsw i32 %418, %421
  store i32 %422, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %423

423:                                              ; preds = %448, %417
  %424 = load i32, ptr %34, align 4, !tbaa !9
  %425 = load ptr, ptr %12, align 8, !tbaa !5
  %426 = load i16, ptr %425, align 2, !tbaa !11
  %427 = zext i16 %426 to i32
  %428 = icmp slt i32 %424, %427
  br i1 %428, label %430, label %429

429:                                              ; preds = %423
  store i32 30, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %451

430:                                              ; preds = %423
  %431 = load ptr, ptr %14, align 8, !tbaa !5
  %432 = load ptr, ptr %431, align 8, !tbaa !5
  %433 = load i32, ptr %33, align 4, !tbaa !9
  %434 = load i32, ptr %34, align 4, !tbaa !9
  %435 = add nsw i32 %433, %434
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds float, ptr %432, i64 %436
  %438 = load float, ptr %437, align 4, !tbaa !30
  %439 = load ptr, ptr %15, align 8, !tbaa !5
  %440 = load ptr, ptr %439, align 8, !tbaa !5
  %441 = load i32, ptr %34, align 4, !tbaa !9
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds ptr, ptr %440, i64 %442
  %444 = load ptr, ptr %443, align 8, !tbaa !5
  %445 = load i32, ptr %32, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds float, ptr %444, i64 %446
  store float %438, ptr %447, align 4, !tbaa !30
  br label %448

448:                                              ; preds = %430
  %449 = load i32, ptr %34, align 4, !tbaa !9
  %450 = add nsw i32 %449, 1
  store i32 %450, ptr %34, align 4, !tbaa !9
  br label %423, !llvm.loop !39

451:                                              ; preds = %429
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %452

452:                                              ; preds = %451
  %453 = load i32, ptr %32, align 4, !tbaa !9
  %454 = add nsw i32 %453, 1
  store i32 %454, ptr %32, align 4, !tbaa !9
  br label %411, !llvm.loop !40

455:                                              ; preds = %416
  br label %456

456:                                              ; preds = %455, %409, %361, %302
  %457 = load ptr, ptr %16, align 8, !tbaa !5
  %458 = call i32 @fclose(ptr noundef %457)
  store i1 true, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %459

459:                                              ; preds = %456, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %460

460:                                              ; preds = %459, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %461

461:                                              ; preds = %460, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %462

462:                                              ; preds = %461, %56
  call void @llvm.lifetime.end.p0(i64 44, ptr %18) #7
  br label %463

463:                                              ; preds = %462, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %464 = load i1, ptr %8, align 1
  ret i1 %464
}

declare noundef signext i8 @_Z7fopen_sPP8_IO_FILEPKcS3_(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

declare i32 @fclose(ptr noundef) #3

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

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !10, i64 16}
!19 = !{!"_ZTS8RiffWave", !20, i64 0, !21, i64 8}
!20 = !{!"_ZTS10RiffHeader", !7, i64 0, !10, i64 4}
!21 = !{!"_ZTS10WaveHeader", !7, i64 0, !22, i64 4, !24, i64 28}
!22 = !{!"_ZTS10WaveFormat", !7, i64 0, !10, i64 4, !23, i64 8}
!23 = !{!"_ZTS8WaveInfo", !12, i64 0, !12, i64 2, !10, i64 4, !10, i64 8, !12, i64 12, !12, i64 14}
!24 = !{!"_ZTS10DataHeader", !7, i64 0, !10, i64 4}
!25 = !{!19, !10, i64 40}
!26 = distinct !{!26, !16}
!27 = !{!19, !10, i64 24}
!28 = !{!19, !12, i64 34}
!29 = !{!19, !12, i64 22}
!30 = !{!31, !31, i64 0}
!31 = !{!"float", !7, i64 0}
!32 = distinct !{!32, !16}
!33 = distinct !{!33, !16}
!34 = !{!7, !7, i64 0}
!35 = distinct !{!35, !16}
!36 = distinct !{!36, !16}
!37 = distinct !{!37, !16}
!38 = distinct !{!38, !16}
!39 = distinct !{!39, !16}
!40 = distinct !{!40, !16}


; 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.RiffWave = type { %struct.RiffHeader, %struct.WaveHeader }
%struct.RiffHeader = type { [4 x i8], i32 }
%struct.WaveHeader = type { [4 x i8], %struct.WaveFormat, %struct.DataHeader }
%struct.WaveFormat = type { [4 x i8], i32, %struct.WaveInfo }
%struct.WaveInfo = type { i16, i16, i32, i32, i16, i16 }
%struct.DataHeader = type { [4 x i8], i32 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf(ptr noundef %0, ptr nocapture noundef nonnull align 4 dereferenceable(4) %1, ptr nocapture noundef nonnull align 2 dereferenceable(2) %2, ptr nocapture noundef nonnull align 2 dereferenceable(2) %3, ptr nocapture noundef nonnull align 4 dereferenceable(4) %4, ptr nocapture noundef %5, ptr nocapture noundef %6) local_unnamed_addr #2 {
  %8 = alloca ptr, align 8
  %9 = alloca %struct.RiffWave, align 1
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4, !tbaa !5
  store i16 0, ptr %2, align 2, !tbaa !9
  store i16 0, ptr %3, align 2, !tbaa !9
  store i32 0, ptr %4, align 4, !tbaa !5
  store ptr null, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store ptr null, ptr %8, align 8, !tbaa !11
  %11 = call noundef signext i8 @_Z7fopen_sPP8_IO_FILEPKcS3_(ptr noundef nonnull %8, ptr noundef %0, ptr noundef nonnull @.str)
  %.not = icmp eq i8 %11, 0
  br i1 %.not, label %14, label %12

12:                                               ; preds = %7
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %0)
  br label %213

14:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(44) %9, i8 0, i64 44, i1 false)
  %15 = load ptr, ptr %8, align 8, !tbaa !11
  %16 = call i64 @fread(ptr noundef nonnull %9, i64 noundef 8, i64 noundef 1, ptr noundef %15)
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %9, ptr noundef nonnull dereferenceable(4) @.str.2, i64 4)
  %.not107 = icmp eq i32 %bcmp, 0
  br i1 %.not107, label %19, label %17

17:                                               ; preds = %14
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %0)
  br label %212

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %9, i64 8
  br label %21

21:                                               ; preds = %25, %19
  %22 = load ptr, ptr %8, align 8, !tbaa !11
  %23 = call i64 @fread(ptr noundef nonnull %20, i64 noundef 4, i64 noundef 1, ptr noundef %22)
  %bcmp108 = call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %20, ptr noundef nonnull dereferenceable(4) @.str.4, i64 4)
  %24 = icmp eq i32 %bcmp108, 0
  br i1 %24, label %32, label %25

25:                                               ; preds = %21
  %26 = load ptr, ptr %8, align 8, !tbaa !11
  %27 = call i64 @fread(ptr noundef nonnull %10, i64 noundef 4, i64 noundef 1, ptr noundef %26)
  %28 = load ptr, ptr %8, align 8, !tbaa !11
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = call i32 @fseek(ptr noundef %28, i64 noundef %30, i32 noundef 1)
  %.not109 = icmp eq i64 %23, 0
  br i1 %.not109, label %32, label %21, !llvm.loop !13

32:                                               ; preds = %21, %25
  %33 = getelementptr inbounds i8, ptr %9, i64 12
  br label %34

34:                                               ; preds = %38, %32
  %35 = load ptr, ptr %8, align 8, !tbaa !11
  %36 = call i64 @fread(ptr noundef nonnull %33, i64 noundef 4, i64 noundef 1, ptr noundef %35)
  %bcmp110 = call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %33, ptr noundef nonnull dereferenceable(4) @.str.5, i64 4)
  %37 = icmp eq i32 %bcmp110, 0
  br i1 %37, label %45, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr %8, align 8, !tbaa !11
  %40 = call i64 @fread(ptr noundef nonnull %10, i64 noundef 4, i64 noundef 1, ptr noundef %39)
  %41 = load ptr, ptr %8, align 8, !tbaa !11
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = zext i32 %42 to i64
  %44 = call i32 @fseek(ptr noundef %41, i64 noundef %43, i32 noundef 1)
  %.not111 = icmp eq i64 %36, 0
  br i1 %.not111, label %45, label %34, !llvm.loop !15

45:                                               ; preds = %34, %38
  %46 = getelementptr inbounds i8, ptr %9, i64 16
  %47 = load ptr, ptr %8, align 8, !tbaa !11
  %48 = call i64 @fread(ptr noundef nonnull %46, i64 noundef 4, i64 noundef 1, ptr noundef %47)
  %49 = getelementptr inbounds i8, ptr %9, i64 20
  %50 = load ptr, ptr %8, align 8, !tbaa !11
  %51 = call i64 @fread(ptr noundef nonnull %49, i64 noundef 16, i64 noundef 1, ptr noundef %50)
  %52 = load ptr, ptr %8, align 8, !tbaa !11
  %53 = load i32, ptr %46, align 1, !tbaa !16
  %54 = add i32 %53, -16
  %55 = zext i32 %54 to i64
  %56 = call i32 @fseek(ptr noundef %52, i64 noundef %55, i32 noundef 1)
  %57 = getelementptr inbounds i8, ptr %9, i64 36
  %58 = load ptr, ptr %8, align 8, !tbaa !11
  %59 = call i64 @fread(ptr noundef nonnull %57, i64 noundef 8, i64 noundef 1, ptr noundef %58)
  %bcmp112119 = call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %57, ptr noundef nonnull dereferenceable(4) @.str.6, i64 4)
  %.not113120 = icmp eq i32 %bcmp112119, 0
  br i1 %.not113120, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %45
  %60 = getelementptr inbounds i8, ptr %9, i64 40
  br label %61

61:                                               ; preds = %.lr.ph, %61
  %62 = load ptr, ptr %8, align 8, !tbaa !11
  %63 = load i32, ptr %60, align 1, !tbaa !23
  %64 = zext i32 %63 to i64
  %65 = call i32 @fseek(ptr noundef %62, i64 noundef %64, i32 noundef 1)
  %66 = load ptr, ptr %8, align 8, !tbaa !11
  %67 = call i64 @fread(ptr noundef nonnull %57, i64 noundef 8, i64 noundef 1, ptr noundef %66)
  %bcmp112 = call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %57, ptr noundef nonnull dereferenceable(4) @.str.6, i64 4)
  %.not113 = icmp eq i32 %bcmp112, 0
  br i1 %.not113, label %._crit_edge, label %61, !llvm.loop !24

._crit_edge:                                      ; preds = %61, %45
  %68 = getelementptr inbounds i8, ptr %9, i64 24
  %69 = load i32, ptr %68, align 1, !tbaa !25
  store i32 %69, ptr %1, align 4, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %9, i64 34
  %71 = load i16, ptr %70, align 1, !tbaa !26
  store i16 %71, ptr %2, align 2, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %9, i64 22
  %73 = load i16, ptr %72, align 1, !tbaa !27
  store i16 %73, ptr %3, align 2, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %9, i64 40
  %75 = load i32, ptr %74, align 1, !tbaa !23
  %76 = shl i32 %75, 3
  %77 = load i16, ptr %2, align 2, !tbaa !9
  %78 = zext i16 %77 to i32
  %79 = zext i16 %73 to i32
  %80 = mul nuw nsw i32 %78, %79
  %81 = udiv i32 %76, %80
  store i32 %81, ptr %4, align 4, !tbaa !5
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %0, i32 noundef %81, i32 noundef %78)
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %83)
  %85 = load i16, ptr %3, align 2, !tbaa !9
  %86 = zext i16 %85 to i32
  %87 = icmp eq i16 %85, 2
  %88 = select i1 %87, ptr @.str.9, ptr @.str.10
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %88, i32 noundef %86)
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = uitofp i32 %90 to float
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = uitofp i32 %92 to float
  %94 = fdiv float %91, %93
  %95 = fpext float %94 to double
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %95)
  %97 = load i16, ptr %3, align 2, !tbaa !9
  %98 = zext i16 %97 to i64
  %99 = shl nuw nsw i64 %98, 3
  %100 = call noalias noundef nonnull ptr @_Znam(i64 noundef %99) #8
  store ptr %100, ptr %6, align 8, !tbaa !11
  %101 = zext i16 %97 to i32
  %.not147 = icmp eq i16 %97, 0
  br i1 %.not147, label %._crit_edge128, label %.lr.ph127

.lr.ph127:                                        ; preds = %._crit_edge
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %.fr = freeze i32 %102
  %103 = add i32 %.fr, 1
  %104 = zext i32 %103 to i64
  %105 = shl nuw nsw i64 %104, 2
  %.not149 = icmp eq i32 %103, 0
  %wide.trip.count167 = zext i16 %97 to i64
  br i1 %.not149, label %.lr.ph127.split, label %.lr.ph123.us

.lr.ph123.us:                                     ; preds = %.lr.ph127, %.lr.ph123.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph123.us ], [ 0, %.lr.ph127 ]
  %106 = call noalias noundef nonnull ptr @_Znam(i64 noundef %105) #8
  %107 = load ptr, ptr %6, align 8, !tbaa !11
  %108 = getelementptr inbounds ptr, ptr %107, i64 %indvars.iv
  store ptr %106, ptr %108, align 8, !tbaa !11
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %106, i8 0, i64 %105, i1 false), !tbaa !28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count167
  br i1 %exitcond.not, label %._crit_edge128, label %.lr.ph123.us, !llvm.loop !30

.lr.ph127.split:                                  ; preds = %.lr.ph127, %.lr.ph127.split
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %.lr.ph127.split ], [ 0, %.lr.ph127 ]
  %109 = call noalias noundef nonnull ptr @_Znam(i64 noundef %105) #8
  %110 = load ptr, ptr %6, align 8, !tbaa !11
  %111 = getelementptr inbounds ptr, ptr %110, i64 %indvars.iv164
  store ptr %109, ptr %111, align 8, !tbaa !11
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %wide.trip.count167
  br i1 %exitcond168.not, label %._crit_edge128, label %.lr.ph127.split, !llvm.loop !30

._crit_edge128:                                   ; preds = %.lr.ph123.us, %.lr.ph127.split, %._crit_edge
  %112 = load i16, ptr %2, align 2, !tbaa !9
  %.not114 = icmp ugt i16 %112, 7
  br i1 %.not114, label %115, label %113

113:                                              ; preds = %._crit_edge128
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br label %211

115:                                              ; preds = %._crit_edge128
  %116 = lshr i16 %112, 3
  %117 = zext nneg i16 %116 to i32
  %118 = load i32, ptr %4, align 4, !tbaa !5
  %119 = mul nuw nsw i32 %117, %101
  %120 = mul i32 %119, %118
  %121 = zext i32 %120 to i64
  %122 = call noalias noundef nonnull ptr @_Znam(i64 noundef %121) #8
  store ptr %122, ptr %5, align 8, !tbaa !11
  %123 = load ptr, ptr %8, align 8, !tbaa !11
  %124 = call i64 @fread(ptr noundef nonnull %122, i64 noundef %121, i64 noundef 1, ptr noundef %123)
  %125 = load i16, ptr %2, align 2, !tbaa !9
  switch i16 %125, label %.loopexit [
    i16 8, label %.preheader
    i16 16, label %.preheader115
    i16 32, label %.preheader117
  ]

.preheader117:                                    ; preds = %115
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %.not150 = icmp eq i32 %126, 0
  br i1 %.not150, label %.loopexit, label %.lr.ph134

.lr.ph134:                                        ; preds = %.preheader117
  %127 = load i16, ptr %3, align 2, !tbaa !9
  %.not151 = icmp eq i16 %127, 0
  br i1 %.not151, label %.loopexit, label %.lr.ph134.split.us

.lr.ph134.split.us:                               ; preds = %.lr.ph134
  %128 = load ptr, ptr %5, align 8, !tbaa !11
  %129 = load ptr, ptr %6, align 8, !tbaa !11
  %130 = zext i16 %127 to i64
  %wide.trip.count177 = zext i32 %126 to i64
  %xtraiter = and i64 %130, 3
  %131 = icmp ult i16 %127, 4
  %unroll_iter = and i64 %130, 65532
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph131.us

.lr.ph131.us:                                     ; preds = %._crit_edge132.us, %.lr.ph134.split.us
  %indvars.iv174 = phi i64 [ %indvars.iv.next175, %._crit_edge132.us ], [ 0, %.lr.ph134.split.us ]
  %132 = mul nuw nsw i64 %indvars.iv174, %130
  %invariant.gep = getelementptr inbounds float, ptr %128, i64 %132
  br i1 %131, label %._crit_edge132.us.unr-lcssa, label %.lr.ph131.us.new

.lr.ph131.us.new:                                 ; preds = %.lr.ph131.us, %.lr.ph131.us.new
  %indvars.iv169 = phi i64 [ %indvars.iv.next170.3, %.lr.ph131.us.new ], [ 0, %.lr.ph131.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph131.us.new ], [ 0, %.lr.ph131.us ]
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv169
  %133 = load float, ptr %gep, align 4, !tbaa !28
  %134 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv169
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = getelementptr inbounds float, ptr %135, i64 %indvars.iv174
  store float %133, ptr %136, align 4, !tbaa !28
  %indvars.iv.next170 = or disjoint i64 %indvars.iv169, 1
  %gep.1 = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv.next170
  %137 = load float, ptr %gep.1, align 4, !tbaa !28
  %138 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv.next170
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = getelementptr inbounds float, ptr %139, i64 %indvars.iv174
  store float %137, ptr %140, align 4, !tbaa !28
  %indvars.iv.next170.1 = or disjoint i64 %indvars.iv169, 2
  %gep.2 = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv.next170.1
  %141 = load float, ptr %gep.2, align 4, !tbaa !28
  %142 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv.next170.1
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = getelementptr inbounds float, ptr %143, i64 %indvars.iv174
  store float %141, ptr %144, align 4, !tbaa !28
  %indvars.iv.next170.2 = or disjoint i64 %indvars.iv169, 3
  %gep.3 = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv.next170.2
  %145 = load float, ptr %gep.3, align 4, !tbaa !28
  %146 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv.next170.2
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  %148 = getelementptr inbounds float, ptr %147, i64 %indvars.iv174
  store float %145, ptr %148, align 4, !tbaa !28
  %indvars.iv.next170.3 = add nuw nsw i64 %indvars.iv169, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge132.us.unr-lcssa, label %.lr.ph131.us.new, !llvm.loop !31

._crit_edge132.us.unr-lcssa:                      ; preds = %.lr.ph131.us.new, %.lr.ph131.us
  %indvars.iv169.unr = phi i64 [ 0, %.lr.ph131.us ], [ %indvars.iv.next170.3, %.lr.ph131.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge132.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge132.us.unr-lcssa, %.epil.preheader
  %indvars.iv169.epil = phi i64 [ %indvars.iv.next170.epil, %.epil.preheader ], [ %indvars.iv169.unr, %._crit_edge132.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge132.us.unr-lcssa ]
  %gep.epil = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv169.epil
  %149 = load float, ptr %gep.epil, align 4, !tbaa !28
  %150 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv169.epil
  %151 = load ptr, ptr %150, align 8, !tbaa !11
  %152 = getelementptr inbounds float, ptr %151, i64 %indvars.iv174
  store float %149, ptr %152, align 4, !tbaa !28
  %indvars.iv.next170.epil = add nuw nsw i64 %indvars.iv169.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge132.us, label %.epil.preheader, !llvm.loop !32

._crit_edge132.us:                                ; preds = %.epil.preheader, %._crit_edge132.us.unr-lcssa
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count177
  br i1 %exitcond178.not, label %.loopexit, label %.lr.ph131.us, !llvm.loop !34

.preheader115:                                    ; preds = %115
  %153 = load i32, ptr %4, align 4, !tbaa !5
  %.not152 = icmp eq i32 %153, 0
  br i1 %.not152, label %.loopexit, label %.lr.ph140

.lr.ph140:                                        ; preds = %.preheader115
  %154 = load i16, ptr %3, align 2, !tbaa !9
  %.not153 = icmp eq i16 %154, 0
  br i1 %.not153, label %.loopexit, label %.lr.ph140.split.us

.lr.ph140.split.us:                               ; preds = %.lr.ph140
  %155 = load ptr, ptr %5, align 8, !tbaa !11
  %156 = load ptr, ptr %6, align 8, !tbaa !11
  %157 = zext i16 %154 to i64
  %wide.trip.count187 = zext i32 %153 to i64
  %xtraiter213 = and i64 %157, 1
  %158 = icmp eq i16 %154, 1
  %unroll_iter216 = and i64 %157, 65534
  %lcmp.mod215.not = icmp eq i64 %xtraiter213, 0
  br label %.lr.ph137.us

.lr.ph137.us:                                     ; preds = %._crit_edge138.us, %.lr.ph140.split.us
  %indvars.iv184 = phi i64 [ %indvars.iv.next185, %._crit_edge138.us ], [ 0, %.lr.ph140.split.us ]
  %159 = mul nuw nsw i64 %indvars.iv184, %157
  %invariant.gep202 = getelementptr inbounds i16, ptr %155, i64 %159
  br i1 %158, label %._crit_edge138.us.unr-lcssa, label %.lr.ph137.us.new

.lr.ph137.us.new:                                 ; preds = %.lr.ph137.us, %.lr.ph137.us.new
  %indvars.iv179 = phi i64 [ %indvars.iv.next180.1, %.lr.ph137.us.new ], [ 0, %.lr.ph137.us ]
  %niter217 = phi i64 [ %niter217.next.1, %.lr.ph137.us.new ], [ 0, %.lr.ph137.us ]
  %gep203 = getelementptr inbounds i16, ptr %invariant.gep202, i64 %indvars.iv179
  %160 = load i16, ptr %gep203, align 2, !tbaa !9
  %161 = sitofp i16 %160 to float
  %162 = fmul float %161, 0x3F00000000000000
  %163 = getelementptr inbounds ptr, ptr %156, i64 %indvars.iv179
  %164 = load ptr, ptr %163, align 8, !tbaa !11
  %165 = getelementptr inbounds float, ptr %164, i64 %indvars.iv184
  store float %162, ptr %165, align 4, !tbaa !28
  %indvars.iv.next180 = or disjoint i64 %indvars.iv179, 1
  %gep203.1 = getelementptr inbounds i16, ptr %invariant.gep202, i64 %indvars.iv.next180
  %166 = load i16, ptr %gep203.1, align 2, !tbaa !9
  %167 = sitofp i16 %166 to float
  %168 = fmul float %167, 0x3F00000000000000
  %169 = getelementptr inbounds ptr, ptr %156, i64 %indvars.iv.next180
  %170 = load ptr, ptr %169, align 8, !tbaa !11
  %171 = getelementptr inbounds float, ptr %170, i64 %indvars.iv184
  store float %168, ptr %171, align 4, !tbaa !28
  %indvars.iv.next180.1 = add nuw nsw i64 %indvars.iv179, 2
  %niter217.next.1 = add i64 %niter217, 2
  %niter217.ncmp.1 = icmp eq i64 %niter217.next.1, %unroll_iter216
  br i1 %niter217.ncmp.1, label %._crit_edge138.us.unr-lcssa, label %.lr.ph137.us.new, !llvm.loop !35

._crit_edge138.us.unr-lcssa:                      ; preds = %.lr.ph137.us.new, %.lr.ph137.us
  %indvars.iv179.unr = phi i64 [ 0, %.lr.ph137.us ], [ %indvars.iv.next180.1, %.lr.ph137.us.new ]
  br i1 %lcmp.mod215.not, label %._crit_edge138.us, label %._crit_edge138.us.epilog-lcssa

._crit_edge138.us.epilog-lcssa:                   ; preds = %._crit_edge138.us.unr-lcssa
  %gep203.epil = getelementptr inbounds i16, ptr %invariant.gep202, i64 %indvars.iv179.unr
  %172 = load i16, ptr %gep203.epil, align 2, !tbaa !9
  %173 = sitofp i16 %172 to float
  %174 = fmul float %173, 0x3F00000000000000
  %175 = getelementptr inbounds ptr, ptr %156, i64 %indvars.iv179.unr
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  %177 = getelementptr inbounds float, ptr %176, i64 %indvars.iv184
  store float %174, ptr %177, align 4, !tbaa !28
  br label %._crit_edge138.us

._crit_edge138.us:                                ; preds = %._crit_edge138.us.unr-lcssa, %._crit_edge138.us.epilog-lcssa
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %wide.trip.count187
  br i1 %exitcond188.not, label %.loopexit, label %.lr.ph137.us, !llvm.loop !36

.preheader:                                       ; preds = %115
  %178 = load i32, ptr %4, align 4, !tbaa !5
  %.not154 = icmp eq i32 %178, 0
  br i1 %.not154, label %.loopexit, label %.lr.ph146

.lr.ph146:                                        ; preds = %.preheader
  %179 = load i16, ptr %3, align 2, !tbaa !9
  %.not155 = icmp eq i16 %179, 0
  br i1 %.not155, label %.loopexit, label %.lr.ph146.split.us

.lr.ph146.split.us:                               ; preds = %.lr.ph146
  %180 = load ptr, ptr %5, align 8, !tbaa !11
  %181 = load ptr, ptr %6, align 8, !tbaa !11
  %182 = zext i16 %179 to i64
  %wide.trip.count197 = zext i32 %178 to i64
  %xtraiter219 = and i64 %182, 1
  %183 = icmp eq i16 %179, 1
  %unroll_iter222 = and i64 %182, 65534
  %lcmp.mod221.not = icmp eq i64 %xtraiter219, 0
  br label %.lr.ph143.us

.lr.ph143.us:                                     ; preds = %._crit_edge144.us, %.lr.ph146.split.us
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %._crit_edge144.us ], [ 0, %.lr.ph146.split.us ]
  %184 = mul nuw nsw i64 %indvars.iv194, %182
  %invariant.gep204 = getelementptr inbounds i8, ptr %180, i64 %184
  br i1 %183, label %._crit_edge144.us.unr-lcssa, label %.lr.ph143.us.new

.lr.ph143.us.new:                                 ; preds = %.lr.ph143.us, %.lr.ph143.us.new
  %indvars.iv189 = phi i64 [ %indvars.iv.next190.1, %.lr.ph143.us.new ], [ 0, %.lr.ph143.us ]
  %niter223 = phi i64 [ %niter223.next.1, %.lr.ph143.us.new ], [ 0, %.lr.ph143.us ]
  %gep205 = getelementptr inbounds i8, ptr %invariant.gep204, i64 %indvars.iv189
  %185 = load i8, ptr %gep205, align 1, !tbaa !37
  %186 = zext i8 %185 to i32
  %187 = add nsw i32 %186, -127
  %188 = sitofp i32 %187 to float
  %189 = fmul float %188, 3.906250e-03
  %190 = getelementptr inbounds ptr, ptr %181, i64 %indvars.iv189
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  %192 = getelementptr inbounds float, ptr %191, i64 %indvars.iv194
  store float %189, ptr %192, align 4, !tbaa !28
  %indvars.iv.next190 = or disjoint i64 %indvars.iv189, 1
  %gep205.1 = getelementptr inbounds i8, ptr %invariant.gep204, i64 %indvars.iv.next190
  %193 = load i8, ptr %gep205.1, align 1, !tbaa !37
  %194 = zext i8 %193 to i32
  %195 = add nsw i32 %194, -127
  %196 = sitofp i32 %195 to float
  %197 = fmul float %196, 3.906250e-03
  %198 = getelementptr inbounds ptr, ptr %181, i64 %indvars.iv.next190
  %199 = load ptr, ptr %198, align 8, !tbaa !11
  %200 = getelementptr inbounds float, ptr %199, i64 %indvars.iv194
  store float %197, ptr %200, align 4, !tbaa !28
  %indvars.iv.next190.1 = add nuw nsw i64 %indvars.iv189, 2
  %niter223.next.1 = add i64 %niter223, 2
  %niter223.ncmp.1 = icmp eq i64 %niter223.next.1, %unroll_iter222
  br i1 %niter223.ncmp.1, label %._crit_edge144.us.unr-lcssa, label %.lr.ph143.us.new, !llvm.loop !38

._crit_edge144.us.unr-lcssa:                      ; preds = %.lr.ph143.us.new, %.lr.ph143.us
  %indvars.iv189.unr = phi i64 [ 0, %.lr.ph143.us ], [ %indvars.iv.next190.1, %.lr.ph143.us.new ]
  br i1 %lcmp.mod221.not, label %._crit_edge144.us, label %._crit_edge144.us.epilog-lcssa

._crit_edge144.us.epilog-lcssa:                   ; preds = %._crit_edge144.us.unr-lcssa
  %gep205.epil = getelementptr inbounds i8, ptr %invariant.gep204, i64 %indvars.iv189.unr
  %201 = load i8, ptr %gep205.epil, align 1, !tbaa !37
  %202 = zext i8 %201 to i32
  %203 = add nsw i32 %202, -127
  %204 = sitofp i32 %203 to float
  %205 = fmul float %204, 3.906250e-03
  %206 = getelementptr inbounds ptr, ptr %181, i64 %indvars.iv189.unr
  %207 = load ptr, ptr %206, align 8, !tbaa !11
  %208 = getelementptr inbounds float, ptr %207, i64 %indvars.iv194
  store float %205, ptr %208, align 4, !tbaa !28
  br label %._crit_edge144.us

._crit_edge144.us:                                ; preds = %._crit_edge144.us.unr-lcssa, %._crit_edge144.us.epilog-lcssa
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %.loopexit, label %.lr.ph143.us, !llvm.loop !39

.loopexit:                                        ; preds = %._crit_edge132.us, %._crit_edge138.us, %._crit_edge144.us, %.lr.ph146, %.lr.ph140, %.lr.ph134, %.preheader117, %.preheader115, %.preheader, %115
  %209 = load ptr, ptr %8, align 8, !tbaa !11
  %210 = call i32 @fclose(ptr noundef %209)
  br label %211

211:                                              ; preds = %113, %.loopexit
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %212

212:                                              ; preds = %211, %17
  %.6 = phi i1 [ false, %17 ], [ %.not114, %211 ]
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %9) #7
  br label %213

213:                                              ; preds = %212, %12
  %.7 = phi i1 [ false, %12 ], [ %.6, %212 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  ret i1 %.7
}

declare noundef signext i8 @_Z7fopen_sPP8_IO_FILEPKcS3_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

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

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

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

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !6, i64 16}
!17 = !{!"_ZTS8RiffWave", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTS10RiffHeader", !7, i64 0, !6, i64 4}
!19 = !{!"_ZTS10WaveHeader", !7, i64 0, !20, i64 4, !22, i64 28}
!20 = !{!"_ZTS10WaveFormat", !7, i64 0, !6, i64 4, !21, i64 8}
!21 = !{!"_ZTS8WaveInfo", !10, i64 0, !10, i64 2, !6, i64 4, !6, i64 8, !10, i64 12, !10, i64 14}
!22 = !{!"_ZTS10DataHeader", !7, i64 0, !6, i64 4}
!23 = !{!17, !6, i64 40}
!24 = distinct !{!24, !14}
!25 = !{!17, !6, i64 24}
!26 = !{!17, !10, i64 34}
!27 = !{!17, !10, i64 22}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !14}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = distinct !{!34, !14}
!35 = distinct !{!35, !14}
!36 = distinct !{!36, !14}
!37 = !{!7, !7, i64 0}
!38 = distinct !{!38, !14}
!39 = distinct !{!39, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass