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

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

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@g_mel_low_frequency = external hidden global i32, align 4
@g_mel_high_frequency = external hidden global i32, align 4
@g_mel_num = external hidden global i32, align 4
@g_mel_para = external hidden global [128 x %struct.TriangleFilter], align 16
@__FUNCTION__.mWaveMelFilterBank = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nounwind uwtable
declare dso_local void @GetMelPara(i32 noundef, i32 noundef) #3

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

26:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %33, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = ptrtoint ptr %30 to i64
  %32 = icmp eq i64 %31, -1
  br i1 %32, label %33, label %34

33:                                               ; preds = %29, %26
  br label %58

34:                                               ; preds = %29
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.MWave, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds [32 x ptr], ptr %36, i64 0, i64 0
  %38 = icmp eq ptr %37, null
  br i1 %38, label %55, label %39

39:                                               ; preds = %34
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.MWave, ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds [32 x ptr], ptr %41, i64 0, i64 0
  %43 = ptrtoint ptr %42 to i64
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %55, label %45

45:                                               ; preds = %39
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.MWave, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp sle i32 %48, 0
  br i1 %49, label %55, label %50

50:                                               ; preds = %45
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.MWave, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !13
  %54 = icmp sle i32 %53, 0
  br label %55

55:                                               ; preds = %50, %45, %39, %34
  %56 = phi i1 [ true, %45 ], [ true, %39 ], [ true, %34 ], [ %54, %50 ]
  %57 = zext i1 %56 to i32
  br label %58

58:                                               ; preds = %55, %33
  %59 = phi i32 [ 1, %33 ], [ %57, %55 ]
  store i32 %59, ptr %13, align 4, !tbaa !9
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load i32, ptr %13, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %63, i32 noundef -1, ptr noundef @.str, i32 noundef 148, ptr noundef @__FUNCTION__.mWaveMelFilterBank, ptr noundef @.str.1)
  br label %64

64:                                               ; preds = %62, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 -1, ptr %14, align 4, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = call ptr @m_PropertyRead(ptr noundef %67, ptr noundef @.str.2, ptr noundef %14, ptr noundef null)
  br label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 2
  %72 = zext i1 %71 to i32
  store i32 %72, ptr %15, align 4, !tbaa !9
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %69
  %76 = load i32, ptr %15, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %76, i32 noundef -1, ptr noundef @.str, i32 noundef 150, ptr noundef @__FUNCTION__.mWaveMelFilterBank, ptr noundef @.str.3)
  br label %77

77:                                               ; preds = %75, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = icmp eq ptr %81, null
  br i1 %82, label %87, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = ptrtoint ptr %84 to i64
  %86 = icmp eq i64 %85, -1
  br label %87

87:                                               ; preds = %83, %80
  %88 = phi i1 [ true, %80 ], [ %86, %83 ]
  %89 = zext i1 %88 to i32
  store i32 %89, ptr %16, align 4, !tbaa !9
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %87
  %93 = load i32, ptr %16, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %93, i32 noundef -1, ptr noundef @.str, i32 noundef 151, ptr noundef @__FUNCTION__.mWaveMelFilterBank, ptr noundef @.str.1)
  br label %94

94:                                               ; preds = %92, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store float -1.000000e+00, ptr %17, align 4, !tbaa !14
  br label %97

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = call ptr @m_PropertyRead(ptr noundef %98, ptr noundef @.str.5, ptr noundef %17, ptr noundef null)
  %100 = icmp eq ptr %99, null
  %101 = zext i1 %100 to i32
  store i32 %101, ptr %18, align 4, !tbaa !9
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %97
  %105 = load i32, ptr %18, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %105, i32 noundef -1, ptr noundef @.str, i32 noundef 152, ptr noundef @__FUNCTION__.mWaveMelFilterBank, ptr noundef @.str.1)
  br label %106

106:                                              ; preds = %104, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = icmp eq i32 %109, -1
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %111, %108
  br label %113

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = icmp slt i32 %114, 0
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %19, align 4, !tbaa !9
  %117 = load i32, ptr %19, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %121

119:                                              ; preds = %113
  %120 = load i32, ptr %19, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %120, i32 noundef -1, ptr noundef @.str, i32 noundef 153, ptr noundef @__FUNCTION__.mWaveMelFilterBank, ptr noundef @.str.1)
  br label %121

121:                                              ; preds = %119, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %8, align 4, !tbaa !9
  %125 = icmp eq i32 %124, -1
  br i1 %125, label %126, label %130

126:                                              ; preds = %123
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.MWave, ptr %127, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !13
  store i32 %129, ptr %8, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %126, %123
  br label %131

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.MWave, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !13
  %136 = icmp sgt i32 %132, %135
  %137 = zext i1 %136 to i32
  store i32 %137, ptr %20, align 4, !tbaa !9
  %138 = load i32, ptr %20, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %142

140:                                              ; preds = %131
  %141 = load i32, ptr %20, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %141, i32 noundef -1, ptr noundef @.str, i32 noundef 154, ptr noundef @__FUNCTION__.mWaveMelFilterBank, ptr noundef @.str.1)
  br label %142

142:                                              ; preds = %140, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = icmp sgt i32 %146, 128
  br i1 %147, label %151, label %148

148:                                              ; preds = %145
  %149 = load i32, ptr %9, align 4, !tbaa !9
  %150 = icmp slt i32 %149, 0
  br label %151

151:                                              ; preds = %148, %145
  %152 = phi i1 [ true, %145 ], [ %150, %148 ]
  %153 = zext i1 %152 to i32
  store i32 %153, ptr %21, align 4, !tbaa !9
  %154 = load i32, ptr %21, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %158

156:                                              ; preds = %151
  %157 = load i32, ptr %21, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %157, i32 noundef -1, ptr noundef @.str, i32 noundef 156, ptr noundef @__FUNCTION__.mWaveMelFilterBank, ptr noundef @.str.4)
  br label %158

158:                                              ; preds = %156, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr @g_mel_low_frequency, align 4, !tbaa !9
  %162 = load i32, ptr %7, align 4, !tbaa !9
  %163 = icmp ne i32 %161, %162
  br i1 %163, label %172, label %164

164:                                              ; preds = %160
  %165 = load i32, ptr @g_mel_high_frequency, align 4, !tbaa !9
  %166 = load i32, ptr %8, align 4, !tbaa !9
  %167 = icmp ne i32 %165, %166
  br i1 %167, label %172, label %168

168:                                              ; preds = %164
  %169 = load i32, ptr @g_mel_num, align 4, !tbaa !9
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = icmp ne i32 %169, %170
  br i1 %171, label %172, label %181

172:                                              ; preds = %168, %164, %160
  %173 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %173, ptr @g_mel_low_frequency, align 4, !tbaa !9
  %174 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %174, ptr @g_mel_high_frequency, align 4, !tbaa !9
  %175 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %175, ptr @g_mel_num, align 4, !tbaa !9
  %176 = load float, ptr %17, align 4, !tbaa !14
  %177 = fptosi float %176 to i32
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.MWave, ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 4, !tbaa !13
  call void @GetMelPara(i32 noundef %177, i32 noundef %180)
  br label %181

181:                                              ; preds = %172, %168
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %296, %181
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.MWave, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 8, !tbaa !11
  %187 = icmp slt i32 %183, %186
  br i1 %187, label %188, label %299

188:                                              ; preds = %182
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %292, %188
  %190 = load i32, ptr %11, align 4, !tbaa !9
  %191 = load i32, ptr %9, align 4, !tbaa !9
  %192 = icmp slt i32 %190, %191
  br i1 %192, label %193, label %295

193:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %194 = load i32, ptr %11, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %195
  %197 = getelementptr inbounds %struct.TriangleFilter, ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 8, !tbaa !16
  store i32 %198, ptr %22, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %200
  %202 = getelementptr inbounds %struct.TriangleFilter, ptr %201, i32 0, i32 1
  %203 = load i32, ptr %202, align 4, !tbaa !18
  %204 = sub nsw i32 %203, 1
  store i32 %204, ptr %23, align 4, !tbaa !9
  store float 0.000000e+00, ptr %25, align 4, !tbaa !14
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %239, %193
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = load i32, ptr %22, align 4, !tbaa !9
  %208 = icmp sgt i32 %206, %207
  br i1 %208, label %209, label %242

209:                                              ; preds = %205
  %210 = load float, ptr %25, align 4, !tbaa !14
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.MWave, ptr %211, i32 0, i32 2
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [32 x ptr], ptr %212, i64 0, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = load i32, ptr %22, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds float, ptr %216, i64 %218
  %220 = load float, ptr %219, align 4, !tbaa !14
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.MWave, ptr %221, i32 0, i32 2
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [32 x ptr], ptr %222, i64 0, i64 %224
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  %227 = load i32, ptr %23, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds float, ptr %226, i64 %228
  %230 = load float, ptr %229, align 4, !tbaa !14
  %231 = fadd float %220, %230
  %232 = load i32, ptr %24, align 4, !tbaa !9
  %233 = sitofp i32 %232 to float
  %234 = call float @llvm.fmuladd.f32(float %231, float %233, float %210)
  store float %234, ptr %25, align 4, !tbaa !14
  %235 = load i32, ptr %22, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %22, align 4, !tbaa !9
  %237 = load i32, ptr %23, align 4, !tbaa !9
  %238 = sub nsw i32 %237, 1
  store i32 %238, ptr %23, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %209
  %240 = load i32, ptr %24, align 4, !tbaa !9
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %24, align 4, !tbaa !9
  br label %205, !llvm.loop !19

242:                                              ; preds = %205
  %243 = load i32, ptr %22, align 4, !tbaa !9
  %244 = load i32, ptr %23, align 4, !tbaa !9
  %245 = icmp eq i32 %243, %244
  br i1 %245, label %246, label %275

246:                                              ; preds = %242
  %247 = load float, ptr %25, align 4, !tbaa !14
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.MWave, ptr %248, i32 0, i32 2
  %250 = load i32, ptr %12, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [32 x ptr], ptr %249, i64 0, i64 %251
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  %254 = load i32, ptr %22, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds float, ptr %253, i64 %255
  %257 = load float, ptr %256, align 4, !tbaa !14
  %258 = load i32, ptr %24, align 4, !tbaa !9
  %259 = sitofp i32 %258 to float
  %260 = call float @llvm.fmuladd.f32(float %257, float %259, float %247)
  store float %260, ptr %25, align 4, !tbaa !14
  %261 = load float, ptr %25, align 4, !tbaa !14
  %262 = load i32, ptr %24, align 4, !tbaa !9
  %263 = load i32, ptr %24, align 4, !tbaa !9
  %264 = mul nsw i32 %262, %263
  %265 = sitofp i32 %264 to float
  %266 = fdiv float %261, %265
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  %268 = load i32, ptr %12, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds ptr, ptr %267, i64 %269
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds float, ptr %271, i64 %273
  store float %266, ptr %274, align 4, !tbaa !14
  br label %291

275:                                              ; preds = %242
  %276 = load float, ptr %25, align 4, !tbaa !14
  %277 = load i32, ptr %24, align 4, !tbaa !9
  %278 = load i32, ptr %24, align 4, !tbaa !9
  %279 = sub nsw i32 %278, 1
  %280 = mul nsw i32 %277, %279
  %281 = sitofp i32 %280 to float
  %282 = fdiv float %276, %281
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = load i32, ptr %12, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds ptr, ptr %283, 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 %282, ptr %290, align 4, !tbaa !14
  br label %291

291:                                              ; preds = %275, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %292

292:                                              ; preds = %291
  %293 = load i32, ptr %11, align 4, !tbaa !9
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %11, align 4, !tbaa !9
  br label %189, !llvm.loop !21

295:                                              ; preds = %189
  br label %296

296:                                              ; preds = %295
  %297 = load i32, ptr %12, align 4, !tbaa !9
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %12, align 4, !tbaa !9
  br label %182, !llvm.loop !22

299:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !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, !10, i64 0}
!12 = !{!"MWave", !10, i64 0, !10, i64 4, !7, i64 8}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"TriangleFilter", !10, i64 0, !10, i64 4}
!18 = !{!17, !10, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


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

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@g_mel_low_frequency = external hidden local_unnamed_addr global i32, align 4
@g_mel_high_frequency = external hidden local_unnamed_addr global i32, align 4
@g_mel_num = external hidden local_unnamed_addr global i32, align 4
@g_mel_para = external hidden local_unnamed_addr global [128 x %struct.TriangleFilter], align 16
@__FUNCTION__.mWaveMelFilterBank = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nounwind uwtable
declare dso_local void @GetMelPara(i32 noundef, i32 noundef) local_unnamed_addr #3

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

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = icmp eq ptr %9, inttoptr (i64 -1 to ptr)
  br i1 %10, label %.thread, label %11

11:                                               ; preds = %8
  %12 = load i32, ptr %0, align 8, !tbaa !5
  %13 = icmp slt i32 %12, 1
  br i1 %13, label %.thread, label %14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !10
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %18, label %.thread

.thread:                                          ; preds = %8, %11, %5, %5, %14
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 148, ptr noundef nonnull @__FUNCTION__.mWaveMelFilterBank, ptr noundef nonnull @.str.1) #4
  br label %18

18:                                               ; preds = %.thread, %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 -1, ptr %6, align 4, !tbaa !11
  %19 = call ptr @m_PropertyRead(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull %6, ptr noundef null) #4
  %20 = load i32, ptr %6, align 4, !tbaa !11
  %.not = icmp eq i32 %20, 2
  br i1 %.not, label %22, label %21

21:                                               ; preds = %18
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 150, ptr noundef nonnull @__FUNCTION__.mWaveMelFilterBank, ptr noundef nonnull @.str.3) #4
  br label %22

22:                                               ; preds = %21, %18
  %magicptr97 = ptrtoint ptr %4 to i64
  switch i64 %magicptr97, label %28 [
    i64 -1, label %23
    i64 0, label %23
  ]

23:                                               ; preds = %22, %22
  %24 = icmp eq ptr %4, null
  %25 = icmp eq ptr %4, inttoptr (i64 -1 to ptr)
  %26 = or i1 %24, %25
  %27 = zext i1 %26 to i32
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %27, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 151, ptr noundef nonnull @__FUNCTION__.mWaveMelFilterBank, ptr noundef nonnull @.str.1) #4
  br label %28

28:                                               ; preds = %22, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  store float -1.000000e+00, ptr %7, align 4, !tbaa !12
  %29 = call ptr @m_PropertyRead(ptr noundef %0, ptr noundef nonnull @.str.5, ptr noundef nonnull %7, ptr noundef null) #4
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

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

32:                                               ; preds = %31, %28
  %33 = icmp eq i32 %1, -1
  %spec.store.select = select i1 %33, i32 0, i32 %1
  %34 = icmp slt i32 %spec.store.select, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 153, ptr noundef nonnull @__FUNCTION__.mWaveMelFilterBank, ptr noundef nonnull @.str.1) #4
  br label %36

36:                                               ; preds = %35, %32
  %37 = icmp eq i32 %2, -1
  %38 = getelementptr inbounds i8, ptr %0, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !10
  %40 = getelementptr inbounds i8, ptr %0, i64 4
  br i1 %37, label %.thread132, label %41

41:                                               ; preds = %36
  %42 = icmp slt i32 %39, %2
  br i1 %42, label %43, label %.thread132

43:                                               ; preds = %41
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 154, ptr noundef nonnull @__FUNCTION__.mWaveMelFilterBank, ptr noundef nonnull @.str.1) #4
  br label %.thread132

.thread132:                                       ; preds = %36, %43, %41
  %.088134 = phi i32 [ %2, %43 ], [ %2, %41 ], [ %39, %36 ]
  %44 = icmp ugt i32 %3, 128
  br i1 %44, label %45, label %46

45:                                               ; preds = %.thread132
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 156, ptr noundef nonnull @__FUNCTION__.mWaveMelFilterBank, ptr noundef nonnull @.str.4) #4
  br label %46

46:                                               ; preds = %45, %.thread132
  %47 = load i32, ptr @g_mel_low_frequency, align 4, !tbaa !11
  %.not94 = icmp eq i32 %47, %spec.store.select
  %48 = load i32, ptr @g_mel_high_frequency, align 4
  %.not95 = icmp eq i32 %48, %.088134
  %or.cond = select i1 %.not94, i1 %.not95, i1 false
  %49 = load i32, ptr @g_mel_num, align 4
  %.not96 = icmp eq i32 %49, %3
  %or.cond98 = select i1 %or.cond, i1 %.not96, i1 false
  br i1 %or.cond98, label %54, label %50

50:                                               ; preds = %46
  store i32 %spec.store.select, ptr @g_mel_low_frequency, align 4, !tbaa !11
  store i32 %.088134, ptr @g_mel_high_frequency, align 4, !tbaa !11
  store i32 %3, ptr @g_mel_num, align 4, !tbaa !11
  %51 = load float, ptr %7, align 4, !tbaa !12
  %52 = fptosi float %51 to i32
  %53 = load i32, ptr %40, align 4, !tbaa !10
  call void @GetMelPara(i32 noundef %52, i32 noundef %53)
  br label %54

54:                                               ; preds = %46, %50
  %55 = load i32, ptr %0, align 8, !tbaa !5
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.preheader.lr.ph, label %._crit_edge115

.preheader.lr.ph:                                 ; preds = %54
  %57 = icmp sgt i32 %3, 0
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  br i1 %57, label %.preheader.us.preheader, label %._crit_edge115

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count130 = zext nneg i32 %55 to i64
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge113.us
  %indvars.iv127 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next128, %._crit_edge113.us ]
  %59 = getelementptr inbounds [32 x ptr], ptr %58, i64 0, i64 %indvars.iv127
  %60 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv127
  %61 = load ptr, ptr %60, align 8, !tbaa !14
  br label %62

62:                                               ; preds = %.preheader.us, %86
  %indvars.iv124 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next125, %86 ]
  %63 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %indvars.iv124
  %64 = load i32, ptr %63, align 8, !tbaa !16
  %65 = getelementptr inbounds i8, ptr %63, i64 4
  %66 = load i32, ptr %65, align 4, !tbaa !18
  %.086103.us = add nsw i32 %66, -1
  %67 = icmp sgt i32 %.086103.us, %64
  br i1 %67, label %.lr.ph.us, label %._crit_edge.us

._crit_edge.us.loopexit:                          ; preds = %88
  %68 = trunc nsw i64 %indvars.iv.next120 to i32
  %69 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.loopexit, %62
  %.087.lcssa.us = phi i32 [ %64, %62 ], [ %68, %._crit_edge.us.loopexit ]
  %.085.lcssa.us = phi i32 [ 1, %62 ], [ %96, %._crit_edge.us.loopexit ]
  %.0.lcssa.us = phi float [ 0.000000e+00, %62 ], [ %95, %._crit_edge.us.loopexit ]
  %.086.lcssa.us = phi i32 [ %.086103.us, %62 ], [ %69, %._crit_edge.us.loopexit ]
  %70 = icmp eq i32 %.087.lcssa.us, %.086.lcssa.us
  br i1 %70, label %76, label %71

71:                                               ; preds = %._crit_edge.us
  %72 = add nsw i32 %.085.lcssa.us, -1
  %73 = mul nsw i32 %72, %.085.lcssa.us
  %74 = sitofp i32 %73 to float
  %75 = fdiv float %.0.lcssa.us, %74
  br label %86

76:                                               ; preds = %._crit_edge.us
  %77 = load ptr, ptr %59, align 8, !tbaa !14
  %78 = sext i32 %.087.lcssa.us to i64
  %79 = getelementptr inbounds float, ptr %77, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !12
  %81 = uitofp nneg i32 %.085.lcssa.us to float
  %82 = call float @llvm.fmuladd.f32(float %80, float %81, float %.0.lcssa.us)
  %83 = mul nuw nsw i32 %.085.lcssa.us, %.085.lcssa.us
  %84 = uitofp nneg i32 %83 to float
  %85 = fdiv float %82, %84
  br label %86

86:                                               ; preds = %76, %71
  %.sink = phi float [ %85, %76 ], [ %75, %71 ]
  %87 = getelementptr inbounds float, ptr %61, i64 %indvars.iv124
  store float %.sink, ptr %87, align 4, !tbaa !12
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge113.us, label %62, !llvm.loop !19

88:                                               ; preds = %.lr.ph.us, %88
  %indvars.iv119 = phi i64 [ %101, %.lr.ph.us ], [ %indvars.iv.next120, %88 ]
  %indvars.iv = phi i64 [ %100, %.lr.ph.us ], [ %indvars.iv.next, %88 ]
  %.0106.us = phi float [ 0.000000e+00, %.lr.ph.us ], [ %95, %88 ]
  %.085105.us = phi i32 [ 1, %.lr.ph.us ], [ %96, %88 ]
  %89 = getelementptr inbounds float, ptr %98, i64 %indvars.iv119
  %90 = load float, ptr %89, align 4, !tbaa !12
  %91 = getelementptr inbounds float, ptr %98, i64 %indvars.iv
  %92 = load float, ptr %91, align 4, !tbaa !12
  %93 = fadd float %90, %92
  %94 = uitofp nneg i32 %.085105.us to float
  %95 = call float @llvm.fmuladd.f32(float %93, float %94, float %.0106.us)
  %indvars.iv.next120 = add nsw i64 %indvars.iv119, 1
  %96 = add nuw nsw i32 %.085105.us, 1
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %97 = icmp sgt i64 %indvars.iv.next, %indvars.iv.next120
  br i1 %97, label %88, label %._crit_edge.us.loopexit, !llvm.loop !21

.lr.ph.us:                                        ; preds = %62
  %98 = load ptr, ptr %59, align 8, !tbaa !14
  %99 = sext i32 %66 to i64
  %100 = add nsw i64 %99, -1
  %101 = sext i32 %64 to i64
  br label %88

._crit_edge113.us:                                ; preds = %86
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next128, %wide.trip.count130
  br i1 %exitcond131.not, label %._crit_edge115, label %.preheader.us, !llvm.loop !22

._crit_edge115:                                   ; preds = %._crit_edge113.us, %.preheader.lr.ph, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  ret void
}

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"TriangleFilter", !7, i64 0, !7, i64 4}
!18 = !{!17, !7, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


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