; LLVM IR from clangen/musikcube :: src/plugins/supereqdsp/SuperEqDsp.ll (ZN10SuperEqDsp7ProcessEPN5musik4core3sdk7IBufferE)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.SuperEqDsp = type <{ %"class.musik::core::sdk::IDSP", ptr, i32, i8, [3 x i8] }>
%"class.musik::core::sdk::IDSP" = type { ptr }

@_ZL5BANDSB5cxx11 = external hidden global %"class.std::vector", align 8
@_ZL5prefs = external hidden global ptr, align 8
@_ZL12currentState = external hidden global %"struct.std::atomic", align 4
@.str.18 = external hidden unnamed_addr constant [8 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10SuperEqDsp7ProcessEPN5musik4core3sdk7IBufferE(ptr noundef nonnull align 8 dereferenceable(21) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [18 x float], align 16
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds ptr, ptr %16, i64 2
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef i32 %18(ptr noundef nonnull align 8 dereferenceable(8) %15)
  store i32 %19, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %20 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) @_ZL12currentState, i32 noundef 5) #8
  store i32 %20, ptr %7, align 4, !tbaa !11
  %21 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %29

24:                                               ; preds = %2
  %25 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 2
  %26 = load i32, ptr %25, align 8, !tbaa !17
  %27 = load i32, ptr %7, align 4, !tbaa !11
  %28 = icmp ne i32 %26, %27
  br i1 %28, label %29, label %91

29:                                               ; preds = %24, %2
  %30 = load ptr, ptr @_ZL5prefs, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = load ptr, ptr @_ZL5prefs, align 8, !tbaa !5
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 1
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef zeroext i1 %36(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @.str.18, i1 noundef zeroext false)
  br label %38

38:                                               ; preds = %32, %29
  %39 = phi i1 [ false, %29 ], [ %37, %32 ]
  %40 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 3
  %41 = zext i1 %39 to i8
  store i8 %41, ptr %40, align 4, !tbaa !18
  %42 = load i32, ptr %7, align 4, !tbaa !11
  %43 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 2
  store i32 %42, ptr %43, align 8, !tbaa !17
  %44 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = icmp ne ptr %45, null
  br i1 %46, label %53, label %47

47:                                               ; preds = %38
  %48 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 112) #9
  call void @llvm.memset.p0.i64(ptr align 16 %48, i8 0, i64 112, i1 false)
  %49 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 1
  store ptr %48, ptr %49, align 8, !tbaa !13
  %50 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = load i32, ptr %6, align 4, !tbaa !11
  call void @equ_init(ptr noundef %51, i32 noundef 10, i32 noundef %52)
  br label %53

53:                                               ; preds = %47, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %54 = call ptr @paramlist_alloc()
  store ptr %54, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !19
  br label %55

55:                                               ; preds = %76, %53
  %56 = load i64, ptr %10, align 8, !tbaa !19
  %57 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZL5BANDSB5cxx11) #8
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %79

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %61 = load ptr, ptr @_ZL5prefs, align 8, !tbaa !5
  %62 = load i64, ptr %10, align 8, !tbaa !19
  %63 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZL5BANDSB5cxx11, i64 noundef %62) #8
  %64 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %63) #8
  %65 = load ptr, ptr %61, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 3
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef double %67(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef %64, double noundef 0.000000e+00)
  store double %68, ptr %11, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %69 = load double, ptr %11, align 8, !tbaa !21
  %70 = fdiv double %69, 2.000000e+01
  %71 = call noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 10, double noundef %70)
  store double %71, ptr %12, align 8, !tbaa !21
  %72 = load double, ptr %12, align 8, !tbaa !21
  %73 = fptrunc double %72 to float
  %74 = load i64, ptr %10, align 8, !tbaa !19
  %75 = getelementptr inbounds [18 x float], ptr %9, i64 0, i64 %74
  store float %73, ptr %75, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %76

76:                                               ; preds = %60
  %77 = load i64, ptr %10, align 8, !tbaa !19
  %78 = add i64 %77, 1
  store i64 %78, ptr %10, align 8, !tbaa !19
  br label %55, !llvm.loop !25

79:                                               ; preds = %59
  %80 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds [18 x float], ptr %9, i64 0, i64 0
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 0
  %87 = load ptr, ptr %86, align 8
  %88 = call noundef i64 %87(ptr noundef nonnull align 8 dereferenceable(8) %84)
  %89 = sitofp i64 %88 to float
  call void @equ_makeTable(ptr noundef %81, ptr noundef %82, ptr noundef %83, float noundef %89)
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  call void @paramlist_free(ptr noundef %90)
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %91

91:                                               ; preds = %79, %24
  %92 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 3
  %93 = load i8, ptr %92, align 4, !tbaa !18, !range !27, !noundef !28
  %94 = trunc i8 %93 to i1
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i1 false, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %116

96:                                               ; preds = %91
  %97 = getelementptr inbounds %class.SuperEqDsp, ptr %14, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 4
  %102 = load ptr, ptr %101, align 8
  %103 = call noundef ptr %102(ptr noundef nonnull align 8 dereferenceable(8) %99)
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %105, i64 5
  %107 = load ptr, ptr %106, align 8
  %108 = call noundef i64 %107(ptr noundef nonnull align 8 dereferenceable(8) %104)
  %109 = load i32, ptr %6, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = sdiv i64 %108, %110
  %112 = trunc i64 %111 to i32
  %113 = load i32, ptr %6, align 4, !tbaa !11
  %114 = call i32 @equ_modifySamples_float(ptr noundef %98, ptr noundef %103, i32 noundef %112, i32 noundef %113)
  %115 = icmp ne i32 %114, 0
  store i1 %115, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %116

116:                                              ; preds = %96, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %117 = load i1, ptr %3, align 1
  ret i1 %117
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2 align 2

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

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

declare void @equ_init(ptr noundef, i32 noundef, i32 noundef) #5

declare ptr @paramlist_alloc() #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, double noundef) #7

declare void @equ_makeTable(ptr noundef, ptr noundef, ptr noundef, float noundef) #5

declare void @paramlist_free(ptr noundef) #5

declare i32 @equ_modifySamples_float(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { alwaysinline 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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS10SuperEqDsp", !15, i64 0, !6, i64 8, !12, i64 16, !16, i64 20}
!15 = !{!"_ZTSN5musik4core3sdk4IDSPE"}
!16 = !{!"bool", !7, i64 0}
!17 = !{!14, !12, i64 16}
!18 = !{!14, !16, i64 20}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{i8 0, i8 2}
!28 = !{}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }

@_ZL5BANDSB5cxx11 = external hidden global %"class.std::vector", align 8
@_ZL5prefs = external hidden local_unnamed_addr global ptr, align 8
@_ZL12currentState = external hidden global %"struct.std::atomic", align 4
@.str.18 = external hidden unnamed_addr constant [8 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10SuperEqDsp7ProcessEPN5musik4core3sdk7IBufferE(ptr nocapture noundef nonnull align 8 dereferenceable(21) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca [18 x float], align 16
  %4 = load ptr, ptr %1, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  %6 = load ptr, ptr %5, align 8
  %7 = tail call noundef i32 %6(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = tail call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) @_ZL12currentState, i32 noundef 5) #8
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !8
  %.not = icmp ne ptr %10, null
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i32, ptr %11, align 8
  %.not20 = icmp eq i32 %12, %8
  %or.cond = select i1 %.not, i1 %.not20, i1 false
  br i1 %or.cond, label %49, label %13

13:                                               ; preds = %2
  %14 = load ptr, ptr @_ZL5prefs, align 8, !tbaa !15
  %.not21 = icmp eq ptr %14, null
  br i1 %.not21, label %21, label %15

15:                                               ; preds = %13
  %16 = load ptr, ptr %14, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8
  %19 = tail call noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.18, i1 noundef zeroext false)
  %20 = zext i1 %19 to i8
  %.pre = load ptr, ptr %9, align 8, !tbaa !8
  br label %21

21:                                               ; preds = %15, %13
  %22 = phi ptr [ %10, %13 ], [ %.pre, %15 ]
  %23 = phi i8 [ 0, %13 ], [ %20, %15 ]
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 %23, ptr %24, align 4, !tbaa !16
  store i32 %8, ptr %11, align 8, !tbaa !17
  %.not22 = icmp eq ptr %22, null
  br i1 %.not22, label %25, label %27

25:                                               ; preds = %21
  %26 = tail call noalias noundef nonnull dereferenceable(112) ptr @_Znwm(i64 noundef 112) #9
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(112) %26, i8 0, i64 112, i1 false)
  store ptr %26, ptr %9, align 8, !tbaa !8
  tail call void @equ_init(ptr noundef nonnull %26, i32 noundef 10, i32 noundef %7)
  br label %27

27:                                               ; preds = %25, %21
  %28 = tail call ptr @paramlist_alloc()
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #8
  %29 = tail call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZL5BANDSB5cxx11) #8
  %.not25 = icmp eq i64 %29, 0
  br i1 %.not25, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %27
  %30 = load ptr, ptr %9, align 8, !tbaa !8
  %31 = load ptr, ptr %1, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8
  %33 = tail call noundef i64 %32(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %34 = sitofp i64 %33 to float
  call void @equ_makeTable(ptr noundef %30, ptr noundef nonnull %3, ptr noundef %28, float noundef %34)
  call void @paramlist_free(ptr noundef %28)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #8
  br label %49

.lr.ph:                                           ; preds = %27, %.lr.ph
  %.01824 = phi i64 [ %46, %.lr.ph ], [ 0, %27 ]
  %35 = load ptr, ptr @_ZL5prefs, align 8, !tbaa !15
  %36 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZL5BANDSB5cxx11, i64 noundef %.01824) #8
  %37 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %36) #8
  %38 = load ptr, ptr %35, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 24
  %40 = load ptr, ptr %39, align 8
  %41 = tail call noundef double %40(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef %37, double noundef 0.000000e+00)
  %42 = fdiv double %41, 2.000000e+01
  %43 = tail call noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 10, double noundef %42)
  %44 = fptrunc double %43 to float
  %45 = getelementptr inbounds [18 x float], ptr %3, i64 0, i64 %.01824
  store float %44, ptr %45, align 4, !tbaa !18
  %46 = add nuw i64 %.01824, 1
  %47 = tail call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZL5BANDSB5cxx11) #8
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %.lr.ph, label %._crit_edge, !llvm.loop !20

49:                                               ; preds = %2, %._crit_edge
  %50 = getelementptr inbounds i8, ptr %0, i64 20
  %51 = load i8, ptr %50, align 4, !tbaa !16, !range !22, !noundef !23
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %53, label %68

53:                                               ; preds = %49
  %54 = load ptr, ptr %9, align 8, !tbaa !8
  %55 = load ptr, ptr %1, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 32
  %57 = load ptr, ptr %56, align 8
  %58 = call noundef ptr %57(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %59 = load ptr, ptr %1, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 40
  %61 = load ptr, ptr %60, align 8
  %62 = call noundef i64 %61(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %63 = sext i32 %7 to i64
  %64 = sdiv i64 %62, %63
  %65 = trunc i64 %64 to i32
  %66 = call i32 @equ_modifySamples_float(ptr noundef %54, ptr noundef %58, i32 noundef %65, i32 noundef %7)
  %67 = icmp ne i32 %66, 0
  br label %68

68:                                               ; preds = %49, %53
  %.0 = phi i1 [ %67, %53 ], [ false, %49 ]
  ret i1 %.0
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2 align 2

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

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

declare void @equ_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare ptr @paramlist_alloc() local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, double noundef) local_unnamed_addr #7

declare void @equ_makeTable(ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #5

declare void @paramlist_free(ptr noundef) local_unnamed_addr #5

declare i32 @equ_modifySamples_float(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { alwaysinline 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 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTS10SuperEqDsp", !10, i64 0, !11, i64 8, !13, i64 16, !14, i64 20}
!10 = !{!"_ZTSN5musik4core3sdk4IDSPE"}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"int", !12, i64 0}
!14 = !{!"bool", !12, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!9, !14, i64 20}
!17 = !{!9, !13, i64 16}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !12, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{i8 0, i8 2}
!23 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass