; LLVM IR from ThePhysicsGuys/Physics3D :: tests/mathTests.ll (Z19testTaylorExpansionv)

; 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.TolerantAssertComparer.8 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"struct.P3D::FullTaylorExpansion" = type { %"struct.P3D::Derivatives" }
%"struct.P3D::Derivatives" = type { [5 x double] }
%struct.TolerantAssertBuilder = type { i32, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8

; 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 void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW15__testInterface() #2

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.8) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19testTaylorExpansionv() #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca %class.TolerantAssertComparer, align 8
  %5 = alloca %class.TolerantAssertComparer.8, align 8
  %6 = alloca %struct.TolerantAssertBuilder, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %1) #9
  call void @llvm.memset.p0.i64(ptr align 8 %1, i8 0, i64 40, i1 false)
  %10 = getelementptr inbounds %"struct.P3D::FullTaylorExpansion", ptr %1, i32 0, i32 0
  %11 = getelementptr inbounds %"struct.P3D::Derivatives", ptr %10, i32 0, i32 0
  %12 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 0
  store double 2.000000e+00, ptr %12, align 8
  %13 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 1
  store double 5.000000e+00, ptr %13, align 8
  %14 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 2
  store double 2.000000e+00, ptr %14, align 8
  %15 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 3
  store double 3.000000e+00, ptr %15, align 8
  %16 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 4
  store double 0xBFE6666666666666, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #9
  store double 4.700000e-01, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 0)
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = load double, ptr %2, align 8, !tbaa !5
  %22 = call double @llvm.fmuladd.f64(double %20, double %21, double %18)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 1)
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = load double, ptr %2, align 8, !tbaa !5
  %26 = fmul double %24, %25
  %27 = load double, ptr %2, align 8, !tbaa !5
  %28 = fmul double %26, %27
  %29 = fdiv double %28, 2.000000e+00
  %30 = fadd double %22, %29
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 2)
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = load double, ptr %2, align 8, !tbaa !5
  %34 = fmul double %32, %33
  %35 = load double, ptr %2, align 8, !tbaa !5
  %36 = fmul double %34, %35
  %37 = load double, ptr %2, align 8, !tbaa !5
  %38 = fmul double %36, %37
  %39 = fdiv double %38, 6.000000e+00
  %40 = fadd double %30, %39
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 3)
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = load double, ptr %2, align 8, !tbaa !5
  %44 = fmul double %42, %43
  %45 = load double, ptr %2, align 8, !tbaa !5
  %46 = fmul double %44, %45
  %47 = load double, ptr %2, align 8, !tbaa !5
  %48 = fmul double %46, %47
  %49 = load double, ptr %2, align 8, !tbaa !5
  %50 = fmul double %48, %49
  %51 = fdiv double %50, 2.400000e+01
  %52 = fadd double %40, %51
  store double %52, ptr %3, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #9
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef 250, double noundef 1.000000e-08)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.8) align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %54 = call noundef double @_ZNK3P3D19FullTaylorExpansionIdLm5EEclIdEEdRKT_(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  store double %54, ptr %7, align 8, !tbaa !5
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %55 = getelementptr inbounds %class.TolerantAssertComparer, ptr %4, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = load i8, ptr %56, align 1, !tbaa !13, !range !15, !noundef !16
  %58 = trunc i8 %57 to i1
  %59 = xor i1 %58, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
  br i1 %59, label %60, label %73

60:                                               ; preds = %53
  %61 = call ptr @_ZTW15__testInterface()
  %62 = getelementptr inbounds %class.TestInterface, ptr %61, i32 0, i32 1
  %63 = load i8, ptr %62, align 8, !tbaa !17, !range !15, !noundef !16
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %66

65:                                               ; preds = %60
  br label %66

66:                                               ; preds = %65, %60
  %67 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %67, i32 noundef 250, ptr noundef @.str.4)
          to label %68 unwind label %69

68:                                               ; preds = %66
  call void @__cxa_throw(ptr %67, ptr @_ZTI14AssertionError, ptr null) #10
  unreachable

69:                                               ; preds = %66
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %8, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %9, align 4
  call void @__cxa_free_exception(ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %1) #9
  br label %77

73:                                               ; preds = %53
  %74 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %74)
  br label %75

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %1) #9
  ret void

77:                                               ; preds = %69
  %78 = load ptr, ptr %8, align 8
  %79 = load i32, ptr %9, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(40)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3P3D19FullTaylorExpansionIdLm5EEclIdEEdRKT_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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 = { uwtable "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 = { "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 = { 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { inlinehint 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { noreturn }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTS22TolerantAssertComparerIbdE", !11, i64 0, !12, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !14, i64 8}
!18 = !{!"_ZTS13TestInterface", !19, i64 0, !14, i64 8}
!19 = !{!"long", !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"

%class.TolerantAssertComparer.8 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"struct.P3D::FullTaylorExpansion" = type { %"struct.P3D::Derivatives" }
%"struct.P3D::Derivatives" = type { [5 x double] }
%struct.TolerantAssertBuilder = type { i32, double }

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8

; 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 nounwind uwtable
declare dso_local void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW15__testInterface() local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.8) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19testTaylorExpansionv() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.P3D::FullTaylorExpansion", align 16
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca %class.TolerantAssertComparer, align 8
  %5 = alloca %class.TolerantAssertComparer.8, align 8
  %6 = alloca %struct.TolerantAssertBuilder, align 8
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #8
  store <2 x double> <double 2.000000e+00, double 5.000000e+00>, ptr %1, align 16
  %8 = getelementptr inbounds i8, ptr %1, i64 16
  store <2 x double> <double 2.000000e+00, double 3.000000e+00>, ptr %8, align 16
  %9 = getelementptr inbounds i8, ptr %1, i64 32
  store double 0xBFE6666666666666, ptr %9, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store double 4.700000e-01, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 0)
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = call double @llvm.fmuladd.f64(double %13, double 4.700000e-01, double %11)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 1)
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = fmul double %16, 4.700000e-01
  %18 = fmul double %17, 4.700000e-01
  %19 = fmul double %18, 5.000000e-01
  %20 = fadd double %14, %19
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 2)
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 3)
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = fmul double %24, 4.700000e-01
  %26 = insertelement <2 x double> poison, double %22, i64 0
  %27 = insertelement <2 x double> %26, double %25, i64 1
  %28 = fmul <2 x double> %27, <double 4.700000e-01, double 4.700000e-01>
  %29 = fmul <2 x double> %28, <double 4.700000e-01, double 4.700000e-01>
  %30 = fmul <2 x double> %29, <double 4.700000e-01, double 4.700000e-01>
  %31 = fdiv <2 x double> %30, <double 6.000000e+00, double 2.400000e+01>
  %32 = extractelement <2 x double> %31, i64 0
  %33 = fadd double %20, %32
  %34 = extractelement <2 x double> %31, i64 1
  %35 = fadd double %33, %34
  store double %35, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef 250, double noundef 1.000000e-08)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.8) align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %36 = call noundef double @_ZNK3P3D19FullTaylorExpansionIdLm5EEclIdEEdRKT_(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  store double %36, ptr %7, align 8, !tbaa !5
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %37 = getelementptr inbounds i8, ptr %4, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = load i8, ptr %38, align 1, !tbaa !13, !range !15, !noundef !16
  %40 = trunc nuw i8 %39 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  %41 = call ptr @_ZTW15__testInterface()
  br i1 %40, label %47, label %42

42:                                               ; preds = %0
  %43 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %43, i32 noundef 250, ptr noundef nonnull @.str.4)
          to label %44 unwind label %45

44:                                               ; preds = %42
  call void @__cxa_throw(ptr nonnull %43, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

45:                                               ; preds = %42
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #8
  resume { ptr, i32 } %46

47:                                               ; preds = %0
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %41)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #8
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3P3D19FullTaylorExpansionIdLm5EEclIdEEdRKT_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress 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 = { uwtable "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 = { "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 = { 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 #5 = { 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 #6 = { inlinehint 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { noreturn }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTS22TolerantAssertComparerIbdE", !11, i64 0, !12, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass