; LLVM IR from sp-nitech/SPTK :: third_party/REAPER/epoch_tracker/fd_filter.ll (ZN4sptk6reaper8FdFilter12MirrorFilterEPfb)

; 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"

%"class.sptk::reaper::FdFilter" = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr }

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper8FdFilter12MirrorFilterEPfb(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, i1 noundef zeroext %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = zext i1 %2 to i8
  store i8 %14, ptr %6, align 1, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %16 = getelementptr inbounds %"class.sptk::reaper::FdFilter", ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = sext i32 %17 to i64
  %19 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %18, i64 4)
  %20 = extractvalue { i64, i1 } %19, 1
  %21 = extractvalue { i64, i1 } %19, 0
  %22 = select i1 %20, i64 -1, i64 %21
  %23 = call noalias noundef nonnull ptr @_Znam(i64 noundef %22) #5
  %24 = getelementptr inbounds %"class.sptk::reaper::FdFilter", ptr %15, i32 0, i32 2
  store ptr %23, ptr %24, align 8, !tbaa !15
  %25 = getelementptr inbounds %"class.sptk::reaper::FdFilter", ptr %15, i32 0, i32 3
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = sdiv i32 %26, 2
  %28 = add nsw i32 1, %27
  store i32 %28, ptr %13, align 4, !tbaa !16
  %29 = load i32, ptr %13, align 4, !tbaa !16
  %30 = sub nsw i32 %29, 1
  store i32 %30, ptr %12, align 4, !tbaa !16
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i32, ptr %13, align 4, !tbaa !16
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds float, ptr %31, i64 %33
  %35 = getelementptr inbounds float, ptr %34, i64 -1
  store ptr %35, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.sptk::reaper::FdFilter", ptr %15, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  store ptr %37, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.sptk::reaper::FdFilter", ptr %15, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = getelementptr inbounds %"class.sptk::reaper::FdFilter", ptr %15, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %39, i64 %42
  %44 = getelementptr inbounds float, ptr %43, i64 -1
  store ptr %44, ptr %7, align 8, !tbaa !5
  store float 0.000000e+00, ptr %11, align 4, !tbaa !17
  br label %45

45:                                               ; preds = %72, %3
  %46 = load i32, ptr %12, align 4, !tbaa !16
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %12, align 4, !tbaa !16
  %48 = icmp sgt i32 %46, 0
  br i1 %48, label %49, label %73

49:                                               ; preds = %45
  %50 = load i8, ptr %6, align 1, !tbaa !9, !range !18, !noundef !19
  %51 = trunc i8 %50 to i1
  br i1 %51, label %60, label %52

52:                                               ; preds = %49
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i32 -1
  store ptr %54, ptr %9, align 8, !tbaa !5
  %55 = load float, ptr %53, align 4, !tbaa !17
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds float, ptr %56, i32 1
  store ptr %57, ptr %8, align 8, !tbaa !5
  store float %55, ptr %56, align 4, !tbaa !17
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds float, ptr %58, i32 -1
  store ptr %59, ptr %7, align 8, !tbaa !5
  store float %55, ptr %58, align 4, !tbaa !17
  br label %72

60:                                               ; preds = %49
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds float, ptr %61, i32 -1
  store ptr %62, ptr %9, align 8, !tbaa !5
  %63 = load float, ptr %61, align 4, !tbaa !17
  store float %63, ptr %10, align 4, !tbaa !17
  %64 = load float, ptr %11, align 4, !tbaa !17
  %65 = fadd float %64, %63
  store float %65, ptr %11, align 4, !tbaa !17
  %66 = load float, ptr %10, align 4, !tbaa !17
  %67 = fneg float %66
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds float, ptr %68, i32 1
  store ptr %69, ptr %8, align 8, !tbaa !5
  store float %67, ptr %68, align 4, !tbaa !17
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds float, ptr %70, i32 -1
  store ptr %71, ptr %7, align 8, !tbaa !5
  store float %67, ptr %70, align 4, !tbaa !17
  br label %72

72:                                               ; preds = %60, %52
  br label %45, !llvm.loop !20

73:                                               ; preds = %45
  %74 = load i8, ptr %6, align 1, !tbaa !9, !range !18, !noundef !19
  %75 = trunc i8 %74 to i1
  br i1 %75, label %80, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load float, ptr %77, align 4, !tbaa !17
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  store float %78, ptr %79, align 4, !tbaa !17
  br label %92

80:                                               ; preds = %73
  %81 = load float, ptr %11, align 4, !tbaa !17
  %82 = fmul float %81, 2.000000e+00
  store float %82, ptr %11, align 4, !tbaa !17
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load float, ptr %83, align 4, !tbaa !17
  %85 = load float, ptr %11, align 4, !tbaa !17
  %86 = fadd float %85, %84
  store float %86, ptr %11, align 4, !tbaa !17
  %87 = load float, ptr %11, align 4, !tbaa !17
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load float, ptr %88, align 4, !tbaa !17
  %90 = fsub float %87, %89
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  store float %90, ptr %91, align 4, !tbaa !17
  br label %92

92:                                               ; preds = %80, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #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 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress 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 }
attributes #5 = { builtin allocsize(0) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"_ZTSN4sptk6reaper8FdFilterE", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !14, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !6, i64 136}
!13 = !{!"int", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!12, !6, i64 16}
!16 = !{!13, !13, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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"

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper8FdFilter12MirrorFilterEPfb(ptr nocapture noundef nonnull align 8 dereferenceable(144) %0, ptr nocapture noundef readonly %1, i1 noundef zeroext %2) local_unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = sext i32 %5 to i64
  %7 = icmp slt i32 %5, 0
  %8 = shl nsw i64 %6, 2
  %9 = select i1 %7, i64 -1, i64 %8
  %10 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #2
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %10, ptr %11, align 8, !tbaa !12
  %12 = sdiv i32 %5, 2
  %13 = sext i32 %12 to i64
  %14 = getelementptr float, ptr %1, i64 %13
  %15 = getelementptr inbounds float, ptr %10, i64 %6
  %.031 = getelementptr inbounds i8, ptr %15, i64 -4
  %16 = icmp sgt i32 %5, 1
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %17 = add nsw i32 %12, -1
  br i1 %2, label %.lr.ph.split.us.preheader, label %.lr.ph.split.preheader

.lr.ph.split.preheader:                           ; preds = %.lr.ph
  %xtraiter = and i32 %12, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.split.prol.loopexit, label %.lr.ph.split.prol

.lr.ph.split.prol:                                ; preds = %.lr.ph.split.preheader, %.lr.ph.split.prol
  %18 = phi i32 [ %20, %.lr.ph.split.prol ], [ %17, %.lr.ph.split.preheader ]
  %.035.prol = phi ptr [ %.0.prol, %.lr.ph.split.prol ], [ %.031, %.lr.ph.split.preheader ]
  %.02533.prol = phi ptr [ %.126.prol, %.lr.ph.split.prol ], [ %10, %.lr.ph.split.preheader ]
  %.02732.prol = phi ptr [ %.128.prol, %.lr.ph.split.prol ], [ %14, %.lr.ph.split.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.split.prol ], [ 0, %.lr.ph.split.preheader ]
  %19 = load float, ptr %.02732.prol, align 4, !tbaa !13
  store float %19, ptr %.02533.prol, align 4, !tbaa !13
  %.126.prol = getelementptr inbounds i8, ptr %.02533.prol, i64 4
  %.128.prol = getelementptr inbounds i8, ptr %.02732.prol, i64 -4
  store float %19, ptr %.035.prol, align 4, !tbaa !13
  %.0.prol = getelementptr inbounds i8, ptr %.035.prol, i64 -4
  %20 = add nsw i32 %18, -1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.split.prol.loopexit, label %.lr.ph.split.prol, !llvm.loop !14

.lr.ph.split.prol.loopexit:                       ; preds = %.lr.ph.split.prol, %.lr.ph.split.preheader
  %.unr = phi i32 [ %17, %.lr.ph.split.preheader ], [ %20, %.lr.ph.split.prol ]
  %.035.unr = phi ptr [ %.031, %.lr.ph.split.preheader ], [ %.0.prol, %.lr.ph.split.prol ]
  %.02533.unr = phi ptr [ %10, %.lr.ph.split.preheader ], [ %.126.prol, %.lr.ph.split.prol ]
  %.02732.unr = phi ptr [ %14, %.lr.ph.split.preheader ], [ %.128.prol, %.lr.ph.split.prol ]
  %.128.lcssa.unr = phi ptr [ poison, %.lr.ph.split.preheader ], [ %.128.prol, %.lr.ph.split.prol ]
  %.0.lcssa47.unr = phi ptr [ poison, %.lr.ph.split.preheader ], [ %.0.prol, %.lr.ph.split.prol ]
  %21 = icmp ult i32 %17, 3
  br i1 %21, label %._crit_edge, label %.lr.ph.split

.lr.ph.split.us.preheader:                        ; preds = %.lr.ph
  %xtraiter48 = and i32 %12, 3
  %lcmp.mod49.not = icmp eq i32 %xtraiter48, 0
  br i1 %lcmp.mod49.not, label %.lr.ph.split.us.prol.loopexit, label %.lr.ph.split.us.prol

.lr.ph.split.us.prol:                             ; preds = %.lr.ph.split.us.preheader, %.lr.ph.split.us.prol
  %22 = phi i32 [ %26, %.lr.ph.split.us.prol ], [ %17, %.lr.ph.split.us.preheader ]
  %.035.us.prol = phi ptr [ %.0.us.prol, %.lr.ph.split.us.prol ], [ %.031, %.lr.ph.split.us.preheader ]
  %.02334.us.prol = phi float [ %24, %.lr.ph.split.us.prol ], [ 0.000000e+00, %.lr.ph.split.us.preheader ]
  %.02533.us.prol = phi ptr [ %.126.us.prol, %.lr.ph.split.us.prol ], [ %10, %.lr.ph.split.us.preheader ]
  %.02732.us.prol = phi ptr [ %.128.us.prol, %.lr.ph.split.us.prol ], [ %14, %.lr.ph.split.us.preheader ]
  %prol.iter50 = phi i32 [ %prol.iter50.next, %.lr.ph.split.us.prol ], [ 0, %.lr.ph.split.us.preheader ]
  %23 = load float, ptr %.02732.us.prol, align 4, !tbaa !13
  %24 = fadd float %.02334.us.prol, %23
  %25 = fneg float %23
  store float %25, ptr %.02533.us.prol, align 4, !tbaa !13
  %.126.us.prol = getelementptr inbounds i8, ptr %.02533.us.prol, i64 4
  %.128.us.prol = getelementptr inbounds i8, ptr %.02732.us.prol, i64 -4
  store float %25, ptr %.035.us.prol, align 4, !tbaa !13
  %.0.us.prol = getelementptr inbounds i8, ptr %.035.us.prol, i64 -4
  %26 = add nsw i32 %22, -1
  %prol.iter50.next = add i32 %prol.iter50, 1
  %prol.iter50.cmp.not = icmp eq i32 %prol.iter50.next, %xtraiter48
  br i1 %prol.iter50.cmp.not, label %.lr.ph.split.us.prol.loopexit, label %.lr.ph.split.us.prol, !llvm.loop !16

.lr.ph.split.us.prol.loopexit:                    ; preds = %.lr.ph.split.us.prol, %.lr.ph.split.us.preheader
  %.unr51 = phi i32 [ %17, %.lr.ph.split.us.preheader ], [ %26, %.lr.ph.split.us.prol ]
  %.035.us.unr = phi ptr [ %.031, %.lr.ph.split.us.preheader ], [ %.0.us.prol, %.lr.ph.split.us.prol ]
  %.02334.us.unr = phi float [ 0.000000e+00, %.lr.ph.split.us.preheader ], [ %24, %.lr.ph.split.us.prol ]
  %.02533.us.unr = phi ptr [ %10, %.lr.ph.split.us.preheader ], [ %.126.us.prol, %.lr.ph.split.us.prol ]
  %.02732.us.unr = phi ptr [ %14, %.lr.ph.split.us.preheader ], [ %.128.us.prol, %.lr.ph.split.us.prol ]
  %.lcssa.unr = phi float [ poison, %.lr.ph.split.us.preheader ], [ %24, %.lr.ph.split.us.prol ]
  %.128.us.lcssa.unr = phi ptr [ poison, %.lr.ph.split.us.preheader ], [ %.128.us.prol, %.lr.ph.split.us.prol ]
  %.0.us.lcssa.unr = phi ptr [ poison, %.lr.ph.split.us.preheader ], [ %.0.us.prol, %.lr.ph.split.us.prol ]
  %27 = icmp ult i32 %17, 3
  br i1 %27, label %._crit_edge.loopexit, label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us.prol.loopexit, %.lr.ph.split.us
  %28 = phi i32 [ %41, %.lr.ph.split.us ], [ %.unr51, %.lr.ph.split.us.prol.loopexit ]
  %.035.us = phi ptr [ %.0.us.3, %.lr.ph.split.us ], [ %.035.us.unr, %.lr.ph.split.us.prol.loopexit ]
  %.02334.us = phi float [ %39, %.lr.ph.split.us ], [ %.02334.us.unr, %.lr.ph.split.us.prol.loopexit ]
  %.02533.us = phi ptr [ %.126.us.3, %.lr.ph.split.us ], [ %.02533.us.unr, %.lr.ph.split.us.prol.loopexit ]
  %.02732.us = phi ptr [ %.128.us.3, %.lr.ph.split.us ], [ %.02732.us.unr, %.lr.ph.split.us.prol.loopexit ]
  %29 = load float, ptr %.02732.us, align 4, !tbaa !13
  %30 = fadd float %.02334.us, %29
  %31 = fneg float %29
  store float %31, ptr %.02533.us, align 4, !tbaa !13
  %.126.us = getelementptr inbounds i8, ptr %.02533.us, i64 4
  %.128.us = getelementptr inbounds i8, ptr %.02732.us, i64 -4
  store float %31, ptr %.035.us, align 4, !tbaa !13
  %.0.us = getelementptr inbounds i8, ptr %.035.us, i64 -4
  %32 = load float, ptr %.128.us, align 4, !tbaa !13
  %33 = fadd float %30, %32
  %34 = fneg float %32
  store float %34, ptr %.126.us, align 4, !tbaa !13
  %.126.us.1 = getelementptr inbounds i8, ptr %.02533.us, i64 8
  %.128.us.1 = getelementptr inbounds i8, ptr %.02732.us, i64 -8
  store float %34, ptr %.0.us, align 4, !tbaa !13
  %.0.us.1 = getelementptr inbounds i8, ptr %.035.us, i64 -8
  %35 = load float, ptr %.128.us.1, align 4, !tbaa !13
  %36 = fadd float %33, %35
  %37 = fneg float %35
  store float %37, ptr %.126.us.1, align 4, !tbaa !13
  %.126.us.2 = getelementptr inbounds i8, ptr %.02533.us, i64 12
  %.128.us.2 = getelementptr inbounds i8, ptr %.02732.us, i64 -12
  store float %37, ptr %.0.us.1, align 4, !tbaa !13
  %.0.us.2 = getelementptr inbounds i8, ptr %.035.us, i64 -12
  %38 = load float, ptr %.128.us.2, align 4, !tbaa !13
  %39 = fadd float %36, %38
  %40 = fneg float %38
  store float %40, ptr %.126.us.2, align 4, !tbaa !13
  %.126.us.3 = getelementptr inbounds i8, ptr %.02533.us, i64 16
  %.128.us.3 = getelementptr inbounds i8, ptr %.02732.us, i64 -16
  store float %40, ptr %.0.us.2, align 4, !tbaa !13
  %.0.us.3 = getelementptr inbounds i8, ptr %.035.us, i64 -16
  %41 = add nsw i32 %28, -4
  %42 = icmp sgt i32 %28, 3
  br i1 %42, label %.lr.ph.split.us, label %._crit_edge.loopexit, !llvm.loop !17

.lr.ph.split:                                     ; preds = %.lr.ph.split.prol.loopexit, %.lr.ph.split
  %43 = phi i32 [ %48, %.lr.ph.split ], [ %.unr, %.lr.ph.split.prol.loopexit ]
  %.035 = phi ptr [ %.0.3, %.lr.ph.split ], [ %.035.unr, %.lr.ph.split.prol.loopexit ]
  %.02533 = phi ptr [ %.126.3, %.lr.ph.split ], [ %.02533.unr, %.lr.ph.split.prol.loopexit ]
  %.02732 = phi ptr [ %.128.3, %.lr.ph.split ], [ %.02732.unr, %.lr.ph.split.prol.loopexit ]
  %44 = load float, ptr %.02732, align 4, !tbaa !13
  store float %44, ptr %.02533, align 4, !tbaa !13
  %.126 = getelementptr inbounds i8, ptr %.02533, i64 4
  %.128 = getelementptr inbounds i8, ptr %.02732, i64 -4
  store float %44, ptr %.035, align 4, !tbaa !13
  %.0 = getelementptr inbounds i8, ptr %.035, i64 -4
  %45 = load float, ptr %.128, align 4, !tbaa !13
  store float %45, ptr %.126, align 4, !tbaa !13
  %.126.1 = getelementptr inbounds i8, ptr %.02533, i64 8
  %.128.1 = getelementptr inbounds i8, ptr %.02732, i64 -8
  store float %45, ptr %.0, align 4, !tbaa !13
  %.0.1 = getelementptr inbounds i8, ptr %.035, i64 -8
  %46 = load float, ptr %.128.1, align 4, !tbaa !13
  store float %46, ptr %.126.1, align 4, !tbaa !13
  %.126.2 = getelementptr inbounds i8, ptr %.02533, i64 12
  %.128.2 = getelementptr inbounds i8, ptr %.02732, i64 -12
  store float %46, ptr %.0.1, align 4, !tbaa !13
  %.0.2 = getelementptr inbounds i8, ptr %.035, i64 -12
  %47 = load float, ptr %.128.2, align 4, !tbaa !13
  store float %47, ptr %.126.2, align 4, !tbaa !13
  %.126.3 = getelementptr inbounds i8, ptr %.02533, i64 16
  %.128.3 = getelementptr inbounds i8, ptr %.02732, i64 -16
  store float %47, ptr %.0.2, align 4, !tbaa !13
  %.0.3 = getelementptr inbounds i8, ptr %.035, i64 -16
  %48 = add nsw i32 %43, -4
  %49 = icmp sgt i32 %43, 3
  br i1 %49, label %.lr.ph.split, label %._crit_edge, !llvm.loop !17

._crit_edge.loopexit:                             ; preds = %.lr.ph.split.us, %.lr.ph.split.us.prol.loopexit
  %.lcssa = phi float [ %.lcssa.unr, %.lr.ph.split.us.prol.loopexit ], [ %39, %.lr.ph.split.us ]
  %.128.us.lcssa = phi ptr [ %.128.us.lcssa.unr, %.lr.ph.split.us.prol.loopexit ], [ %.128.us.3, %.lr.ph.split.us ]
  %.0.us.lcssa = phi ptr [ %.0.us.lcssa.unr, %.lr.ph.split.us.prol.loopexit ], [ %.0.us.3, %.lr.ph.split.us ]
  %50 = fmul float %.lcssa, 2.000000e+00
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.split.prol.loopexit, %.lr.ph.split, %._crit_edge.loopexit, %3
  %.027.lcssa = phi ptr [ %14, %3 ], [ %.128.us.lcssa, %._crit_edge.loopexit ], [ %.128.lcssa.unr, %.lr.ph.split.prol.loopexit ], [ %.128.3, %.lr.ph.split ]
  %.023.lcssa = phi float [ 0.000000e+00, %3 ], [ %50, %._crit_edge.loopexit ], [ 0.000000e+00, %.lr.ph.split ], [ 0.000000e+00, %.lr.ph.split.prol.loopexit ]
  %.0.lcssa = phi ptr [ %.031, %3 ], [ %.0.us.lcssa, %._crit_edge.loopexit ], [ %.0.lcssa47.unr, %.lr.ph.split.prol.loopexit ], [ %.0.3, %.lr.ph.split ]
  %51 = load float, ptr %.027.lcssa, align 4, !tbaa !13
  %52 = fadd float %.023.lcssa, %51
  %53 = fsub float %52, %51
  %storemerge = select i1 %2, float %53, float %51
  store float %storemerge, ptr %.0.lcssa, align 4, !tbaa !13
  ret void
}

attributes #0 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { builtin allocsize(0) }

!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 24}
!6 = !{!"_ZTSN4sptk6reaper8FdFilterE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !11, i64 60, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !7, i64 136}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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