; LLVM IR from jingweizhanghuai/Morn :: src/wave (morn_WAV_file)

; 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.MWAVInfo = type { ptr, i32, i32, i32, i32, ptr }
%struct.MWave = type { i32, i32, [32 x ptr] }

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@__FUNCTION__.WAVLoad = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @WAVInfo(ptr noundef) #0

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

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @WAVLoad(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.MWAVInfo, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  %27 = zext i1 %26 to i32
  store i32 %27, ptr %5, align 4, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %24
  %31 = load i32, ptr %5, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %31, i32 noundef -1, ptr noundef @.str, i32 noundef 95, ptr noundef @__FUNCTION__.WAVLoad, ptr noundef @.str.10)
  br label %32

32:                                               ; preds = %30, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %33

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #3
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call noalias ptr @fopen(ptr noundef %34, ptr noundef @.str.11)
  %36 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 0
  store ptr %35, ptr %36, align 8, !tbaa !11
  br label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %38 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = icmp eq ptr %39, null
  %41 = zext i1 %40 to i32
  store i32 %41, ptr %7, align 4, !tbaa !9
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %37
  %45 = load i32, ptr %7, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %45, i32 noundef -1, ptr noundef @.str, i32 noundef 99, ptr noundef @__FUNCTION__.WAVLoad, ptr noundef @.str.12)
  br label %46

46:                                               ; preds = %44, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @WAVInfo(ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %49 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !13
  store i32 %50, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %51 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 3
  %52 = load i32, ptr %51, align 8, !tbaa !14
  store i32 %52, ptr %9, align 4, !tbaa !9
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.MWave, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds [32 x ptr], ptr %57, i64 0, i64 0
  call void @mWaveRedefine(ptr noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %59 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !15
  %61 = sitofp i32 %60 to float
  store float %61, ptr %10, align 4, !tbaa !16
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = call ptr @m_PropertyWrite(ptr noundef %62, ptr noundef @.str.13, ptr noundef %10, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %64 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 4
  %65 = load i32, ptr %64, align 4, !tbaa !18
  %66 = icmp eq i32 %65, 16
  br i1 %66, label %67, label %135

67:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = mul nsw i32 %68, %69
  %71 = sext i32 %70 to i64
  %72 = mul i64 %71, 2
  %73 = trunc i64 %72 to i32
  %74 = call ptr @m_Malloc(i32 noundef %73)
  store ptr %74, ptr %13, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = mul nsw i32 %77, %78
  %80 = sext i32 %79 to i64
  %81 = mul i64 %80, 2
  %82 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = call i64 @fread(ptr noundef %76, i64 noundef %81, i64 noundef 1, ptr noundef %83)
  %85 = icmp ne i64 %84, 1
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %75
  %90 = load i32, ptr %14, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %90, i32 noundef -1, ptr noundef @.str, i32 noundef 110, ptr noundef @__FUNCTION__.WAVLoad, ptr noundef @.str.1)
  br label %91

91:                                               ; preds = %89, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %127, %93
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %98, label %133

98:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %123, %98
  %100 = load i32, ptr %15, align 4, !tbaa !9
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %126

104:                                              ; preds = %99
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = add nsw i32 %106, %107
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i16, ptr %105, i64 %109
  %111 = load i16, ptr %110, align 2, !tbaa !19
  %112 = sitofp i16 %111 to float
  %113 = fdiv float %112, 3.276800e+04
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.MWave, ptr %114, i32 0, i32 2
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [32 x ptr], ptr %115, i64 0, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %119, i64 %121
  store float %113, ptr %122, align 4, !tbaa !16
  br label %123

123:                                              ; preds = %104
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %15, align 4, !tbaa !9
  br label %99, !llvm.loop !21

126:                                              ; preds = %103
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %11, align 4, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = load i32, ptr %8, align 4, !tbaa !9
  %132 = add nsw i32 %130, %131
  store i32 %132, ptr %12, align 4, !tbaa !9
  br label %94, !llvm.loop !23

133:                                              ; preds = %94
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  call void @m_Free(ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %315

135:                                              ; preds = %48
  %136 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 4
  %137 = load i32, ptr %136, align 4, !tbaa !18
  %138 = icmp eq i32 %137, 8
  br i1 %138, label %139, label %207

139:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = load i32, ptr %8, align 4, !tbaa !9
  %142 = mul nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = mul i64 %143, 1
  %145 = trunc i64 %144 to i32
  %146 = call ptr @m_Malloc(i32 noundef %145)
  store ptr %146, ptr %16, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = load i32, ptr %9, align 4, !tbaa !9
  %150 = load i32, ptr %8, align 4, !tbaa !9
  %151 = mul nsw i32 %149, %150
  %152 = sext i32 %151 to i64
  %153 = mul i64 %152, 1
  %154 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !11
  %156 = call i64 @fread(ptr noundef %148, i64 noundef %153, i64 noundef 1, ptr noundef %155)
  %157 = icmp ne i64 %156, 1
  %158 = zext i1 %157 to i32
  store i32 %158, ptr %17, align 4, !tbaa !9
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %163

161:                                              ; preds = %147
  %162 = load i32, ptr %17, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %162, i32 noundef -1, ptr noundef @.str, i32 noundef 118, ptr noundef @__FUNCTION__.WAVLoad, ptr noundef @.str.1)
  br label %163

163:                                              ; preds = %161, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %199, %165
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %170, label %205

170:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %195, %170
  %172 = load i32, ptr %18, align 4, !tbaa !9
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = icmp slt i32 %172, %173
  br i1 %174, label %176, label %175

175:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %198

176:                                              ; preds = %171
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load i32, ptr %12, align 4, !tbaa !9
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = add nsw i32 %178, %179
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i8, ptr %177, i64 %181
  %183 = load i8, ptr %182, align 1, !tbaa !24
  %184 = sitofp i8 %183 to float
  %185 = fdiv float %184, 1.280000e+02
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.MWave, ptr %186, i32 0, i32 2
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [32 x ptr], ptr %187, i64 0, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds float, ptr %191, i64 %193
  store float %185, ptr %194, align 4, !tbaa !16
  br label %195

195:                                              ; preds = %176
  %196 = load i32, ptr %18, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %18, align 4, !tbaa !9
  br label %171, !llvm.loop !25

198:                                              ; preds = %175
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %11, align 4, !tbaa !9
  %202 = load i32, ptr %12, align 4, !tbaa !9
  %203 = load i32, ptr %8, align 4, !tbaa !9
  %204 = add nsw i32 %202, %203
  store i32 %204, ptr %12, align 4, !tbaa !9
  br label %166, !llvm.loop !26

205:                                              ; preds = %166
  %206 = load ptr, ptr %16, align 8, !tbaa !5
  call void @m_Free(ptr noundef %206)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %314

207:                                              ; preds = %135
  %208 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 4
  %209 = load i32, ptr %208, align 4, !tbaa !18
  %210 = icmp eq i32 %209, 32
  br i1 %210, label %211, label %304

211:                                              ; preds = %207
  %212 = load i32, ptr %8, align 4, !tbaa !9
  %213 = icmp eq i32 %212, 1
  br i1 %213, label %214, label %237

214:                                              ; preds = %211
  br label %215

215:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.MWave, ptr %216, i32 0, i32 2
  %218 = getelementptr inbounds [32 x ptr], ptr %217, i64 0, i64 0
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.MWave, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !27
  %223 = sext i32 %222 to i64
  %224 = mul i64 %223, 4
  %225 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  %227 = call i64 @fread(ptr noundef %219, i64 noundef %224, i64 noundef 1, ptr noundef %226)
  %228 = icmp ne i64 %227, 1
  %229 = zext i1 %228 to i32
  store i32 %229, ptr %19, align 4, !tbaa !9
  %230 = load i32, ptr %19, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %234

232:                                              ; preds = %215
  %233 = load i32, ptr %19, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %233, i32 noundef -1, ptr noundef @.str, i32 noundef 125, ptr noundef @__FUNCTION__.WAVLoad, ptr noundef @.str.1)
  br label %234

234:                                              ; preds = %232, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %235

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235
  br label %303

237:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %238 = load i32, ptr %9, align 4, !tbaa !9
  %239 = load i32, ptr %8, align 4, !tbaa !9
  %240 = mul nsw i32 %238, %239
  %241 = sext i32 %240 to i64
  %242 = mul i64 %241, 4
  %243 = trunc i64 %242 to i32
  %244 = call ptr @m_Malloc(i32 noundef %243)
  store ptr %244, ptr %20, align 8, !tbaa !5
  br label %245

245:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %246 = load ptr, ptr %20, align 8, !tbaa !5
  %247 = load i32, ptr %9, align 4, !tbaa !9
  %248 = load i32, ptr %8, align 4, !tbaa !9
  %249 = mul nsw i32 %247, %248
  %250 = sext i32 %249 to i64
  %251 = mul i64 %250, 4
  %252 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !11
  %254 = call i64 @fread(ptr noundef %246, i64 noundef %251, i64 noundef 1, ptr noundef %253)
  %255 = icmp ne i64 %254, 1
  %256 = zext i1 %255 to i32
  store i32 %256, ptr %21, align 4, !tbaa !9
  %257 = load i32, ptr %21, align 4, !tbaa !9
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %261

259:                                              ; preds = %245
  %260 = load i32, ptr %21, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %260, i32 noundef -1, ptr noundef @.str, i32 noundef 129, ptr noundef @__FUNCTION__.WAVLoad, ptr noundef @.str.1)
  br label %261

