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

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

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@__FUNCTION__.mWaveFrequencyAnalyse = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 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_Free(ptr noundef) #1

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

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

declare ptr @m_Malloc(i32 noundef) #1

; Function Attrs: nounwind
declare double @cos(double noundef) #2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @endWaveFrequencyAnalyse(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @mWaveFrequencyAnalyse(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call ptr @GetHandle(ptr noundef %28, i32 noundef 32, i32 noundef 2012366189, ptr noundef @endWaveFrequencyAnalyse)
  store ptr %29, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.MHandle, ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  store ptr %32, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.MHandle, ptr %33, i32 0, i32 1
  %35 = load volatile i32, ptr %34, align 4, !tbaa !13
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %102

37:                                               ; preds = %4
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = icmp sle i32 %38, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %37
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !14
  store i32 %43, ptr %7, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %40, %37
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %51, label %47

47:                                               ; preds = %44
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = ptrtoint ptr %48 to i64
  %50 = icmp eq i64 %49, -1
  br i1 %50, label %51, label %55

51:                                               ; preds = %47, %44
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !16
  store ptr %54, ptr %6, align 8, !tbaa !5
  br label %55

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

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = call ptr @m_PropertyRead(ptr noundef %57, ptr noundef @.str.4, ptr noundef %14, ptr noundef null)
  %59 = icmp eq ptr %58, null
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %56
  %64 = load i32, ptr %15, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %64, i32 noundef -1, ptr noundef @.str, i32 noundef 504, ptr noundef @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef @.str.1)
  br label %65

65:                                               ; preds = %63, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !19
  %71 = sitofp i32 %70 to float
  %72 = load float, ptr %14, align 4, !tbaa !17
  %73 = fcmp une float %71, %72
  br i1 %73, label %74, label %80

74:                                               ; preds = %67
  %75 = load float, ptr %14, align 4, !tbaa !17
  %76 = fcmp ogt float %75, 0.000000e+00
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.MHandle, ptr %78, i32 0, i32 1
  store volatile i32 0, ptr %79, align 4, !tbaa !13
  br label %101

80:                                               ; preds = %74, %67
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  %85 = icmp ne ptr %81, %84
  br i1 %85, label %86, label %100

86:                                               ; preds = %80
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = mul i64 %92, 4
  %94 = call i32 @memcmp(ptr noundef %89, ptr noundef %90, i64 noundef %93) #8
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %99

96:                                               ; preds = %86
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.MHandle, ptr %97, i32 0, i32 1
  store volatile i32 0, ptr %98, align 4, !tbaa !13
  br label %99

99:                                               ; preds = %96, %86
  br label %100

100:                                              ; preds = %99, %80
  br label %101

101:                                              ; preds = %100, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %102

102:                                              ; preds = %101, %4
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.MHandle, ptr %103, i32 0, i32 1
  %105 = load volatile i32, ptr %104, align 4, !tbaa !13
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %388

107:                                              ; preds = %102
  br label %108

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = icmp sle i32 %109, 0
  br i1 %110, label %120, label %111

111:                                              ; preds = %108
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = icmp eq ptr %112, null
  br i1 %113, label %118, label %114

114:                                              ; preds = %111
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = ptrtoint ptr %115 to i64
  %117 = icmp eq i64 %116, -1
  br label %118

118:                                              ; preds = %114, %111
  %119 = phi i1 [ true, %111 ], [ %117, %114 ]
  br label %120

120:                                              ; preds = %118, %108
  %121 = phi i1 [ true, %108 ], [ %119, %118 ]
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %16, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %127

125:                                              ; preds = %120
  %126 = load i32, ptr %16, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %126, i32 noundef -1, ptr noundef @.str, i32 noundef 513, ptr noundef @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef @.str.1)
  br label %127

127:                                              ; preds = %125, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %130, i32 0, i32 0
  store i32 -1, ptr %131, align 8, !tbaa !19
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %133, i32 0, i32 0
  %135 = call ptr @m_PropertyRead(ptr noundef %132, ptr noundef @.str.4, ptr noundef %134, ptr noundef null)
  br label %136

136:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 8, !tbaa !19
  %140 = icmp sle i32 %139, 0
  %141 = zext i1 %140 to i32
  store i32 %141, ptr %17, align 4, !tbaa !9
  %142 = load i32, ptr %17, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %136
  %145 = load i32, ptr %17, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %145, i32 noundef -1, ptr noundef @.str, i32 noundef 515, ptr noundef @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef @.str.1)
  br label %146

146:                                              ; preds = %144, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %7, align 4, !tbaa !9
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !14
  %153 = icmp sgt i32 %149, %152
  br i1 %153, label %154, label %160

154:                                              ; preds = %148
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %155, i32 0, i32 2
  %157 = load ptr, ptr %156, align 8, !tbaa !16
  call void @m_Free(ptr noundef %157)
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %158, i32 0, i32 2
  store ptr null, ptr %159, align 8, !tbaa !16
  br label %160

160:                                              ; preds = %154, %148
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %161, i32 0, i32 2
  %163 = load ptr, ptr %162, align 8, !tbaa !16
  %164 = icmp eq ptr %163, null
  br i1 %164, label %165, label %173

165:                                              ; preds = %160
  %166 = load i32, ptr %7, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = mul i64 %167, 4
  %169 = trunc i64 %168 to i32
  %170 = call ptr @m_Malloc(i32 noundef %169)
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %171, i32 0, i32 2
  store ptr %170, ptr %172, align 8, !tbaa !16
  br label %173

173:                                              ; preds = %165, %160
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %175, i32 0, i32 1
  store i32 %174, ptr %176, align 4, !tbaa !14
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %177, i32 0, i32 3
  %179 = load ptr, ptr %178, align 8, !tbaa !20
  %180 = icmp eq ptr %179, null
  br i1 %180, label %181, label %190

181:                                              ; preds = %173
  %182 = load i32, ptr %7, align 4, !tbaa !9
  %183 = add nsw i32 %182, 0
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.MWave, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !21
  %187 = call ptr @MatrixCreate(i32 noundef %183, i32 noundef %186, ptr noundef null)
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %188, i32 0, i32 3
  store ptr %187, ptr %189, align 8, !tbaa !20
  br label %233

190:                                              ; preds = %173
  br label %191

191:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 3, ptr %18, align 4, !tbaa !9
  %192 = load i32, ptr %18, align 4, !tbaa !9
  %193 = icmp eq i32 %192, 2
  br i1 %193, label %194, label %208

194:                                              ; preds = %191
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !20
  %198 = load i32, ptr %7, align 4, !tbaa !9
  %199 = add nsw i32 %198, 0
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.MWave, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !21
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %203, i32 0, i32 3
  %205 = load ptr, ptr %204, align 8, !tbaa !20
  %206 = getelementptr inbounds %struct.MMatrix, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !23
  call void @MatrixRedefine(ptr noundef %197, i32 noundef %199, i32 noundef %202, ptr noundef %207)
  br label %230

208:                                              ; preds = %191
  %209 = load i32, ptr %18, align 4, !tbaa !9
  %210 = icmp eq i32 %209, 3
  br i1 %210, label %211, label %220

211:                                              ; preds = %208
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %212, i32 0, i32 3
  %214 = load ptr, ptr %213, align 8, !tbaa !20
  %215 = load i32, ptr %7, align 4, !tbaa !9
  %216 = add nsw i32 %215, 0
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.MWave, ptr %217, i32 0, i32 1
  %219 = load i32, ptr %218, align 4, !tbaa !21
  call void @MatrixRedefine(ptr noundef %214, i32 noundef %216, i32 noundef %219, ptr noundef null)
  br label %229

220:                                              ; preds = %208
  br label %221

221:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 1, ptr %19, align 4, !tbaa !9
  %222 = load i32, ptr %19, align 4, !tbaa !9
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %226

224:                                              ; preds = %221
  %225 = load i32, ptr %19, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %225, i32 noundef -1, ptr noundef @.str, i32 noundef 522, ptr noundef @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef @.str.5)
  br label %226

226:                                              ; preds = %224, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228, %211
  br label %230

230:                                              ; preds = %229, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  br label %233

233:                                              ; preds = %232, %181
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %234, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !25
  %237 = icmp eq ptr %236, null
  br i1 %237, label %238, label %247

238:                                              ; preds = %233
  %239 = load i32, ptr %7, align 4, !tbaa !9
  %240 = add nsw i32 %239, 0
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.MWave, ptr %241, i32 0, i32 1
  %243 = load i32, ptr %242, align 4, !tbaa !21
  %244 = call ptr @MatrixCreate(i32 noundef %240, i32 noundef %243, ptr noundef null)
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %245, i32 0, i32 4
  store ptr %244, ptr %246, align 8, !tbaa !25
  br label %290

247:                                              ; preds = %233
  br label %248

248:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 3, ptr %20, align 4, !tbaa !9
  %249 = load i32, ptr %20, align 4, !tbaa !9
  %250 = icmp eq i32 %249, 2
  br i1 %250, label %251, label %265

251:                                              ; preds = %248
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %252, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !25
  %255 = load i32, ptr %7, align 4, !tbaa !9
  %256 = add nsw i32 %255, 0
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.MWave, ptr %257, i32 0, i32 1
  %259 = load i32, ptr %258, align 4, !tbaa !21
  %260 = load ptr, ptr %13, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %260, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !25
  %263 = getelementptr inbounds %struct.MMatrix, ptr %262, i32 0, i32 2
  %264 = load ptr, ptr %263, align 8, !tbaa !23
  call void @MatrixRedefine(ptr noundef %254, i32 noundef %256, i32 noundef %259, ptr noundef %264)
  br label %287

265:                                              ; preds = %248
  %266 = load i32, ptr %20, align 4, !tbaa !9
  %267 = icmp eq i32 %266, 3
  br i1 %267, label %268, label %277

268:                                              ; preds = %265
  %269 = load ptr, ptr %13, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %269, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !25
  %272 = load i32, ptr %7, align 4, !tbaa !9
  %273 = add nsw i32 %272, 0
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.MWave, ptr %274, i32 0, i32 1
  %276 = load i32, ptr %275, align 4, !tbaa !21
  call void @MatrixRedefine(ptr noundef %271, i32 noundef %273, i32 noundef %276, ptr noundef null)
  br label %286

277:                                              ; preds = %265
  br label %278

278:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 1, ptr %21, align 4, !tbaa !9
  %279 = load i32, ptr %21, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %283

281:                                              ; preds = %278
  %282 = load i32, ptr %21, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %282, i32 noundef -1, ptr noundef @.str, i32 noundef 524, ptr noundef @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef @.str.5)
  br label %283

283:                                              ; preds = %281, %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  br label %286

286:                                              ; preds = %285, %268
  br label %287

287:                                              ; preds = %286, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %288

288:                                              ; preds = %287
  br label %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289, %238
  %291 = load ptr, ptr %13, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %291, i32 0, i32 2
  %293 = load ptr, ptr %292, align 8, !tbaa !16
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = load i32, ptr %7, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = mul i64 %296, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %293, ptr align 4 %294, i64 %297, i1 false)
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %298

298:                                              ; preds = %382, %290
  %299 = load i32, ptr %11, align 4, !tbaa !9
  %300 = load i32, ptr %7, align 4, !tbaa !9
  %301 = icmp slt i32 %299, %300
  br i1 %301, label %302, label %385

302:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %303 = load ptr, ptr %13, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %303, i32 0, i32 2
  %305 = load ptr, ptr %304, align 8, !tbaa !16
  %306 = load i32, ptr %11, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds float, ptr %305, i64 %307
  %309 = load float, ptr %308, align 4, !tbaa !17
  %310 = fpext float %309 to double
  %311 = fmul double 0x401921FB54442D18, %310
  %312 = load ptr, ptr %13, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %312, i32 0, i32 0
  %314 = load i32, ptr %313, align 8, !tbaa !19
  %315 = sitofp i32 %314 to double
  %316 = fdiv double %311, %315
  store double %316, ptr %22, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 0.000000e+00, ptr %23, align 8, !tbaa !26
  %317 = load ptr, ptr %13, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %317, i32 0, i32 3
  %319 = load ptr, ptr %318, align 8, !tbaa !20
  %320 = getelementptr inbounds %struct.MMatrix, ptr %319, i32 0, i32 2
  %321 = load ptr, ptr %320, align 8, !tbaa !23
  %322 = load i32, ptr %11, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds ptr, ptr %321, i64 %323
  %325 = load ptr, ptr %324, align 8, !tbaa !5
  %326 = getelementptr inbounds float, ptr %325, i64 0
  store float 1.000000e+00, ptr %326, align 4, !tbaa !17
  %327 = load ptr, ptr %13, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %327, i32 0, i32 4
  %329 = load ptr, ptr %328, align 8, !tbaa !25
  %330 = getelementptr inbounds %struct.MMatrix, ptr %329, i32 0, i32 2
  %331 = load ptr, ptr %330, align 8, !tbaa !23
  %332 = load i32, ptr %11, align 4, !tbaa !9
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds ptr, ptr %331, i64 %333
  %335 = load ptr, ptr %334, align 8, !tbaa !5
  %336 = getelementptr inbounds float, ptr %335, i64 0
  store float 0.000000e+00, ptr %336, align 4, !tbaa !17
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %337

337:                                              ; preds = %378, %302
  %338 = load i32, ptr %10, align 4, !tbaa !9
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.MWave, ptr %339, i32 0, i32 1
  %341 = load i32, ptr %340, align 4, !tbaa !21
  %342 = icmp slt i32 %338, %341
  br i1 %342, label %343, label %381

343:                                              ; preds = %337
  %344 = load double, ptr %23, align 8, !tbaa !26
  %345 = load double, ptr %22, align 8, !tbaa !26
  %346 = fadd double %344, %345
  store double %346, ptr %23, align 8, !tbaa !26
  %347 = load double, ptr %23, align 8, !tbaa !26
  %348 = call double @cos(double noundef %347) #7
  %349 = fptrunc double %348 to float
  %350 = load ptr, ptr %13, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %350, i32 0, i32 3
  %352 = load ptr, ptr %351, align 8, !tbaa !20
  %353 = getelementptr inbounds %struct.MMatrix, ptr %352, i32 0, i32 2
  %354 = load ptr, ptr %353, align 8, !tbaa !23
  %355 = load i32, ptr %11, align 4, !tbaa !9
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds ptr, ptr %354, i64 %356
  %358 = load ptr, ptr %357, align 8, !tbaa !5
  %359 = load i32, ptr %10, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds float, ptr %358, i64 %360
  store float %349, ptr %361, align 4, !tbaa !17
  %362 = load double, ptr %23, align 8, !tbaa !26
  %363 = call double @sin(double noundef %362) #7
  %364 = fsub double 0.000000e+00, %363
  %365 = fptrunc double %364 to float
  %366 = load ptr, ptr %13, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %366, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !25
  %369 = getelementptr inbounds %struct.MMatrix, ptr %368, i32 0, i32 2
  %370 = load ptr, ptr %369, align 8, !tbaa !23
  %371 = load i32, ptr %11, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds ptr, ptr %370, i64 %372
  %374 = load ptr, ptr %373, align 8, !tbaa !5
  %375 = load i32, ptr %10, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds float, ptr %374, i64 %376
  store float %365, ptr %377, align 4, !tbaa !17
  br label %378

378:                                              ; preds = %343
  %379 = load i32, ptr %10, align 4, !tbaa !9
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %10, align 4, !tbaa !9
  br label %337, !llvm.loop !28

381:                                              ; preds = %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %382

382:                                              ; preds = %381
  %383 = load i32, ptr %11, align 4, !tbaa !9
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr %11, align 4, !tbaa !9
  br label %298, !llvm.loop !30

385:                                              ; preds = %298
  %386 = load ptr, ptr %12, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.MHandle, ptr %386, i32 0, i32 1
  store volatile i32 1, ptr %387, align 4, !tbaa !13
  br label %388

388:                                              ; preds = %385, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %389 = load ptr, ptr %13, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %389, i32 0, i32 3
  %391 = load ptr, ptr %390, align 8, !tbaa !20
  store ptr %391, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %392 = load ptr, ptr %13, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.HandleWaveFrequencyAnalyse, ptr %392, i32 0, i32 4
  %394 = load ptr, ptr %393, align 8, !tbaa !25
  store ptr %394, ptr %25, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %395

395:                                              ; preds = %482, %388
  %396 = load i32, ptr %9, align 4, !tbaa !9
  %397 = load ptr, ptr %5, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.MWave, ptr %397, i32 0, i32 0
  %399 = load i32, ptr %398, align 8, !tbaa !31
  %400 = icmp slt i32 %396, %399
  br i1 %400, label %401, label %485

401:                                              ; preds = %395
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %402

402:                                              ; preds = %478, %401
  %403 = load i32, ptr %11, align 4, !tbaa !9
  %404 = load i32, ptr %7, align 4, !tbaa !9
  %405 = icmp slt i32 %403, %404
  br i1 %405, label %406, label %481

406:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store float 0.000000e+00, ptr %26, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store float 0.000000e+00, ptr %27, align 4, !tbaa !17
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %407

407:                                              ; preds = %460, %406
  %408 = load i32, ptr %10, align 4, !tbaa !9
  %409 = load ptr, ptr %5, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.MWave, ptr %409, i32 0, i32 1
  %411 = load i32, ptr %410, align 4, !tbaa !21
  %412 = icmp slt i32 %408, %411
  br i1 %412, label %413, label %463

413:                                              ; preds = %407
  %414 = load float, ptr %26, align 4, !tbaa !17
  %415 = load ptr, ptr %5, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.MWave, ptr %415, i32 0, i32 2
  %417 = load i32, ptr %9, align 4, !tbaa !9
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [32 x ptr], ptr %416, i64 0, i64 %418
  %420 = load ptr, ptr %419, align 8, !tbaa !5
  %421 = load i32, ptr %10, align 4, !tbaa !9
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds float, ptr %420, i64 %422
  %424 = load float, ptr %423, align 4, !tbaa !17
  %425 = load ptr, ptr %24, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.MMatrix, ptr %425, i32 0, i32 2
  %427 = load ptr, ptr %426, align 8, !tbaa !23
  %428 = load i32, ptr %11, align 4, !tbaa !9
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds ptr, ptr %427, i64 %429
  %431 = load ptr, ptr %430, align 8, !tbaa !5
  %432 = load i32, ptr %10, align 4, !tbaa !9
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds float, ptr %431, i64 %433
  %435 = load float, ptr %434, align 4, !tbaa !17
  %436 = call float @llvm.fmuladd.f32(float %424, float %435, float %414)
  store float %436, ptr %26, align 4, !tbaa !17
  %437 = load float, ptr %27, align 4, !tbaa !17
  %438 = load ptr, ptr %5, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.MWave, ptr %438, i32 0, i32 2
  %440 = load i32, ptr %9, align 4, !tbaa !9
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [32 x ptr], ptr %439, i64 0, i64 %441
  %443 = load ptr, ptr %442, align 8, !tbaa !5
  %444 = load i32, ptr %10, align 4, !tbaa !9
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds float, ptr %443, i64 %445
  %447 = load float, ptr %446, align 4, !tbaa !17
  %448 = load ptr, ptr %25, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.MMatrix, ptr %448, i32 0, i32 2
  %450 = load ptr, ptr %449, align 8, !tbaa !23
  %451 = load i32, ptr %11, align 4, !tbaa !9
  %452 = sext i32 %451 to i64
  %453 = getelementptr inbounds ptr, ptr %450, i64 %452
  %454 = load ptr, ptr %453, align 8, !tbaa !5
  %455 = load i32, ptr %10, align 4, !tbaa !9
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds float, ptr %454, i64 %456
  %458 = load float, ptr %457, align 4, !tbaa !17
  %459 = call float @llvm.fmuladd.f32(float %447, float %458, float %437)
  store float %459, ptr %27, align 4, !tbaa !17
  br label %460

460:                                              ; preds = %413
  %461 = load i32, ptr %10, align 4, !tbaa !9
  %462 = add nsw i32 %461, 1
  store i32 %462, ptr %10, align 4, !tbaa !9
  br label %407, !llvm.loop !32

463:                                              ; preds = %407
  %464 = load float, ptr %26, align 4, !tbaa !17
  %465 = load float, ptr %26, align 4, !tbaa !17
  %466 = load float, ptr %27, align 4, !tbaa !17
  %467 = load float, ptr %27, align 4, !tbaa !17
  %468 = fmul float %466, %467
  %469 = call float @llvm.fmuladd.f32(float %464, float %465, float %468)
  %470 = load ptr, ptr %8, align 8, !tbaa !5
  %471 = load i32, ptr %9, align 4, !tbaa !9
  %472 = sext i32 %471 to i64
  %473 = getelementptr inbounds ptr, ptr %470, i64 %472
  %474 = load ptr, ptr %473, align 8, !tbaa !5
  %475 = load i32, ptr %11, align 4, !tbaa !9
  %476 = sext i32 %475 to i64
  %477 = getelementptr inbounds float, ptr %474, i64 %476
  store float %469, ptr %477, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %478

478:                                              ; preds = %463
  %479 = load i32, ptr %11, align 4, !tbaa !9
  %480 = add nsw i32 %479, 1
  store i32 %480, ptr %11, align 4, !tbaa !9
  br label %402, !llvm.loop !33

481:                                              ; preds = %402
  br label %482

482:                                              ; preds = %481
  %483 = load i32, ptr %9, align 4, !tbaa !9
  %484 = add nsw i32 %483, 1
  store i32 %484, ptr %9, align 4, !tbaa !9
  br label %395, !llvm.loop !34

485:                                              ; preds = %395
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  ret void
}

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@__FUNCTION__.mWaveFrequencyAnalyse = external hidden unnamed_addr constant [22 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_Free(ptr noundef) local_unnamed_addr #1

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

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

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @endWaveFrequencyAnalyse(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @mWaveFrequencyAnalyse(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #5 {
  %5 = alloca float, align 4
  %6 = tail call ptr @GetHandle(ptr noundef %0, i32 noundef 32, i32 noundef 2012366189, ptr noundef nonnull @endWaveFrequencyAnalyse) #9
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %6, i64 4
  %10 = load volatile i32, ptr %9, align 4, !tbaa !11
  %11 = icmp eq i32 %10, 1
  br i1 %11, label %12, label %38

12:                                               ; preds = %4
  %13 = icmp slt i32 %2, 1
  br i1 %13, label %14, label %17

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %8, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !12
  br label %17

17:                                               ; preds = %14, %12
  %.0134 = phi i32 [ %16, %14 ], [ %2, %12 ]
  %magicptr = ptrtoint ptr %1 to i64
  switch i64 %magicptr, label %21 [
    i64 -1, label %18
    i64 0, label %18
  ]

18:                                               ; preds = %17, %17
  %19 = getelementptr inbounds i8, ptr %8, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  br label %21

21:                                               ; preds = %17, %18
  %.0133 = phi ptr [ %20, %18 ], [ %1, %17 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store float -1.000000e+00, ptr %5, align 4, !tbaa !15
  %22 = call ptr @m_PropertyRead(ptr noundef %0, ptr noundef nonnull @.str.4, ptr noundef nonnull %5, ptr noundef null) #9
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 504, ptr noundef nonnull @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef nonnull @.str.1) #9
  br label %25

25:                                               ; preds = %24, %21
  %26 = load i32, ptr %8, align 8, !tbaa !17
  %27 = sitofp i32 %26 to float
  %28 = load float, ptr %5, align 4
  %29 = fcmp une float %28, %27
  %30 = fcmp ogt float %28, 0.000000e+00
  %or.cond4 = and i1 %29, %30
  br i1 %or.cond4, label %.sink.split, label %31

31:                                               ; preds = %25
  %32 = getelementptr inbounds i8, ptr %8, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %.not = icmp eq ptr %.0133, %33
  br i1 %.not, label %37, label %34

34:                                               ; preds = %31
  %35 = sext i32 %.0134 to i64
  %36 = shl nsw i64 %35, 2
  %bcmp = call i32 @bcmp(ptr %33, ptr %.0133, i64 %36)
  %.not147 = icmp eq i32 %bcmp, 0
  br i1 %.not147, label %37, label %.sink.split

.sink.split:                                      ; preds = %34, %25
  store volatile i32 0, ptr %9, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %.sink.split, %31, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %38

38:                                               ; preds = %37, %4
  %.1135 = phi i32 [ %.0134, %37 ], [ %2, %4 ]
  %.1 = phi ptr [ %.0133, %37 ], [ %1, %4 ]
  %39 = load volatile i32, ptr %9, align 4, !tbaa !11
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %161

41:                                               ; preds = %38
  %42 = icmp slt i32 %.1135, 1
  br i1 %42, label %.thread, label %43

43:                                               ; preds = %41
  %magicptr148 = ptrtoint ptr %.1 to i64
  switch i64 %magicptr148, label %44 [
    i64 -1, label %.thread
    i64 0, label %.thread
  ]

.thread:                                          ; preds = %43, %43, %41
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 513, ptr noundef nonnull @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef nonnull @.str.1) #9
  br label %44

44:                                               ; preds = %43, %.thread
  store i32 -1, ptr %8, align 8, !tbaa !17
  %45 = call ptr @m_PropertyRead(ptr noundef %0, ptr noundef nonnull @.str.4, ptr noundef nonnull %8, ptr noundef null) #9
  %46 = load i32, ptr %8, align 8, !tbaa !17
  %47 = icmp slt i32 %46, 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %44
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 515, ptr noundef nonnull @__FUNCTION__.mWaveFrequencyAnalyse, ptr noundef nonnull @.str.1) #9
  br label %49

49:                                               ; preds = %48, %44
  %50 = getelementptr inbounds i8, ptr %8, i64 4
  %51 = load i32, ptr %50, align 4, !tbaa !12
  %52 = icmp sgt i32 %.1135, %51
  %53 = getelementptr inbounds i8, ptr %8, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !14
  br i1 %52, label %.thread208, label %56

.thread208:                                       ; preds = %49
  call void @m_Free(ptr noundef %54) #9
  store ptr null, ptr %53, align 8, !tbaa !14
  %55 = getelementptr inbounds i8, ptr %8, i64 8
  br label %59

56:                                               ; preds = %49
  %57 = icmp eq ptr %54, null
  %58 = getelementptr inbounds i8, ptr %8, i64 8
  br i1 %57, label %59, label %63

59:                                               ; preds = %.thread208, %56
  %60 = phi ptr [ %55, %.thread208 ], [ %58, %56 ]
  %61 = shl i32 %.1135, 2
  %62 = call ptr @m_Malloc(i32 noundef %61) #9
  store ptr %62, ptr %60, align 8, !tbaa !14
  br label %63

63:                                               ; preds = %59, %56
  %64 = phi ptr [ %60, %59 ], [ %58, %56 ]
  store i32 %.1135, ptr %50, align 4, !tbaa !12
  %65 = getelementptr inbounds i8, ptr %8, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = icmp eq ptr %66, null
  %68 = getelementptr inbounds i8, ptr %0, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !19
  br i1 %67, label %70, label %72

70:                                               ; preds = %63
  %71 = call ptr @MatrixCreate(i32 noundef %.1135, i32 noundef %69, ptr noundef null) #9
  store ptr %71, ptr %65, align 8, !tbaa !18
  br label %73

72:                                               ; preds = %63
  call void @MatrixRedefine(ptr noundef nonnull %66, i32 noundef %.1135, i32 noundef %69, ptr noundef null) #9
  br label %73

73:                                               ; preds = %72, %70
  %74 = getelementptr inbounds i8, ptr %8, i64 24
  %75 = load ptr, ptr %74, align 8, !tbaa !21
  %76 = icmp eq ptr %75, null
  %77 = getelementptr inbounds i8, ptr %0, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !19
  br i1 %76, label %79, label %81

79:                                               ; preds = %73
  %80 = call ptr @MatrixCreate(i32 noundef %.1135, i32 noundef %78, ptr noundef null) #9
  store ptr %80, ptr %74, align 8, !tbaa !21
  br label %82

81:                                               ; preds = %73
  call void @MatrixRedefine(ptr noundef nonnull %75, i32 noundef %.1135, i32 noundef %78, ptr noundef null) #9
  br label %82

82:                                               ; preds = %81, %79
  %83 = load ptr, ptr %64, align 8, !tbaa !14
  %84 = sext i32 %.1135 to i64
  %85 = shl nsw i64 %84, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %.1, i64 %85, i1 false)
  %86 = icmp sgt i32 %.1135, 0
  br i1 %86, label %.lr.ph154, label %._crit_edge155

.lr.ph154:                                        ; preds = %82
  %87 = getelementptr inbounds i8, ptr %0, i64 4
  %88 = load i32, ptr %87, align 4, !tbaa !19
  %89 = icmp sgt i32 %88, 1
  br i1 %89, label %.lr.ph154.split.preheader, label %.lr.ph154.split.us

.lr.ph154.split.preheader:                        ; preds = %.lr.ph154
  %wide.trip.count181 = zext nneg i32 %.1135 to i64
  %.pre207 = load ptr, ptr %74, align 8, !tbaa !21
  br label %.lr.ph154.split

.lr.ph154.split.us:                               ; preds = %.lr.ph154
  %90 = load ptr, ptr %65, align 8, !tbaa !18
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = load ptr, ptr %74, align 8, !tbaa !21
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %wide.trip.count = zext nneg i32 %.1135 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %96 = icmp ult i32 %.1135, 4
  br i1 %96, label %._crit_edge155.loopexit222.unr-lcssa, label %.lr.ph154.split.us.new

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

97:                                               ; preds = %97, %.lr.ph154.split.us.new
  %indvars.iv = phi i64 [ 0, %.lr.ph154.split.us.new ], [ %indvars.iv.next.3, %97 ]
  %niter = phi i64 [ 0, %.lr.ph154.split.us.new ], [ %niter.next.3, %97 ]
  %98 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  store float 1.000000e+00, ptr %99, align 4, !tbaa !15
  %100 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv
  %101 = load ptr, ptr %100, align 8, !tbaa !24
  store float 0.000000e+00, ptr %101, align 4, !tbaa !15
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %102 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.next
  %103 = load ptr, ptr %102, align 8, !tbaa !24
  store float 1.000000e+00, ptr %103, align 4, !tbaa !15
  %104 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv.next
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  store float 0.000000e+00, ptr %105, align 4, !tbaa !15
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %106 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.next.1
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  store float 1.000000e+00, ptr %107, align 4, !tbaa !15
  %108 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv.next.1
  %109 = load ptr, ptr %108, align 8, !tbaa !24
  store float 0.000000e+00, ptr %109, align 4, !tbaa !15
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %110 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.next.2
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  store float 1.000000e+00, ptr %111, align 4, !tbaa !15
  %112 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv.next.2
  %113 = load ptr, ptr %112, align 8, !tbaa !24
  store float 0.000000e+00, ptr %113, align 4, !tbaa !15
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge155.loopexit222.unr-lcssa, label %97, !llvm.loop !25

.lr.ph154.split:                                  ; preds = %.lr.ph154.split.preheader, %._crit_edge
  %114 = phi i32 [ %88, %.lr.ph154.split.preheader ], [ %155, %._crit_edge ]
  %115 = phi ptr [ %.pre207, %.lr.ph154.split.preheader ], [ %156, %._crit_edge ]
  %indvars.iv178 = phi i64 [ 0, %.lr.ph154.split.preheader ], [ %indvars.iv.next179, %._crit_edge ]
  %116 = load ptr, ptr %64, align 8, !tbaa !14
  %117 = getelementptr inbounds float, ptr %116, i64 %indvars.iv178
  %118 = load float, ptr %117, align 4, !tbaa !15
  %119 = fpext float %118 to double
  %120 = fmul double %119, 0x401921FB54442D18
  %121 = load i32, ptr %8, align 8, !tbaa !17
  %122 = sitofp i32 %121 to double
  %123 = fdiv double %120, %122
  %124 = load ptr, ptr %65, align 8, !tbaa !18
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  %126 = load ptr, ptr %125, align 8, !tbaa !22
  %127 = getelementptr inbounds ptr, ptr %126, i64 %indvars.iv178
  %128 = load ptr, ptr %127, align 8, !tbaa !24
  store float 1.000000e+00, ptr %128, align 4, !tbaa !15
  %129 = getelementptr inbounds i8, ptr %115, i64 8
  %130 = load ptr, ptr %129, align 8, !tbaa !22
  %131 = getelementptr inbounds ptr, ptr %130, i64 %indvars.iv178
  %132 = load ptr, ptr %131, align 8, !tbaa !24
  store float 0.000000e+00, ptr %132, align 4, !tbaa !15
  %133 = icmp sgt i32 %114, 1
  br i1 %133, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph154.split, %.lr.ph
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %.lr.ph ], [ 1, %.lr.ph154.split ]
  %.0136151 = phi double [ %134, %.lr.ph ], [ 0.000000e+00, %.lr.ph154.split ]
  %134 = fadd double %123, %.0136151
  %135 = call double @cos(double noundef %134) #9
  %136 = fptrunc double %135 to float
  %137 = load ptr, ptr %65, align 8, !tbaa !18
  %138 = getelementptr inbounds i8, ptr %137, i64 8
  %139 = load ptr, ptr %138, align 8, !tbaa !22
  %140 = getelementptr inbounds ptr, ptr %139, i64 %indvars.iv178
  %141 = load ptr, ptr %140, align 8, !tbaa !24
  %142 = getelementptr inbounds float, ptr %141, i64 %indvars.iv175
  store float %136, ptr %142, align 4, !tbaa !15
  %143 = call double @sin(double noundef %134) #9
  %144 = fsub double 0.000000e+00, %143
  %145 = fptrunc double %144 to float
  %146 = load ptr, ptr %74, align 8, !tbaa !21
  %147 = getelementptr inbounds i8, ptr %146, i64 8
  %148 = load ptr, ptr %147, align 8, !tbaa !22
  %149 = getelementptr inbounds ptr, ptr %148, i64 %indvars.iv178
  %150 = load ptr, ptr %149, align 8, !tbaa !24
  %151 = getelementptr inbounds float, ptr %150, i64 %indvars.iv175
  store float %145, ptr %151, align 4, !tbaa !15
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %152 = load i32, ptr %87, align 4, !tbaa !19
  %153 = sext i32 %152 to i64
  %154 = icmp slt i64 %indvars.iv.next176, %153
  br i1 %154, label %.lr.ph, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph154.split
  %155 = phi i32 [ %114, %.lr.ph154.split ], [ %152, %.lr.ph ]
  %156 = phi ptr [ %115, %.lr.ph154.split ], [ %146, %.lr.ph ]
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %exitcond182.not = icmp eq i64 %indvars.iv.next179, %wide.trip.count181
  br i1 %exitcond182.not, label %._crit_edge155, label %.lr.ph154.split, !llvm.loop !28

._crit_edge155.loopexit222.unr-lcssa:             ; preds = %97, %.lr.ph154.split.us
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph154.split.us ], [ %indvars.iv.next.3, %97 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge155, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge155.loopexit222.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge155.loopexit222.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge155.loopexit222.unr-lcssa ]
  %157 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.epil
  %158 = load ptr, ptr %157, align 8, !tbaa !24
  store float 1.000000e+00, ptr %158, align 4, !tbaa !15
  %159 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv.epil
  %160 = load ptr, ptr %159, align 8, !tbaa !24
  store float 0.000000e+00, ptr %160, align 4, !tbaa !15
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge155, label %.epil.preheader, !llvm.loop !30

._crit_edge155:                                   ; preds = %._crit_edge155.loopexit222.unr-lcssa, %.epil.preheader, %._crit_edge, %82
  store volatile i32 1, ptr %9, align 4, !tbaa !11
  br label %161

161:                                              ; preds = %._crit_edge155, %38
  %162 = load i32, ptr %0, align 8, !tbaa !32
  %163 = icmp sgt i32 %162, 0
  br i1 %163, label %.preheader149.lr.ph, label %._crit_edge165

.preheader149.lr.ph:                              ; preds = %161
  %164 = getelementptr inbounds i8, ptr %8, i64 24
  %165 = load ptr, ptr %164, align 8, !tbaa !21
  %166 = getelementptr inbounds i8, ptr %8, i64 16
  %167 = load ptr, ptr %166, align 8, !tbaa !18
  %168 = icmp sgt i32 %.1135, 0
  %169 = getelementptr inbounds i8, ptr %0, i64 8
  %170 = getelementptr inbounds i8, ptr %167, i64 8
  %171 = getelementptr inbounds i8, ptr %165, i64 8
  br i1 %168, label %.preheader149.lr.ph.split.us, label %._crit_edge165

.preheader149.lr.ph.split.us:                     ; preds = %.preheader149.lr.ph
  %172 = getelementptr inbounds i8, ptr %0, i64 4
  %173 = load i32, ptr %172, align 4, !tbaa !19
  %174 = icmp sgt i32 %173, 0
  %wide.trip.count204 = zext nneg i32 %162 to i64
  br i1 %174, label %.preheader149.lr.ph.split.us.split.us, label %.preheader149.us.preheader

.preheader149.us.preheader:                       ; preds = %.preheader149.lr.ph.split.us
  %175 = zext nneg i32 %.1135 to i64
  %176 = shl nuw nsw i64 %175, 2
  %xtraiter223 = and i64 %wide.trip.count204, 7
  %177 = icmp ult i32 %162, 8
  br i1 %177, label %._crit_edge165.loopexit219.unr-lcssa, label %.preheader149.us.preheader.new

.preheader149.us.preheader.new:                   ; preds = %.preheader149.us.preheader
  %unroll_iter226 = and i64 %wide.trip.count204, 2147483640
  br label %.preheader149.us

.preheader149.lr.ph.split.us.split.us:            ; preds = %.preheader149.lr.ph.split.us
  %178 = load ptr, ptr %170, align 8, !tbaa !22
  %179 = load ptr, ptr %171, align 8, !tbaa !22
  %wide.trip.count199 = zext nneg i32 %.1135 to i64
  %wide.trip.count194 = zext nneg i32 %173 to i64
  %xtraiter229 = and i64 %wide.trip.count194, 1
  %180 = icmp eq i32 %173, 1
  %unroll_iter233 = and i64 %wide.trip.count194, 2147483646
  %lcmp.mod231.not = icmp eq i64 %xtraiter229, 0
  br label %.preheader149.us.us

.preheader149.us.us:                              ; preds = %._crit_edge163.split.us.us.us, %.preheader149.lr.ph.split.us.split.us
  %indvars.iv201 = phi i64 [ %indvars.iv.next202, %._crit_edge163.split.us.us.us ], [ 0, %.preheader149.lr.ph.split.us.split.us ]
  %181 = getelementptr inbounds [32 x ptr], ptr %169, i64 0, i64 %indvars.iv201
  %182 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv201
  %183 = load ptr, ptr %182, align 8, !tbaa !24
  %184 = load ptr, ptr %181, align 8, !tbaa !24
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge160.us.us.us, %.preheader149.us.us
  %indvars.iv196 = phi i64 [ %indvars.iv.next197, %._crit_edge160.us.us.us ], [ 0, %.preheader149.us.us ]
  %185 = getelementptr inbounds ptr, ptr %178, i64 %indvars.iv196
  %186 = load ptr, ptr %185, align 8, !tbaa !24
  %187 = getelementptr inbounds ptr, ptr %179, i64 %indvars.iv196
  %188 = load ptr, ptr %187, align 8, !tbaa !24
  br i1 %180, label %._crit_edge160.us.us.us.unr-lcssa, label %.preheader.us.us.us.new

.preheader.us.us.us.new:                          ; preds = %.preheader.us.us.us, %.preheader.us.us.us.new
  %indvars.iv191 = phi i64 [ %indvars.iv.next192.1, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %189 = phi <2 x float> [ %211, %.preheader.us.us.us.new ], [ zeroinitializer, %.preheader.us.us.us ]
  %niter234 = phi i64 [ %niter234.next.1, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %190 = getelementptr inbounds float, ptr %184, i64 %indvars.iv191
  %191 = load float, ptr %190, align 4, !tbaa !15
  %192 = getelementptr inbounds float, ptr %186, i64 %indvars.iv191
  %193 = load float, ptr %192, align 4, !tbaa !15
  %194 = getelementptr inbounds float, ptr %188, i64 %indvars.iv191
  %195 = load float, ptr %194, align 4, !tbaa !15
  %196 = insertelement <2 x float> poison, float %191, i64 0
  %197 = shufflevector <2 x float> %196, <2 x float> poison, <2 x i32> zeroinitializer
  %198 = insertelement <2 x float> poison, float %195, i64 0
  %199 = insertelement <2 x float> %198, float %193, i64 1
  %200 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %197, <2 x float> %199, <2 x float> %189)
  %indvars.iv.next192 = or disjoint i64 %indvars.iv191, 1
  %201 = getelementptr inbounds float, ptr %184, i64 %indvars.iv.next192
  %202 = load float, ptr %201, align 4, !tbaa !15
  %203 = getelementptr inbounds float, ptr %186, i64 %indvars.iv.next192
  %204 = load float, ptr %203, align 4, !tbaa !15
  %205 = getelementptr inbounds float, ptr %188, i64 %indvars.iv.next192
  %206 = load float, ptr %205, align 4, !tbaa !15
  %207 = insertelement <2 x float> poison, float %202, i64 0
  %208 = shufflevector <2 x float> %207, <2 x float> poison, <2 x i32> zeroinitializer
  %209 = insertelement <2 x float> poison, float %206, i64 0
  %210 = insertelement <2 x float> %209, float %204, i64 1
  %211 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %208, <2 x float> %210, <2 x float> %200)
  %indvars.iv.next192.1 = add nuw nsw i64 %indvars.iv191, 2
  %niter234.next.1 = add i64 %niter234, 2
  %niter234.ncmp.1 = icmp eq i64 %niter234.next.1, %unroll_iter233
  br i1 %niter234.ncmp.1, label %._crit_edge160.us.us.us.unr-lcssa, label %.preheader.us.us.us.new, !llvm.loop !33

._crit_edge160.us.us.us.unr-lcssa:                ; preds = %.preheader.us.us.us.new, %.preheader.us.us.us
  %.lcssa.ph = phi <2 x float> [ poison, %.preheader.us.us.us ], [ %211, %.preheader.us.us.us.new ]
  %indvars.iv191.unr = phi i64 [ 0, %.preheader.us.us.us ], [ %indvars.iv.next192.1, %.preheader.us.us.us.new ]
  %.unr = phi <2 x float> [ zeroinitializer, %.preheader.us.us.us ], [ %211, %.preheader.us.us.us.new ]
  br i1 %lcmp.mod231.not, label %._crit_edge160.us.us.us, label %._crit_edge160.us.us.us.epilog-lcssa

._crit_edge160.us.us.us.epilog-lcssa:             ; preds = %._crit_edge160.us.us.us.unr-lcssa
  %212 = getelementptr inbounds float, ptr %184, i64 %indvars.iv191.unr
  %213 = load float, ptr %212, align 4, !tbaa !15
  %214 = getelementptr inbounds float, ptr %186, i64 %indvars.iv191.unr
  %215 = load float, ptr %214, align 4, !tbaa !15
  %216 = getelementptr inbounds float, ptr %188, i64 %indvars.iv191.unr
  %217 = load float, ptr %216, align 4, !tbaa !15
  %218 = insertelement <2 x float> poison, float %213, i64 0
  %219 = shufflevector <2 x float> %218, <2 x float> poison, <2 x i32> zeroinitializer
  %220 = insertelement <2 x float> poison, float %217, i64 0
  %221 = insertelement <2 x float> %220, float %215, i64 1
  %222 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %219, <2 x float> %221, <2 x float> %.unr)
  br label %._crit_edge160.us.us.us

._crit_edge160.us.us.us:                          ; preds = %._crit_edge160.us.us.us.unr-lcssa, %._crit_edge160.us.us.us.epilog-lcssa
  %.lcssa = phi <2 x float> [ %.lcssa.ph, %._crit_edge160.us.us.us.unr-lcssa ], [ %222, %._crit_edge160.us.us.us.epilog-lcssa ]
  %223 = fmul <2 x float> %.lcssa, %.lcssa
  %224 = extractelement <2 x float> %223, i64 0
  %225 = extractelement <2 x float> %.lcssa, i64 1
  %226 = call float @llvm.fmuladd.f32(float %225, float %225, float %224)
  %227 = getelementptr inbounds float, ptr %183, i64 %indvars.iv196
  store float %226, ptr %227, align 4, !tbaa !15
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %exitcond200.not = icmp eq i64 %indvars.iv.next197, %wide.trip.count199
  br i1 %exitcond200.not, label %._crit_edge163.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !34

._crit_edge163.split.us.us.us:                    ; preds = %._crit_edge160.us.us.us
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
  br i1 %exitcond205.not, label %._crit_edge165, label %.preheader149.us.us, !llvm.loop !35

.preheader149.us:                                 ; preds = %.preheader149.us, %.preheader149.us.preheader.new
  %indvars.iv186 = phi i64 [ 0, %.preheader149.us.preheader.new ], [ %indvars.iv.next187.7, %.preheader149.us ]
  %niter227 = phi i64 [ 0, %.preheader149.us.preheader.new ], [ %niter227.next.7, %.preheader149.us ]
  %228 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv186
  %229 = load ptr, ptr %228, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %229, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187 = or disjoint i64 %indvars.iv186, 1
  %230 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv.next187
  %231 = load ptr, ptr %230, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %231, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.1 = or disjoint i64 %indvars.iv186, 2
  %232 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv.next187.1
  %233 = load ptr, ptr %232, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %233, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.2 = or disjoint i64 %indvars.iv186, 3
  %234 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv.next187.2
  %235 = load ptr, ptr %234, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %235, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.3 = or disjoint i64 %indvars.iv186, 4
  %236 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv.next187.3
  %237 = load ptr, ptr %236, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %237, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.4 = or disjoint i64 %indvars.iv186, 5
  %238 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv.next187.4
  %239 = load ptr, ptr %238, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %239, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.5 = or disjoint i64 %indvars.iv186, 6
  %240 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv.next187.5
  %241 = load ptr, ptr %240, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %241, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.6 = or disjoint i64 %indvars.iv186, 7
  %242 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv.next187.6
  %243 = load ptr, ptr %242, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %243, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.7 = add nuw nsw i64 %indvars.iv186, 8
  %niter227.next.7 = add i64 %niter227, 8
  %niter227.ncmp.7 = icmp eq i64 %niter227.next.7, %unroll_iter226
  br i1 %niter227.ncmp.7, label %._crit_edge165.loopexit219.unr-lcssa, label %.preheader149.us, !llvm.loop !35

._crit_edge165.loopexit219.unr-lcssa:             ; preds = %.preheader149.us, %.preheader149.us.preheader
  %indvars.iv186.unr = phi i64 [ 0, %.preheader149.us.preheader ], [ %indvars.iv.next187.7, %.preheader149.us ]
  %lcmp.mod225.not = icmp eq i64 %xtraiter223, 0
  br i1 %lcmp.mod225.not, label %._crit_edge165, label %.preheader149.us.epil

.preheader149.us.epil:                            ; preds = %._crit_edge165.loopexit219.unr-lcssa, %.preheader149.us.epil
  %indvars.iv186.epil = phi i64 [ %indvars.iv.next187.epil, %.preheader149.us.epil ], [ %indvars.iv186.unr, %._crit_edge165.loopexit219.unr-lcssa ]
  %epil.iter224 = phi i64 [ %epil.iter224.next, %.preheader149.us.epil ], [ 0, %._crit_edge165.loopexit219.unr-lcssa ]
  %244 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv186.epil
  %245 = load ptr, ptr %244, align 8, !tbaa !24
  call void @llvm.memset.p0.i64(ptr align 4 %245, i8 0, i64 %176, i1 false), !tbaa !15
  %indvars.iv.next187.epil = add nuw nsw i64 %indvars.iv186.epil, 1
  %epil.iter224.next = add i64 %epil.iter224, 1
  %epil.iter224.cmp.not = icmp eq i64 %epil.iter224.next, %xtraiter223
  br i1 %epil.iter224.cmp.not, label %._crit_edge165, label %.preheader149.us.epil, !llvm.loop !36

._crit_edge165:                                   ; preds = %._crit_edge165.loopexit219.unr-lcssa, %.preheader149.us.epil, %._crit_edge163.split.us.us.us, %.preheader149.lr.ph, %161
  ret void
}

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

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

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

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

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

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 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nofree nounwind willreturn memory(argmem: read) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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, !10, i64 16}
!6 = !{!"MHandle", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!13, !7, i64 4}
!13 = !{!"HandleWaveFrequencyAnalyse", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24}
!14 = !{!13, !10, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = !{!13, !7, i64 0}
!18 = !{!13, !10, i64 16}
!19 = !{!20, !7, i64 4}
!20 = !{!"MWave", !7, i64 0, !7, i64 4, !8, i64 8}
!21 = !{!13, !10, i64 24}
!22 = !{!23, !10, i64 8}
!23 = !{!"MMatrix", !7, i64 0, !7, i64 4, !10, i64 8}
!24 = !{!10, !10, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26, !29}
!29 = !{!"llvm.loop.unswitch.partial.disable"}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.unroll.disable"}
!32 = !{!20, !7, i64 0}
!33 = distinct !{!33, !26}
!34 = distinct !{!34, !26}
!35 = distinct !{!35, !26}
!36 = distinct !{!36, !31}


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