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

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 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
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@__FUNCTION__.mWAVWrite = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

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

declare ptr @m_Malloc(i32 noundef) #1

declare void @m_Free(ptr noundef) #1

declare ptr @m_PropertyRead(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare ptr @mWaveCreate(i32 noundef, i32 noundef, ptr noundef) #1

declare void @mWaveResample(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @endWAVWrite(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @mWAVWrite(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %26, label %22

22:                                               ; preds = %19
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = ptrtoint ptr %23 to i64
  %25 = icmp eq i64 %24, -1
  br i1 %25, label %26, label %27

26:                                               ; preds = %22, %19
  br label %51

27:                                               ; preds = %22
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.MWave, ptr %28, i32 0, i32 2
  %30 = getelementptr inbounds [32 x ptr], ptr %29, i64 0, i64 0
  %31 = icmp eq ptr %30, null
  br i1 %31, label %48, label %32

32:                                               ; preds = %27
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.MWave, ptr %33, i32 0, i32 2
  %35 = getelementptr inbounds [32 x ptr], ptr %34, i64 0, i64 0
  %36 = ptrtoint ptr %35 to i64
  %37 = icmp eq i64 %36, -1
  br i1 %37, label %48, label %38

38:                                               ; preds = %32
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.MWave, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = icmp sle i32 %41, 0
  br i1 %42, label %48, label %43

43:                                               ; preds = %38
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MWave, ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = icmp sle i32 %46, 0
  br label %48

48:                                               ; preds = %43, %38, %32, %27
  %49 = phi i1 [ true, %38 ], [ true, %32 ], [ true, %27 ], [ %47, %43 ]
  %50 = zext i1 %49 to i32
  br label %51

51:                                               ; preds = %48, %26
  %52 = phi i32 [ 1, %26 ], [ %50, %48 ]
  store i32 %52, ptr %6, align 4, !tbaa !13
  %53 = load i32, ptr %6, align 4, !tbaa !13
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = load i32, ptr %6, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %56, i32 noundef -1, ptr noundef @.str, i32 noundef 310, ptr noundef @__FUNCTION__.mWAVWrite, ptr noundef @.str.10)
  br label %57

57:                                               ; preds = %55, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.MWave, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !9
  %63 = icmp sgt i32 %62, 2
  %64 = zext i1 %63 to i32
  store i32 %64, ptr %7, align 4, !tbaa !13
  %65 = load i32, ptr %7, align 4, !tbaa !13
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %59
  %68 = load i32, ptr %7, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %68, i32 noundef -1, ptr noundef @.str, i32 noundef 311, ptr noundef @__FUNCTION__.mWAVWrite, ptr noundef @.str.10)
  br label %69

69:                                               ; preds = %67, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %78, label %74

74:                                               ; preds = %71
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = ptrtoint ptr %75 to i64
  %77 = icmp eq i64 %76, -1
  br label %78

78:                                               ; preds = %74, %71
  %79 = phi i1 [ true, %71 ], [ %77, %74 ]
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %8, align 4, !tbaa !13
  %81 = load i32, ptr %8, align 4, !tbaa !13
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %85

83:                                               ; preds = %78
  %84 = load i32, ptr %8, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %84, i32 noundef -1, ptr noundef @.str, i32 noundef 312, ptr noundef @__FUNCTION__.mWAVWrite, ptr noundef @.str.10)
  br label %85

85:                                               ; preds = %83, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store float -1.000000e+00, ptr %9, align 4, !tbaa !14
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = call ptr @m_PropertyRead(ptr noundef %87, ptr noundef @.str.13, ptr noundef %9, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = call ptr @GetHandle(ptr noundef %89, i32 noundef 32, i32 noundef 1365403440, ptr noundef @endWAVWrite)
  store ptr %90, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.MHandle, ptr %91, i32 0, i32 3
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  store ptr %93, ptr %11, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.MHandle, ptr %94, i32 0, i32 1
  %96 = load volatile i32, ptr %95, align 4, !tbaa !18
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %148

98:                                               ; preds = %86
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.MObject, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = call noalias ptr @fopen(ptr noundef %101, ptr noundef @.str.15)
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.MWAVInfo, ptr %103, i32 0, i32 0
  store ptr %102, ptr %104, align 8, !tbaa !20
  br label %105

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.MWAVInfo, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !20
  %109 = icmp eq ptr %108, null
  %110 = zext i1 %109 to i32
  store i32 %110, ptr %12, align 4, !tbaa !13
  %111 = load i32, ptr %12, align 4, !tbaa !13
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %105
  %114 = load i32, ptr %12, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %114, i32 noundef -1, ptr noundef @.str, i32 noundef 321, ptr noundef @__FUNCTION__.mWAVWrite, ptr noundef @.str.12)
  br label %115

115:                                              ; preds = %113, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %119 = load float, ptr %9, align 4, !tbaa !14
  %120 = fcmp olt float %119, 0.000000e+00
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %13, align 4, !tbaa !13
  %122 = load i32, ptr %13, align 4, !tbaa !13
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %126

124:                                              ; preds = %118
  %125 = load i32, ptr %13, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %125, i32 noundef -1, ptr noundef @.str, i32 noundef 323, ptr noundef @__FUNCTION__.mWAVWrite, ptr noundef @.str.14)
  br label %126

126:                                              ; preds = %124, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.MWave, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 8, !tbaa !9
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.MWAVInfo, ptr %132, i32 0, i32 2
  store i32 %131, ptr %133, align 4, !tbaa !22
  %134 = load float, ptr %9, align 4, !tbaa !14
  %135 = fptosi float %134 to i32
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.MWAVInfo, ptr %136, i32 0, i32 1
  store i32 %135, ptr %137, align 8, !tbaa !23
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.MWAVInfo, ptr %138, i32 0, i32 3
  store i32 0, ptr %139, align 8, !tbaa !24
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.MWAVInfo, ptr %140, i32 0, i32 4
  store i32 16, ptr %141, align 4, !tbaa !25
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.MWAVInfo, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !20
  %145 = call i32 @fseek(ptr noundef %144, i64 noundef 44, i32 noundef 0)
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.MHandle, ptr %146, i32 0, i32 1
  store volatile i32 1, ptr %147, align 4, !tbaa !18
  br label %148

148:                                              ; preds = %128, %86
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.MWave, ptr %149, i32 0, i32 0
  %151 = load i32, ptr %150, align 8, !tbaa !9
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.MWAVInfo, ptr %152, i32 0, i32 2
  %154 = load i32, ptr %153, align 4, !tbaa !22
  %155 = icmp slt i32 %151, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %148
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %307

157:                                              ; preds = %148
  %158 = load float, ptr %9, align 4, !tbaa !14
  %159 = fcmp ogt float %158, 0.000000e+00
  br i1 %159, label %160, label %187

160:                                              ; preds = %157
  %161 = load float, ptr %9, align 4, !tbaa !14
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.MWAVInfo, ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !23
  %165 = sitofp i32 %164 to float
  %166 = fcmp une float %161, %165
  br i1 %166, label %167, label %187

167:                                              ; preds = %160
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.MWAVInfo, ptr %168, i32 0, i32 5
  %170 = load ptr, ptr %169, align 8, !tbaa !26
  %171 = icmp eq ptr %170, null
  br i1 %171, label %172, label %179

172:                                              ; preds = %167
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.MWAVInfo, ptr %173, i32 0, i32 2
  %175 = load i32, ptr %174, align 4, !tbaa !22
  %176 = call ptr @mWaveCreate(i32 noundef %175, i32 noundef -1, ptr noundef null)
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.MWAVInfo, ptr %177, i32 0, i32 5
  store ptr %176, ptr %178, align 8, !tbaa !26
  br label %179

179:                                              ; preds = %172, %167
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.MWAVInfo, ptr %181, i32 0, i32 5
  %183 = load ptr, ptr %182, align 8, !tbaa !26
  call void @mWaveResample(ptr noundef %180, ptr noundef %183, i32 noundef -1, i32 noundef -1)
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.MWAVInfo, ptr %184, i32 0, i32 5
  %186 = load ptr, ptr %185, align 8, !tbaa !26
  store ptr %186, ptr %5, align 8, !tbaa !5
  br label %187

187:                                              ; preds = %179, %160, %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.MWave, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !12
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.MWave, ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 8, !tbaa !9
  %194 = mul nsw i32 %190, %193
  %195 = sext i32 %194 to i64
  %196 = mul i64 %195, 4
  %197 = trunc i64 %196 to i32
  %198 = call ptr @m_Malloc(i32 noundef %197)
  store ptr %198, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %16, align 4, !tbaa !13
  store i32 0, ptr %17, align 4, !tbaa !13
  br label %199

199:                                              ; preds = %276, %187
  %200 = load i32, ptr %16, align 4, !tbaa !13
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.MWave, ptr %201, i32 0, i32 1
  %203 = load i32, ptr %202, align 4, !tbaa !12
  %204 = icmp slt i32 %200, %203
  br i1 %204, label %205, label %284

205:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !13
  br label %206

206:                                              ; preds = %272, %205
  %207 = load i32, ptr %18, align 4, !tbaa !13
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.MWave, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 8, !tbaa !9
  %211 = icmp slt i32 %207, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %206
  store i32 15, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %275

213:                                              ; preds = %206
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.MWave, ptr %214, i32 0, i32 2
  %216 = load i32, ptr %18, align 4, !tbaa !13
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [32 x ptr], ptr %215, i64 0, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = load i32, ptr %16, align 4, !tbaa !13
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds float, ptr %219, i64 %221
  %223 = load float, ptr %222, align 4, !tbaa !14
  %224 = fcmp oge float %223, 1.000000e+00
  br i1 %224, label %225, label %232

225:                                              ; preds = %213
  %226 = load ptr, ptr %15, align 8, !tbaa !5
  %227 = load i32, ptr %17, align 4, !tbaa !13
  %228 = load i32, ptr %18, align 4, !tbaa !13
  %229 = add nsw i32 %227, %228
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds i16, ptr %226, i64 %230
  store i16 32767, ptr %231, align 2, !tbaa !27
  br label %271

232:                                              ; preds = %213
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.MWave, ptr %233, i32 0, i32 2
  %235 = load i32, ptr %18, align 4, !tbaa !13
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [32 x ptr], ptr %234, i64 0, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load i32, ptr %16, align 4, !tbaa !13
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds float, ptr %238, i64 %240
  %242 = load float, ptr %241, align 4, !tbaa !14
  %243 = fcmp ole float %242, -1.000000e+00
  br i1 %243, label %244, label %251

244:                                              ; preds = %232
  %245 = load ptr, ptr %15, align 8, !tbaa !5
  %246 = load i32, ptr %17, align 4, !tbaa !13
  %247 = load i32, ptr %18, align 4, !tbaa !13
  %248 = add nsw i32 %246, %247
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i16, ptr %245, i64 %249
  store i16 -32768, ptr %250, align 2, !tbaa !27
  br label %270

251:                                              ; preds = %232
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.MWave, ptr %252, i32 0, i32 2
  %254 = load i32, ptr %18, align 4, !tbaa !13
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [32 x ptr], ptr %253, i64 0, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = load i32, ptr %16, align 4, !tbaa !13
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds float, ptr %257, i64 %259
  %261 = load float, ptr %260, align 4, !tbaa !14
  %262 = fmul float %261, 3.276800e+04
  %263 = fptosi float %262 to i16
  %264 = load ptr, ptr %15, align 8, !tbaa !5
  %265 = load i32, ptr %17, align 4, !tbaa !13
  %266 = load i32, ptr %18, align 4, !tbaa !13
  %267 = add nsw i32 %265, %266
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds i16, ptr %264, i64 %268
  store i16 %263, ptr %269, align 2, !tbaa !27
  br label %270

270:                                              ; preds = %251, %244
  br label %271

271:                                              ; preds = %270, %225
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %18, align 4, !tbaa !13
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %18, align 4, !tbaa !13
  br label %206, !llvm.loop !29

275:                                              ; preds = %212
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %16, align 4, !tbaa !13
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %16, align 4, !tbaa !13
  %279 = load i32, ptr %17, align 4, !tbaa !13
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.MWave, ptr %280, i32 0, i32 0
  %282 = load i32, ptr %281, align 8, !tbaa !9
  %283 = add nsw i32 %279, %282
  store i32 %283, ptr %17, align 4, !tbaa !13
  br label %199, !llvm.loop !31

284:                                              ; preds = %199
  %285 = load ptr, ptr %15, align 8, !tbaa !5
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.MWave, ptr %286, i32 0, i32 1
  %288 = load i32, ptr %287, align 4, !tbaa !12
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.MWave, ptr %289, i32 0, i32 0
  %291 = load i32, ptr %290, align 8, !tbaa !9
  %292 = mul nsw i32 %288, %291
  %293 = sext i32 %292 to i64
  %294 = mul i64 %293, 4
  %295 = load ptr, ptr %11, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.MWAVInfo, ptr %295, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8, !tbaa !20
  %298 = call i64 @fwrite(ptr noundef %285, i64 noundef %294, i64 noundef 1, ptr noundef %297)
  %299 = load ptr, ptr %15, align 8, !tbaa !5
  call void @m_Free(ptr noundef %299)
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.MWave, ptr %300, i32 0, i32 1
  %302 = load i32, ptr %301, align 4, !tbaa !12
  %303 = load ptr, ptr %11, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.MWAVInfo, ptr %303, i32 0, i32 3
  %305 = load i32, ptr %304, align 8, !tbaa !24
  %306 = add nsw i32 %305, %302
  store i32 %306, ptr %304, align 8, !tbaa !24
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %307

307:                                              ; preds = %284, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %308 = load i32, ptr %3, align 4
  ret i32 %308
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !11, i64 0}
!10 = !{!"MWave", !11, i64 0, !11, i64 4, !7, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !6, i64 16}
!17 = !{!"MHandle", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!18 = !{!17, !11, i64 4}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"MWAVInfo", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24}
!22 = !{!21, !11, i64 12}
!23 = !{!21, !11, i64 8}
!24 = !{!21, !11, i64 16}
!25 = !{!21, !11, i64 20}
!26 = !{!21, !6, i64 24}
!27 = !{!28, !28, i64 0}
!28 = !{!"short", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}


; 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"

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 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
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@__FUNCTION__.mWAVWrite = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

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

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #1

declare void @m_Free(ptr noundef) local_unnamed_addr #1

declare ptr @m_PropertyRead(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @mWaveCreate(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @mWaveResample(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @endWAVWrite(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @mWAVWrite(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca float, align 4
  %magicptr = ptrtoint ptr %1 to i64
  switch i64 %magicptr, label %4 [
    i64 -1, label %.thread
    i64 0, label %.thread
  ]

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = icmp eq ptr %5, inttoptr (i64 -1 to ptr)
  br i1 %6, label %.thread, label %7

7:                                                ; preds = %4
  %8 = load i32, ptr %1, align 8, !tbaa !5
  %9 = icmp slt i32 %8, 1
  br i1 %9, label %.thread, label %10

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %1, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !10
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %14, label %.thread

.thread:                                          ; preds = %4, %7, %2, %2, %10
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 310, ptr noundef nonnull @__FUNCTION__.mWAVWrite, ptr noundef nonnull @.str.10) #4
  %.pre = load i32, ptr %1, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %.thread, %10
  %15 = phi i32 [ %.pre, %.thread ], [ %8, %10 ]
  %16 = icmp sgt i32 %15, 2
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 311, ptr noundef nonnull @__FUNCTION__.mWAVWrite, ptr noundef nonnull @.str.10) #4
  br label %18

18:                                               ; preds = %17, %14
  %magicptr95 = ptrtoint ptr %0 to i64
  switch i64 %magicptr95, label %24 [
    i64 -1, label %19
    i64 0, label %19
  ]

19:                                               ; preds = %18, %18
  %20 = icmp eq ptr %0, null
  %21 = icmp eq ptr %0, inttoptr (i64 -1 to ptr)
  %22 = or i1 %20, %21
  %23 = zext i1 %22 to i32
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %23, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef nonnull @__FUNCTION__.mWAVWrite, ptr noundef nonnull @.str.10) #4
  br label %24

24:                                               ; preds = %18, %19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  store float -1.000000e+00, ptr %3, align 4, !tbaa !11
  %25 = call ptr @m_PropertyRead(ptr noundef nonnull %1, ptr noundef nonnull @.str.13, ptr noundef nonnull %3, ptr noundef null) #4
  %26 = call ptr @GetHandle(ptr noundef %0, i32 noundef 32, i32 noundef 1365403440, ptr noundef nonnull @endWAVWrite) #4
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %26, i64 4
  %30 = load volatile i32, ptr %29, align 4, !tbaa !16
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %52

32:                                               ; preds = %24
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = call noalias ptr @fopen(ptr noundef %34, ptr noundef nonnull @.str.15)
  store ptr %35, ptr %28, align 8, !tbaa !18
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 321, ptr noundef nonnull @__FUNCTION__.mWAVWrite, ptr noundef nonnull @.str.12) #4
  br label %38

38:                                               ; preds = %37, %32
  %39 = load float, ptr %3, align 4, !tbaa !11
  %40 = fcmp olt float %39, 0.000000e+00
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 323, ptr noundef nonnull @__FUNCTION__.mWAVWrite, ptr noundef nonnull @.str.14) #4
  %.pre116 = load float, ptr %3, align 4, !tbaa !11
  br label %42

42:                                               ; preds = %41, %38
  %43 = phi float [ %.pre116, %41 ], [ %39, %38 ]
  %44 = load i32, ptr %1, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %28, i64 12
  store i32 %44, ptr %45, align 4, !tbaa !20
  %46 = fptosi float %43 to i32
  %47 = getelementptr inbounds i8, ptr %28, i64 8
  store i32 %46, ptr %47, align 8, !tbaa !21
  %48 = getelementptr inbounds i8, ptr %28, i64 16
  store i32 0, ptr %48, align 8, !tbaa !22
  %49 = getelementptr inbounds i8, ptr %28, i64 20
  store i32 16, ptr %49, align 4, !tbaa !23
  %50 = load ptr, ptr %28, align 8, !tbaa !18
  %51 = call i32 @fseek(ptr noundef %50, i64 noundef 44, i32 noundef 0)
  store volatile i32 1, ptr %29, align 4, !tbaa !16
  br label %52

52:                                               ; preds = %42, %24
  %53 = load i32, ptr %1, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %28, i64 12
  %55 = load i32, ptr %54, align 4, !tbaa !20
  %56 = icmp slt i32 %53, %55
  br i1 %56, label %129, label %57

57:                                               ; preds = %52
  %58 = load float, ptr %3, align 4, !tbaa !11
  %59 = fcmp ogt float %58, 0.000000e+00
  br i1 %59, label %60, label %74

60:                                               ; preds = %57
  %61 = getelementptr inbounds i8, ptr %28, i64 8
  %62 = load i32, ptr %61, align 8, !tbaa !21
  %63 = sitofp i32 %62 to float
  %64 = fcmp une float %58, %63
  br i1 %64, label %65, label %74

65:                                               ; preds = %60
  %66 = getelementptr inbounds i8, ptr %28, i64 24
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %71

69:                                               ; preds = %65
  %70 = call ptr @mWaveCreate(i32 noundef %55, i32 noundef -1, ptr noundef null) #4
  store ptr %70, ptr %66, align 8, !tbaa !24
  br label %71

71:                                               ; preds = %69, %65
  %72 = phi ptr [ %70, %69 ], [ %67, %65 ]
  call void @mWaveResample(ptr noundef nonnull %1, ptr noundef %72, i32 noundef -1, i32 noundef -1) #4
  %73 = load ptr, ptr %66, align 8, !tbaa !24
  %.pre117 = load i32, ptr %73, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %71, %60, %57
  %75 = phi i32 [ %.pre117, %71 ], [ %53, %60 ], [ %53, %57 ]
  %.087 = phi ptr [ %73, %71 ], [ %1, %60 ], [ %1, %57 ]
  %76 = getelementptr inbounds i8, ptr %.087, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !10
  %78 = shl i32 %77, 2
  %79 = mul i32 %78, %75
  %80 = call ptr @m_Malloc(i32 noundef %79) #4
  %81 = load i32, ptr %76, align 4, !tbaa !10
  %82 = icmp sgt i32 %81, 0
  %.pre118 = load i32, ptr %.087, align 8, !tbaa !5
  br i1 %82, label %.preheader.lr.ph, label %._crit_edge104

.preheader.lr.ph:                                 ; preds = %74
  %83 = icmp sgt i32 %.pre118, 0
  %84 = getelementptr inbounds i8, ptr %.087, i64 8
  br i1 %83, label %.preheader.us.preheader, label %._crit_edge104

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %85 = zext nneg i32 %.pre118 to i64
  %wide.trip.count114 = zext nneg i32 %81 to i64
  %xtraiter = and i64 %85, 1
  %86 = icmp eq i32 %.pre118, 1
  %unroll_iter = and i64 %85, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv109 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next110, %._crit_edge.us ]
  %indvars.iv107 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next108, %._crit_edge.us ]
  br i1 %86, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us
  %invariant.gep121.sink = getelementptr inbounds i16, ptr %80, i64 %indvars.iv107
  %invariant.gep121.sink.1 = getelementptr inbounds i16, ptr %80, i64 %indvars.iv107
  br label %87

87:                                               ; preds = %109, %.preheader.us.new
  %indvars.iv = phi i64 [ 0, %.preheader.us.new ], [ %indvars.iv.next.1, %109 ]
  %niter = phi i64 [ 0, %.preheader.us.new ], [ %niter.next.1, %109 ]
  %88 = getelementptr inbounds [32 x ptr], ptr %84, i64 0, i64 %indvars.iv
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  %90 = getelementptr inbounds float, ptr %89, i64 %indvars.iv109
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = fcmp ult float %91, 1.000000e+00
  br i1 %92, label %93, label %98

93:                                               ; preds = %87
  %94 = fcmp ugt float %91, -1.000000e+00
  br i1 %94, label %95, label %98

95:                                               ; preds = %93
  %96 = fmul float %91, 3.276800e+04
  %97 = fptosi float %96 to i16
  br label %98

98:                                               ; preds = %93, %87, %95
  %.sink = phi i16 [ %97, %95 ], [ 32767, %87 ], [ -32768, %93 ]
  %gep122 = getelementptr inbounds i16, ptr %invariant.gep121.sink, i64 %indvars.iv
  store i16 %.sink, ptr %gep122, align 2, !tbaa !26
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %99 = getelementptr inbounds [32 x ptr], ptr %84, i64 0, i64 %indvars.iv.next
  %100 = load ptr, ptr %99, align 8, !tbaa !25
  %101 = getelementptr inbounds float, ptr %100, i64 %indvars.iv109
  %102 = load float, ptr %101, align 4, !tbaa !11
  %103 = fcmp ult float %102, 1.000000e+00
  br i1 %103, label %104, label %109

104:                                              ; preds = %98
  %105 = fcmp ugt float %102, -1.000000e+00
  br i1 %105, label %106, label %109

106:                                              ; preds = %104
  %107 = fmul float %102, 3.276800e+04
  %108 = fptosi float %107 to i16
  br label %109

109:                                              ; preds = %106, %104, %98
  %.sink.1 = phi i16 [ %108, %106 ], [ 32767, %98 ], [ -32768, %104 ]
  %gep122.1 = getelementptr inbounds i16, ptr %invariant.gep121.sink.1, i64 %indvars.iv.next
  store i16 %.sink.1, ptr %gep122.1, align 2, !tbaa !26
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %87, !llvm.loop !28

._crit_edge.us.unr-lcssa:                         ; preds = %109, %.preheader.us
  %indvars.iv.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next.1, %109 ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa
  %110 = getelementptr inbounds [32 x ptr], ptr %84, i64 0, i64 %indvars.iv.unr
  %111 = load ptr, ptr %110, align 8, !tbaa !25
  %112 = getelementptr inbounds float, ptr %111, i64 %indvars.iv109
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = fcmp ult float %113, 1.000000e+00
  br i1 %114, label %115, label %._crit_edge.us.epilog-lcssa

115:                                              ; preds = %.epil.preheader
  %116 = fcmp ugt float %113, -1.000000e+00
  br i1 %116, label %117, label %._crit_edge.us.epilog-lcssa

117:                                              ; preds = %115
  %118 = fmul float %113, 3.276800e+04
  %119 = fptosi float %118 to i16
  br label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %117, %115, %.epil.preheader
  %.sink.epil = phi i16 [ %119, %117 ], [ 32767, %.epil.preheader ], [ -32768, %115 ]
  %invariant.gep121.sink.epil = getelementptr inbounds i16, ptr %80, i64 %indvars.iv107
  %gep122.epil = getelementptr inbounds i16, ptr %invariant.gep121.sink.epil, i64 %indvars.iv.unr
  store i16 %.sink.epil, ptr %gep122.epil, align 2, !tbaa !26
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, %85
  %exitcond115.not = icmp eq i64 %indvars.iv.next110, %wide.trip.count114
  br i1 %exitcond115.not, label %._crit_edge104, label %.preheader.us, !llvm.loop !30

._crit_edge104:                                   ; preds = %._crit_edge.us, %.preheader.lr.ph, %74
  %120 = mul nsw i32 %.pre118, %81
  %121 = sext i32 %120 to i64
  %122 = shl nsw i64 %121, 2
  %123 = load ptr, ptr %28, align 8, !tbaa !18
  %124 = call i64 @fwrite(ptr noundef %80, i64 noundef %122, i64 noundef 1, ptr noundef %123)
  call void @m_Free(ptr noundef %80) #4
  %125 = load i32, ptr %76, align 4, !tbaa !10
  %126 = getelementptr inbounds i8, ptr %28, i64 16
  %127 = load i32, ptr %126, align 8, !tbaa !22
  %128 = add nsw i32 %127, %125
  store i32 %128, ptr %126, align 8, !tbaa !22
  br label %129

129:                                              ; preds = %52, %._crit_edge104
  %.086 = phi i32 [ 0, %._crit_edge104 ], [ -1, %52 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret i32 %.086
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = !{!"MWave", !7, i64 0, !7, i64 4, !8, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!14, !15, i64 16}
!14 = !{!"MHandle", !7, i64 0, !7, i64 4, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!14, !7, i64 4}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !15, i64 0}
!19 = !{!"MWAVInfo", !15, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !15, i64 24}
!20 = !{!19, !7, i64 12}
!21 = !{!19, !7, i64 8}
!22 = !{!19, !7, i64 16}
!23 = !{!19, !7, i64 20}
!24 = !{!19, !15, i64 24}
!25 = !{!15, !15, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"short", !8, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}


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