261:                                              ; preds = %259, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %295, %263
  %265 = load i32, ptr %11, align 4, !tbaa !9
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = icmp slt i32 %265, %266
  br i1 %267, label %268, label %301

268:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %269

269:                                              ; preds = %291, %268
  %270 = load i32, ptr %22, align 4, !tbaa !9
  %271 = load i32, ptr %8, align 4, !tbaa !9
  %272 = icmp slt i32 %270, %271
  br i1 %272, label %274, label %273

273:                                              ; preds = %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %294

274:                                              ; preds = %269
  %275 = load ptr, ptr %20, align 8, !tbaa !5
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = load i32, ptr %8, align 4, !tbaa !9
  %278 = add nsw i32 %276, %277
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds float, ptr %275, i64 %279
  %281 = load float, ptr %280, align 4, !tbaa !16
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.MWave, ptr %282, i32 0, i32 2
  %284 = load i32, ptr %8, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [32 x ptr], ptr %283, i64 0, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = load i32, ptr %11, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds float, ptr %287, i64 %289
  store float %281, ptr %290, align 4, !tbaa !16
  br label %291

291:                                              ; preds = %274
  %292 = load i32, ptr %22, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %22, align 4, !tbaa !9
  br label %269, !llvm.loop !29

294:                                              ; preds = %273
  br label %295

295:                                              ; preds = %294
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %11, align 4, !tbaa !9
  %298 = load i32, ptr %12, align 4, !tbaa !9
  %299 = load i32, ptr %8, align 4, !tbaa !9
  %300 = add nsw i32 %298, %299
  store i32 %300, ptr %12, align 4, !tbaa !9
  br label %264, !llvm.loop !30

301:                                              ; preds = %264
  %302 = load ptr, ptr %20, align 8, !tbaa !5
  call void @m_Free(ptr noundef %302)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %303

303:                                              ; preds = %301, %236
  br label %313

304:                                              ; preds = %207
  br label %305

305:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 1, ptr %23, align 4, !tbaa !9
  %306 = load i32, ptr %23, align 4, !tbaa !9
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %310

308:                                              ; preds = %305
  %309 = load i32, ptr %23, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %309, i32 noundef -1, ptr noundef @.str, i32 noundef 136, ptr noundef @__FUNCTION__.WAVLoad, ptr noundef @.str.6)
  br label %310

310:                                              ; preds = %308, %305
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %311

311:                                              ; preds = %310
  br label %312

312:                                              ; preds = %311
  br label %313

313:                                              ; preds = %312, %303
  br label %314

314:                                              ; preds = %313, %205
  br label %315

315:                                              ; preds = %314, %133
  %316 = getelementptr inbounds %struct.MWAVInfo, ptr %6, i32 0, i32 0
  %317 = load ptr, ptr %316, align 8, !tbaa !11
  %318 = call i32 @fclose(ptr noundef %317)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #3
  ret void
}

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

declare void @mWaveRedefine(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare ptr @m_PropertyWrite(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare ptr @m_Malloc(i32 noundef) #2

declare void @m_Free(ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"MWAVInfo", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24}
!13 = !{!12, !10, i64 12}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!12, !10, i64 20}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = !{!28, !10, i64 4}
!28 = !{!"MWave", !10, i64 0, !10, i64 4, !7, i64 8}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}


; 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.MWAVInfo = type { ptr, i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@__FUNCTION__.WAVLoad = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @WAVInfo(ptr noundef) local_unnamed_addr #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: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @WAVLoad(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.MWAVInfo, align 8
  %4 = alloca float, align 4
  %5 = icmp eq ptr %0, null
  br i1 %5, label %6, label %7

6:                                                ; preds = %2
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 95, ptr noundef nonnull @__FUNCTION__.WAVLoad, ptr noundef nonnull @.str.10) #4
  br label %7

7:                                                ; preds = %6, %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  %8 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.11)
  store ptr %8, ptr %3, align 8, !tbaa !5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %7
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 99, ptr noundef nonnull @__FUNCTION__.WAVLoad, ptr noundef nonnull @.str.12) #4
  br label %11

11:                                               ; preds = %10, %7
  call void @WAVInfo(ptr noundef nonnull %3)
  %12 = getelementptr inbounds i8, ptr %3, i64 12
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %3, i64 16
  %15 = load i32, ptr %14, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  call void @mWaveRedefine(ptr noundef %0, i32 noundef %13, i32 noundef %15, ptr noundef nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = sitofp i32 %18 to float
  store float %19, ptr %4, align 4, !tbaa !14
  %20 = call ptr @m_PropertyWrite(ptr noundef %0, ptr noundef nonnull @.str.13, ptr noundef nonnull %4, i32 noundef 4) #4
  %21 = getelementptr inbounds i8, ptr %3, i64 20
  %22 = load i32, ptr %21, align 4, !tbaa !16
  switch i32 %22, label %123 [
    i32 16, label %23
    i32 8, label %55
    i32 32, label %85
  ]

23:                                               ; preds = %11
  %24 = mul nsw i32 %15, %13
  %25 = sext i32 %24 to i64
  %26 = shl nsw i64 %25, 1
  %27 = trunc i64 %26 to i32
  %28 = call ptr @m_Malloc(i32 noundef %27) #4
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call i64 @fread(ptr noundef %28, i64 noundef %26, i64 noundef 1, ptr noundef %29)
  %.not95 = icmp eq i64 %30, 1
  br i1 %.not95, label %32, label %31

31:                                               ; preds = %23
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 110, ptr noundef nonnull @__FUNCTION__.WAVLoad, ptr noundef nonnull @.str.1) #4
  br label %32

32:                                               ; preds = %31, %23
  %33 = icmp sgt i32 %15, 0
  %34 = icmp sgt i32 %13, 0
  %or.cond = and i1 %33, %34
  br i1 %or.cond, label %.preheader.us.preheader, label %._crit_edge110

.preheader.us.preheader:                          ; preds = %32
  %35 = zext nneg i32 %13 to i64
  %wide.trip.count147 = zext nneg i32 %15 to i64
  %xtraiter161 = and i64 %35, 1
  %36 = icmp eq i32 %13, 1
  %unroll_iter164 = and i64 %35, 2147483646
  %lcmp.mod163.not = icmp eq i64 %xtraiter161, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us111
  %indvars.iv142 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next143, %._crit_edge.us111 ]
  %indvars.iv140 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next141, %._crit_edge.us111 ]
  %invariant.gep149 = getelementptr inbounds i16, ptr %28, i64 %indvars.iv142
  br i1 %36, label %._crit_edge.us111.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv135 = phi i64 [ %indvars.iv.next136.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter165 = phi i64 [ %niter165.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %gep150 = getelementptr inbounds i16, ptr %invariant.gep149, i64 %indvars.iv135
  %37 = load i16, ptr %gep150, align 2, !tbaa !17
  %38 = sitofp i16 %37 to float
  %39 = fmul float %38, 0x3F00000000000000
  %40 = getelementptr inbounds [32 x ptr], ptr %16, i64 0, i64 %indvars.iv135
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %42 = getelementptr inbounds float, ptr %41, i64 %indvars.iv140
  store float %39, ptr %42, align 4, !tbaa !14
  %indvars.iv.next136 = or disjoint i64 %indvars.iv135, 1
  %gep150.1 = getelementptr inbounds i16, ptr %invariant.gep149, i64 %indvars.iv.next136
  %43 = load i16, ptr %gep150.1, align 2, !tbaa !17
  %44 = sitofp i16 %43 to float
  %45 = fmul float %44, 0x3F00000000000000
  %46 = getelementptr inbounds [32 x ptr], ptr %16, i64 0, i64 %indvars.iv.next136
  %47 = load ptr, ptr %46, align 8, !tbaa !19
  %48 = getelementptr inbounds float, ptr %47, i64 %indvars.iv140
  store float %45, ptr %48, align 4, !tbaa !14
  %indvars.iv.next136.1 = add nuw nsw i64 %indvars.iv135, 2
  %niter165.next.1 = add i64 %niter165, 2
  %niter165.ncmp.1 = icmp eq i64 %niter165.next.1, %unroll_iter164
  br i1 %niter165.ncmp.1, label %._crit_edge.us111.unr-lcssa, label %.preheader.us.new, !llvm.loop !20

._crit_edge.us111.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %indvars.iv135.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next136.1, %.preheader.us.new ]
  br i1 %lcmp.mod163.not, label %._crit_edge.us111, label %._crit_edge.us111.epilog-lcssa

._crit_edge.us111.epilog-lcssa:                   ; preds = %._crit_edge.us111.unr-lcssa
  %gep150.epil = getelementptr inbounds i16, ptr %invariant.gep149, i64 %indvars.iv135.unr
  %49 = load i16, ptr %gep150.epil, align 2, !tbaa !17
  %50 = sitofp i16 %49 to float
  %51 = fmul float %50, 0x3F00000000000000
  %52 = getelementptr inbounds [32 x ptr], ptr %16, i64 0, i64 %indvars.iv135.unr
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = getelementptr inbounds float, ptr %53, i64 %indvars.iv140
  store float %51, ptr %54, align 4, !tbaa !14
  br label %._crit_edge.us111

._crit_edge.us111:                                ; preds = %._crit_edge.us111.unr-lcssa, %._crit_edge.us111.epilog-lcssa
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, %35
  %exitcond148.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count147
  br i1 %exitcond148.not, label %._crit_edge110, label %.preheader.us, !llvm.loop !22

._crit_edge110:                                   ; preds = %._crit_edge.us111, %32
  call void @m_Free(ptr noundef %28) #4
  br label %124

55:                                               ; preds = %11
  %56 = mul nsw i32 %15, %13
  %57 = sext i32 %56 to i64
  %58 = call ptr @m_Malloc(i32 noundef %56) #4
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = call i64 @fread(ptr noundef %58, i64 noundef %57, i64 noundef 1, ptr noundef %59)
  %.not94 = icmp eq i64 %60, 1
  br i1 %.not94, label %62, label %61

61:                                               ; preds = %55
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 118, ptr noundef nonnull @__FUNCTION__.WAVLoad, ptr noundef nonnull @.str.1) #4
  br label %62

62:                                               ; preds = %61, %55
  %63 = icmp sgt i32 %15, 0
  %64 = icmp sgt i32 %13, 0
  %or.cond151 = and i1 %63, %64
  br i1 %or.cond151, label %.preheader96.us.preheader, label %._crit_edge105

.preheader96.us.preheader:                        ; preds = %62
  %65 = zext nneg i32 %13 to i64
  %wide.trip.count133 = zext nneg i32 %15 to i64
  %xtraiter155 = and i64 %65, 1
  %66 = icmp eq i32 %13, 1
  %unroll_iter158 = and i64 %65, 2147483646
  %lcmp.mod157.not = icmp eq i64 %xtraiter155, 0
  br label %.preheader96.us

.preheader96.us:                                  ; preds = %.preheader96.us.preheader, %._crit_edge.us106
  %indvars.iv128 = phi i64 [ 0, %.preheader96.us.preheader ], [ %indvars.iv.next129, %._crit_edge.us106 ]
  %indvars.iv126 = phi i64 [ 0, %.preheader96.us.preheader ], [ %indvars.iv.next127, %._crit_edge.us106 ]
  %invariant.gep = getelementptr inbounds i8, ptr %58, i64 %indvars.iv128
  br i1 %66, label %._crit_edge.us106.unr-lcssa, label %.preheader96.us.new

.preheader96.us.new:                              ; preds = %.preheader96.us, %.preheader96.us.new
  %indvars.iv121 = phi i64 [ %indvars.iv.next122.1, %.preheader96.us.new ], [ 0, %.preheader96.us ]
  %niter159 = phi i64 [ %niter159.next.1, %.preheader96.us.new ], [ 0, %.preheader96.us ]
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv121
  %67 = load i8, ptr %gep, align 1, !tbaa !23
  %68 = sitofp i8 %67 to float
  %69 = fmul float %68, 7.812500e-03
  %70 = getelementptr inbounds [32 x ptr], ptr %16, i64 0, i64 %indvars.iv121
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = getelementptr inbounds float, ptr %71, i64 %indvars.iv126
  store float %69, ptr %72, align 4, !tbaa !14
  %indvars.iv.next122 = or disjoint i64 %indvars.iv121, 1
  %gep.1 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv.next122
  %73 = load i8, ptr %gep.1, align 1, !tbaa !23
  %74 = sitofp i8 %73 to float
  %75 = fmul float %74, 7.812500e-03
  %76 = getelementptr inbounds [32 x ptr], ptr %16, i64 0, i64 %indvars.iv.next122
  %77 = load ptr, ptr %76, align 8, !tbaa !19
  %78 = getelementptr inbounds float, ptr %77, i64 %indvars.iv126
  store float %75, ptr %78, align 4, !tbaa !14
  %indvars.iv.next122.1 = add nuw nsw i64 %indvars.iv121, 2
  %niter159.next.1 = add i64 %niter159, 2
  %niter159.ncmp.1 = icmp eq i64 %niter159.next.1, %unroll_iter158
  br i1 %niter159.ncmp.1, label %._crit_edge.us106.unr-lcssa, label %.preheader96.us.new, !llvm.loop !24

._crit_edge.us106.unr-lcssa:                      ; preds = %.preheader96.us.new, %.preheader96.us
  %indvars.iv121.unr = phi i64 [ 0, %.preheader96.us ], [ %indvars.iv.next122.1, %.preheader96.us.new ]
  br i1 %lcmp.mod157.not, label %._crit_edge.us106, label %._crit_edge.us106.epilog-lcssa

._crit_edge.us106.epilog-lcssa:                   ; preds = %._crit_edge.us106.unr-lcssa
  %gep.epil = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv121.unr
  %79 = load i8, ptr %gep.epil, align 1, !tbaa !23
  %80 = sitofp i8 %79 to float
  %81 = fmul float %80, 7.812500e-03
  %82 = getelementptr inbounds [32 x ptr], ptr %16, i64 0, i64 %indvars.iv121.unr
  %83 = load ptr, ptr %82, align 8, !tbaa !19
  %84 = getelementptr inbounds float, ptr %83, i64 %indvars.iv126
  store float %81, ptr %84, align 4, !tbaa !14
  br label %._crit_edge.us106

._crit_edge.us106:                                ; preds = %._crit_edge.us106.unr-lcssa, %._crit_edge.us106.epilog-lcssa
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, %65
  %exitcond134.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count133
  br i1 %exitcond134.not, label %._crit_edge105, label %.preheader96.us, !llvm.loop !25

._crit_edge105:                                   ; preds = %._crit_edge.us106, %62
  call void @m_Free(ptr noundef %58) #4
  br label %124

85:                                               ; preds = %11
  %86 = icmp eq i32 %13, 1
  br i1 %86, label %87, label %96

87:                                               ; preds = %85
  %88 = load ptr, ptr %16, align 8, !tbaa !19
  %89 = getelementptr inbounds i8, ptr %0, i64 4
  %90 = load i32, ptr %89, align 4, !tbaa !26
  %91 = sext i32 %90 to i64
  %92 = shl nsw i64 %91, 2
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = call i64 @fread(ptr noundef %88, i64 noundef %92, i64 noundef 1, ptr noundef %93)
  %.not93 = icmp eq i64 %94, 1
  br i1 %.not93, label %124, label %95

95:                                               ; preds = %87
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 125, ptr noundef nonnull @__FUNCTION__.WAVLoad, ptr noundef nonnull @.str.1) #4
  br label %124

96:                                               ; preds = %85
  %97 = mul nsw i32 %15, %13
  %98 = sext i32 %97 to i64
  %99 = shl nsw i64 %98, 2
  %100 = trunc i64 %99 to i32
  %101 = call ptr @m_Malloc(i32 noundef %100) #4
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = call i64 @fread(ptr noundef %101, i64 noundef %99, i64 noundef 1, ptr noundef %102)
  %.not = icmp eq i64 %103, 1
  br i1 %.not, label %105, label %104

104:                                              ; preds = %96
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 129, ptr noundef nonnull @__FUNCTION__.WAVLoad, ptr noundef nonnull @.str.1) #4
  br label %105

105:                                              ; preds = %104, %96
  %106 = icmp sgt i32 %15, 0
  %107 = icmp sgt i32 %13, 0
  %or.cond152 = and i1 %106, %107
  br i1 %or.cond152, label %.preheader97.lr.ph.split.us, label %._crit_edge101

.preheader97.lr.ph.split.us:                      ; preds = %105
  %108 = zext nneg i32 %13 to i64
  %109 = getelementptr inbounds [32 x ptr], ptr %16, i64 0, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !19
  %111 = zext nneg i32 %13 to i64
  %wide.trip.count = zext nneg i32 %15 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %112 = icmp ult i32 %15, 4
  br i1 %112, label %._crit_edge101.loopexit.unr-lcssa, label %.preheader97.lr.ph.split.us.new

.preheader97.lr.ph.split.us.new:                  ; preds = %.preheader97.lr.ph.split.us
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.preheader97.us

