; 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__.mWaveCentroid = external hidden unnamed_addr constant [14 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 @mWaveCentroid(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  br label %12

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %19, label %15

15:                                               ; preds = %12
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = ptrtoint ptr %16 to i64
  %18 = icmp eq i64 %17, -1
  br i1 %18, label %19, label %20

19:                                               ; preds = %15, %12
  br i1 true, label %50, label %41

20:                                               ; preds = %15
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.MWave, ptr %21, i32 0, i32 2
  %23 = getelementptr inbounds [32 x ptr], ptr %22, i64 0, i64 0
  %24 = icmp eq ptr %23, null
  br i1 %24, label %50, label %25

25:                                               ; preds = %20
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.MWave, ptr %26, i32 0, i32 2
  %28 = getelementptr inbounds [32 x ptr], ptr %27, i64 0, i64 0
  %29 = ptrtoint ptr %28 to i64
  %30 = icmp eq i64 %29, -1
  br i1 %30, label %50, label %31

31:                                               ; preds = %25
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.MWave, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = icmp sle i32 %34, 0
  br i1 %35, label %50, label %36

36:                                               ; preds = %31
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.MWave, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !12
  %40 = icmp sle i32 %39, 0
  br i1 %40, label %50, label %41

41:                                               ; preds = %36, %19
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %48, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = ptrtoint ptr %45 to i64
  %47 = icmp eq i64 %46, -1
  br label %48

48:                                               ; preds = %44, %41
  %49 = phi i1 [ true, %41 ], [ %47, %44 ]
  br label %50

50:                                               ; preds = %48, %36, %31, %25, %20, %19
  %51 = phi i1 [ true, %36 ], [ true, %31 ], [ true, %25 ], [ true, %20 ], [ true, %19 ], [ %49, %48 ]
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %9, align 4, !tbaa !13
  %53 = load i32, ptr %9, align 4, !tbaa !13
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %50
  %56 = load i32, ptr %9, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %56, i32 noundef -1, ptr noundef @.str, i32 noundef 177, ptr noundef @__FUNCTION__.mWaveCentroid, ptr noundef @.str.1)
  br label %57

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

58:                                               ; preds = %57
  br label %59

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

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

68:                                               ; preds = %62
  %69 = load i32, ptr %11, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %69, i32 noundef -1, ptr noundef @.str, i32 noundef 179, ptr noundef @__FUNCTION__.mWaveCentroid, ptr noundef @.str.3)
  br label %70

70:                                               ; preds = %68, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %73

73:                                               ; preds = %124, %72
  %74 = load i32, ptr %6, align 4, !tbaa !13
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.MWave, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !9
  %78 = icmp slt i32 %74, %77
  br i1 %78, label %79, label %127

79:                                               ; preds = %73
  store float 0.000000e+00, ptr %7, align 4, !tbaa !14
  store float 0.000000e+00, ptr %8, align 4, !tbaa !14
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %80

80:                                               ; preds = %113, %79
  %81 = load i32, ptr %5, align 4, !tbaa !13
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.MWave, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !12
  %85 = icmp slt i32 %81, %84
  br i1 %85, label %86, label %116

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

113:                                              ; preds = %86
  %114 = load i32, ptr %5, align 4, !tbaa !13
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %5, align 4, !tbaa !13
  br label %80, !llvm.loop !16

116:                                              ; preds = %80
  %117 = load float, ptr %8, align 4, !tbaa !14
  %118 = load float, ptr %7, align 4, !tbaa !14
  %119 = fdiv float %117, %118
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load i32, ptr %6, align 4, !tbaa !13
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %120, i64 %122
  store float %119, ptr %123, align 4, !tbaa !14
  br label %124

124:                                              ; preds = %116
  %125 = load i32, ptr %6, align 4, !tbaa !13
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !13
  br label %73, !llvm.loop !18

127:                                              ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #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}


; 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__.mWaveCentroid = external hidden unnamed_addr constant [14 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 @mWaveCentroid(ptr noundef %0, ptr noundef writeonly %1) local_unnamed_addr #3 {
  %3 = alloca i32, align 4
  %4 = getelementptr i8, ptr %0, i64 8
  %5 = icmp eq ptr %4, inttoptr (i64 -1 to ptr)
  br i1 %5, label %.thread, label %switch.early.test

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

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

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

13:                                               ; preds = %9
  %magicptr46 = ptrtoint ptr %1 to i64
  switch i64 %magicptr46, label %14 [
    i64 -1, label %.thread
    i64 0, label %.thread
  ]

.thread:                                          ; preds = %13, %13, %2, %switch.early.test, %switch.early.test, %6, %9
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @__FUNCTION__.mWaveCentroid, ptr noundef nonnull @.str.1) #4
  br label %14

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

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

18:                                               ; preds = %17, %14
  %19 = load i32, ptr %0, align 8, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.preheader.lr.ph, label %._crit_edge52

.preheader.lr.ph:                                 ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !10
  %23 = icmp sgt i32 %22, 0
  %wide.trip.count64 = zext nneg i32 %19 to i64
  br i1 %23, label %.preheader.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %min.iters.check = icmp ult i32 %19, 8
  br i1 %min.iters.check, label %.preheader.preheader71, label %vector.ph

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

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

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

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count64
  br i1 %cmp.n, label %._crit_edge52, label %.preheader.preheader71

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count59 = zext nneg i32 %22 to i64
  %xtraiter = and i64 %wide.trip.count59, 3
  %27 = icmp ult i32 %22, 4
  %unroll_iter = and i64 %wide.trip.count59, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv61 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next62, %._crit_edge.us ]
  %28 = getelementptr inbounds [32 x ptr], ptr %4, i64 0, i64 %indvars.iv61
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  br i1 %27, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv56 = phi i64 [ %indvars.iv.next57.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %.04348.us = phi float [ %53, %.preheader.us.new ], [ 0.000000e+00, %.preheader.us ]
  %.04447.us = phi float [ %50, %.preheader.us.new ], [ 0.000000e+00, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %30 = getelementptr inbounds float, ptr %29, i64 %indvars.iv56
  %31 = load float, ptr %30, align 4, !tbaa !12
  %32 = fadd float %.04447.us, %31
  %33 = trunc nuw nsw i64 %indvars.iv56 to i32
  %34 = uitofp nneg i32 %33 to float
  %35 = call float @llvm.fmuladd.f32(float %34, float %31, float %.04348.us)
  %indvars.iv.next57 = or disjoint i64 %indvars.iv56, 1
  %36 = getelementptr inbounds float, ptr %29, i64 %indvars.iv.next57
  %37 = load float, ptr %36, align 4, !tbaa !12
  %38 = fadd float %32, %37
  %39 = trunc nuw nsw i64 %indvars.iv.next57 to i32
  %40 = uitofp nneg i32 %39 to float
  %41 = call float @llvm.fmuladd.f32(float %40, float %37, float %35)
  %indvars.iv.next57.1 = or disjoint i64 %indvars.iv56, 2
  %42 = getelementptr inbounds float, ptr %29, i64 %indvars.iv.next57.1
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = fadd float %38, %43
  %45 = trunc nuw nsw i64 %indvars.iv.next57.1 to i32
  %46 = uitofp nneg i32 %45 to float
  %47 = call float @llvm.fmuladd.f32(float %46, float %43, float %41)
  %indvars.iv.next57.2 = or disjoint i64 %indvars.iv56, 3
  %48 = getelementptr inbounds float, ptr %29, i64 %indvars.iv.next57.2
  %49 = load float, ptr %48, align 4, !tbaa !12
  %50 = fadd float %44, %49
  %51 = trunc nuw nsw i64 %indvars.iv.next57.2 to i32
  %52 = uitofp nneg i32 %51 to float
  %53 = call float @llvm.fmuladd.f32(float %52, float %49, float %47)
  %indvars.iv.next57.3 = add nuw nsw i64 %indvars.iv56, 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.unr-lcssa, label %.preheader.us.new, !llvm.loop !20

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa70.ph = phi float [ poison, %.preheader.us ], [ %50, %.preheader.us.new ]
  %.lcssa.ph = phi float [ poison, %.preheader.us ], [ %53, %.preheader.us.new ]
  %indvars.iv56.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next57.3, %.preheader.us.new ]
  %.04348.us.unr = phi float [ 0.000000e+00, %.preheader.us ], [ %53, %.preheader.us.new ]
  %.04447.us.unr = phi float [ 0.000000e+00, %.preheader.us ], [ %50, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv56.epil = phi i64 [ %indvars.iv.next57.epil, %.epil.preheader ], [ %indvars.iv56.unr, %._crit_edge.us.unr-lcssa ]
  %.04348.us.epil = phi float [ %59, %.epil.preheader ], [ %.04348.us.unr, %._crit_edge.us.unr-lcssa ]
  %.04447.us.epil = phi float [ %56, %.epil.preheader ], [ %.04447.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %54 = getelementptr inbounds float, ptr %29, i64 %indvars.iv56.epil
  %55 = load float, ptr %54, align 4, !tbaa !12
  %56 = fadd float %.04447.us.epil, %55
  %57 = trunc nuw nsw i64 %indvars.iv56.epil to i32
  %58 = uitofp nneg i32 %57 to float
  %59 = call float @llvm.fmuladd.f32(float %58, float %55, float %.04348.us.epil)
  %indvars.iv.next57.epil = add nuw nsw i64 %indvars.iv56.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_edge.us, label %.epil.preheader, !llvm.loop !21

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa70 = phi float [ %.lcssa70.ph, %._crit_edge.us.unr-lcssa ], [ %56, %.epil.preheader ]
  %.lcssa = phi float [ %.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %59, %.epil.preheader ]
  %60 = fdiv float %.lcssa, %.lcssa70
  %61 = getelementptr inbounds float, ptr %1, i64 %indvars.iv61
  store float %60, ptr %61, align 4, !tbaa !12
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next62, %wide.trip.count64
  br i1 %exitcond65.not, label %._crit_edge52, label %.preheader.us, !llvm.loop !23

.preheader:                                       ; preds = %.preheader.preheader71, %.preheader
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader ], [ %indvars.iv.ph, %.preheader.preheader71 ]
  %62 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  store float 0x7FF8000000000000, ptr %62, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count64
  br i1 %exitcond.not, label %._crit_edge52, label %.preheader, !llvm.loop !24

._crit_edge52:                                    ; preds = %.preheader, %._crit_edge.us, %middle.block, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret void
}

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

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

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


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