; LLVM IR from pantor/ruckig :: src/ruckig (velocity_third_step1)

; 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.ruckig::VelocityThirdOrderStep1" = type { double, double, double, double, double, double, %"struct.std::array" }
%"struct.std::array" = type { [3 x %"class.ruckig::Profile"] }
%"class.ruckig::Profile" = type <{ %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.1", %"struct.std::array.1", %"struct.std::array.1", %"class.ruckig::BrakeProfile", %"class.ruckig::BrakeProfile", double, double, double, i32, i32, i32, [4 x i8] }>
%"struct.std::array.0" = type { [7 x double] }
%"struct.std::array.1" = type { [8 x double] }
%"class.ruckig::BrakeProfile" = type { double, %"struct.std::array.2", %"struct.std::array.2", %"struct.std::array.2", %"struct.std::array.2", %"struct.std::array.2" }
%"struct.std::array.2" = type { [2 x double] }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6ruckig23VelocityThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(1776), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ruckig23VelocityThirdOrderStep19time_noneERPNS_7ProfileEdddb(ptr noundef nonnull align 8 dereferenceable(1776) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %2, double noundef %3, double noundef %4, i1 noundef zeroext %5) #3 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i8, align 1
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !9
  %15 = zext i1 %5 to i8
  store i8 %15, ptr %12, align 1, !tbaa !11
  %16 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %17 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 0
  %18 = load double, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 0
  %20 = load double, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 1
  %22 = load double, ptr %21, align 8, !tbaa !16
  %23 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 1
  %24 = load double, ptr %23, align 8, !tbaa !16
  %25 = fmul double %22, %24
  %26 = call double @llvm.fmuladd.f64(double %18, double %20, double %25)
  %27 = fdiv double %26, 2.000000e+00
  %28 = load double, ptr %11, align 8, !tbaa !9
  %29 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 5
  %30 = load double, ptr %29, align 8, !tbaa !17
  %31 = call double @llvm.fmuladd.f64(double %28, double %30, double %27)
  store double %31, ptr %13, align 8, !tbaa !9
  %32 = load double, ptr %13, align 8, !tbaa !9
  %33 = fcmp oge double %32, 0.000000e+00
  br i1 %33, label %34, label %143

34:                                               ; preds = %6
  %35 = load double, ptr %13, align 8, !tbaa !9
  %36 = call double @sqrt(double noundef %35) #6
  store double %36, ptr %13, align 8, !tbaa !9
  %37 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 0
  %38 = load double, ptr %37, align 8, !tbaa !13
  %39 = load double, ptr %13, align 8, !tbaa !9
  %40 = fadd double %38, %39
  %41 = fneg double %40
  %42 = load double, ptr %11, align 8, !tbaa !9
  %43 = fdiv double %41, %42
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.ruckig::Profile", ptr %45, i32 0, i32 0
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %46, i64 noundef 0) #6
  store double %43, ptr %47, align 8, !tbaa !9
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.ruckig::Profile", ptr %49, i32 0, i32 0
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %50, i64 noundef 1) #6
  store double 0.000000e+00, ptr %51, align 8, !tbaa !9
  %52 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 1
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = load double, ptr %13, align 8, !tbaa !9
  %55 = fadd double %53, %54
  %56 = fneg double %55
  %57 = load double, ptr %11, align 8, !tbaa !9
  %58 = fdiv double %56, %57
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.ruckig::Profile", ptr %60, i32 0, i32 0
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %61, i64 noundef 2) #6
  store double %58, ptr %62, align 8, !tbaa !9
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.ruckig::Profile", ptr %64, i32 0, i32 0
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %65, i64 noundef 3) #6
  store double 0.000000e+00, ptr %66, align 8, !tbaa !9
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.ruckig::Profile", ptr %68, i32 0, i32 0
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %69, i64 noundef 4) #6
  store double 0.000000e+00, ptr %70, align 8, !tbaa !9
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.ruckig::Profile", ptr %72, i32 0, i32 0
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %73, i64 noundef 5) #6
  store double 0.000000e+00, ptr %74, align 8, !tbaa !9
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.ruckig::Profile", ptr %76, i32 0, i32 0
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %77, i64 noundef 6) #6
  store double 0.000000e+00, ptr %78, align 8, !tbaa !9
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load double, ptr %11, align 8, !tbaa !9
  %82 = load double, ptr %9, align 8, !tbaa !9
  %83 = load double, ptr %10, align 8, !tbaa !9
  %84 = call noundef zeroext i1 @_ZN6ruckig7Profile18check_for_velocityILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7EEEbddd(ptr noundef nonnull align 8 dereferenceable(572) %80, double noundef %81, double noundef %82, double noundef %83)
  br i1 %84, label %85, label %91

85:                                               ; preds = %34
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK6ruckig23VelocityThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(1776) %16, ptr noundef nonnull align 8 dereferenceable(8) %86)
  %87 = load i8, ptr %12, align 1, !tbaa !11, !range !18, !noundef !19
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  store i32 1, ptr %14, align 4
  br label %144

90:                                               ; preds = %85
  br label %91

91:                                               ; preds = %90, %34
  %92 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 0
  %93 = load double, ptr %92, align 8, !tbaa !13
  %94 = fneg double %93
  %95 = load double, ptr %13, align 8, !tbaa !9
  %96 = fadd double %94, %95
  %97 = load double, ptr %11, align 8, !tbaa !9
  %98 = fdiv double %96, %97
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.ruckig::Profile", ptr %100, i32 0, i32 0
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %101, i64 noundef 0) #6
  store double %98, ptr %102, align 8, !tbaa !9
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.ruckig::Profile", ptr %104, i32 0, i32 0
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %105, i64 noundef 1) #6
  store double 0.000000e+00, ptr %106, align 8, !tbaa !9
  %107 = getelementptr inbounds %"class.ruckig::VelocityThirdOrderStep1", ptr %16, i32 0, i32 1
  %108 = load double, ptr %107, align 8, !tbaa !16
  %109 = fneg double %108
  %110 = load double, ptr %13, align 8, !tbaa !9
  %111 = fadd double %109, %110
  %112 = load double, ptr %11, align 8, !tbaa !9
  %113 = fdiv double %111, %112
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.ruckig::Profile", ptr %115, i32 0, i32 0
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %116, i64 noundef 2) #6
  store double %113, ptr %117, align 8, !tbaa !9
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.ruckig::Profile", ptr %119, i32 0, i32 0
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %120, i64 noundef 3) #6
  store double 0.000000e+00, ptr %121, align 8, !tbaa !9
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.ruckig::Profile", ptr %123, i32 0, i32 0
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %124, i64 noundef 4) #6
  store double 0.000000e+00, ptr %125, align 8, !tbaa !9
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.ruckig::Profile", ptr %127, i32 0, i32 0
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %128, i64 noundef 5) #6
  store double 0.000000e+00, ptr %129, align 8, !tbaa !9
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.ruckig::Profile", ptr %131, i32 0, i32 0
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %132, i64 noundef 6) #6
  store double 0.000000e+00, ptr %133, align 8, !tbaa !9
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load double, ptr %11, align 8, !tbaa !9
  %137 = load double, ptr %9, align 8, !tbaa !9
  %138 = load double, ptr %10, align 8, !tbaa !9
  %139 = call noundef zeroext i1 @_ZN6ruckig7Profile18check_for_velocityILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7EEEbddd(ptr noundef nonnull align 8 dereferenceable(572) %135, double noundef %136, double noundef %137, double noundef %138)
  br i1 %139, label %140, label %142

140:                                              ; preds = %91
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK6ruckig23VelocityThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(1776) %16, ptr noundef nonnull align 8 dereferenceable(8) %141)
  br label %142

142:                                              ; preds = %140, %91
  br label %143

143:                                              ; preds = %142, %6
  store i32 0, ptr %14, align 4
  br label %144

144:                                              ; preds = %143, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %145 = load i32, ptr %14, align 4
  switch i32 %145, label %147 [
    i32 0, label %146
    i32 1, label %146
  ]

146:                                              ; preds = %144, %144
  ret void

147:                                              ; preds = %144
  unreachable
}

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig7Profile18check_for_velocityILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7EEEbddd(ptr noundef nonnull align 8 dereferenceable(572), double noundef, double noundef, double noundef) #0 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN6ruckig23VelocityThirdOrderStep1E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !15, i64 48}
!15 = !{!"_ZTSSt5arrayIN6ruckig7ProfileELm3EE", !7, i64 0}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !10, i64 40}
!18 = !{i8 0, i8 2}
!19 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6ruckig23VelocityThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(1776), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ruckig23VelocityThirdOrderStep19time_noneERPNS_7ProfileEdddb(ptr noundef nonnull align 8 dereferenceable(1776) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %2, double noundef %3, double noundef %4, i1 noundef zeroext %5) local_unnamed_addr #3 align 2 {
  %7 = load double, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load double, ptr %8, align 8, !tbaa !11
  %10 = fmul double %9, %9
  %11 = tail call double @llvm.fmuladd.f64(double %7, double %7, double %10)
  %12 = fmul double %11, 5.000000e-01
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load double, ptr %13, align 8, !tbaa !12
  %15 = tail call double @llvm.fmuladd.f64(double %4, double %14, double %12)
  %16 = fcmp ult double %15, 0.000000e+00
  br i1 %16, label %68, label %17

17:                                               ; preds = %6
  %18 = tail call double @sqrt(double noundef %15) #5
  %19 = load double, ptr %0, align 8, !tbaa !5
  %20 = fadd double %18, %19
  %21 = fneg double %20
  %22 = fdiv double %21, %4
  %23 = load ptr, ptr %1, align 8, !tbaa !13
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %23, i64 noundef 0) #5
  store double %22, ptr %24, align 8, !tbaa !15
  %25 = load ptr, ptr %1, align 8, !tbaa !13
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %25, i64 noundef 1) #5
  store double 0.000000e+00, ptr %26, align 8, !tbaa !15
  %27 = load double, ptr %8, align 8, !tbaa !11
  %28 = fadd double %18, %27
  %29 = fneg double %28
  %30 = fdiv double %29, %4
  %31 = load ptr, ptr %1, align 8, !tbaa !13
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %31, i64 noundef 2) #5
  store double %30, ptr %32, align 8, !tbaa !15
  %33 = load ptr, ptr %1, align 8, !tbaa !13
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %33, i64 noundef 3) #5
  store double 0.000000e+00, ptr %34, align 8, !tbaa !15
  %35 = load ptr, ptr %1, align 8, !tbaa !13
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %35, i64 noundef 4) #5
  store double 0.000000e+00, ptr %36, align 8, !tbaa !15
  %37 = load ptr, ptr %1, align 8, !tbaa !13
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %37, i64 noundef 5) #5
  store double 0.000000e+00, ptr %38, align 8, !tbaa !15
  %39 = load ptr, ptr %1, align 8, !tbaa !13
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %39, i64 noundef 6) #5
  store double 0.000000e+00, ptr %40, align 8, !tbaa !15
  %41 = load ptr, ptr %1, align 8, !tbaa !13
  %42 = tail call noundef zeroext i1 @_ZN6ruckig7Profile18check_for_velocityILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7EEEbddd(ptr noundef nonnull align 8 dereferenceable(572) %41, double noundef %4, double noundef %2, double noundef %3)
  br i1 %42, label %43, label %44

43:                                               ; preds = %17
  tail call void @_ZNK6ruckig23VelocityThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(1776) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  br i1 %5, label %68, label %44

44:                                               ; preds = %43, %17
  %45 = load double, ptr %0, align 8, !tbaa !5
  %46 = fsub double %18, %45
  %47 = fdiv double %46, %4
  %48 = load ptr, ptr %1, align 8, !tbaa !13
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %48, i64 noundef 0) #5
  store double %47, ptr %49, align 8, !tbaa !15
  %50 = load ptr, ptr %1, align 8, !tbaa !13
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %50, i64 noundef 1) #5
  store double 0.000000e+00, ptr %51, align 8, !tbaa !15
  %52 = load double, ptr %8, align 8, !tbaa !11
  %53 = fsub double %18, %52
  %54 = fdiv double %53, %4
  %55 = load ptr, ptr %1, align 8, !tbaa !13
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %55, i64 noundef 2) #5
  store double %54, ptr %56, align 8, !tbaa !15
  %57 = load ptr, ptr %1, align 8, !tbaa !13
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %57, i64 noundef 3) #5
  store double 0.000000e+00, ptr %58, align 8, !tbaa !15
  %59 = load ptr, ptr %1, align 8, !tbaa !13
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %59, i64 noundef 4) #5
  store double 0.000000e+00, ptr %60, align 8, !tbaa !15
  %61 = load ptr, ptr %1, align 8, !tbaa !13
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %61, i64 noundef 5) #5
  store double 0.000000e+00, ptr %62, align 8, !tbaa !15
  %63 = load ptr, ptr %1, align 8, !tbaa !13
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %63, i64 noundef 6) #5
  store double 0.000000e+00, ptr %64, align 8, !tbaa !15
  %65 = load ptr, ptr %1, align 8, !tbaa !13
  %66 = tail call noundef zeroext i1 @_ZN6ruckig7Profile18check_for_velocityILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7EEEbddd(ptr noundef nonnull align 8 dereferenceable(572) %65, double noundef %4, double noundef %2, double noundef %3)
  br i1 %66, label %67, label %68

67:                                               ; preds = %44
  tail call void @_ZNK6ruckig23VelocityThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(1776) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  br label %68

68:                                               ; preds = %6, %67, %44, %43
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig7Profile18check_for_velocityILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7EEEbddd(ptr noundef nonnull align 8 dereferenceable(572), double noundef, double noundef, double noundef) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN6ruckig23VelocityThirdOrderStep1E", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5arrayIN6ruckig7ProfileELm3EE", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 40}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!7, !7, i64 0}


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