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

; 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] }

@.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
@__FUNCTION__.mWaveIntegerResample = external hidden unnamed_addr constant [21 x i8], align 1
@morn_resample_n = external hidden global float, align 4
@morn_resample_wsum = external hidden global float, align 4
@morn_resample_w = external hidden global [11 x float], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @mWaveHalfResample(ptr noundef, 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 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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mWaveIntegerResample(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = icmp eq i32 %19, 2
  br i1 %20, label %21, label %24

21:                                               ; preds = %3
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  call void @mWaveHalfResample(ptr noundef %22, ptr noundef %23)
  store i32 1, ptr %9, align 4
  br label %399

24:                                               ; preds = %3
  br label %25

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

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

32:                                               ; preds = %28, %25
  br label %57

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

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

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

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

54:                                               ; preds = %49, %44, %38, %33
  %55 = phi i1 [ true, %44 ], [ true, %38 ], [ true, %33 ], [ %53, %49 ]
  %56 = zext i1 %55 to i32
  br label %57

57:                                               ; preds = %54, %32
  %58 = phi i32 [ 1, %32 ], [ %56, %54 ]
  store i32 %58, ptr %10, align 4, !tbaa !9
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = load i32, ptr %10, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %62, i32 noundef -1, ptr noundef @.str, i32 noundef 63, ptr noundef @__FUNCTION__.mWaveIntegerResample, ptr noundef @.str.1)
  br label %63

63:                                               ; preds = %61, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = icmp eq ptr %66, null
  br i1 %67, label %72, label %68

68:                                               ; preds = %65
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = ptrtoint ptr %69 to i64
  %71 = icmp eq i64 %70, -1
  br i1 %71, label %72, label %74

72:                                               ; preds = %68, %65
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %73, ptr %5, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %72, %68
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = icmp eq ptr %75, %76
  br i1 %77, label %78, label %82

78:                                               ; preds = %74
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = icmp sle i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  store i32 1, ptr %9, align 4
  br label %399

82:                                               ; preds = %78, %74
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = icmp sle i32 %83, 1
  br i1 %84, label %85, label %95

85:                                               ; preds = %82
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = icmp ne ptr %86, %87
  br i1 %88, label %89, label %95

89:                                               ; preds = %85
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.MWave, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !13
  call void @mWaveCut(ptr noundef %90, ptr noundef %91, i32 noundef 0, i32 noundef %94)
  store i32 1, ptr %9, align 4
  br label %399

95:                                               ; preds = %85, %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.MWave, ptr %96, i32 0, i32 1
  %98 = load i32, ptr %97, align 4, !tbaa !13
  store i32 %98, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = sitofp i32 %99 to float
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = sitofp i32 %101 to float
  %103 = fdiv float %100, %102
  %104 = fptosi float %103 to i32
  store i32 %104, ptr %12, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = icmp sle i32 %106, 0
  br i1 %107, label %111, label %108

108:                                              ; preds = %105
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = icmp sle i32 %109, 1
  br label %111

111:                                              ; preds = %108, %105
  %112 = phi i1 [ true, %105 ], [ %110, %108 ]
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %13, align 4, !tbaa !9
  %114 = load i32, ptr %13, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %111
  %117 = load i32, ptr %13, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %117, i32 noundef -1, ptr noundef @.str, i32 noundef 70, ptr noundef @__FUNCTION__.mWaveIntegerResample, ptr noundef @.str.1)
  br label %118

118:                                              ; preds = %116, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store float 0.000000e+00, ptr %14, align 4, !tbaa !14
  br i1 false, label %121, label %125

121:                                              ; preds = %120
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = call ptr @m_PropertyRead(ptr noundef %122, ptr noundef @.str.2, ptr noundef null, ptr noundef null)
  %124 = icmp ne ptr %123, null
  br i1 %124, label %136, label %143

125:                                              ; preds = %120
  br i1 true, label %126, label %130

126:                                              ; preds = %125
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = call ptr @m_PropertyRead(ptr noundef %127, ptr noundef @.str.2, ptr noundef %14, ptr noundef null)
  %129 = icmp ne ptr %128, null
  br i1 %129, label %136, label %143

130:                                              ; preds = %125
  br i1 false, label %131, label %135

131:                                              ; preds = %130
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = call ptr @m_PropertyRead(ptr noundef %132, ptr noundef @.str.2, ptr noundef %14, ptr noundef inttoptr (i64 -1 to ptr))
  %134 = icmp ne ptr %133, null
  br i1 %134, label %136, label %143

135:                                              ; preds = %130
  br i1 false, label %136, label %143

136:                                              ; preds = %135, %131, %126, %121
  %137 = load i32, ptr %6, align 4, !tbaa !9
  %138 = sitofp i32 %137 to float
  %139 = load float, ptr %14, align 4, !tbaa !14
  %140 = fdiv float %139, %138
  store float %140, ptr %14, align 4, !tbaa !14
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = call ptr @m_PropertyWrite(ptr noundef %141, ptr noundef @.str.2, ptr noundef %14, i32 noundef 4)
  br label %143

143:                                              ; preds = %136, %135, %131, %126, %121
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.MWave, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !11
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.MWave, ptr %149, i32 0, i32 2
  %151 = getelementptr inbounds [32 x ptr], ptr %150, i64 0, i64 0
  call void @mWaveRedefine(ptr noundef %144, i32 noundef %147, i32 noundef %148, ptr noundef %151)
  %152 = load i32, ptr %6, align 4, !tbaa !9
  %153 = sitofp i32 %152 to float
  %154 = load float, ptr @morn_resample_n, align 4, !tbaa !14
  %155 = fcmp une float %153, %154
  br i1 %155, label %156, label %190

156:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !16
  store float 0.000000e+00, ptr @morn_resample_wsum, align 4, !tbaa !14
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %180, %156
  %158 = load i32, ptr %7, align 4, !tbaa !9
  %159 = icmp sle i32 %158, 10
  br i1 %159, label %160, label %183

160:                                              ; preds = %157
  %161 = load double, ptr %15, align 8, !tbaa !16
  %162 = load i32, ptr %6, align 4, !tbaa !9
  %163 = sitofp i32 %162 to double
  %164 = fdiv double 0x400921FB54442D18, %163
  %165 = fadd double %161, %164
  store double %165, ptr %15, align 8, !tbaa !16
  %166 = load double, ptr %15, align 8, !tbaa !16
  %167 = call double @sin(double noundef %166) #5
  %168 = load double, ptr %15, align 8, !tbaa !16
  %169 = fdiv double %167, %168
  %170 = fptrunc double %169 to float
  %171 = load i32, ptr %7, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [11 x float], ptr @morn_resample_w, i64 0, i64 %172
  store float %170, ptr %173, align 4, !tbaa !14
  %174 = load float, ptr @morn_resample_wsum, align 4, !tbaa !14
  %175 = load i32, ptr %7, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [11 x float], ptr @morn_resample_w, i64 0, i64 %176
  %178 = load float, ptr %177, align 4, !tbaa !14
  %179 = fadd float %174, %178
  store float %179, ptr @morn_resample_wsum, align 4, !tbaa !14
  br label %180

180:                                              ; preds = %160
  %181 = load i32, ptr %7, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %7, align 4, !tbaa !9
  br label %157, !llvm.loop !18

183:                                              ; preds = %157
  %184 = load float, ptr @morn_resample_wsum, align 4, !tbaa !14
  %185 = load float, ptr @morn_resample_wsum, align 4, !tbaa !14
  %186 = fadd float %184, %185
  %187 = fadd float %186, 1.000000e+00
  store float %187, ptr @morn_resample_wsum, align 4, !tbaa !14
  %188 = load i32, ptr %6, align 4, !tbaa !9
  %189 = sitofp i32 %188 to float
  store float %189, ptr @morn_resample_n, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %190

190:                                              ; preds = %183, %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %395, %190
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.MWave, ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 8, !tbaa !11
  %196 = icmp slt i32 %192, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %191
  store i32 9, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %398

198:                                              ; preds = %191
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.MWave, ptr %199, i32 0, i32 2
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [32 x ptr], ptr %200, i64 0, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = getelementptr inbounds float, ptr %204, i64 0
  %206 = load float, ptr %205, align 4, !tbaa !14
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.MWave, ptr %207, i32 0, i32 2
  %209 = load i32, ptr %16, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [32 x ptr], ptr %208, i64 0, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = getelementptr inbounds float, ptr %212, i64 0
  store float %206, ptr %213, align 4, !tbaa !14
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.MWave, ptr %214, i32 0, i32 2
  %216 = load i32, ptr %16, align 4, !tbaa !9
  %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 %6, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds float, ptr %219, i64 %221
  %223 = load float, ptr %222, align 4, !tbaa !14
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.MWave, ptr %224, i32 0, i32 2
  %226 = load i32, ptr %16, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [32 x ptr], ptr %225, i64 0, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = getelementptr inbounds float, ptr %229, i64 1
  store float %223, ptr %230, align 4, !tbaa !14
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.MWave, ptr %231, i32 0, i32 2
  %233 = load i32, ptr %16, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [32 x ptr], ptr %232, i64 0, i64 %234
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = load i32, ptr %6, align 4, !tbaa !9
  %238 = load i32, ptr %6, align 4, !tbaa !9
  %239 = add nsw i32 %237, %238
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds float, ptr %236, i64 %240
  %242 = load float, ptr %241, align 4, !tbaa !14
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.MWave, ptr %243, i32 0, i32 2
  %245 = load i32, ptr %16, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [32 x ptr], ptr %244, i64 0, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = getelementptr inbounds float, ptr %248, i64 2
  store float %242, ptr %249, align 4, !tbaa !14
  store i32 3, ptr %7, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %320, %198
  %251 = load i32, ptr %7, align 4, !tbaa !9
  %252 = load i32, ptr %12, align 4, !tbaa !9
  %253 = sub nsw i32 %252, 3
  %254 = icmp slt i32 %251, %253
  br i1 %254, label %255, label %323

255:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %256 = load i32, ptr %6, align 4, !tbaa !9
  %257 = load i32, ptr %7, align 4, !tbaa !9
  %258 = mul nsw i32 %256, %257
  store i32 %258, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.MWave, ptr %259, i32 0, i32 2
  %261 = load i32, ptr %16, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [32 x ptr], ptr %260, i64 0, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = load i32, ptr %17, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds float, ptr %264, i64 %266
  %268 = load float, ptr %267, align 4, !tbaa !14
  store float %268, ptr %18, align 4, !tbaa !14
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %269

269:                                              ; preds = %304, %255
  %270 = load i32, ptr %8, align 4, !tbaa !9
  %271 = icmp sle i32 %270, 10
  br i1 %271, label %272, label %307

272:                                              ; preds = %269
  %273 = load float, ptr %18, align 4, !tbaa !14
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.MWave, ptr %274, i32 0, i32 2
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [32 x ptr], ptr %275, i64 0, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !5
  %280 = load i32, ptr %17, align 4, !tbaa !9
  %281 = load i32, ptr %8, align 4, !tbaa !9
  %282 = sub nsw i32 %280, %281
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds float, ptr %279, i64 %283
  %285 = load float, ptr %284, align 4, !tbaa !14
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.MWave, ptr %286, i32 0, i32 2
  %288 = load i32, ptr %16, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [32 x ptr], ptr %287, i64 0, i64 %289
  %291 = load ptr, ptr %290, align 8, !tbaa !5
  %292 = load i32, ptr %17, align 4, !tbaa !9
  %293 = load i32, ptr %8, align 4, !tbaa !9
  %294 = add nsw i32 %292, %293
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds float, ptr %291, i64 %295
  %297 = load float, ptr %296, align 4, !tbaa !14
  %298 = fadd float %285, %297
  %299 = load i32, ptr %8, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [11 x float], ptr @morn_resample_w, i64 0, i64 %300
  %302 = load float, ptr %301, align 4, !tbaa !14
  %303 = call float @llvm.fmuladd.f32(float %298, float %302, float %273)
  store float %303, ptr %18, align 4, !tbaa !14
  br label %304

304:                                              ; preds = %272
  %305 = load i32, ptr %8, align 4, !tbaa !9
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %8, align 4, !tbaa !9
  br label %269, !llvm.loop !20

307:                                              ; preds = %269
  %308 = load float, ptr %18, align 4, !tbaa !14
  %309 = load float, ptr @morn_resample_wsum, align 4, !tbaa !14
  %310 = fdiv float %308, %309
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.MWave, ptr %311, i32 0, i32 2
  %313 = load i32, ptr %16, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [32 x ptr], ptr %312, i64 0, i64 %314
  %316 = load ptr, ptr %315, align 8, !tbaa !5
  %317 = load i32, ptr %7, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds float, ptr %316, i64 %318
  store float %310, ptr %319, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %320

320:                                              ; preds = %307
  %321 = load i32, ptr %7, align 4, !tbaa !9
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %7, align 4, !tbaa !9
  br label %250, !llvm.loop !21

323:                                              ; preds = %250
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.MWave, ptr %324, i32 0, i32 2
  %326 = load i32, ptr %16, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [32 x ptr], ptr %325, i64 0, i64 %327
  %329 = load ptr, ptr %328, align 8, !tbaa !5
  %330 = load i32, ptr %6, align 4, !tbaa !9
  %331 = load i32, ptr %7, align 4, !tbaa !9
  %332 = mul nsw i32 %330, %331
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds float, ptr %329, i64 %333
  %335 = load float, ptr %334, align 4, !tbaa !14
  %336 = load ptr, ptr %5, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.MWave, ptr %336, i32 0, i32 2
  %338 = load i32, ptr %16, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [32 x ptr], ptr %337, i64 0, i64 %339
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = load i32, ptr %7, align 4, !tbaa !9
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds float, ptr %341, i64 %343
  store float %335, ptr %344, align 4, !tbaa !14
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.MWave, ptr %345, i32 0, i32 2
  %347 = load i32, ptr %16, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [32 x ptr], ptr %346, i64 0, i64 %348
  %350 = load ptr, ptr %349, align 8, !tbaa !5
  %351 = load i32, ptr %6, align 4, !tbaa !9
  %352 = load i32, ptr %7, align 4, !tbaa !9
  %353 = mul nsw i32 %351, %352
  %354 = load i32, ptr %6, align 4, !tbaa !9
  %355 = add nsw i32 %353, %354
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds float, ptr %350, i64 %356
  %358 = load float, ptr %357, align 4, !tbaa !14
  %359 = load ptr, ptr %5, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.MWave, ptr %359, i32 0, i32 2
  %361 = load i32, ptr %16, align 4, !tbaa !9
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [32 x ptr], ptr %360, i64 0, i64 %362
  %364 = load ptr, ptr %363, align 8, !tbaa !5
  %365 = load i32, ptr %7, align 4, !tbaa !9
  %366 = add nsw i32 %365, 1
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds float, ptr %364, i64 %367
  store float %358, ptr %368, align 4, !tbaa !14
  %369 = load ptr, ptr %4, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.MWave, ptr %369, i32 0, i32 2
  %371 = load i32, ptr %16, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [32 x ptr], ptr %370, i64 0, i64 %372
  %374 = load ptr, ptr %373, align 8, !tbaa !5
  %375 = load i32, ptr %6, align 4, !tbaa !9
  %376 = load i32, ptr %7, align 4, !tbaa !9
  %377 = mul nsw i32 %375, %376
  %378 = load i32, ptr %6, align 4, !tbaa !9
  %379 = add nsw i32 %377, %378
  %380 = load i32, ptr %6, align 4, !tbaa !9
  %381 = add nsw i32 %379, %380
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds float, ptr %374, i64 %382
  %384 = load float, ptr %383, align 4, !tbaa !14
  %385 = load ptr, ptr %5, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.MWave, ptr %385, i32 0, i32 2
  %387 = load i32, ptr %16, align 4, !tbaa !9
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [32 x ptr], ptr %386, i64 0, i64 %388
  %390 = load ptr, ptr %389, align 8, !tbaa !5
  %391 = load i32, ptr %7, align 4, !tbaa !9
  %392 = add nsw i32 %391, 2
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds float, ptr %390, i64 %393
  store float %384, ptr %394, align 4, !tbaa !14
  br label %395

395:                                              ; preds = %323
  %396 = load i32, ptr %16, align 4, !tbaa !9
  %397 = add nsw i32 %396, 1
  store i32 %397, ptr %16, align 4, !tbaa !9
  br label %191, !llvm.loop !22

398:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  store i32 0, ptr %9, align 4
  br label %399

399:                                              ; preds = %398, %89, %81, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %400 = load i32, ptr %9, align 4
  switch i32 %400, label %402 [
    i32 0, label %401
    i32 1, label %401
  ]

401:                                              ; preds = %399, %399
  ret void

402:                                              ; preds = %399
  unreachable
}

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

; Function Attrs: nounwind
declare double @sin(double noundef) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


; 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 [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
@__FUNCTION__.mWaveIntegerResample = external hidden unnamed_addr constant [21 x i8], align 1
@morn_resample_n = external hidden local_unnamed_addr global float, align 4
@morn_resample_wsum = external hidden local_unnamed_addr global float, align 4
@morn_resample_w = external hidden local_unnamed_addr global [11 x float], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @mWaveHalfResample(ptr noundef, 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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mWaveIntegerResample(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca float, align 4
  %5 = icmp eq i32 %2, 2
  br i1 %5, label %6, label %7

6:                                                ; preds = %3
  tail call void @mWaveHalfResample(ptr noundef %0, ptr noundef %1)
  br label %288

7:                                                ; preds = %3
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %8 [
    i64 -1, label %.critedge
    i64 0, label %.critedge
  ]

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

11:                                               ; preds = %8
  %12 = load i32, ptr %0, align 8, !tbaa !5
  %13 = icmp slt i32 %12, 1
  br i1 %13, label %.critedge, 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 %.critedge

.critedge:                                        ; preds = %7, %7, %11, %8, %14
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 63, ptr noundef nonnull @__FUNCTION__.mWaveIntegerResample, ptr noundef nonnull @.str.1) #6
  br label %18

18:                                               ; preds = %.critedge, %14
  %magicptr137 = ptrtoint ptr %1 to i64
  switch i64 %magicptr137, label %20 [
    i64 -1, label %19
    i64 0, label %19
  ]

19:                                               ; preds = %18, %18
  br label %20

20:                                               ; preds = %18, %19
  %.0124 = phi ptr [ %0, %19 ], [ %1, %18 ]
  %21 = icmp eq ptr %.0124, %0
  %22 = icmp slt i32 %2, 1
  %or.cond12 = and i1 %22, %21
  br i1 %or.cond12, label %288, label %23

23:                                               ; preds = %20
  %24 = icmp sgt i32 %2, 1
  %or.cond = or i1 %24, %21
  %25 = getelementptr inbounds i8, ptr %0, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !10
  br i1 %or.cond, label %28, label %27

27:                                               ; preds = %23
  tail call void @mWaveCut(ptr noundef %0, ptr noundef %.0124, i32 noundef 0, i32 noundef %26) #6
  br label %288

28:                                               ; preds = %23
  %29 = sitofp i32 %26 to float
  %30 = sitofp i32 %2 to float
  %31 = fdiv float %29, %30
  %32 = fptosi float %31 to i32
  %33 = icmp slt i32 %32, 2
  %34 = select i1 %22, i1 true, i1 %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %28
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 70, ptr noundef nonnull @__FUNCTION__.mWaveIntegerResample, ptr noundef nonnull @.str.1) #6
  br label %36

36:                                               ; preds = %35, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store float 0.000000e+00, ptr %4, align 4, !tbaa !11
  %37 = call ptr @m_PropertyRead(ptr noundef nonnull %0, ptr noundef nonnull @.str.2, ptr noundef nonnull %4, ptr noundef null) #6
  %.not136 = icmp eq ptr %37, null
  br i1 %.not136, label %42, label %38

38:                                               ; preds = %36
  %39 = load float, ptr %4, align 4, !tbaa !11
  %40 = fdiv float %39, %30
  store float %40, ptr %4, align 4, !tbaa !11
  %41 = call ptr @m_PropertyWrite(ptr noundef nonnull %0, ptr noundef nonnull @.str.2, ptr noundef nonnull %4, i32 noundef 4) #6
  br label %42

42:                                               ; preds = %38, %36
  %43 = load i32, ptr %0, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %.0124, i64 8
  call void @mWaveRedefine(ptr noundef %.0124, i32 noundef %43, i32 noundef %32, ptr noundef nonnull %44) #6
  %45 = load float, ptr @morn_resample_n, align 4, !tbaa !11
  %46 = fcmp une float %45, %30
  br i1 %46, label %47, label %112

47:                                               ; preds = %42
  store float 0.000000e+00, ptr @morn_resample_wsum, align 4, !tbaa !11
  %48 = sitofp i32 %2 to double
  %49 = fdiv double 0x400921FB54442D18, %48
  %50 = fadd double %49, 0.000000e+00
  %51 = call double @sin(double noundef %50) #6
  %52 = fdiv double %51, %50
  %53 = fptrunc double %52 to float
  store float %53, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 4), align 4, !tbaa !11
  %54 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %55 = fadd float %54, %53
  store float %55, ptr @morn_resample_wsum, align 4, !tbaa !11
  %56 = fadd double %49, %50
  %57 = call double @sin(double noundef %56) #6
  %58 = fdiv double %57, %56
  %59 = fptrunc double %58 to float
  store float %59, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 8), align 8, !tbaa !11
  %60 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %61 = fadd float %60, %59
  store float %61, ptr @morn_resample_wsum, align 4, !tbaa !11
  %62 = fadd double %49, %56
  %63 = call double @sin(double noundef %62) #6
  %64 = fdiv double %63, %62
  %65 = fptrunc double %64 to float
  store float %65, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 12), align 4, !tbaa !11
  %66 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %67 = fadd float %66, %65
  store float %67, ptr @morn_resample_wsum, align 4, !tbaa !11
  %68 = fadd double %49, %62
  %69 = call double @sin(double noundef %68) #6
  %70 = fdiv double %69, %68
  %71 = fptrunc double %70 to float
  store float %71, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 16), align 16, !tbaa !11
  %72 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %73 = fadd float %72, %71
  store float %73, ptr @morn_resample_wsum, align 4, !tbaa !11
  %74 = fadd double %49, %68
  %75 = call double @sin(double noundef %74) #6
  %76 = fdiv double %75, %74
  %77 = fptrunc double %76 to float
  store float %77, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 20), align 4, !tbaa !11
  %78 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %79 = fadd float %78, %77
  store float %79, ptr @morn_resample_wsum, align 4, !tbaa !11
  %80 = fadd double %49, %74
  %81 = call double @sin(double noundef %80) #6
  %82 = fdiv double %81, %80
  %83 = fptrunc double %82 to float
  store float %83, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 24), align 8, !tbaa !11
  %84 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %85 = fadd float %84, %83
  store float %85, ptr @morn_resample_wsum, align 4, !tbaa !11
  %86 = fadd double %49, %80
  %87 = call double @sin(double noundef %86) #6
  %88 = fdiv double %87, %86
  %89 = fptrunc double %88 to float
  store float %89, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 28), align 4, !tbaa !11
  %90 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %91 = fadd float %90, %89
  store float %91, ptr @morn_resample_wsum, align 4, !tbaa !11
  %92 = fadd double %49, %86
  %93 = call double @sin(double noundef %92) #6
  %94 = fdiv double %93, %92
  %95 = fptrunc double %94 to float
  store float %95, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 32), align 16, !tbaa !11
  %96 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %97 = fadd float %96, %95
  store float %97, ptr @morn_resample_wsum, align 4, !tbaa !11
  %98 = fadd double %49, %92
  %99 = call double @sin(double noundef %98) #6
  %100 = fdiv double %99, %98
  %101 = fptrunc double %100 to float
  store float %101, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 36), align 4, !tbaa !11
  %102 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %103 = fadd float %102, %101
  store float %103, ptr @morn_resample_wsum, align 4, !tbaa !11
  %104 = fadd double %49, %98
  %105 = call double @sin(double noundef %104) #6
  %106 = fdiv double %105, %104
  %107 = fptrunc double %106 to float
  store float %107, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 40), align 8, !tbaa !11
  %108 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %109 = fadd float %108, %107
  %110 = fadd float %109, %109
  %111 = fadd float %110, 1.000000e+00
  store float %111, ptr @morn_resample_wsum, align 4, !tbaa !11
  store float %30, ptr @morn_resample_n, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %47, %42
  %113 = load i32, ptr %0, align 8, !tbaa !5
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %.lr.ph145, label %._crit_edge146

.lr.ph145:                                        ; preds = %112
  %115 = getelementptr inbounds i8, ptr %0, i64 8
  %116 = sext i32 %2 to i64
  %117 = shl nsw i32 %2, 1
  %118 = sext i32 %117 to i64
  %119 = icmp sgt i32 %32, 6
  br i1 %119, label %.lr.ph.us.preheader, label %.lr.ph145.split

.lr.ph.us.preheader:                              ; preds = %.lr.ph145
  %120 = add nsw i32 %32, -3
  %wide.trip.count163 = zext nneg i32 %113 to i64
  %121 = mul nsw i32 %120, %2
  %122 = sext i32 %121 to i64
  %wide.trip.count158 = zext i32 %120 to i64
  %123 = add nsw i32 %121, %2
  %124 = sext i32 %123 to i64
  %125 = add nsw i32 %123, %2
  %126 = sext i32 %125 to i64
  %127 = shl nuw nsw i64 %wide.trip.count158, 2
  %128 = add nsw i64 %wide.trip.count158, -3
  %min.iters.check = icmp ugt i64 %128, 3
  %ident.check.not = icmp eq i32 %2, 1
  %or.cond254 = and i1 %min.iters.check, %ident.check.not
  %n.vec = and i64 %128, -4
  %ind.end = or i64 %128, 3
  %cmp.n = icmp eq i64 %128, %n.vec
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv160 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next161, %._crit_edge.us ]
  %129 = getelementptr inbounds [32 x ptr], ptr %115, i64 0, i64 %indvars.iv160
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = load float, ptr %130, align 4, !tbaa !11
  %132 = getelementptr inbounds [32 x ptr], ptr %44, i64 0, i64 %indvars.iv160
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  store float %131, ptr %133, align 4, !tbaa !11
  %134 = getelementptr inbounds float, ptr %130, i64 %116
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = getelementptr inbounds i8, ptr %133, i64 4
  store float %135, ptr %136, align 4, !tbaa !11
  %137 = getelementptr inbounds float, ptr %130, i64 %118
  %138 = load float, ptr %137, align 4, !tbaa !11
  %139 = getelementptr inbounds i8, ptr %133, i64 8
  store float %138, ptr %139, align 4, !tbaa !11
  %invariant.gep = getelementptr i8, ptr %130, i64 -4
  %invariant.gep166 = getelementptr i8, ptr %130, i64 4
  %invariant.gep168 = getelementptr i8, ptr %130, i64 -8
  %invariant.gep170 = getelementptr i8, ptr %130, i64 8
  %invariant.gep172 = getelementptr i8, ptr %130, i64 -12
  %invariant.gep174 = getelementptr i8, ptr %130, i64 12
  %invariant.gep176 = getelementptr i8, ptr %130, i64 -16
  %invariant.gep178 = getelementptr i8, ptr %130, i64 16
  %invariant.gep180 = getelementptr i8, ptr %130, i64 -20
  %invariant.gep182 = getelementptr i8, ptr %130, i64 20
  %invariant.gep184 = getelementptr i8, ptr %130, i64 -24
  %invariant.gep186 = getelementptr i8, ptr %130, i64 24
  %invariant.gep188 = getelementptr i8, ptr %130, i64 -28
  %invariant.gep190 = getelementptr i8, ptr %130, i64 28
  %invariant.gep192 = getelementptr i8, ptr %130, i64 -32
  %invariant.gep194 = getelementptr i8, ptr %130, i64 32
  %invariant.gep196 = getelementptr i8, ptr %130, i64 -36
  %invariant.gep198 = getelementptr i8, ptr %130, i64 36
  %invariant.gep200 = getelementptr i8, ptr %130, i64 -40
  %invariant.gep202 = getelementptr i8, ptr %130, i64 40
  br i1 %or.cond254, label %vector.memcheck, label %scalar.ph.preheader

vector.memcheck:                                  ; preds = %.lr.ph.us
  %scevgep = getelementptr i8, ptr %133, i64 12
  %scevgep205 = getelementptr i8, ptr %133, i64 %127
  %140 = getelementptr i8, ptr %130, i64 %127
  %scevgep206 = getelementptr i8, ptr %140, i64 40
  %bound0 = icmp ult ptr %scevgep, %scevgep206
  %bound1 = icmp ult ptr %invariant.gep188, %scevgep205
  %found.conflict = and i1 %bound0, %bound1
  %bound0207 = icmp ult ptr %scevgep, getelementptr inbounds (i8, ptr @morn_resample_w, i64 44)
  %bound1208 = icmp ugt ptr %scevgep205, getelementptr inbounds (i8, ptr @morn_resample_w, i64 4)
  %found.conflict209 = and i1 %bound0207, %bound1208
  %conflict.rdx = or i1 %found.conflict, %found.conflict209
  %bound0210 = icmp ult ptr %scevgep, getelementptr inbounds (i8, ptr @morn_resample_wsum, i64 4)
  %bound1211 = icmp ugt ptr %scevgep205, @morn_resample_wsum
  %found.conflict212 = and i1 %bound0210, %bound1211
  %conflict.rdx213 = or i1 %conflict.rdx, %found.conflict212
  br i1 %conflict.rdx213, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %141 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 32), align 16, !tbaa !11, !alias.scope !15
  %broadcast.splatinsert242 = insertelement <4 x float> poison, float %141, i64 0
  %broadcast.splat243 = shufflevector <4 x float> %broadcast.splatinsert242, <4 x float> poison, <4 x i32> zeroinitializer
  %142 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 36), align 4, !tbaa !11, !alias.scope !15
  %broadcast.splatinsert246 = insertelement <4 x float> poison, float %142, i64 0
  %broadcast.splat247 = shufflevector <4 x float> %broadcast.splatinsert246, <4 x float> poison, <4 x i32> zeroinitializer
  %143 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 40), align 8, !tbaa !11, !alias.scope !15
  %broadcast.splatinsert250 = insertelement <4 x float> poison, float %143, i64 0
  %broadcast.splat251 = shufflevector <4 x float> %broadcast.splatinsert250, <4 x float> poison, <4 x i32> zeroinitializer
  %144 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11, !alias.scope !18
  %broadcast.splatinsert252 = insertelement <4 x float> poison, float %144, i64 0
  %broadcast.splat253 = shufflevector <4 x float> %broadcast.splatinsert252, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 3
  %145 = getelementptr inbounds float, ptr %130, i64 %offset.idx
  %wide.load = load <4 x float>, ptr %145, align 4, !tbaa !11, !alias.scope !20
  %146 = getelementptr float, ptr %invariant.gep, i64 %offset.idx
  %wide.load214 = load <4 x float>, ptr %146, align 4, !tbaa !11, !alias.scope !20
  %147 = getelementptr float, ptr %invariant.gep166, i64 %offset.idx
  %wide.load215 = load <4 x float>, ptr %147, align 4, !tbaa !11, !alias.scope !20
  %148 = fadd <4 x float> %wide.load214, %wide.load215
  %149 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 4), align 4
  %broadcast.splat = shufflevector <4 x float> %149, <4 x float> poison, <4 x i32> zeroinitializer
  %150 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %148, <4 x float> %broadcast.splat, <4 x float> %wide.load)
  %151 = getelementptr float, ptr %invariant.gep168, i64 %offset.idx
  %wide.load216 = load <4 x float>, ptr %151, align 4, !tbaa !11, !alias.scope !20
  %152 = getelementptr float, ptr %invariant.gep170, i64 %offset.idx
  %wide.load217 = load <4 x float>, ptr %152, align 4, !tbaa !11, !alias.scope !20
  %153 = fadd <4 x float> %wide.load216, %wide.load217
  %154 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 8), align 8
  %broadcast.splat219 = shufflevector <4 x float> %154, <4 x float> poison, <4 x i32> zeroinitializer
  %155 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %153, <4 x float> %broadcast.splat219, <4 x float> %150)
  %156 = getelementptr float, ptr %130, i64 %index
  %wide.load220 = load <4 x float>, ptr %156, align 4, !tbaa !11, !alias.scope !20
  %157 = getelementptr float, ptr %invariant.gep174, i64 %offset.idx
  %wide.load221 = load <4 x float>, ptr %157, align 4, !tbaa !11, !alias.scope !20
  %158 = fadd <4 x float> %wide.load220, %wide.load221
  %159 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 12), align 4
  %broadcast.splat223 = shufflevector <4 x float> %159, <4 x float> poison, <4 x i32> zeroinitializer
  %160 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %158, <4 x float> %broadcast.splat223, <4 x float> %155)
  %161 = getelementptr float, ptr %invariant.gep176, i64 %offset.idx
  %wide.load224 = load <4 x float>, ptr %161, align 4, !tbaa !11, !alias.scope !20
  %162 = getelementptr float, ptr %invariant.gep178, i64 %offset.idx
  %wide.load225 = load <4 x float>, ptr %162, align 4, !tbaa !11, !alias.scope !20
  %163 = fadd <4 x float> %wide.load224, %wide.load225
  %164 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 16), align 16
  %broadcast.splat227 = shufflevector <4 x float> %164, <4 x float> poison, <4 x i32> zeroinitializer
  %165 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %163, <4 x float> %broadcast.splat227, <4 x float> %160)
  %166 = getelementptr float, ptr %invariant.gep180, i64 %offset.idx
  %wide.load228 = load <4 x float>, ptr %166, align 4, !tbaa !11, !alias.scope !20
  %167 = getelementptr float, ptr %invariant.gep182, i64 %offset.idx
  %wide.load229 = load <4 x float>, ptr %167, align 4, !tbaa !11, !alias.scope !20
  %168 = fadd <4 x float> %wide.load228, %wide.load229
  %169 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 20), align 4
  %broadcast.splat231 = shufflevector <4 x float> %169, <4 x float> poison, <4 x i32> zeroinitializer
  %170 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %168, <4 x float> %broadcast.splat231, <4 x float> %165)
  %171 = getelementptr float, ptr %invariant.gep184, i64 %offset.idx
  %wide.load232 = load <4 x float>, ptr %171, align 4, !tbaa !11, !alias.scope !20
  %172 = getelementptr float, ptr %invariant.gep186, i64 %offset.idx
  %wide.load233 = load <4 x float>, ptr %172, align 4, !tbaa !11, !alias.scope !20
  %173 = fadd <4 x float> %wide.load232, %wide.load233
  %174 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 24), align 8
  %broadcast.splat235 = shufflevector <4 x float> %174, <4 x float> poison, <4 x i32> zeroinitializer
  %175 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %173, <4 x float> %broadcast.splat235, <4 x float> %170)
  %176 = getelementptr float, ptr %invariant.gep188, i64 %offset.idx
  %wide.load236 = load <4 x float>, ptr %176, align 4, !tbaa !11, !alias.scope !20
  %177 = getelementptr float, ptr %invariant.gep190, i64 %offset.idx
  %wide.load237 = load <4 x float>, ptr %177, align 4, !tbaa !11, !alias.scope !20
  %178 = fadd <4 x float> %wide.load236, %wide.load237
  %179 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 28), align 4
  %broadcast.splat239 = shufflevector <4 x float> %179, <4 x float> poison, <4 x i32> zeroinitializer
  %180 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %178, <4 x float> %broadcast.splat239, <4 x float> %175)
  %181 = getelementptr float, ptr %invariant.gep192, i64 %offset.idx
  %wide.load240 = load <4 x float>, ptr %181, align 4, !tbaa !11, !alias.scope !20
  %182 = getelementptr float, ptr %invariant.gep194, i64 %offset.idx
  %wide.load241 = load <4 x float>, ptr %182, align 4, !tbaa !11, !alias.scope !20
  %183 = fadd <4 x float> %wide.load240, %wide.load241
  %184 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %183, <4 x float> %broadcast.splat243, <4 x float> %180)
  %185 = getelementptr float, ptr %invariant.gep196, i64 %offset.idx
  %wide.load244 = load <4 x float>, ptr %185, align 4, !tbaa !11, !alias.scope !20
  %186 = getelementptr float, ptr %invariant.gep198, i64 %offset.idx
  %wide.load245 = load <4 x float>, ptr %186, align 4, !tbaa !11, !alias.scope !20
  %187 = fadd <4 x float> %wide.load244, %wide.load245
  %188 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %187, <4 x float> %broadcast.splat247, <4 x float> %184)
  %189 = getelementptr float, ptr %invariant.gep200, i64 %offset.idx
  %wide.load248 = load <4 x float>, ptr %189, align 4, !tbaa !11, !alias.scope !20
  %190 = getelementptr float, ptr %invariant.gep202, i64 %offset.idx
  %wide.load249 = load <4 x float>, ptr %190, align 4, !tbaa !11, !alias.scope !20
  %191 = fadd <4 x float> %wide.load248, %wide.load249
  %192 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %191, <4 x float> %broadcast.splat251, <4 x float> %188)
  %193 = fdiv <4 x float> %192, %broadcast.splat253
  %194 = getelementptr inbounds float, ptr %133, i64 %offset.idx
  store <4 x float> %193, ptr %194, align 4, !tbaa !11, !alias.scope !22, !noalias !24
  %index.next = add nuw i64 %index, 4
  %195 = icmp eq i64 %index.next, %n.vec
  br i1 %195, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.us
  %indvars.iv155.ph = phi i64 [ 3, %vector.memcheck ], [ 3, %.lr.ph.us ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %scalar.ph ], [ %indvars.iv155.ph, %scalar.ph.preheader ]
  %196 = mul nsw i64 %indvars.iv155, %116
  %197 = getelementptr inbounds float, ptr %130, i64 %196
  %198 = load float, ptr %197, align 4, !tbaa !11
  %gep = getelementptr float, ptr %invariant.gep, i64 %196
  %199 = load float, ptr %gep, align 4, !tbaa !11
  %gep167 = getelementptr float, ptr %invariant.gep166, i64 %196
  %200 = load float, ptr %gep167, align 4, !tbaa !11
  %201 = fadd float %199, %200
  %202 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 4), align 4, !tbaa !11
  %203 = call float @llvm.fmuladd.f32(float %201, float %202, float %198)
  %gep169 = getelementptr float, ptr %invariant.gep168, i64 %196
  %204 = load float, ptr %gep169, align 4, !tbaa !11
  %gep171 = getelementptr float, ptr %invariant.gep170, i64 %196
  %205 = load float, ptr %gep171, align 4, !tbaa !11
  %206 = fadd float %204, %205
  %207 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 8), align 8, !tbaa !11
  %208 = call float @llvm.fmuladd.f32(float %206, float %207, float %203)
  %gep173 = getelementptr float, ptr %invariant.gep172, i64 %196
  %209 = load float, ptr %gep173, align 4, !tbaa !11
  %gep175 = getelementptr float, ptr %invariant.gep174, i64 %196
  %210 = load float, ptr %gep175, align 4, !tbaa !11
  %211 = fadd float %209, %210
  %212 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 12), align 4, !tbaa !11
  %213 = call float @llvm.fmuladd.f32(float %211, float %212, float %208)
  %gep177 = getelementptr float, ptr %invariant.gep176, i64 %196
  %214 = load float, ptr %gep177, align 4, !tbaa !11
  %gep179 = getelementptr float, ptr %invariant.gep178, i64 %196
  %215 = load float, ptr %gep179, align 4, !tbaa !11
  %216 = fadd float %214, %215
  %217 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 16), align 16, !tbaa !11
  %218 = call float @llvm.fmuladd.f32(float %216, float %217, float %213)
  %gep181 = getelementptr float, ptr %invariant.gep180, i64 %196
  %219 = load float, ptr %gep181, align 4, !tbaa !11
  %gep183 = getelementptr float, ptr %invariant.gep182, i64 %196
  %220 = load float, ptr %gep183, align 4, !tbaa !11
  %221 = fadd float %219, %220
  %222 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 20), align 4, !tbaa !11
  %223 = call float @llvm.fmuladd.f32(float %221, float %222, float %218)
  %gep185 = getelementptr float, ptr %invariant.gep184, i64 %196
  %224 = load float, ptr %gep185, align 4, !tbaa !11
  %gep187 = getelementptr float, ptr %invariant.gep186, i64 %196
  %225 = load float, ptr %gep187, align 4, !tbaa !11
  %226 = fadd float %224, %225
  %227 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 24), align 8, !tbaa !11
  %228 = call float @llvm.fmuladd.f32(float %226, float %227, float %223)
  %gep189 = getelementptr float, ptr %invariant.gep188, i64 %196
  %229 = load float, ptr %gep189, align 4, !tbaa !11
  %gep191 = getelementptr float, ptr %invariant.gep190, i64 %196
  %230 = load float, ptr %gep191, align 4, !tbaa !11
  %231 = fadd float %229, %230
  %232 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 28), align 4, !tbaa !11
  %233 = call float @llvm.fmuladd.f32(float %231, float %232, float %228)
  %gep193 = getelementptr float, ptr %invariant.gep192, i64 %196
  %234 = load float, ptr %gep193, align 4, !tbaa !11
  %gep195 = getelementptr float, ptr %invariant.gep194, i64 %196
  %235 = load float, ptr %gep195, align 4, !tbaa !11
  %236 = fadd float %234, %235
  %237 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 32), align 16, !tbaa !11
  %238 = call float @llvm.fmuladd.f32(float %236, float %237, float %233)
  %gep197 = getelementptr float, ptr %invariant.gep196, i64 %196
  %239 = load float, ptr %gep197, align 4, !tbaa !11
  %gep199 = getelementptr float, ptr %invariant.gep198, i64 %196
  %240 = load float, ptr %gep199, align 4, !tbaa !11
  %241 = fadd float %239, %240
  %242 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 36), align 4, !tbaa !11
  %243 = call float @llvm.fmuladd.f32(float %241, float %242, float %238)
  %gep201 = getelementptr float, ptr %invariant.gep200, i64 %196
  %244 = load float, ptr %gep201, align 4, !tbaa !11
  %gep203 = getelementptr float, ptr %invariant.gep202, i64 %196
  %245 = load float, ptr %gep203, align 4, !tbaa !11
  %246 = fadd float %244, %245
  %247 = load float, ptr getelementptr inbounds (i8, ptr @morn_resample_w, i64 40), align 8, !tbaa !11
  %248 = call float @llvm.fmuladd.f32(float %246, float %247, float %243)
  %249 = load float, ptr @morn_resample_wsum, align 4, !tbaa !11
  %250 = fdiv float %248, %249
  %251 = getelementptr inbounds float, ptr %133, i64 %indvars.iv155
  store float %250, ptr %251, align 4, !tbaa !11
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond159.not = icmp eq i64 %indvars.iv.next156, %wide.trip.count158
  br i1 %exitcond159.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !29

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %252 = getelementptr inbounds float, ptr %130, i64 %122
  %253 = load float, ptr %252, align 4, !tbaa !11
  %254 = getelementptr inbounds float, ptr %133, i64 %wide.trip.count158
  store float %253, ptr %254, align 4, !tbaa !11
  %255 = getelementptr inbounds float, ptr %130, i64 %124
  %256 = load float, ptr %255, align 4, !tbaa !11
  %257 = getelementptr inbounds i8, ptr %254, i64 4
  store float %256, ptr %257, align 4, !tbaa !11
  %258 = getelementptr inbounds float, ptr %130, i64 %126
  %259 = load float, ptr %258, align 4, !tbaa !11
  %260 = getelementptr inbounds i8, ptr %254, i64 8
  store float %259, ptr %260, align 4, !tbaa !11
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %exitcond164.not = icmp eq i64 %indvars.iv.next161, %wide.trip.count163
  br i1 %exitcond164.not, label %._crit_edge146, label %.lr.ph.us, !llvm.loop !30

.lr.ph145.split:                                  ; preds = %.lr.ph145
  %261 = mul nsw i32 %2, 3
  %262 = sext i32 %261 to i64
  %263 = shl nsw i32 %2, 2
  %264 = sext i32 %263 to i64
  %265 = mul nsw i32 %2, 5
  %266 = sext i32 %265 to i64
  %wide.trip.count = zext nneg i32 %113 to i64
  br label %267

._crit_edge146:                                   ; preds = %267, %._crit_edge.us, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %288

267:                                              ; preds = %.lr.ph145.split, %267
  %indvars.iv = phi i64 [ 0, %.lr.ph145.split ], [ %indvars.iv.next, %267 ]
  %268 = getelementptr inbounds [32 x ptr], ptr %115, i64 0, i64 %indvars.iv
  %269 = load ptr, ptr %268, align 8, !tbaa !13
  %270 = load float, ptr %269, align 4, !tbaa !11
  %271 = getelementptr inbounds [32 x ptr], ptr %44, i64 0, i64 %indvars.iv
  %272 = load ptr, ptr %271, align 8, !tbaa !13
  store float %270, ptr %272, align 4, !tbaa !11
  %273 = getelementptr inbounds float, ptr %269, i64 %116
  %274 = load float, ptr %273, align 4, !tbaa !11
  %275 = getelementptr inbounds i8, ptr %272, i64 4
  store float %274, ptr %275, align 4, !tbaa !11
  %276 = getelementptr inbounds float, ptr %269, i64 %118
  %277 = load float, ptr %276, align 4, !tbaa !11
  %278 = getelementptr inbounds i8, ptr %272, i64 8
  store float %277, ptr %278, align 4, !tbaa !11
  %279 = getelementptr inbounds float, ptr %269, i64 %262
  %280 = load float, ptr %279, align 4, !tbaa !11
  %281 = getelementptr inbounds i8, ptr %272, i64 12
  store float %280, ptr %281, align 4, !tbaa !11
  %282 = getelementptr inbounds float, ptr %269, i64 %264
  %283 = load float, ptr %282, align 4, !tbaa !11
  %284 = getelementptr inbounds i8, ptr %272, i64 16
  store float %283, ptr %284, align 4, !tbaa !11
  %285 = getelementptr inbounds float, ptr %269, i64 %266
  %286 = load float, ptr %285, align 4, !tbaa !11
  %287 = getelementptr inbounds i8, ptr %272, i64 20
  store float %286, ptr %287, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge146, label %267, !llvm.loop !30

288:                                              ; preds = %20, %._crit_edge146, %27, %6
  ret void
}

declare void @mWaveCut(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #5

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16}
!16 = distinct !{!16, !17}
!17 = distinct !{!17, !"LVerDomain"}
!18 = !{!19}
!19 = distinct !{!19, !17}
!20 = !{!21}
!21 = distinct !{!21, !17}
!22 = !{!23}
!23 = distinct !{!23, !17}
!24 = !{!21, !16, !19}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !26, !27}
!30 = distinct !{!30, !26}


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