; LLVM IR from romerojosh/zefr :: src/hexas.ll (ZN5Hexas21calc_d_nodal_basis_frEjRKSt6vectorIdSaIdEEj)

; 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.Elements = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %"class.std::vector.0", %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector.5, %class.mdvector.5, %class.mdvector.5, %class.mdvector.5, %class.mdvector.5, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.7", %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, i64, i64, i64, i64, i64, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdview, %class.mdview, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, i32, [4 x i8], %class.mdvector, %class.mdvector, i32, ptr, %"class.std::vector.7", %class.mdvector.5, %class.mdvector, %class.mdvector, %class.mdvector }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.mdview = type { %class.mdvector.12, %class.mdvector.5, i32, [4 x i8] }
%class.mdvector.12 = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector.13", ptr, i8, [7 x i8] }>
%"struct.std::array" = type { [6 x i32] }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.mdvector.5 = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector.0", ptr, i8, [7 x i8] }>
%class.mdvector = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector", ptr, i8, [7 x i8] }>

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, double noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN5Hexas21calc_d_nodal_basis_frEjRKSt6vectorIdSaIdEEj(ptr noundef nonnull align 8 dereferenceable(13968) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) unnamed_addr #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %13 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %14 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 33
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %14, i32 noundef %15, i32 noundef 0)
  %17 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %17, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %18 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 33
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %18, i32 noundef %19, i32 noundef 1)
  %21 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %21, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %22 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 33
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %22, i32 noundef %23, i32 noundef 2)
  %25 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %25, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %49

28:                                               ; preds = %4
  %29 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #4
  %33 = load double, ptr %32, align 8, !tbaa !11
  %34 = call noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %29, i32 noundef %30, double noundef %33)
  %35 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef 1) #4
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %35, i32 noundef %36, double noundef %39)
  %41 = fmul double %34, %40
  %42 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 2) #4
  %46 = load double, ptr %45, align 8, !tbaa !11
  %47 = call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %42, i32 noundef %43, double noundef %46)
  %48 = fmul double %41, %47
  store double %48, ptr %12, align 8, !tbaa !11
  br label %95

49:                                               ; preds = %4
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %73

52:                                               ; preds = %49
  %53 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef 0) #4
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %53, i32 noundef %54, double noundef %57)
  %59 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef 1) #4
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = call noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %59, i32 noundef %60, double noundef %63)
  %65 = fmul double %58, %64
  %66 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef 2) #4
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %66, i32 noundef %67, double noundef %70)
  %72 = fmul double %65, %71
  store double %72, ptr %12, align 8, !tbaa !11
  br label %94

73:                                               ; preds = %49
  %74 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef 0) #4
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef %75, double noundef %78)
  %80 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 1) #4
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef %81, double noundef %84)
  %86 = fmul double %79, %85
  %87 = getelementptr inbounds %class.Elements, ptr %13, i32 0, i32 38
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef 2) #4
  %91 = load double, ptr %90, align 8, !tbaa !11
  %92 = call noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %87, i32 noundef %88, double noundef %91)
  %93 = fmul double %86, %92
  store double %93, ptr %12, align 8, !tbaa !11
  br label %94

94:                                               ; preds = %73, %52
  br label %95

95:                                               ; preds = %94, %28
  %96 = load double, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %9) #4
  ret double %96
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, double noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN5Hexas21calc_d_nodal_basis_frEjRKSt6vectorIdSaIdEEj(ptr noundef nonnull align 8 dereferenceable(13968) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 1136
  %6 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %5, i32 noundef %1, i32 noundef 0)
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %5, i32 noundef %1, i32 noundef 1)
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8mdvectorIjEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %5, i32 noundef %1, i32 noundef 2)
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 1696
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #2
  %14 = load double, ptr %13, align 8, !tbaa !9
  switch i32 %3, label %35 [
    i32 0, label %15
    i32 1, label %25
  ]

15:                                               ; preds = %4
  %16 = tail call noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %7, double noundef %14)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #2
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = tail call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %9, double noundef %18)
  %20 = fmul double %16, %19
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #2
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = tail call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %11, double noundef %22)
  %24 = fmul double %20, %23
  br label %45

25:                                               ; preds = %4
  %26 = tail call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %7, double noundef %14)
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #2
  %28 = load double, ptr %27, align 8, !tbaa !9
  %29 = tail call noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %9, double noundef %28)
  %30 = fmul double %26, %29
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #2
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = tail call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %11, double noundef %32)
  %34 = fmul double %30, %33
  br label %45

35:                                               ; preds = %4
  %36 = tail call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %7, double noundef %14)
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #2
  %38 = load double, ptr %37, align 8, !tbaa !9
  %39 = tail call noundef double @_ZL8LagrangeRKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %9, double noundef %38)
  %40 = fmul double %36, %39
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #2
  %42 = load double, ptr %41, align 8, !tbaa !9
  %43 = tail call noundef double @_ZL11Lagrange_d1RKSt6vectorIdSaIdEEjd(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %11, double noundef %42)
  %44 = fmul double %40, %43
  br label %45

45:                                               ; preds = %25, %35, %15
  %.0 = phi double [ %24, %15 ], [ %34, %25 ], [ %44, %35 ]
  ret double %.0
}

attributes #0 = { 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 #1 = { 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 #2 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass