; 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::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] }
%"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"] }

; 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572), double noundef, double noundef, double noundef, double noundef, double noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep122time_acc1_vel_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) #3 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
  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
  %15 = load ptr, ptr %8, align 8
  %16 = load ptr, ptr %9, align 8, !tbaa !5
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.ruckig::Profile", ptr %17, i32 0, i32 0
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %18, i64 noundef 0) #4
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.ruckig::Profile", ptr %21, i32 0, i32 0
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %22, i64 noundef 1) #4
  store double 0.000000e+00, ptr %23, align 8, !tbaa !9
  %24 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 1
  %25 = load double, ptr %24, align 8, !tbaa !11
  %26 = load double, ptr %14, align 8, !tbaa !9
  %27 = fdiv double %25, %26
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.ruckig::Profile", ptr %29, i32 0, i32 0
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %30, i64 noundef 2) #4
  store double %27, ptr %31, align 8, !tbaa !9
  %32 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 17
  %33 = load double, ptr %32, align 8, !tbaa !14
  %34 = load double, ptr %13, align 8, !tbaa !9
  %35 = fmul double 8.000000e+00, %34
  %36 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 16
  %37 = load double, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 13
  %39 = load double, ptr %38, align 8, !tbaa !16
  %40 = fsub double %37, %39
  %41 = fmul double %35, %40
  %42 = fneg double %41
  %43 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %33, double %42)
  %44 = load double, ptr %13, align 8, !tbaa !9
  %45 = fmul double 2.400000e+01, %44
  %46 = load double, ptr %14, align 8, !tbaa !9
  %47 = fmul double %45, %46
  %48 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 1
  %49 = load double, ptr %48, align 8, !tbaa !11
  %50 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 0
  %51 = load double, ptr %50, align 8, !tbaa !17
  %52 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 3
  %53 = load double, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 2
  %55 = load double, ptr %54, align 8, !tbaa !19
  %56 = fmul double %53, %55
  %57 = fneg double %56
  %58 = call double @llvm.fmuladd.f64(double %49, double %51, double %57)
  %59 = fneg double %47
  %60 = call double @llvm.fmuladd.f64(double %59, double %58, double %43)
  %61 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 15
  %62 = load double, ptr %61, align 8, !tbaa !20
  %63 = fmul double 6.000000e+00, %62
  %64 = load double, ptr %13, align 8, !tbaa !9
  %65 = load double, ptr %13, align 8, !tbaa !9
  %66 = load double, ptr %14, align 8, !tbaa !9
  %67 = fmul double 2.000000e+00, %66
  %68 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 2
  %69 = load double, ptr %68, align 8, !tbaa !19
  %70 = fmul double %67, %69
  %71 = fneg double %70
  %72 = call double @llvm.fmuladd.f64(double %64, double %65, double %71)
  %73 = call double @llvm.fmuladd.f64(double %63, double %72, double %60)
  %74 = load double, ptr %14, align 8, !tbaa !9
  %75 = fmul double 1.200000e+01, %74
  %76 = load double, ptr %13, align 8, !tbaa !9
  %77 = fmul double 2.000000e+00, %76
  %78 = load double, ptr %14, align 8, !tbaa !9
  %79 = fmul double %77, %78
  %80 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 9
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = load double, ptr %13, align 8, !tbaa !9
  %83 = load double, ptr %13, align 8, !tbaa !9
  %84 = fmul double %82, %83
  %85 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 2
  %86 = load double, ptr %85, align 8, !tbaa !19
  %87 = load double, ptr %10, align 8, !tbaa !9
  %88 = fadd double %86, %87
  %89 = fmul double %84, %88
  %90 = call double @llvm.fmuladd.f64(double %79, double %81, double %89)
  %91 = load double, ptr %14, align 8, !tbaa !9
  %92 = load double, ptr %10, align 8, !tbaa !9
  %93 = load double, ptr %10, align 8, !tbaa !9
  %94 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 11
  %95 = load double, ptr %94, align 8, !tbaa !22
  %96 = fneg double %95
  %97 = call double @llvm.fmuladd.f64(double %92, double %93, double %96)
  %98 = call double @llvm.fmuladd.f64(double %91, double %97, double %90)
  %99 = load double, ptr %13, align 8, !tbaa !9
  %100 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 1
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = fmul double %99, %101
  %103 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 12
  %104 = load double, ptr %103, align 8, !tbaa !23
  %105 = load double, ptr %14, align 8, !tbaa !9
  %106 = fmul double 2.000000e+00, %105
  %107 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 0
  %108 = load double, ptr %107, align 8, !tbaa !17
  %109 = load double, ptr %10, align 8, !tbaa !9
  %110 = fadd double %108, %109
  %111 = fneg double %106
  %112 = call double @llvm.fmuladd.f64(double %111, double %110, double %104)
  %113 = fmul double %102, %112
  %114 = load double, ptr %14, align 8, !tbaa !9
  %115 = fdiv double %113, %114
  %116 = fadd double %98, %115
  %117 = fneg double %75
  %118 = call double @llvm.fmuladd.f64(double %117, double %116, double %73)
  %119 = fneg double %118
  %120 = load double, ptr %13, align 8, !tbaa !9
  %121 = fmul double 2.400000e+01, %120
  %122 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 18
  %123 = load double, ptr %122, align 8, !tbaa !24
  %124 = fmul double %121, %123
  %125 = load double, ptr %10, align 8, !tbaa !9
  %126 = fmul double %124, %125
  %127 = fdiv double %119, %126
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.ruckig::Profile", ptr %129, i32 0, i32 0
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %130, i64 noundef 3) #4
  store double %127, ptr %131, align 8, !tbaa !9
  %132 = load double, ptr %13, align 8, !tbaa !9
  %133 = fneg double %132
  %134 = load double, ptr %14, align 8, !tbaa !9
  %135 = fdiv double %133, %134
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds %"class.ruckig::Profile", ptr %137, i32 0, i32 0
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %138, i64 noundef 4) #4
  store double %135, ptr %139, align 8, !tbaa !9
  %140 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 15
  %141 = load double, ptr %140, align 8, !tbaa !20
  %142 = fdiv double %141, 2.000000e+00
  %143 = load double, ptr %13, align 8, !tbaa !9
  %144 = load double, ptr %13, align 8, !tbaa !9
  %145 = fneg double %143
  %146 = call double @llvm.fmuladd.f64(double %145, double %144, double %142)
  %147 = load double, ptr %14, align 8, !tbaa !9
  %148 = load double, ptr %10, align 8, !tbaa !9
  %149 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 2
  %150 = load double, ptr %149, align 8, !tbaa !19
  %151 = fsub double %148, %150
  %152 = call double @llvm.fmuladd.f64(double %147, double %151, double %146)
  %153 = fneg double %152
  %154 = load double, ptr %13, align 8, !tbaa !9
  %155 = load double, ptr %14, align 8, !tbaa !9
  %156 = fmul double %154, %155
  %157 = fdiv double %153, %156
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.ruckig::Profile", ptr %159, i32 0, i32 0
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %160, i64 noundef 5) #4
  store double %157, ptr %161, align 8, !tbaa !9
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.ruckig::Profile", ptr %163, i32 0, i32 0
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %164, i64 noundef 4) #4
  %166 = load double, ptr %165, align 8, !tbaa !9
  %167 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %15, i32 0, i32 3
  %168 = load double, ptr %167, align 8, !tbaa !18
  %169 = load double, ptr %14, align 8, !tbaa !9
  %170 = fdiv double %168, %169
  %171 = fadd double %166, %170
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = getelementptr inbounds %"class.ruckig::Profile", ptr %173, i32 0, i32 0
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %174, i64 noundef 6) #4
  store double %171, ptr %175, align 8, !tbaa !9
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = load double, ptr %14, align 8, !tbaa !9
  %179 = load double, ptr %10, align 8, !tbaa !9
  %180 = load double, ptr %11, align 8, !tbaa !9
  %181 = load double, ptr %12, align 8, !tbaa !9
  %182 = load double, ptr %13, align 8, !tbaa !9
  %183 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %177, double noundef %178, double noundef %179, double noundef %180, double noundef %181, double noundef %182)
  br i1 %183, label %184, label %186

184:                                              ; preds = %7
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %15, ptr noundef nonnull align 8 dereferenceable(8) %185)
  br label %186

186:                                              ; preds = %184, %7
  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 = { 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 = { 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 8}
!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 136}
!15 = !{!12, !10, i64 128}
!16 = !{!12, !10, i64 104}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !10, i64 24}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !10, i64 120}
!21 = !{!12, !10, i64 72}
!22 = !{!12, !10, i64 88}
!23 = !{!12, !10, i64 96}
!24 = !{!12, !10, i64 144}


; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(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: mustprogress uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep122time_acc1_vel_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 #3 align 2 {
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef 0) #4
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %10, i64 noundef 1) #4
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load double, ptr %12, align 8, !tbaa !11
  %14 = fdiv double %13, %6
  %15 = load ptr, ptr %1, align 8, !tbaa !5
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %15, i64 noundef 2) #4
  store double %14, ptr %16, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %0, i64 136
  %18 = load double, ptr %17, align 8, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  %20 = load double, ptr %19, align 8, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  %22 = load double, ptr %21, align 8, !tbaa !16
  %23 = fsub double %20, %22
  %24 = fmul double %5, -8.000000e+00
  %25 = fmul double %24, %23
  %26 = tail call double @llvm.fmuladd.f64(double %18, double 3.000000e+00, double %25)
  %27 = fmul double %5, 2.400000e+01
  %28 = load double, ptr %12, align 8, !tbaa !11
  %29 = load double, ptr %0, align 8, !tbaa !17
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load double, ptr %30, align 8, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = load double, ptr %32, align 8, !tbaa !19
  %34 = fneg double %31
  %35 = fmul double %33, %34
  %36 = tail call double @llvm.fmuladd.f64(double %28, double %29, double %35)
  %37 = fneg double %27
  %38 = fmul double %37, %6
  %39 = tail call double @llvm.fmuladd.f64(double %38, double %36, double %26)
  %40 = getelementptr inbounds i8, ptr %0, i64 120
  %41 = load double, ptr %40, align 8, !tbaa !20
  %42 = fmul double %41, 6.000000e+00
  %43 = fmul double %6, -2.000000e+00
  %44 = fmul double %43, %33
  %45 = tail call double @llvm.fmuladd.f64(double %5, double %5, double %44)
  %46 = tail call double @llvm.fmuladd.f64(double %42, double %45, double %39)
  %47 = fmul double %5, 2.000000e+00
  %48 = fmul double %47, %6
  %49 = getelementptr inbounds i8, ptr %0, i64 72
  %50 = load double, ptr %49, align 8, !tbaa !21
  %51 = fmul double %5, %5
  %52 = fadd double %33, %2
  %53 = fmul double %51, %52
  %54 = tail call double @llvm.fmuladd.f64(double %48, double %50, double %53)
  %55 = getelementptr inbounds i8, ptr %0, i64 88
  %56 = load double, ptr %55, align 8, !tbaa !22
  %57 = fneg double %56
  %58 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %57)
  %59 = tail call double @llvm.fmuladd.f64(double %6, double %58, double %54)
  %60 = fmul double %28, %5
  %61 = getelementptr inbounds i8, ptr %0, i64 96
  %62 = load double, ptr %61, align 8, !tbaa !23
  %63 = fadd double %29, %2
  %64 = tail call double @llvm.fmuladd.f64(double %43, double %63, double %62)
  %65 = fmul double %60, %64
  %66 = fdiv double %65, %6
  %67 = fadd double %59, %66
  %68 = fmul double %6, -1.200000e+01
  %69 = tail call double @llvm.fmuladd.f64(double %68, double %67, double %46)
  %70 = fneg double %69
  %71 = getelementptr inbounds i8, ptr %0, i64 144
  %72 = load double, ptr %71, align 8, !tbaa !24
  %73 = fmul double %27, %72
  %74 = fmul double %73, %2
  %75 = fdiv double %70, %74
  %76 = load ptr, ptr %1, align 8, !tbaa !5
  %77 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %76, i64 noundef 3) #4
  store double %75, ptr %77, align 8, !tbaa !9
  %78 = fneg double %5
  %79 = fdiv double %78, %6
  %80 = load ptr, ptr %1, align 8, !tbaa !5
  %81 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %80, i64 noundef 4) #4
  store double %79, ptr %81, align 8, !tbaa !9
  %82 = load double, ptr %40, align 8, !tbaa !20
  %83 = fmul double %82, 5.000000e-01
  %84 = tail call double @llvm.fmuladd.f64(double %78, double %5, double %83)
  %85 = load double, ptr %32, align 8, !tbaa !19
  %86 = fsub double %2, %85
  %87 = tail call double @llvm.fmuladd.f64(double %6, double %86, double %84)
  %88 = fneg double %87
  %89 = fmul double %5, %6
  %90 = fdiv double %88, %89
  %91 = load ptr, ptr %1, align 8, !tbaa !5
  %92 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %91, i64 noundef 5) #4
  store double %90, ptr %92, align 8, !tbaa !9
  %93 = load ptr, ptr %1, align 8, !tbaa !5
  %94 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %93, i64 noundef 4) #4
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = load double, ptr %30, align 8, !tbaa !18
  %97 = fdiv double %96, %6
  %98 = fadd double %95, %97
  %99 = load ptr, ptr %1, align 8, !tbaa !5
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %99, i64 noundef 6) #4
  store double %98, ptr %100, align 8, !tbaa !9
  %101 = load ptr, ptr %1, align 8, !tbaa !5
  %102 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %101, double noundef %6, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %102, label %103, label %104

103:                                              ; preds = %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 %104

104:                                              ; preds = %103, %7
  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 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 = { 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 8}
!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 136}
!15 = !{!12, !10, i64 128}
!16 = !{!12, !10, i64 104}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !10, i64 24}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !10, i64 120}
!21 = !{!12, !10, i64 72}
!22 = !{!12, !10, i64 88}
!23 = !{!12, !10, i64 96}
!24 = !{!12, !10, i64 144}


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