.preheader97.us:                                  ; preds = %.preheader97.us, %.preheader97.lr.ph.split.us.new
  %indvars.iv115 = phi i64 [ 0, %.preheader97.lr.ph.split.us.new ], [ %indvars.iv.next116.3, %.preheader97.us ]
  %indvars.iv = phi i64 [ 0, %.preheader97.lr.ph.split.us.new ], [ %indvars.iv.next.3, %.preheader97.us ]
  %niter = phi i64 [ 0, %.preheader97.lr.ph.split.us.new ], [ %niter.next.3, %.preheader97.us ]
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, %111
  %113 = getelementptr inbounds float, ptr %101, i64 %indvars.iv.next116
  %114 = getelementptr inbounds float, ptr %110, i64 %indvars.iv
  %.pre = load float, ptr %113, align 4, !tbaa !14
  store float %.pre, ptr %114, align 4, !tbaa !14
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %indvars.iv.next116.1 = add nuw nsw i64 %indvars.iv.next116, %111
  %115 = getelementptr inbounds float, ptr %101, i64 %indvars.iv.next116.1
  %116 = getelementptr inbounds float, ptr %110, i64 %indvars.iv.next
  %.pre.1 = load float, ptr %115, align 4, !tbaa !14
  store float %.pre.1, ptr %116, align 4, !tbaa !14
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %indvars.iv.next116.2 = add nuw nsw i64 %indvars.iv.next116.1, %111
  %117 = getelementptr inbounds float, ptr %101, i64 %indvars.iv.next116.2
  %118 = getelementptr inbounds float, ptr %110, i64 %indvars.iv.next.1
  %.pre.2 = load float, ptr %117, align 4, !tbaa !14
  store float %.pre.2, ptr %118, align 4, !tbaa !14
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %indvars.iv.next116.3 = add nuw nsw i64 %indvars.iv.next116.2, %111
  %119 = getelementptr inbounds float, ptr %101, i64 %indvars.iv.next116.3
  %120 = getelementptr inbounds float, ptr %110, i64 %indvars.iv.next.2
  %.pre.3 = load float, ptr %119, align 4, !tbaa !14
  store float %.pre.3, ptr %120, align 4, !tbaa !14
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 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_edge101.loopexit.unr-lcssa, label %.preheader97.us, !llvm.loop !28

._crit_edge101.loopexit.unr-lcssa:                ; preds = %.preheader97.us, %.preheader97.lr.ph.split.us
  %indvars.iv115.unr = phi i64 [ 0, %.preheader97.lr.ph.split.us ], [ %indvars.iv.next116.3, %.preheader97.us ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader97.lr.ph.split.us ], [ %indvars.iv.next.3, %.preheader97.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge101, label %.preheader97.us.epil

.preheader97.us.epil:                             ; preds = %._crit_edge101.loopexit.unr-lcssa, %.preheader97.us.epil
  %indvars.iv115.epil = phi i64 [ %indvars.iv.next116.epil, %.preheader97.us.epil ], [ %indvars.iv115.unr, %._crit_edge101.loopexit.unr-lcssa ]
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.preheader97.us.epil ], [ %indvars.iv.unr, %._crit_edge101.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader97.us.epil ], [ 0, %._crit_edge101.loopexit.unr-lcssa ]
  %indvars.iv.next116.epil = add nuw nsw i64 %indvars.iv115.epil, %111
  %121 = getelementptr inbounds float, ptr %101, i64 %indvars.iv.next116.epil
  %122 = getelementptr inbounds float, ptr %110, i64 %indvars.iv.epil
  %.pre.epil = load float, ptr %121, align 4, !tbaa !14
  store float %.pre.epil, ptr %122, align 4, !tbaa !14
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.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_edge101, label %.preheader97.us.epil, !llvm.loop !30

._crit_edge101:                                   ; preds = %._crit_edge101.loopexit.unr-lcssa, %.preheader97.us.epil, %105
  call void @m_Free(ptr noundef %101) #4
  br label %124

123:                                              ; preds = %11
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 136, ptr noundef nonnull @__FUNCTION__.WAVLoad, ptr noundef nonnull @.str.6) #4
  br label %124

124:                                              ; preds = %87, %95, %._crit_edge105, %._crit_edge101, %123, %._crit_edge110
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = call i32 @fclose(ptr noundef %125)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  ret void
}

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

declare void @mWaveRedefine(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare ptr @m_PropertyWrite(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #3

declare void @m_Free(ptr noundef) local_unnamed_addr #3

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

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

!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, !7, i64 0}
!6 = !{!"MWAVInfo", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 12}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !8, i64 0}
!16 = !{!6, !10, i64 20}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !8, i64 0}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = !{!27, !10, i64 4}
!27 = !{!"MWave", !10, i64 0, !10, i64 4, !8, i64 8}
!28 = distinct !{!28, !21, !29}
!29 = !{!"llvm.loop.isvectorized", i32 1}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.unroll.disable"}


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