; LLVM IR from clangen/musikcube :: src/plugins/supereqdsp/supereq (Equ)

; 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.paramlist = type { ptr }
%struct.SuperEqState = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32 }

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4rfftiiPf(i32 noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13process_paramPfP9paramlistRS0_fi(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), float noundef, i32 noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @equ_makeTable(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %class.paramlist, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %18, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SuperEqState, ptr %19, i32 0, i32 8
  %21 = load volatile i32, ptr %20, align 8, !tbaa !11
  store i32 %21, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %22 = load float, ptr %8, align 4, !tbaa !9
  %23 = fcmp ole float %22, 0.000000e+00
  br i1 %23, label %24, label %25

24:                                               ; preds = %4
  store i32 1, ptr %13, align 4
  br label %158

25:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @_ZN9paramlistC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !14
  br label %26

26:                                               ; preds = %148, %25
  %27 = load i32, ptr %15, align 4, !tbaa !14
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.SuperEqState, ptr %28, i32 0, i32 16
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = icmp slt i32 %27, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %151

33:                                               ; preds = %26
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = load float, ptr %8, align 4, !tbaa !9
  %37 = load i32, ptr %15, align 4, !tbaa !14
  invoke void @_Z13process_paramPfP9paramlistRS0_fi(ptr noundef %34, ptr noundef %35, ptr noundef nonnull align 8 dereferenceable(8) %14, float noundef %36, i32 noundef %37)
          to label %38 unwind label %77

38:                                               ; preds = %33
  store i32 0, ptr %10, align 4, !tbaa !14
  br label %39

39:                                               ; preds = %74, %38
  %40 = load i32, ptr %10, align 4, !tbaa !14
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.SuperEqState, ptr %41, i32 0, i32 9
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = icmp slt i32 %40, %43
  br i1 %44, label %45, label %81

45:                                               ; preds = %39
  %46 = load i32, ptr %10, align 4, !tbaa !14
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.SuperEqState, ptr %47, i32 0, i32 9
  %49 = load i32, ptr %48, align 4, !tbaa !16
  %50 = sdiv i32 %49, 2
  %51 = sub nsw i32 %46, %50
  %52 = load float, ptr %8, align 4, !tbaa !9
  %53 = invoke noundef float @_ZL2hniR9paramlistf(i32 noundef %51, ptr noundef nonnull align 8 dereferenceable(8) %14, float noundef %52)
          to label %54 unwind label %77

54:                                               ; preds = %45
  %55 = load i32, ptr %10, align 4, !tbaa !14
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.SuperEqState, ptr %56, i32 0, i32 9
  %58 = load i32, ptr %57, align 4, !tbaa !16
  %59 = sdiv i32 %58, 2
  %60 = sub nsw i32 %55, %59
  %61 = sitofp i32 %60 to float
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SuperEqState, ptr %62, i32 0, i32 9
  %64 = load i32, ptr %63, align 4, !tbaa !16
  %65 = invoke noundef float @_ZL3winfi(float noundef %61, i32 noundef %64)
          to label %66 unwind label %77

66:                                               ; preds = %54
  %67 = fmul float %53, %65
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.SuperEqState, ptr %68, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = load i32, ptr %10, align 4, !tbaa !14
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %70, i64 %72
  store float %67, ptr %73, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %66
  %75 = load i32, ptr %10, align 4, !tbaa !14
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %10, align 4, !tbaa !14
  br label %39, !llvm.loop !18

77:                                               ; preds = %98, %54, %45, %33
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %16, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @_ZN9paramlistD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %161

81:                                               ; preds = %39
  br label %82

82:                                               ; preds = %95, %81
  %83 = load i32, ptr %10, align 4, !tbaa !14
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.SuperEqState, ptr %84, i32 0, i32 11
  %86 = load i32, ptr %85, align 4, !tbaa !20
  %87 = icmp slt i32 %83, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %82
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SuperEqState, ptr %89, i32 0, i32 3
  %91 = load ptr, ptr %90, align 8, !tbaa !17
  %92 = load i32, ptr %10, align 4, !tbaa !14
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %91, i64 %93
  store float 0.000000e+00, ptr %94, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %88
  %96 = load i32, ptr %10, align 4, !tbaa !14
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %10, align 4, !tbaa !14
  br label %82, !llvm.loop !21

98:                                               ; preds = %82
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.SuperEqState, ptr %99, i32 0, i32 18
  %101 = load i32, ptr %100, align 4, !tbaa !22
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.SuperEqState, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !17
  invoke void @_Z4rfftiiPf(i32 noundef %101, i32 noundef 1, ptr noundef %104)
          to label %105 unwind label %77

105:                                              ; preds = %98
  %106 = load i32, ptr %11, align 4, !tbaa !14
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %112

108:                                              ; preds = %105
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.SuperEqState, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !23
  br label %116

112:                                              ; preds = %105
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.SuperEqState, ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !24
  br label %116

116:                                              ; preds = %112, %108
  %117 = phi ptr [ %111, %108 ], [ %115, %112 ]
  store ptr %117, ptr %12, align 8, !tbaa !5
  %118 = load i32, ptr %15, align 4, !tbaa !14
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.SuperEqState, ptr %119, i32 0, i32 11
  %121 = load i32, ptr %120, align 4, !tbaa !20
  %122 = mul nsw i32 %118, %121
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = sext i32 %122 to i64
  %125 = getelementptr inbounds float, ptr %123, i64 %124
  store ptr %125, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !14
  br label %126

126:                                              ; preds = %144, %116
  %127 = load i32, ptr %10, align 4, !tbaa !14
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.SuperEqState, ptr %128, i32 0, i32 11
  %130 = load i32, ptr %129, align 4, !tbaa !20
  %131 = icmp slt i32 %127, %130
  br i1 %131, label %132, label %147

132:                                              ; preds = %126
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.SuperEqState, ptr %133, i32 0, i32 3
  %135 = load ptr, ptr %134, align 8, !tbaa !17
  %136 = load i32, ptr %10, align 4, !tbaa !14
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds float, ptr %135, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !9
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = load i32, ptr %10, align 4, !tbaa !14
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds float, ptr %140, i64 %142
  store float %139, ptr %143, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %132
  %145 = load i32, ptr %10, align 4, !tbaa !14
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %10, align 4, !tbaa !14
  br label %126, !llvm.loop !25

147:                                              ; preds = %126
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %15, align 4, !tbaa !14
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %15, align 4, !tbaa !14
  br label %26, !llvm.loop !26

151:                                              ; preds = %32
  %152 = load i32, ptr %11, align 4, !tbaa !14
  %153 = icmp eq i32 %152, 1
  %154 = zext i1 %153 to i64
  %155 = select i1 %153, i32 2, i32 1
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.SuperEqState, ptr %156, i32 0, i32 7
  store volatile i32 %155, ptr %157, align 4, !tbaa !27
  call void @_ZN9paramlistD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  store i32 0, ptr %13, align 4
  br label %158

158:                                              ; preds = %151, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %159 = load i32, ptr %13, align 4
  switch i32 %159, label %166 [
    i32 0, label %160
    i32 1, label %160
  ]

160:                                              ; preds = %158, %158
  ret void

161:                                              ; preds = %77
  %162 = load ptr, ptr %16, align 8
  %163 = load i32, ptr %17, align 4
  %164 = insertvalue { ptr, i32 } poison, ptr %162, 0
  %165 = insertvalue { ptr, i32 } %164, i32 %163, 1
  resume { ptr, i32 } %165

166:                                              ; preds = %158
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9paramlistC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL2hniR9paramlistf(i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), float noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL3winfi(float noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9paramlistD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 56}
!12 = !{!"_ZTS12SuperEqState", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !6, i64 80, !6, i64 88, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 100}
!16 = !{!12, !13, i64 60}
!17 = !{!12, !6, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !13, i64 68}
!21 = distinct !{!21, !19}
!22 = !{!12, !13, i64 108}
!23 = !{!12, !6, i64 16}
!24 = !{!12, !6, i64 8}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = !{!12, !13, i64 52}


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

%class.paramlist = type { ptr }

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4rfftiiPf(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13process_paramPfP9paramlistRS0_fi(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), float noundef, i32 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @equ_makeTable(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.paramlist, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 56
  %7 = load volatile i32, ptr %6, align 8, !tbaa !5
  %8 = fcmp ugt float %3, 0.000000e+00
  br i1 %8, label %9, label %90

9:                                                ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN9paramlistC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %10 = getelementptr inbounds i8, ptr %0, i64 100
  %11 = load i32, ptr %10, align 4, !tbaa !11
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph59, label %._crit_edge60

.lr.ph59:                                         ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 60
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = getelementptr inbounds i8, ptr %0, i64 68
  %16 = getelementptr inbounds i8, ptr %0, i64 108
  %17 = icmp eq i32 %7, 1
  %.in.v = select i1 %17, i64 16, i64 8
  %.in = getelementptr inbounds i8, ptr %0, i64 %.in.v
  br label %21

._crit_edge60:                                    ; preds = %._crit_edge56, %9
  %18 = icmp eq i32 %7, 1
  %19 = select i1 %18, i32 2, i32 1
  %20 = getelementptr inbounds i8, ptr %0, i64 52
  store volatile i32 %19, ptr %20, align 4, !tbaa !12
  call void @_ZN9paramlistD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %90

21:                                               ; preds = %.lr.ph59, %._crit_edge56
  %.04457 = phi i32 [ 0, %.lr.ph59 ], [ %87, %._crit_edge56 ]
  invoke void @_Z13process_paramPfP9paramlistRS0_fi(ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %5, float noundef %3, i32 noundef %.04457)
          to label %.preheader48 unwind label %.loopexit.split-lp

.preheader48:                                     ; preds = %21
  %22 = load i32, ptr %13, align 4, !tbaa !13
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %.preheader48..preheader_crit_edge

.preheader48..preheader_crit_edge:                ; preds = %.preheader48
  %.pre.pre = load ptr, ptr %14, align 8, !tbaa !14
  br label %.preheader

.preheader.loopexit:                              ; preds = %43
  %24 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader48..preheader_crit_edge, %.preheader.loopexit
  %.pre = phi ptr [ %.pre.pre, %.preheader48..preheader_crit_edge ], [ %45, %.preheader.loopexit ]
  %.0.lcssa = phi i32 [ 0, %.preheader48..preheader_crit_edge ], [ %24, %.preheader.loopexit ]
  %25 = load i32, ptr %15, align 4, !tbaa !15
  %26 = icmp slt i32 %.0.lcssa, %25
  br i1 %26, label %.lr.ph52, label %._crit_edge

.lr.ph52:                                         ; preds = %.preheader
  %27 = zext nneg i32 %.0.lcssa to i64
  %28 = shl nuw nsw i64 %27, 2
  %scevgep = getelementptr i8, ptr %.pre, i64 %28
  %29 = xor i32 %.0.lcssa, -1
  %30 = add i32 %25, %29
  %31 = zext i32 %30 to i64
  %32 = shl nuw nsw i64 %31, 2
  %33 = add nuw nsw i64 %32, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep, i8 0, i64 %33, i1 false), !tbaa !16
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader48, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ 0, %.preheader48 ]
  %34 = phi i32 [ %47, %43 ], [ %22, %.preheader48 ]
  %.neg = sdiv i32 %34, -2
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  %36 = add i32 %.neg, %35
  %37 = invoke noundef float @_ZL2hniR9paramlistf(i32 noundef %36, ptr noundef nonnull align 8 dereferenceable(8) %5, float noundef %3)
          to label %38 unwind label %.loopexit

38:                                               ; preds = %.lr.ph
  %39 = load i32, ptr %13, align 4, !tbaa !13
  %.neg47 = sdiv i32 %39, -2
  %40 = add i32 %.neg47, %35
  %41 = sitofp i32 %40 to float
  %42 = invoke noundef float @_ZL3winfi(float noundef %41, i32 noundef %39)
          to label %43 unwind label %.loopexit

43:                                               ; preds = %38
  %44 = fmul float %37, %42
  %45 = load ptr, ptr %14, align 8, !tbaa !14
  %46 = getelementptr inbounds float, ptr %45, i64 %indvars.iv
  store float %44, ptr %46, align 4, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load i32, ptr %13, align 4, !tbaa !13
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next, %48
  br i1 %49, label %.lr.ph, label %.preheader.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %.lr.ph, %38
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %50

.loopexit.split-lp:                               ; preds = %21, %._crit_edge
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %50

50:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN9paramlistD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  resume { ptr, i32 } %lpad.phi

._crit_edge:                                      ; preds = %.lr.ph52, %.preheader
  %51 = load i32, ptr %16, align 4, !tbaa !20
  invoke void @_Z4rfftiiPf(i32 noundef %51, i32 noundef 1, ptr noundef %.pre)
          to label %52 unwind label %.loopexit.split-lp

52:                                               ; preds = %._crit_edge
  %53 = load ptr, ptr %.in, align 8, !tbaa !21
  %54 = ptrtoint ptr %53 to i64
  %55 = load i32, ptr %15, align 4, !tbaa !15
  %56 = mul i32 %55, %.04457
  %57 = sext i32 %56 to i64
  %58 = getelementptr float, ptr %53, i64 %57
  %59 = icmp sgt i32 %55, 0
  br i1 %59, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %52
  %60 = load ptr, ptr %14, align 8, !tbaa !14
  %wide.trip.count = zext nneg i32 %55 to i64
  %min.iters.check = icmp ult i32 %55, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph55
  %61 = ptrtoint ptr %60 to i64
  %62 = shl nsw i64 %57, 2
  %63 = add i64 %62, %54
  %64 = sub i64 %63, %61
  %diff.check = icmp ult i64 %64, 32
  br i1 %diff.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %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 ]
  %65 = getelementptr inbounds float, ptr %60, i64 %index
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %wide.load = load <4 x float>, ptr %65, align 4, !tbaa !16
  %wide.load69 = load <4 x float>, ptr %66, align 4, !tbaa !16
  %67 = getelementptr inbounds float, ptr %58, i64 %index
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  store <4 x float> %wide.load, ptr %67, align 4, !tbaa !16
  store <4 x float> %wide.load69, ptr %68, align 4, !tbaa !16
  %index.next = add nuw i64 %index, 8
  %69 = icmp eq i64 %index.next, %n.vec
  br i1 %69, label %middle.block, label %vector.body, !llvm.loop !22

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

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph55
  %indvars.iv65.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph55 ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv65.prol = phi i64 [ %indvars.iv.next66.prol, %scalar.ph.prol ], [ %indvars.iv65.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %70 = getelementptr inbounds float, ptr %60, i64 %indvars.iv65.prol
  %71 = load float, ptr %70, align 4, !tbaa !16
  %72 = getelementptr inbounds float, ptr %58, i64 %indvars.iv65.prol
  store float %71, ptr %72, align 4, !tbaa !16
  %indvars.iv.next66.prol = add nuw nsw i64 %indvars.iv65.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 %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !25

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv65.unr = phi i64 [ %indvars.iv65.ph, %scalar.ph.preheader ], [ %indvars.iv.next66.prol, %scalar.ph.prol ]
  %73 = sub nsw i64 %indvars.iv65.ph, %wide.trip.count
  %74 = icmp ugt i64 %73, -4
  br i1 %74, label %._crit_edge56, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv65 = phi i64 [ %indvars.iv.next66.3, %scalar.ph ], [ %indvars.iv65.unr, %scalar.ph.prol.loopexit ]
  %75 = getelementptr inbounds float, ptr %60, i64 %indvars.iv65
  %76 = load float, ptr %75, align 4, !tbaa !16
  %77 = getelementptr inbounds float, ptr %58, i64 %indvars.iv65
  store float %76, ptr %77, align 4, !tbaa !16
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %78 = getelementptr inbounds float, ptr %60, i64 %indvars.iv.next66
  %79 = load float, ptr %78, align 4, !tbaa !16
  %80 = getelementptr inbounds float, ptr %58, i64 %indvars.iv.next66
  store float %79, ptr %80, align 4, !tbaa !16
  %indvars.iv.next66.1 = add nuw nsw i64 %indvars.iv65, 2
  %81 = getelementptr inbounds float, ptr %60, i64 %indvars.iv.next66.1
  %82 = load float, ptr %81, align 4, !tbaa !16
  %83 = getelementptr inbounds float, ptr %58, i64 %indvars.iv.next66.1
  store float %82, ptr %83, align 4, !tbaa !16
  %indvars.iv.next66.2 = add nuw nsw i64 %indvars.iv65, 3
  %84 = getelementptr inbounds float, ptr %60, i64 %indvars.iv.next66.2
  %85 = load float, ptr %84, align 4, !tbaa !16
  %86 = getelementptr inbounds float, ptr %58, i64 %indvars.iv.next66.2
  store float %85, ptr %86, align 4, !tbaa !16
  %indvars.iv.next66.3 = add nuw nsw i64 %indvars.iv65, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next66.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge56, label %scalar.ph, !llvm.loop !27

._crit_edge56:                                    ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %52
  %87 = add nuw nsw i32 %.04457, 1
  %88 = load i32, ptr %10, align 4, !tbaa !11
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %21, label %._crit_edge60, !llvm.loop !28

90:                                               ; preds = %4, %._crit_edge60
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9paramlistC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL2hniR9paramlistf(i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL3winfi(float noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9paramlistD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 56}
!6 = !{!"_ZTS12SuperEqState", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 100}
!12 = !{!6, !10, i64 52}
!13 = !{!6, !10, i64 60}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !10, i64 68}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !10, i64 108}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !19, !23, !24}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = distinct !{!27, !19, !23}
!28 = distinct !{!28, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass