; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Vehicle (VehicleDifferential)

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

%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::VehicleDifferentialSettings" = type { i32, i32, float, float, float, float }

@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH27VehicleDifferentialSettings20CalculateTorqueRatioEffRfS1_(ptr noundef nonnull align 4 dereferenceable(24) %0, float noundef %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.JPH::AssertLastParam", align 1
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"struct.JPH::AssertLastParam", align 1
  %24 = alloca float, align 4
  %25 = alloca %"struct.JPH::AssertLastParam", align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8
  %27 = getelementptr inbounds %"class.JPH::VehicleDifferentialSettings", ptr %26, i32 0, i32 3
  %28 = load float, ptr %27, align 4, !tbaa !11
  %29 = fsub float 1.000000e+00, %28
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  store float %29, ptr %30, align 4, !tbaa !9
  %31 = getelementptr inbounds %"class.JPH::VehicleDifferentialSettings", ptr %26, i32 0, i32 3
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  store float %32, ptr %33, align 4, !tbaa !9
  %34 = getelementptr inbounds %"class.JPH::VehicleDifferentialSettings", ptr %26, i32 0, i32 4
  %35 = load float, ptr %34, align 4, !tbaa !14
  %36 = fcmp olt float %35, 0x47EFFFFFE0000000
  br i1 %36, label %37, label %108

37:                                               ; preds = %5
  br label %38

38:                                               ; preds = %37
  %39 = getelementptr inbounds %"class.JPH::VehicleDifferentialSettings", ptr %26, i32 0, i32 4
  %40 = load float, ptr %39, align 4, !tbaa !14
  %41 = fcmp ogt float %40, 1.000000e+00
  br i1 %41, label %45, label %42

42:                                               ; preds = %38
  %43 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 50)
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !15
  br label %45

45:                                               ; preds = %44, %42, %38
  br label %46

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store float 0x3F50624DE0000000, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %47 = load float, ptr %7, align 4, !tbaa !9
  %48 = call noundef float @_ZSt3absf(float noundef %47)
  store float %48, ptr %14, align 4, !tbaa !9
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %50 = load float, ptr %49, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  store float %50, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store float 0x3F50624DE0000000, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %51 = load float, ptr %8, align 4, !tbaa !9
  %52 = call noundef float @_ZSt3absf(float noundef %51)
  store float %52, ptr %17, align 4, !tbaa !9
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %54 = load float, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  store float %54, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %56 = load float, ptr %55, align 4, !tbaa !9
  store float %56, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %58 = load float, ptr %57, align 4, !tbaa !9
  store float %58, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %59 = load float, ptr %19, align 4, !tbaa !9
  %60 = load float, ptr %18, align 4, !tbaa !9
  %61 = fdiv float %59, %60
  %62 = fsub float %61, 1.000000e+00
  %63 = getelementptr inbounds %"class.JPH::VehicleDifferentialSettings", ptr %26, i32 0, i32 4
  %64 = load float, ptr %63, align 4, !tbaa !14
  %65 = fsub float %64, 1.000000e+00
  %66 = fdiv float %62, %65
  store float %66, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store float 1.000000e+00, ptr %22, align 4, !tbaa !9
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %68 = load float, ptr %67, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  store float %68, ptr %20, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %46
  %70 = load float, ptr %20, align 4, !tbaa !9
  %71 = fcmp oge float %70, 0.000000e+00
  br i1 %71, label %75, label %72

72:                                               ; preds = %69
  %73 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 60)
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !16
  br label %75

75:                                               ; preds = %74, %72, %69
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %78 = load float, ptr %20, align 4, !tbaa !9
  %79 = fsub float 1.000000e+00, %78
  store float %79, ptr %24, align 4, !tbaa !9
  %80 = load float, ptr %12, align 4, !tbaa !9
  %81 = load float, ptr %15, align 4, !tbaa !9
  %82 = fcmp olt float %80, %81
  br i1 %82, label %83, label %95

83:                                               ; preds = %77
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load float, ptr %84, align 4, !tbaa !9
  %86 = load float, ptr %24, align 4, !tbaa !9
  %87 = load float, ptr %20, align 4, !tbaa !9
  %88 = call float @llvm.fmuladd.f32(float %85, float %86, float %87)
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  store float %88, ptr %89, align 4, !tbaa !9
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load float, ptr %90, align 4, !tbaa !9
  %92 = load float, ptr %24, align 4, !tbaa !9
  %93 = fmul float %91, %92
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  store float %93, ptr %94, align 4, !tbaa !9
  br label %107

95:                                               ; preds = %77
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = load float, ptr %24, align 4, !tbaa !9
  %99 = fmul float %97, %98
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  store float %99, ptr %100, align 4, !tbaa !9
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load float, ptr %101, align 4, !tbaa !9
  %103 = load float, ptr %24, align 4, !tbaa !9
  %104 = load float, ptr %20, align 4, !tbaa !9
  %105 = call float @llvm.fmuladd.f32(float %102, float %103, float %104)
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  store float %105, ptr %106, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %95, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %108

108:                                              ; preds = %107, %5
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load float, ptr %110, align 4, !tbaa !9
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load float, ptr %112, align 4, !tbaa !9
  %114 = fadd float %111, %113
  %115 = fsub float %114, 1.000000e+00
  %116 = call noundef float @_ZSt3absf(float noundef %115)
  %117 = fcmp olt float %116, 0x3EB0C6F7A0000000
  br i1 %117, label %121, label %118

118:                                              ; preds = %109
  %119 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 78)
  br i1 %119, label %120, label %121

120:                                              ; preds = %118
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !17
  br label %121

121:                                              ; preds = %120, %118, %109
  br label %122

122:                                              ; preds = %121
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"_ZTSN3JPH27VehicleDifferentialSettingsE", !13, i64 0, !13, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{i64 2157250486}
!16 = !{i64 2157250816}
!17 = !{i64 2157251256}


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

@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH27VehicleDifferentialSettings20CalculateTorqueRatioEffRfS1_(ptr nocapture noundef nonnull readonly align 4 dereferenceable(24) %0, float noundef %1, float noundef %2, ptr nocapture noundef nonnull align 4 dereferenceable(4) %3, ptr nocapture noundef nonnull align 4 dereferenceable(4) %4) local_unnamed_addr #1 align 2 {
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = fsub float 1.000000e+00, %15
  store float %16, ptr %3, align 4, !tbaa !11
  %17 = load float, ptr %14, align 4, !tbaa !5
  store float %17, ptr %4, align 4, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load float, ptr %18, align 4, !tbaa !12
  %20 = fcmp olt float %19, 0x47EFFFFFE0000000
  br i1 %20, label %21, label %63

21:                                               ; preds = %5
  %22 = fcmp ogt float %19, 1.000000e+00
  br i1 %22, label %26, label %23

23:                                               ; preds = %21
  %24 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 50)
  br i1 %24, label %25, label %26

25:                                               ; preds = %23
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !13
  br label %26

26:                                               ; preds = %21, %23, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store float 0x3F50624DE0000000, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %27 = tail call noundef float @_ZSt3absf(float noundef %1)
  store float %27, ptr %8, align 4, !tbaa !11
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %29 = load float, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  store float %29, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store float 0x3F50624DE0000000, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %30 = call noundef float @_ZSt3absf(float noundef %2)
  store float %30, ptr %11, align 4, !tbaa !11
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %32 = load float, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  store float %32, ptr %9, align 4, !tbaa !11
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %34 = load float, ptr %33, align 4, !tbaa !11
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %36 = load float, ptr %35, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %37 = fdiv float %36, %34
  %38 = fadd float %37, -1.000000e+00
  %39 = load float, ptr %18, align 4, !tbaa !12
  %40 = fadd float %39, -1.000000e+00
  %41 = fdiv float %38, %40
  store float %41, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store float 1.000000e+00, ptr %13, align 4, !tbaa !11
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %43 = load float, ptr %42, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  %44 = fcmp ult float %43, 0.000000e+00
  br i1 %44, label %45, label %48

45:                                               ; preds = %26
  %46 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 60)
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !14
  br label %48

48:                                               ; preds = %47, %45, %26
  %49 = fsub float 1.000000e+00, %43
  %50 = load float, ptr %6, align 4, !tbaa !11
  %51 = load float, ptr %9, align 4, !tbaa !11
  %52 = fcmp olt float %50, %51
  %53 = load float, ptr %3, align 4, !tbaa !11
  br i1 %52, label %54, label %58

54:                                               ; preds = %48
  %55 = call float @llvm.fmuladd.f32(float %53, float %49, float %43)
  store float %55, ptr %3, align 4, !tbaa !11
  %56 = load float, ptr %4, align 4, !tbaa !11
  %57 = fmul float %49, %56
  br label %62

58:                                               ; preds = %48
  %59 = fmul float %49, %53
  store float %59, ptr %3, align 4, !tbaa !11
  %60 = load float, ptr %4, align 4, !tbaa !11
  %61 = call float @llvm.fmuladd.f32(float %60, float %49, float %43)
  br label %62

62:                                               ; preds = %58, %54
  %storemerge = phi float [ %61, %58 ], [ %57, %54 ]
  store float %storemerge, ptr %4, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %63

63:                                               ; preds = %5, %62
  %64 = phi float [ %17, %5 ], [ %storemerge, %62 ]
  %65 = load float, ptr %3, align 4, !tbaa !11
  %66 = fadd float %65, %64
  %67 = fadd float %66, -1.000000e+00
  %68 = call noundef float @_ZSt3absf(float noundef %67)
  %69 = fcmp olt float %68, 0x3EB0C6F7A0000000
  br i1 %69, label %73, label %70

70:                                               ; preds = %63
  %71 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 78)
  br i1 %71, label %72, label %73

72:                                               ; preds = %70
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !15
  br label %73

73:                                               ; preds = %63, %70, %72
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 12}
!6 = !{!"_ZTSN3JPH27VehicleDifferentialSettingsE", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{i64 2157250486}
!14 = !{i64 2157250816}
!15 = !{i64 2157251256}


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