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

; 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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(40)) #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) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22testSinTaylorExpansionv() #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca %class.TolerantAssertComparer, align 8
  %10 = alloca %class.TolerantAssertComparer.8, align 8
  %11 = alloca %struct.TolerantAssertBuilder, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %class.TolerantAssertComparer, align 8
  %15 = alloca %class.TolerantAssertComparer.8, align 8
  %16 = alloca %struct.TolerantAssertBuilder, align 8
  %17 = alloca %class.TolerantAssertComparer, align 8
  %18 = alloca %class.TolerantAssertComparer.8, align 8
  %19 = alloca %struct.TolerantAssertBuilder, align 8
  %20 = alloca %class.TolerantAssertComparer, align 8
  %21 = alloca %class.TolerantAssertComparer.8, align 8
  %22 = alloca %struct.TolerantAssertBuilder, align 8
  %23 = alloca %class.TolerantAssertComparer, align 8
  %24 = alloca %class.TolerantAssertComparer.8, align 8
  %25 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #8
  store double 9.300000e-01, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store double 1.397000e+01, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #8
  %26 = load double, ptr %1, align 8, !tbaa !5
  %27 = load double, ptr %2, align 8, !tbaa !5
  call void @_ZN3P3D28generateFullTaylorForSinWaveIdLm5EEENS_19FullTaylorExpansionIT_XT0_EEES2_S2_(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %3, double noundef %26, double noundef %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %28 = load double, ptr %1, align 8, !tbaa !5
  %29 = load double, ptr %2, align 8, !tbaa !5
  %30 = fmul double %28, %29
  %31 = call double @sin(double noundef %30) #8
  store double %31, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %32 = load double, ptr %2, align 8, !tbaa !5
  %33 = load double, ptr %1, align 8, !tbaa !5
  %34 = load double, ptr %2, align 8, !tbaa !5
  %35 = fmul double %33, %34
  %36 = call double @cos(double noundef %35) #8
  %37 = fmul double %32, %36
  store double %37, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %38 = load double, ptr %2, align 8, !tbaa !5
  %39 = load double, ptr %2, align 8, !tbaa !5
  %40 = fmul double %38, %39
  %41 = load double, ptr %1, align 8, !tbaa !5
  %42 = load double, ptr %2, align 8, !tbaa !5
  %43 = fmul double %41, %42
  %44 = call double @sin(double noundef %43) #8
  %45 = fneg double %44
  %46 = fmul double %40, %45
  store double %46, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %47 = load double, ptr %2, align 8, !tbaa !5
  %48 = load double, ptr %2, align 8, !tbaa !5
  %49 = fmul double %47, %48
  %50 = load double, ptr %2, align 8, !tbaa !5
  %51 = fmul double %49, %50
  %52 = load double, ptr %1, align 8, !tbaa !5
  %53 = load double, ptr %2, align 8, !tbaa !5
  %54 = fmul double %52, %53
  %55 = call double @cos(double noundef %54) #8
  %56 = fneg double %55
  %57 = fmul double %51, %56
  store double %57, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %58 = load double, ptr %2, align 8, !tbaa !5
  %59 = load double, ptr %2, align 8, !tbaa !5
  %60 = fmul double %58, %59
  %61 = load double, ptr %2, align 8, !tbaa !5
  %62 = fmul double %60, %61
  %63 = load double, ptr %2, align 8, !tbaa !5
  %64 = fmul double %62, %63
  %65 = load double, ptr %1, align 8, !tbaa !5
  %66 = load double, ptr %2, align 8, !tbaa !5
  %67 = fmul double %65, %66
  %68 = call double @sin(double noundef %67) #8
  %69 = fmul double %64, %68
  store double %69, ptr %8, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef 265, double noundef 1.000000e-08)
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.8) align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %71)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %72 = getelementptr inbounds %class.TolerantAssertComparer, ptr %9, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = load i8, ptr %73, align 1, !tbaa !13, !range !15, !noundef !16
  %75 = trunc i8 %74 to i1
  %76 = xor i1 %75, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br i1 %76, label %77, label %90

77:                                               ; preds = %70
  %78 = call ptr @_ZTW15__testInterface()
  %79 = getelementptr inbounds %class.TestInterface, ptr %78, i32 0, i32 1
  %80 = load i8, ptr %79, align 8, !tbaa !17, !range !15, !noundef !16
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %83

82:                                               ; preds = %77
  br label %83

83:                                               ; preds = %82, %77
  %84 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %84, i32 noundef 265, ptr noundef @.str.4)
          to label %85 unwind label %86

85:                                               ; preds = %83
  call void @__cxa_throw(ptr %84, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

86:                                               ; preds = %83
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %12, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %13, align 4
  call void @__cxa_free_exception(ptr %84) #8
  br label %190

90:                                               ; preds = %70
  %91 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %91)
  br label %92

92:                                               ; preds = %90
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %16, i32 noundef 266, double noundef 1.000000e-08)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 0)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.8) align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %95)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %96 = getelementptr inbounds %class.TolerantAssertComparer, ptr %14, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = load i8, ptr %97, align 1, !tbaa !13, !range !15, !noundef !16
  %99 = trunc i8 %98 to i1
  %100 = xor i1 %99, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br i1 %100, label %101, label %114

101:                                              ; preds = %94
  %102 = call ptr @_ZTW15__testInterface()
  %103 = getelementptr inbounds %class.TestInterface, ptr %102, i32 0, i32 1
  %104 = load i8, ptr %103, align 8, !tbaa !17, !range !15, !noundef !16
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %107

106:                                              ; preds = %101
  br label %107

107:                                              ; preds = %106, %101
  %108 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %108, i32 noundef 266, ptr noundef @.str.4)
          to label %109 unwind label %110

109:                                              ; preds = %107
  call void @__cxa_throw(ptr %108, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

110:                                              ; preds = %107
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %12, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %13, align 4
  call void @__cxa_free_exception(ptr %108) #8
  br label %190

114:                                              ; preds = %94
  %115 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %115)
  br label %116

116:                                              ; preds = %114
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %19, i32 noundef 267, double noundef 1.000000e-08)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 1)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.8) align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %119)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %120 = getelementptr inbounds %class.TolerantAssertComparer, ptr %17, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = load i8, ptr %121, align 1, !tbaa !13, !range !15, !noundef !16
  %123 = trunc i8 %122 to i1
  %124 = xor i1 %123, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  br i1 %124, label %125, label %138

125:                                              ; preds = %118
  %126 = call ptr @_ZTW15__testInterface()
  %127 = getelementptr inbounds %class.TestInterface, ptr %126, i32 0, i32 1
  %128 = load i8, ptr %127, align 8, !tbaa !17, !range !15, !noundef !16
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %131

130:                                              ; preds = %125
  br label %131

131:                                              ; preds = %130, %125
  %132 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %132, i32 noundef 267, ptr noundef @.str.4)
          to label %133 unwind label %134

133:                                              ; preds = %131
  call void @__cxa_throw(ptr %132, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

134:                                              ; preds = %131
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %12, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %13, align 4
  call void @__cxa_free_exception(ptr %132) #8
  br label %190

138:                                              ; preds = %118
  %139 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %139)
  br label %140

140:                                              ; preds = %138
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef 268, double noundef 1.000000e-08)
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 2)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.8) align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %143)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %144 = getelementptr inbounds %class.TolerantAssertComparer, ptr %20, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !9
  %146 = load i8, ptr %145, align 1, !tbaa !13, !range !15, !noundef !16
  %147 = trunc i8 %146 to i1
  %148 = xor i1 %147, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br i1 %148, label %149, label %162

149:                                              ; preds = %142
  %150 = call ptr @_ZTW15__testInterface()
  %151 = getelementptr inbounds %class.TestInterface, ptr %150, i32 0, i32 1
  %152 = load i8, ptr %151, align 8, !tbaa !17, !range !15, !noundef !16
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %155

154:                                              ; preds = %149
  br label %155

155:                                              ; preds = %154, %149
  %156 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %156, i32 noundef 268, ptr noundef @.str.4)
          to label %157 unwind label %158

157:                                              ; preds = %155
  call void @__cxa_throw(ptr %156, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

158:                                              ; preds = %155
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %12, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %13, align 4
  call void @__cxa_free_exception(ptr %156) #8
  br label %190

162:                                              ; preds = %142
  %163 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %163)
  br label %164

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 269, double noundef 1.000000e-08)
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 3)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.8) align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %167)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %168 = getelementptr inbounds %class.TolerantAssertComparer, ptr %23, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !9
  %170 = load i8, ptr %169, align 1, !tbaa !13, !range !15, !noundef !16
  %171 = trunc i8 %170 to i1
  %172 = xor i1 %171, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  br i1 %172, label %173, label %186

173:                                              ; preds = %166
  %174 = call ptr @_ZTW15__testInterface()
  %175 = getelementptr inbounds %class.TestInterface, ptr %174, i32 0, i32 1
  %176 = load i8, ptr %175, align 8, !tbaa !17, !range !15, !noundef !16
  %177 = trunc i8 %176 to i1
  br i1 %177, label %178, label %179

178:                                              ; preds = %173
  br label %179

179:                                              ; preds = %178, %173
  %180 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %180, i32 noundef 269, ptr noundef @.str.4)
          to label %181 unwind label %182

181:                                              ; preds = %179
  call void @__cxa_throw(ptr %180, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

182:                                              ; preds = %179
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %12, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %13, align 4
  call void @__cxa_free_exception(ptr %180) #8
  br label %190

186:                                              ; preds = %166
  %187 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %187)
  br label %188

188:                                              ; preds = %186
  br label %189

189:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  ret void

190:                                              ; preds = %182, %158, %134, %110, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  br label %191

191:                                              ; preds = %190
  %192 = load ptr, ptr %12, align 8
  %193 = load i32, ptr %13, align 4
  %194 = insertvalue { ptr, i32 } poison, ptr %192, 0
  %195 = insertvalue { ptr, i32 } %194, i32 %193, 1
  resume { ptr, i32 } %195
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D28generateFullTaylorForSinWaveIdLm5EEENS_19FullTaylorExpansionIT_XT0_EEES2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::FullTaylorExpansion") align 8, double noundef, double noundef) #5

; Function Attrs: nounwind
declare double @sin(double noundef) #7

; Function Attrs: nounwind
declare double @cos(double noundef) #7

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 = { 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 = { nounwind "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 = { 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: 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 uwtable
define dso_local void @_Z22testSinTaylorExpansionv() local_unnamed_addr #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 double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca %class.TolerantAssertComparer, align 8
  %8 = alloca %class.TolerantAssertComparer.8, align 8
  %9 = alloca %struct.TolerantAssertBuilder, align 8
  %10 = alloca %class.TolerantAssertComparer, align 8
  %11 = alloca %class.TolerantAssertComparer.8, align 8
  %12 = alloca %struct.TolerantAssertBuilder, align 8
  %13 = alloca %class.TolerantAssertComparer, align 8
  %14 = alloca %class.TolerantAssertComparer.8, align 8
  %15 = alloca %struct.TolerantAssertBuilder, align 8
  %16 = alloca %class.TolerantAssertComparer, align 8
  %17 = alloca %class.TolerantAssertComparer.8, align 8
  %18 = alloca %struct.TolerantAssertBuilder, align 8
  %19 = alloca %class.TolerantAssertComparer, align 8
  %20 = alloca %class.TolerantAssertComparer.8, align 8
  %21 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #7
  call void @_ZN3P3D28generateFullTaylorForSinWaveIdLm5EEENS_19FullTaylorExpansionIT_XT0_EEES2_S2_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %1, double noundef 9.300000e-01, double noundef 1.397000e+01)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store double 0x3FDA6E595A56FD01, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store double 0x4029722DE3E4A6FE, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store double 0xC054264EC46FD1FF, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store double 0xC0A36611163D65FD, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store double 0x40CEB8D7F0C5DD8C, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef 265, double noundef 1.000000e-08)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.8) align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %23 = getelementptr inbounds i8, ptr %7, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load i8, ptr %24, align 1, !tbaa !13, !range !15, !noundef !16
  %26 = trunc nuw i8 %25 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  %27 = call ptr @_ZTW15__testInterface()
  br i1 %26, label %33, label %28

28:                                               ; preds = %0
  %29 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %29, i32 noundef 265, ptr noundef nonnull @.str.4)
          to label %30 unwind label %31

30:                                               ; preds = %28
  call void @__cxa_throw(ptr nonnull %29, ptr nonnull @_ZTI14AssertionError, ptr null) #8
  unreachable

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %82

33:                                               ; preds = %0
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %27)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 266, double noundef 1.000000e-08)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 0)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.8) align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %34)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %35 = getelementptr inbounds i8, ptr %10, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = load i8, ptr %36, align 1, !tbaa !13, !range !15, !noundef !16
  %38 = trunc nuw i8 %37 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  %39 = call ptr @_ZTW15__testInterface()
  br i1 %38, label %45, label %40

40:                                               ; preds = %33
  %41 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %41, i32 noundef 266, ptr noundef nonnull @.str.4)
          to label %42 unwind label %43

42:                                               ; preds = %40
  call void @__cxa_throw(ptr nonnull %41, ptr nonnull @_ZTI14AssertionError, ptr null) #8
  unreachable

43:                                               ; preds = %40
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %82

45:                                               ; preds = %33
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %39)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 267, double noundef 1.000000e-08)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 1)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.8) align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %46)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %47 = getelementptr inbounds i8, ptr %13, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = load i8, ptr %48, align 1, !tbaa !13, !range !15, !noundef !16
  %50 = trunc nuw i8 %49 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  %51 = call ptr @_ZTW15__testInterface()
  br i1 %50, label %57, label %52

52:                                               ; preds = %45
  %53 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %53, i32 noundef 267, ptr noundef nonnull @.str.4)
          to label %54 unwind label %55

54:                                               ; preds = %52
  call void @__cxa_throw(ptr nonnull %53, ptr nonnull @_ZTI14AssertionError, ptr null) #8
  unreachable

55:                                               ; preds = %52
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %82

57:                                               ; preds = %45
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %51)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %18, i32 noundef 268, double noundef 1.000000e-08)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 2)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.8) align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %58)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %59 = getelementptr inbounds i8, ptr %16, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = load i8, ptr %60, align 1, !tbaa !13, !range !15, !noundef !16
  %62 = trunc nuw i8 %61 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  %63 = call ptr @_ZTW15__testInterface()
  br i1 %62, label %69, label %64

64:                                               ; preds = %57
  %65 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %65, i32 noundef 268, ptr noundef nonnull @.str.4)
          to label %66 unwind label %67

66:                                               ; preds = %64
  call void @__cxa_throw(ptr nonnull %65, ptr nonnull @_ZTI14AssertionError, ptr null) #8
  unreachable

67:                                               ; preds = %64
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %82

69:                                               ; preds = %57
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %63)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef 269, double noundef 1.000000e-08)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3P3D19FullTaylorExpansionIdLm5EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 3)
  call void @_ZNK21TolerantAssertBuilderIdEltIdEE22TolerantAssertComparerIT_dERKS3_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.8) align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) %70)
  call void @_ZNK22TolerantAssertComparerIddEeqIdEES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %71 = getelementptr inbounds i8, ptr %19, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = load i8, ptr %72, align 1, !tbaa !13, !range !15, !noundef !16
  %74 = trunc nuw i8 %73 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  %75 = call ptr @_ZTW15__testInterface()
  br i1 %74, label %81, label %76

76:                                               ; preds = %69
  %77 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %77, i32 noundef 269, ptr noundef nonnull @.str.4)
          to label %78 unwind label %79

78:                                               ; preds = %76
  call void @__cxa_throw(ptr nonnull %77, ptr nonnull @_ZTI14AssertionError, ptr null) #8
  unreachable

79:                                               ; preds = %76
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %82

81:                                               ; preds = %69
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %75)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #7
  ret void

82:                                               ; preds = %79, %67, %55, %43, %31
  %.sink = phi ptr [ %77, %79 ], [ %65, %67 ], [ %53, %55 ], [ %41, %43 ], [ %29, %31 ]
  %.pn = phi { ptr, i32 } [ %80, %79 ], [ %68, %67 ], [ %56, %55 ], [ %44, %43 ], [ %32, %31 ]
  call void @__cxa_free_exception(ptr %.sink) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D28generateFullTaylorForSinWaveIdLm5EEENS_19FullTaylorExpansionIT_XT0_EEES2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::FullTaylorExpansion") align 8, double noundef, double noundef) local_unnamed_addr #5

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 = { nounwind }
attributes #8 = { 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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass