; LLVM IR from pantor/ruckig :: src/ruckig (position_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::PositionThirdOrderStep1" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %"struct.std::array" }
%"struct.std::array" = type { [6 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 @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep118time_none_two_stepERPNS_7ProfileEddddd(ptr noundef nonnull align 8 dereferenceable(3608) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) #6 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store double %2, ptr %10, align 8, !tbaa !9
  store double %3, ptr %11, align 8, !tbaa !9
  store double %4, ptr %12, align 8, !tbaa !9
  store double %5, ptr %13, align 8, !tbaa !9
  store double %6, ptr %14, align 8, !tbaa !9
  %17 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %18 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 12
  %19 = load double, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 15
  %21 = load double, ptr %20, align 8, !tbaa !14
  %22 = fadd double %19, %21
  %23 = fdiv double %22, 2.000000e+00
  %24 = load double, ptr %14, align 8, !tbaa !9
  %25 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 2
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 0
  %28 = load double, ptr %27, align 8, !tbaa !16
  %29 = fsub double %26, %28
  %30 = call double @llvm.fmuladd.f64(double %24, double %29, double %23)
  %31 = call double @sqrt(double noundef %30) #7
  %32 = load double, ptr %14, align 8, !tbaa !9
  %33 = call noundef double @_ZSt3absd(double noundef %32)
  %34 = fmul double %31, %33
  %35 = load double, ptr %14, align 8, !tbaa !9
  %36 = fdiv double %34, %35
  store double %36, ptr %15, align 8, !tbaa !9
  %37 = load double, ptr %15, align 8, !tbaa !9
  %38 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 1
  %39 = load double, ptr %38, align 8, !tbaa !17
  %40 = fsub double %37, %39
  %41 = load double, ptr %14, align 8, !tbaa !9
  %42 = fdiv double %40, %41
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.ruckig::Profile", ptr %44, i32 0, i32 0
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %45, i64 noundef 0) #7
  store double %42, ptr %46, align 8, !tbaa !9
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.ruckig::Profile", ptr %48, i32 0, i32 0
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %49, i64 noundef 1) #7
  store double 0.000000e+00, ptr %50, align 8, !tbaa !9
  %51 = load double, ptr %15, align 8, !tbaa !9
  %52 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 3
  %53 = load double, ptr %52, align 8, !tbaa !18
  %54 = fsub double %51, %53
  %55 = load double, ptr %14, align 8, !tbaa !9
  %56 = fdiv double %54, %55
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.ruckig::Profile", ptr %58, i32 0, i32 0
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %59, i64 noundef 2) #7
  store double %56, ptr %60, align 8, !tbaa !9
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.ruckig::Profile", ptr %62, i32 0, i32 0
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %63, i64 noundef 3) #7
  store double 0.000000e+00, ptr %64, align 8, !tbaa !9
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.ruckig::Profile", ptr %66, i32 0, i32 0
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %67, i64 noundef 4) #7
  store double 0.000000e+00, ptr %68, align 8, !tbaa !9
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.ruckig::Profile", ptr %70, i32 0, i32 0
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %71, i64 noundef 5) #7
  store double 0.000000e+00, ptr %72, align 8, !tbaa !9
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.ruckig::Profile", ptr %74, i32 0, i32 0
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %75, i64 noundef 6) #7
  store double 0.000000e+00, ptr %76, align 8, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = load double, ptr %14, align 8, !tbaa !9
  %80 = load double, ptr %10, align 8, !tbaa !9
  %81 = load double, ptr %11, align 8, !tbaa !9
  %82 = load double, ptr %12, align 8, !tbaa !9
  %83 = load double, ptr %13, align 8, !tbaa !9
  %84 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %78, double noundef %79, double noundef %80, double noundef %81, double noundef %82, double noundef %83)
  br i1 %84, label %85, label %87

85:                                               ; preds = %7
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %17, ptr noundef nonnull align 8 dereferenceable(8) %86)
  store i32 1, ptr %16, align 4
  br label %88

87:                                               ; preds = %7
  store i32 0, ptr %16, align 4
  br label %88

88:                                               ; preds = %87, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %89 = load i32, ptr %16, align 4
  switch i32 %89, label %137 [
    i32 0, label %90
    i32 1, label %136
  ]

90:                                               ; preds = %88
  %91 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 3
  %92 = load double, ptr %91, align 8, !tbaa !18
  %93 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %17, i32 0, i32 1
  %94 = load double, ptr %93, align 8, !tbaa !17
  %95 = fsub double %92, %94
  %96 = load double, ptr %14, align 8, !tbaa !9
  %97 = fdiv double %95, %96
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.ruckig::Profile", ptr %99, i32 0, i32 0
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %100, i64 noundef 0) #7
  store double %97, ptr %101, align 8, !tbaa !9
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.ruckig::Profile", ptr %103, i32 0, i32 0
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %104, i64 noundef 1) #7
  store double 0.000000e+00, ptr %105, align 8, !tbaa !9
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.ruckig::Profile", ptr %107, i32 0, i32 0
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %108, i64 noundef 2) #7
  store double 0.000000e+00, ptr %109, align 8, !tbaa !9
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.ruckig::Profile", ptr %111, i32 0, i32 0
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %112, i64 noundef 3) #7
  store double 0.000000e+00, ptr %113, align 8, !tbaa !9
  %114 = load ptr, ptr %9, 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 4) #7
  store double 0.000000e+00, ptr %117, align 8, !tbaa !9
  %118 = load ptr, ptr %9, 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 5) #7
  store double 0.000000e+00, ptr %121, align 8, !tbaa !9
  %122 = load ptr, ptr %9, 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 6) #7
  store double 0.000000e+00, ptr %125, align 8, !tbaa !9
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = load double, ptr %14, align 8, !tbaa !9
  %129 = load double, ptr %10, align 8, !tbaa !9
  %130 = load double, ptr %11, align 8, !tbaa !9
  %131 = load double, ptr %12, align 8, !tbaa !9
  %132 = load double, ptr %13, align 8, !tbaa !9
  %133 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %127, double noundef %128, double noundef %129, double noundef %130, double noundef %131, double noundef %132)
  br i1 %133, label %134, label %136

134:                                              ; preds = %90
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %17, ptr noundef nonnull align 8 dereferenceable(8) %135)
  br label %136

136:                                              ; preds = %134, %90, %88
  ret void

137:                                              ; preds = %88
  unreachable
}

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

!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, !10, i64 96}
!12 = !{!"_ZTSN6ruckig23PositionThirdOrderStep1E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !13, i64 152}
!13 = !{!"_ZTSSt5arrayIN6ruckig7ProfileELm6EE", !7, i64 0}
!14 = !{!12, !10, i64 120}
!15 = !{!12, !10, i64 16}
!16 = !{!12, !10, i64 0}
!17 = !{!12, !10, i64 8}
!18 = !{!12, !10, i64 24}


; 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 @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep118time_none_two_stepERPNS_7ProfileEddddd(ptr noundef nonnull align 8 dereferenceable(3608) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) local_unnamed_addr #5 align 2 {
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = load double, ptr %10, align 8, !tbaa !11
  %12 = fadd double %9, %11
  %13 = fmul double %12, 5.000000e-01
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load double, ptr %14, align 8, !tbaa !12
  %16 = load double, ptr %0, align 8, !tbaa !13
  %17 = fsub double %15, %16
  %18 = tail call double @llvm.fmuladd.f64(double %6, double %17, double %13)
  %19 = tail call double @sqrt(double noundef %18) #6
  %20 = tail call noundef double @_ZSt3absd(double noundef %6)
  %21 = fmul double %19, %20
  %22 = fdiv double %21, %6
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load double, ptr %23, align 8, !tbaa !14
  %25 = fsub double %22, %24
  %26 = fdiv double %25, %6
  %27 = load ptr, ptr %1, align 8, !tbaa !15
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %27, i64 noundef 0) #6
  store double %26, ptr %28, align 8, !tbaa !17
  %29 = load ptr, ptr %1, align 8, !tbaa !15
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %29, i64 noundef 1) #6
  store double 0.000000e+00, ptr %30, align 8, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  %32 = load double, ptr %31, align 8, !tbaa !18
  %33 = fsub double %22, %32
  %34 = fdiv double %33, %6
  %35 = load ptr, ptr %1, align 8, !tbaa !15
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %35, i64 noundef 2) #6
  store double %34, ptr %36, align 8, !tbaa !17
  %37 = load ptr, ptr %1, align 8, !tbaa !15
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %37, i64 noundef 3) #6
  store double 0.000000e+00, ptr %38, align 8, !tbaa !17
  %39 = load ptr, ptr %1, align 8, !tbaa !15
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %39, i64 noundef 4) #6
  store double 0.000000e+00, ptr %40, align 8, !tbaa !17
  %41 = load ptr, ptr %1, align 8, !tbaa !15
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %41, i64 noundef 5) #6
  store double 0.000000e+00, ptr %42, align 8, !tbaa !17
  %43 = load ptr, ptr %1, align 8, !tbaa !15
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %43, i64 noundef 6) #6
  store double 0.000000e+00, ptr %44, align 8, !tbaa !17
  %45 = load ptr, ptr %1, align 8, !tbaa !15
  %46 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %45, double noundef %6, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %46, label %.sink.split, label %47

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

.sink.split:                                      ; preds = %47, %7
  tail call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  br label %68

68:                                               ; preds = %.sink.split, %47
  ret void
}

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 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 #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 = { 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 96}
!6 = !{!"_ZTSN6ruckig23PositionThirdOrderStep1E", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !10, i64 152}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5arrayIN6ruckig7ProfileELm6EE", !8, i64 0}
!11 = !{!6, !7, i64 120}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !7, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !7, i64 24}


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