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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.MWave = type { i32, i32, [32 x ptr] }

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@__FUNCTION__.mWaveBandwidth = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mWaveBandwidth(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  br label %15

15:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %22, label %18

18:                                               ; preds = %15
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = ptrtoint ptr %19 to i64
  %21 = icmp eq i64 %20, -1
  br i1 %21, label %22, label %23

22:                                               ; preds = %18, %15
  br i1 true, label %53, label %44

23:                                               ; preds = %18
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.MWave, ptr %24, i32 0, i32 2
  %26 = getelementptr inbounds [32 x ptr], ptr %25, i64 0, i64 0
  %27 = icmp eq ptr %26, null
  br i1 %27, label %53, label %28

28:                                               ; preds = %23
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.MWave, ptr %29, i32 0, i32 2
  %31 = getelementptr inbounds [32 x ptr], ptr %30, i64 0, i64 0
  %32 = ptrtoint ptr %31 to i64
  %33 = icmp eq i64 %32, -1
  br i1 %33, label %53, label %34

34:                                               ; preds = %28
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.MWave, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = icmp sle i32 %37, 0
  br i1 %38, label %53, label %39

39:                                               ; preds = %34
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.MWave, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !12
  %43 = icmp sle i32 %42, 0
  br i1 %43, label %53, label %44

44:                                               ; preds = %39, %22
  %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 label %51

51:                                               ; preds = %47, %44
  %52 = phi i1 [ true, %44 ], [ %50, %47 ]
  br label %53

53:                                               ; preds = %51, %39, %34, %28, %23, %22
  %54 = phi i1 [ true, %39 ], [ true, %34 ], [ true, %28 ], [ true, %23 ], [ true, %22 ], [ %52, %51 ]
  %55 = zext i1 %54 to i32
  store i32 %55, ptr %12, align 4, !tbaa !13
  %56 = load i32, ptr %12, align 4, !tbaa !13
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %53
  %59 = load i32, ptr %12, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %59, i32 noundef -1, ptr noundef @.str, i32 noundef 202, ptr noundef @__FUNCTION__.mWaveBandwidth, ptr noundef @.str.1)
  br label %60

60:                                               ; preds = %58, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 -1, ptr %13, align 4, !tbaa !13
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = call ptr @m_PropertyRead(ptr noundef %63, ptr noundef @.str.2, ptr noundef %13, ptr noundef null)
  br label %65

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %66 = load i32, ptr %13, align 4, !tbaa !13
  %67 = icmp ne i32 %66, 2
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %14, align 4, !tbaa !13
  %69 = load i32, ptr %14, align 4, !tbaa !13
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %65
  %72 = load i32, ptr %14, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %72, i32 noundef -1, ptr noundef @.str, i32 noundef 204, ptr noundef @__FUNCTION__.mWaveBandwidth, ptr noundef @.str.3)
  br label %73

73:                                               ; preds = %71, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  store i32 0, ptr %8, align 4, !tbaa !13
  br label %76

76:                                               ; preds = %175, %75
  %77 = load i32, ptr %8, align 4, !tbaa !13
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.MWave, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !9
  %81 = icmp slt i32 %77, %80
  br i1 %81, label %82, label %178

82:                                               ; preds = %76
  store float 0.000000e+00, ptr %9, align 4, !tbaa !14
  store float 0.000000e+00, ptr %10, align 4, !tbaa !14
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %83

83:                                               ; preds = %116, %82
  %84 = load i32, ptr %7, align 4, !tbaa !13
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.MWave, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !12
  %88 = icmp slt i32 %84, %87
  br i1 %88, label %89, label %119

89:                                               ; preds = %83
  %90 = load float, ptr %9, align 4, !tbaa !14
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.MWave, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %8, align 4, !tbaa !13
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [32 x ptr], ptr %92, i64 0, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i32, ptr %7, align 4, !tbaa !13
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds float, ptr %96, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !14
  %101 = fadd float %90, %100
  store float %101, ptr %9, align 4, !tbaa !14
  %102 = load float, ptr %10, align 4, !tbaa !14
  %103 = load i32, ptr %7, align 4, !tbaa !13
  %104 = sitofp i32 %103 to float
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.MWave, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %8, align 4, !tbaa !13
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [32 x ptr], ptr %106, i64 0, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i32, ptr %7, align 4, !tbaa !13
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds float, ptr %110, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !14
  %115 = call float @llvm.fmuladd.f32(float %104, float %114, float %102)
  store float %115, ptr %10, align 4, !tbaa !14
  br label %116

116:                                              ; preds = %89
  %117 = load i32, ptr %7, align 4, !tbaa !13
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !13
  br label %83, !llvm.loop !16

119:                                              ; preds = %83
  %120 = load float, ptr %10, align 4, !tbaa !14
  %121 = load float, ptr %9, align 4, !tbaa !14
  %122 = fdiv float %120, %121
  store float %122, ptr %11, align 4, !tbaa !14
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = icmp eq ptr %123, null
  br i1 %124, label %135, label %125

125:                                              ; preds = %119
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = ptrtoint ptr %126 to i64
  %128 = icmp eq i64 %127, -1
  br i1 %128, label %135, label %129

129:                                              ; preds = %125
  %130 = load float, ptr %11, align 4, !tbaa !14
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = load i32, ptr %8, align 4, !tbaa !13
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %131, i64 %133
  store float %130, ptr %134, align 4, !tbaa !14
  br label %135

135:                                              ; preds = %129, %125, %119
  store float 0.000000e+00, ptr %10, align 4, !tbaa !14
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %136

136:                                              ; preds = %164, %135
  %137 = load i32, ptr %7, align 4, !tbaa !13
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.MWave, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !12
  %141 = icmp slt i32 %137, %140
  br i1 %141, label %142, label %167

142:                                              ; preds = %136
  %143 = load float, ptr %10, align 4, !tbaa !14
  %144 = load i32, ptr %7, align 4, !tbaa !13
  %145 = sitofp i32 %144 to float
  %146 = load float, ptr %11, align 4, !tbaa !14
  %147 = fsub float %145, %146
  %148 = load i32, ptr %7, align 4, !tbaa !13
  %149 = sitofp i32 %148 to float
  %150 = load float, ptr %11, align 4, !tbaa !14
  %151 = fsub float %149, %150
  %152 = fmul float %147, %151
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.MWave, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %8, align 4, !tbaa !13
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [32 x ptr], ptr %154, i64 0, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load i32, ptr %7, align 4, !tbaa !13
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %158, i64 %160
  %162 = load float, ptr %161, align 4, !tbaa !14
  %163 = call float @llvm.fmuladd.f32(float %152, float %162, float %143)
  store float %163, ptr %10, align 4, !tbaa !14
  br label %164

164:                                              ; preds = %142
  %165 = load i32, ptr %7, align 4, !tbaa !13
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %7, align 4, !tbaa !13
  br label %136, !llvm.loop !18

167:                                              ; preds = %136
  %168 = load float, ptr %10, align 4, !tbaa !14
  %169 = load float, ptr %9, align 4, !tbaa !14
  %170 = fdiv float %168, %169
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = load i32, ptr %8, align 4, !tbaa !13
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds float, ptr %171, i64 %173
  store float %170, ptr %174, align 4, !tbaa !14
  br label %175

175:                                              ; preds = %167
  %176 = load i32, ptr %8, align 4, !tbaa !13
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %8, align 4, !tbaa !13
  br label %76, !llvm.loop !19

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

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

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

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


; 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
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@__FUNCTION__.mWaveBandwidth = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mWaveBandwidth(ptr noundef %0, ptr noundef %1, ptr noundef writeonly %2) local_unnamed_addr #3 {
  %4 = ptrtoint ptr %1 to i64
  %5 = ptrtoint ptr %2 to i64
  %6 = alloca i32, align 4
  %7 = getelementptr i8, ptr %0, i64 8
  %8 = icmp eq ptr %7, inttoptr (i64 -1 to ptr)
  br i1 %8, label %.thread, label %switch.early.test

switch.early.test:                                ; preds = %3
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %9 [
    i64 -1, label %.thread
    i64 0, label %.thread
  ]

9:                                                ; preds = %switch.early.test
  %10 = load i32, ptr %0, align 8, !tbaa !5
  %11 = icmp slt i32 %10, 1
  br i1 %11, label %.thread, label %12

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

16:                                               ; preds = %12
  %magicptr70 = ptrtoint ptr %2 to i64
  switch i64 %magicptr70, label %17 [
    i64 -1, label %.thread
    i64 0, label %.thread
  ]

.thread:                                          ; preds = %16, %16, %3, %switch.early.test, %switch.early.test, %9, %12
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 202, ptr noundef nonnull @__FUNCTION__.mWaveBandwidth, ptr noundef nonnull @.str.1) #4
  br label %17

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

20:                                               ; preds = %17
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 204, ptr noundef nonnull @__FUNCTION__.mWaveBandwidth, ptr noundef nonnull @.str.3) #4
  br label %21

21:                                               ; preds = %20, %17
  %22 = load i32, ptr %0, align 8, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.preheader.lr.ph, label %._crit_edge83

.preheader.lr.ph:                                 ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !10
  %magicptr69 = ptrtoint ptr %1 to i64
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.preheader.us.us.preheader, label %.preheader.lr.ph.split.split

.preheader.us.us.preheader:                       ; preds = %.preheader.lr.ph
  %wide.trip.count125 = zext nneg i32 %22 to i64
  %wide.trip.count115 = zext nneg i32 %25 to i64
  %xtraiter151 = and i64 %wide.trip.count115, 3
  %27 = icmp ult i32 %25, 4
  %unroll_iter = and i64 %wide.trip.count115, 2147483644
  %lcmp.mod152.not = icmp eq i64 %xtraiter151, 0
  %xtraiter155 = and i64 %wide.trip.count115, 1
  %28 = icmp eq i32 %25, 1
  %unroll_iter159 = and i64 %wide.trip.count115, 2147483646
  %lcmp.mod157.not = icmp eq i64 %xtraiter155, 0
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %.preheader.us.us.preheader, %._crit_edge80.us.us
  %indvars.iv122 = phi i64 [ 0, %.preheader.us.us.preheader ], [ %indvars.iv.next123, %._crit_edge80.us.us ]
  %29 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %indvars.iv122
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  br i1 %27, label %._crit_edge.us.us.unr-lcssa, label %.preheader.us.us.new

31:                                               ; preds = %._crit_edge.us.us
  %32 = getelementptr inbounds float, ptr %1, i64 %indvars.iv122
  store float %77, ptr %32, align 4, !tbaa !14
  br label %.lr.ph79.us.us.preheader

.lr.ph79.us.us.preheader:                         ; preds = %31, %._crit_edge.us.us, %._crit_edge.us.us
  br i1 %28, label %._crit_edge80.us.us.unr-lcssa, label %.lr.ph79.us.us

.lr.ph79.us.us:                                   ; preds = %.lr.ph79.us.us.preheader, %.lr.ph79.us.us
  %indvars.iv117 = phi i64 [ %indvars.iv.next118.1, %.lr.ph79.us.us ], [ 0, %.lr.ph79.us.us.preheader ]
  %.16676.us.us = phi float [ %46, %.lr.ph79.us.us ], [ 0.000000e+00, %.lr.ph79.us.us.preheader ]
  %niter160 = phi i64 [ %niter160.next.1, %.lr.ph79.us.us ], [ 0, %.lr.ph79.us.us.preheader ]
  %33 = trunc nuw nsw i64 %indvars.iv117 to i32
  %34 = uitofp nneg i32 %33 to float
  %35 = fsub float %34, %77
  %36 = fmul float %35, %35
  %37 = getelementptr inbounds float, ptr %30, i64 %indvars.iv117
  %38 = load float, ptr %37, align 4, !tbaa !14
  %39 = call float @llvm.fmuladd.f32(float %36, float %38, float %.16676.us.us)
  %indvars.iv.next118 = or disjoint i64 %indvars.iv117, 1
  %40 = trunc nuw nsw i64 %indvars.iv.next118 to i32
  %41 = uitofp nneg i32 %40 to float
  %42 = fsub float %41, %77
  %43 = fmul float %42, %42
  %44 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next118
  %45 = load float, ptr %44, align 4, !tbaa !14
  %46 = call float @llvm.fmuladd.f32(float %43, float %45, float %39)
  %indvars.iv.next118.1 = add nuw nsw i64 %indvars.iv117, 2
  %niter160.next.1 = add i64 %niter160, 2
  %niter160.ncmp.1 = icmp eq i64 %niter160.next.1, %unroll_iter159
  br i1 %niter160.ncmp.1, label %._crit_edge80.us.us.unr-lcssa, label %.lr.ph79.us.us, !llvm.loop !16

.preheader.us.us.new:                             ; preds = %.preheader.us.us, %.preheader.us.us.new
  %indvars.iv112 = phi i64 [ %indvars.iv.next113.3, %.preheader.us.us.new ], [ 0, %.preheader.us.us ]
  %.06472.us.us = phi float [ %67, %.preheader.us.us.new ], [ 0.000000e+00, %.preheader.us.us ]
  %.06571.us.us = phi float [ %70, %.preheader.us.us.new ], [ 0.000000e+00, %.preheader.us.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.us.new ], [ 0, %.preheader.us.us ]
  %47 = getelementptr inbounds float, ptr %30, i64 %indvars.iv112
  %48 = load float, ptr %47, align 4, !tbaa !14
  %49 = fadd float %.06472.us.us, %48
  %50 = trunc nuw nsw i64 %indvars.iv112 to i32
  %51 = uitofp nneg i32 %50 to float
  %52 = call float @llvm.fmuladd.f32(float %51, float %48, float %.06571.us.us)
  %indvars.iv.next113 = or disjoint i64 %indvars.iv112, 1
  %53 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next113
  %54 = load float, ptr %53, align 4, !tbaa !14
  %55 = fadd float %49, %54
  %56 = trunc nuw nsw i64 %indvars.iv.next113 to i32
  %57 = uitofp nneg i32 %56 to float
  %58 = call float @llvm.fmuladd.f32(float %57, float %54, float %52)
  %indvars.iv.next113.1 = or disjoint i64 %indvars.iv112, 2
  %59 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next113.1
  %60 = load float, ptr %59, align 4, !tbaa !14
  %61 = fadd float %55, %60
  %62 = trunc nuw nsw i64 %indvars.iv.next113.1 to i32
  %63 = uitofp nneg i32 %62 to float
  %64 = call float @llvm.fmuladd.f32(float %63, float %60, float %58)
  %indvars.iv.next113.2 = or disjoint i64 %indvars.iv112, 3
  %65 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next113.2
  %66 = load float, ptr %65, align 4, !tbaa !14
  %67 = fadd float %61, %66
  %68 = trunc nuw nsw i64 %indvars.iv.next113.2 to i32
  %69 = uitofp nneg i32 %68 to float
  %70 = call float @llvm.fmuladd.f32(float %69, float %66, float %64)
  %indvars.iv.next113.3 = add nuw nsw i64 %indvars.iv112, 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_edge.us.us.unr-lcssa, label %.preheader.us.us.new, !llvm.loop !18

._crit_edge.us.us.unr-lcssa:                      ; preds = %.preheader.us.us.new, %.preheader.us.us
  %.lcssa146.ph = phi float [ poison, %.preheader.us.us ], [ %67, %.preheader.us.us.new ]
  %.lcssa.ph = phi float [ poison, %.preheader.us.us ], [ %70, %.preheader.us.us.new ]
  %indvars.iv112.unr = phi i64 [ 0, %.preheader.us.us ], [ %indvars.iv.next113.3, %.preheader.us.us.new ]
  %.06472.us.us.unr = phi float [ 0.000000e+00, %.preheader.us.us ], [ %67, %.preheader.us.us.new ]
  %.06571.us.us.unr = phi float [ 0.000000e+00, %.preheader.us.us ], [ %70, %.preheader.us.us.new ]
  br i1 %lcmp.mod152.not, label %._crit_edge.us.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.us.unr-lcssa, %.epil.preheader
  %indvars.iv112.epil = phi i64 [ %indvars.iv.next113.epil, %.epil.preheader ], [ %indvars.iv112.unr, %._crit_edge.us.us.unr-lcssa ]
  %.06472.us.us.epil = phi float [ %73, %.epil.preheader ], [ %.06472.us.us.unr, %._crit_edge.us.us.unr-lcssa ]
  %.06571.us.us.epil = phi float [ %76, %.epil.preheader ], [ %.06571.us.us.unr, %._crit_edge.us.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.us.unr-lcssa ]
  %71 = getelementptr inbounds float, ptr %30, i64 %indvars.iv112.epil
  %72 = load float, ptr %71, align 4, !tbaa !14
  %73 = fadd float %.06472.us.us.epil, %72
  %74 = trunc nuw nsw i64 %indvars.iv112.epil to i32
  %75 = uitofp nneg i32 %74 to float
  %76 = call float @llvm.fmuladd.f32(float %75, float %72, float %.06571.us.us.epil)
  %indvars.iv.next113.epil = add nuw nsw i64 %indvars.iv112.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter151
  br i1 %epil.iter.cmp.not, label %._crit_edge.us.us, label %.epil.preheader, !llvm.loop !19

._crit_edge.us.us:                                ; preds = %.epil.preheader, %._crit_edge.us.us.unr-lcssa
  %.lcssa146 = phi float [ %.lcssa146.ph, %._crit_edge.us.us.unr-lcssa ], [ %73, %.epil.preheader ]
  %.lcssa = phi float [ %.lcssa.ph, %._crit_edge.us.us.unr-lcssa ], [ %76, %.epil.preheader ]
  %77 = fdiv float %.lcssa, %.lcssa146
  switch i64 %magicptr69, label %31 [
    i64 -1, label %.lr.ph79.us.us.preheader
    i64 0, label %.lr.ph79.us.us.preheader
  ]

._crit_edge80.us.us.unr-lcssa:                    ; preds = %.lr.ph79.us.us, %.lr.ph79.us.us.preheader
  %.lcssa147.ph = phi float [ poison, %.lr.ph79.us.us.preheader ], [ %46, %.lr.ph79.us.us ]
  %indvars.iv117.unr = phi i64 [ 0, %.lr.ph79.us.us.preheader ], [ %indvars.iv.next118.1, %.lr.ph79.us.us ]
  %.16676.us.us.unr = phi float [ 0.000000e+00, %.lr.ph79.us.us.preheader ], [ %46, %.lr.ph79.us.us ]
  br i1 %lcmp.mod157.not, label %._crit_edge80.us.us, label %.lr.ph79.us.us.epil

.lr.ph79.us.us.epil:                              ; preds = %._crit_edge80.us.us.unr-lcssa
  %78 = trunc nuw nsw i64 %indvars.iv117.unr to i32
  %79 = uitofp nneg i32 %78 to float
  %80 = fsub float %79, %77
  %81 = fmul float %80, %80
  %82 = getelementptr inbounds float, ptr %30, i64 %indvars.iv117.unr
  %83 = load float, ptr %82, align 4, !tbaa !14
  %84 = call float @llvm.fmuladd.f32(float %81, float %83, float %.16676.us.us.unr)
  br label %._crit_edge80.us.us

._crit_edge80.us.us:                              ; preds = %._crit_edge80.us.us.unr-lcssa, %.lr.ph79.us.us.epil
  %.lcssa147 = phi float [ %.lcssa147.ph, %._crit_edge80.us.us.unr-lcssa ], [ %84, %.lr.ph79.us.us.epil ]
  %85 = fdiv float %.lcssa147, %.lcssa146
  %86 = getelementptr inbounds float, ptr %2, i64 %indvars.iv122
  store float %85, ptr %86, align 4, !tbaa !14
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next123, %wide.trip.count125
  br i1 %exitcond126.not, label %._crit_edge83, label %.preheader.us.us, !llvm.loop !21

.preheader.lr.ph.split.split:                     ; preds = %.preheader.lr.ph
  switch i64 %magicptr69, label %.preheader.preheader [
    i64 -1, label %.preheader.lr.ph.split.split.split.us
    i64 0, label %.preheader.lr.ph.split.split.split.us
  ]

.preheader.preheader:                             ; preds = %.preheader.lr.ph.split.split
  %wide.trip.count110 = zext nneg i32 %22 to i64
  %min.iters.check137 = icmp ult i32 %22, 8
  %87 = sub i64 %5, %4
  %diff.check = icmp ult i64 %87, 32
  %or.cond = or i1 %min.iters.check137, %diff.check
  br i1 %or.cond, label %.preheader.preheader148, label %vector.ph138

.preheader.preheader148:                          ; preds = %middle.block135, %.preheader.preheader
  %indvars.iv107.ph = phi i64 [ 0, %.preheader.preheader ], [ %n.vec140, %middle.block135 ]
  %xtraiter = and i64 %wide.trip.count110, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader.prol.loopexit, label %.preheader.prol

.preheader.prol:                                  ; preds = %.preheader.preheader148, %.preheader.prol
  %indvars.iv107.prol = phi i64 [ %indvars.iv.next108.prol, %.preheader.prol ], [ %indvars.iv107.ph, %.preheader.preheader148 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.preheader.prol ], [ 0, %.preheader.preheader148 ]
  %88 = getelementptr inbounds float, ptr %1, i64 %indvars.iv107.prol
  store float 0x7FF8000000000000, ptr %88, align 4, !tbaa !14
  %89 = getelementptr inbounds float, ptr %2, i64 %indvars.iv107.prol
  store float 0x7FF8000000000000, ptr %89, align 4, !tbaa !14
  %indvars.iv.next108.prol = add nuw nsw i64 %indvars.iv107.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.preheader.prol.loopexit, label %.preheader.prol, !llvm.loop !22

.preheader.prol.loopexit:                         ; preds = %.preheader.prol, %.preheader.preheader148
  %indvars.iv107.unr = phi i64 [ %indvars.iv107.ph, %.preheader.preheader148 ], [ %indvars.iv.next108.prol, %.preheader.prol ]
  %90 = sub nsw i64 %indvars.iv107.ph, %wide.trip.count110
  %91 = icmp ugt i64 %90, -4
  br i1 %91, label %._crit_edge83, label %.preheader

vector.ph138:                                     ; preds = %.preheader.preheader
  %n.vec140 = and i64 %wide.trip.count110, 2147483640
  br label %vector.body142

vector.body142:                                   ; preds = %vector.body142, %vector.ph138
  %index143 = phi i64 [ 0, %vector.ph138 ], [ %index.next144, %vector.body142 ]
  %92 = getelementptr inbounds float, ptr %1, i64 %index143
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  store <4 x float> <float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000>, ptr %92, align 4, !tbaa !14
  store <4 x float> <float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000>, ptr %93, align 4, !tbaa !14
  %94 = getelementptr inbounds float, ptr %2, i64 %index143
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  store <4 x float> <float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000>, ptr %94, align 4, !tbaa !14
  store <4 x float> <float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000>, ptr %95, align 4, !tbaa !14
  %index.next144 = add nuw i64 %index143, 8
  %96 = icmp eq i64 %index.next144, %n.vec140
  br i1 %96, label %middle.block135, label %vector.body142, !llvm.loop !23

middle.block135:                                  ; preds = %vector.body142
  %cmp.n145 = icmp eq i64 %n.vec140, %wide.trip.count110
  br i1 %cmp.n145, label %._crit_edge83, label %.preheader.preheader148

.preheader.lr.ph.split.split.split.us:            ; preds = %.preheader.lr.ph.split.split, %.preheader.lr.ph.split.split
  %wide.trip.count = zext nneg i32 %22 to i64
  %min.iters.check = icmp ult i32 %22, 8
  br i1 %min.iters.check, label %.preheader.us95.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader.lr.ph.split.split.split.us
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %97 = getelementptr inbounds float, ptr %2, i64 %index
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  store <4 x float> <float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000>, ptr %97, align 4, !tbaa !14
  store <4 x float> <float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000, float 0x7FF8000000000000>, ptr %98, align 4, !tbaa !14
  %index.next = add nuw i64 %index, 8
  %99 = icmp eq i64 %index.next, %n.vec
  br i1 %99, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge83, label %.preheader.us95.preheader

.preheader.us95.preheader:                        ; preds = %middle.block, %.preheader.lr.ph.split.split.split.us
  %indvars.iv.ph = phi i64 [ 0, %.preheader.lr.ph.split.split.split.us ], [ %n.vec, %middle.block ]
  br label %.preheader.us95

.preheader.us95:                                  ; preds = %.preheader.us95.preheader, %.preheader.us95
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader.us95 ], [ %indvars.iv.ph, %.preheader.us95.preheader ]
  %100 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  store float 0x7FF8000000000000, ptr %100, align 4, !tbaa !14
  %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_edge83, label %.preheader.us95, !llvm.loop !27

.preheader:                                       ; preds = %.preheader.prol.loopexit, %.preheader
  %indvars.iv107 = phi i64 [ %indvars.iv.next108.3, %.preheader ], [ %indvars.iv107.unr, %.preheader.prol.loopexit ]
  %101 = getelementptr inbounds float, ptr %1, i64 %indvars.iv107
  store float 0x7FF8000000000000, ptr %101, align 4, !tbaa !14
  %102 = getelementptr inbounds float, ptr %2, i64 %indvars.iv107
  store float 0x7FF8000000000000, ptr %102, align 4, !tbaa !14
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %103 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next108
  store float 0x7FF8000000000000, ptr %103, align 4, !tbaa !14
  %104 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next108
  store float 0x7FF8000000000000, ptr %104, align 4, !tbaa !14
  %indvars.iv.next108.1 = add nuw nsw i64 %indvars.iv107, 2
  %105 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next108.1
  store float 0x7FF8000000000000, ptr %105, align 4, !tbaa !14
  %106 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next108.1
  store float 0x7FF8000000000000, ptr %106, align 4, !tbaa !14
  %indvars.iv.next108.2 = add nuw nsw i64 %indvars.iv107, 3
  %107 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next108.2
  store float 0x7FF8000000000000, ptr %107, align 4, !tbaa !14
  %108 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next108.2
  store float 0x7FF8000000000000, ptr %108, align 4, !tbaa !14
  %indvars.iv.next108.3 = add nuw nsw i64 %indvars.iv107, 4
  %exitcond111.not.3 = icmp eq i64 %indvars.iv.next108.3, %wide.trip.count110
  br i1 %exitcond111.not.3, label %._crit_edge83, label %.preheader, !llvm.loop !28

._crit_edge83:                                    ; preds = %.preheader.us95, %.preheader.prol.loopexit, %.preheader, %._crit_edge80.us.us, %middle.block, %middle.block135, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  ret void
}

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

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

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


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