; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

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

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

; 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) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK6ruckig23PositionThirdOrderStep120time_all_single_stepEPNS_7ProfileEddddd(ptr noundef nonnull align 8 dereferenceable(3608) %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) #5 align 2 {
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, 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 double, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store double %2, ptr %11, align 8, !tbaa !9
  store double %3, ptr %12, align 8, !tbaa !9
  store double %4, ptr %13, align 8, !tbaa !9
  store double %5, ptr %14, align 8, !tbaa !9
  store double %6, ptr %15, align 8, !tbaa !9
  %18 = load ptr, ptr %9, align 8
  %19 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 3
  %20 = load double, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 1
  %22 = load double, ptr %21, align 8, !tbaa !14
  %23 = fsub double %20, %22
  %24 = call noundef double @_ZSt3absd(double noundef %23)
  %25 = fcmp ogt double %24, 0x3CB0000000000000
  br i1 %25, label %26, label %27

26:                                               ; preds = %7
  store i1 false, ptr %8, align 1
  br label %155

27:                                               ; preds = %7
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.ruckig::Profile", ptr %28, i32 0, i32 0
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %29, i64 noundef 0) #6
  store double 0.000000e+00, ptr %30, align 8, !tbaa !9
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.ruckig::Profile", ptr %31, i32 0, i32 0
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %32, i64 noundef 1) #6
  store double 0.000000e+00, ptr %33, align 8, !tbaa !9
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.ruckig::Profile", ptr %34, i32 0, i32 0
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %35, i64 noundef 2) #6
  store double 0.000000e+00, ptr %36, align 8, !tbaa !9
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.ruckig::Profile", ptr %37, i32 0, i32 0
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %38, i64 noundef 3) #6
  store double 0.000000e+00, ptr %39, align 8, !tbaa !9
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.ruckig::Profile", ptr %40, i32 0, i32 0
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %41, i64 noundef 4) #6
  store double 0.000000e+00, ptr %42, align 8, !tbaa !9
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.ruckig::Profile", ptr %43, i32 0, i32 0
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %44, i64 noundef 5) #6
  store double 0.000000e+00, ptr %45, align 8, !tbaa !9
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.ruckig::Profile", ptr %46, i32 0, i32 0
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %47, i64 noundef 6) #6
  store double 0.000000e+00, ptr %48, align 8, !tbaa !9
  %49 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 1
  %50 = load double, ptr %49, align 8, !tbaa !14
  %51 = call noundef double @_ZSt3absd(double noundef %50)
  %52 = fcmp ogt double %51, 0x3CB0000000000000
  br i1 %52, label %53, label %116

53:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %54 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 1
  %55 = load double, ptr %54, align 8, !tbaa !14
  %56 = fmul double 2.000000e+00, %55
  %57 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 9
  %58 = load double, ptr %57, align 8, !tbaa !15
  %59 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 10
  %60 = load double, ptr %59, align 8, !tbaa !16
  %61 = call double @llvm.fmuladd.f64(double %56, double %58, double %60)
  %62 = call double @sqrt(double noundef %61) #6
  store double %62, ptr %16, align 8, !tbaa !9
  %63 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 0
  %64 = load double, ptr %63, align 8, !tbaa !17
  %65 = fneg double %64
  %66 = load double, ptr %16, align 8, !tbaa !9
  %67 = fadd double %65, %66
  %68 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 1
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = fdiv double %67, %69
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.ruckig::Profile", ptr %71, i32 0, i32 0
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %72, i64 noundef 3) #6
  store double %70, ptr %73, align 8, !tbaa !9
  %74 = load ptr, ptr %10, 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 3) #6
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = fcmp oge double %77, 0.000000e+00
  br i1 %78, label %79, label %87

79:                                               ; preds = %53
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %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 = load double, ptr %14, align 8, !tbaa !9
  %85 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %80, double noundef 0.000000e+00, double noundef %81, double noundef %82, double noundef %83, double noundef %84)
  br i1 %85, label %86, label %87

86:                                               ; preds = %79
  store i1 true, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %113

87:                                               ; preds = %79, %53
  %88 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 0
  %89 = load double, ptr %88, align 8, !tbaa !17
  %90 = load double, ptr %16, align 8, !tbaa !9
  %91 = fadd double %89, %90
  %92 = fneg double %91
  %93 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 1
  %94 = load double, ptr %93, align 8, !tbaa !14
  %95 = fdiv double %92, %94
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.ruckig::Profile", ptr %96, i32 0, i32 0
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %97, i64 noundef 3) #6
  store double %95, ptr %98, align 8, !tbaa !9
  %99 = load ptr, ptr %10, 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 3) #6
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = fcmp oge double %102, 0.000000e+00
  br i1 %103, label %104, label %112

104:                                              ; preds = %87
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load double, ptr %11, align 8, !tbaa !9
  %107 = load double, ptr %12, align 8, !tbaa !9
  %108 = load double, ptr %13, align 8, !tbaa !9
  %109 = load double, ptr %14, align 8, !tbaa !9
  %110 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %105, double noundef 0.000000e+00, double noundef %106, double noundef %107, double noundef %108, double noundef %109)
  br i1 %110, label %111, label %112

111:                                              ; preds = %104
  store i1 true, ptr %8, align 1
  store i32 1, ptr %17, align 4
  br label %113

112:                                              ; preds = %104, %87
  store i32 0, ptr %17, align 4
  br label %113

113:                                              ; preds = %112, %111, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %114 = load i32, ptr %17, align 4
  switch i32 %114, label %157 [
    i32 0, label %115
    i32 1, label %155
  ]

115:                                              ; preds = %113
  br label %154

116:                                              ; preds = %27
  %117 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 0
  %118 = load double, ptr %117, align 8, !tbaa !17
  %119 = call noundef double @_ZSt3absd(double noundef %118)
  %120 = fcmp ogt double %119, 0x3CB0000000000000
  br i1 %120, label %121, label %138

121:                                              ; preds = %116
  %122 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 9
  %123 = load double, ptr %122, align 8, !tbaa !15
  %124 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 0
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = fdiv double %123, %125
  %127 = load ptr, ptr %10, 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 3) #6
  store double %126, ptr %129, align 8, !tbaa !9
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load double, ptr %11, align 8, !tbaa !9
  %132 = load double, ptr %12, align 8, !tbaa !9
  %133 = load double, ptr %13, align 8, !tbaa !9
  %134 = load double, ptr %14, align 8, !tbaa !9
  %135 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %130, double noundef 0.000000e+00, double noundef %131, double noundef %132, double noundef %133, double noundef %134)
  br i1 %135, label %136, label %137

136:                                              ; preds = %121
  store i1 true, ptr %8, align 1
  br label %155

137:                                              ; preds = %121
  br label %153

138:                                              ; preds = %116
  %139 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %18, i32 0, i32 9
  %140 = load double, ptr %139, align 8, !tbaa !15
  %141 = call noundef double @_ZSt3absd(double noundef %140)
  %142 = fcmp olt double %141, 0x3CB0000000000000
  br i1 %142, label %143, label %152

143:                                              ; preds = %138
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = load double, ptr %11, align 8, !tbaa !9
  %146 = load double, ptr %12, align 8, !tbaa !9
  %147 = load double, ptr %13, align 8, !tbaa !9
  %148 = load double, ptr %14, align 8, !tbaa !9
  %149 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %144, double noundef 0.000000e+00, double noundef %145, double noundef %146, double noundef %147, double noundef %148)
  br i1 %149, label %150, label %151

150:                                              ; preds = %143
  store i1 true, ptr %8, align 1
  br label %155

151:                                              ; preds = %143
  br label %152

152:                                              ; preds = %151, %138
  br label %153

153:                                              ; preds = %152, %137
  br label %154

154:                                              ; preds = %153, %115
  store i1 false, ptr %8, align 1
  br label %155

155:                                              ; preds = %154, %150, %136, %113, %26
  %156 = load i1, ptr %8, align 1
  ret i1 %156

157:                                              ; preds = %113
  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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !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 24}
!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 8}
!15 = !{!12, !10, i64 72}
!16 = !{!12, !10, i64 80}
!17 = !{!12, !10, i64 0}


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

; 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: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; 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 #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK6ruckig23PositionThirdOrderStep120time_all_single_stepEPNS_7ProfileEddddd(ptr nocapture noundef nonnull readonly align 8 dereferenceable(3608) %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) local_unnamed_addr #0 align 2 {
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load double, ptr %10, align 8, !tbaa !11
  %12 = fsub double %9, %11
  %13 = tail call noundef double @_ZSt3absd(double noundef %12)
  %14 = fcmp ogt double %13, 0x3CB0000000000000
  br i1 %14, label %.thread, label %15

15:                                               ; preds = %7
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 0) #4
  store double 0.000000e+00, ptr %16, align 8, !tbaa !12
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 1) #4
  store double 0.000000e+00, ptr %17, align 8, !tbaa !12
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 2) #4
  store double 0.000000e+00, ptr %18, align 8, !tbaa !12
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 3) #4
  store double 0.000000e+00, ptr %19, align 8, !tbaa !12
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 4) #4
  store double 0.000000e+00, ptr %20, align 8, !tbaa !12
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 5) #4
  store double 0.000000e+00, ptr %21, align 8, !tbaa !12
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 6) #4
  store double 0.000000e+00, ptr %22, align 8, !tbaa !12
  %23 = load double, ptr %10, align 8, !tbaa !11
  %24 = tail call noundef double @_ZSt3absd(double noundef %23)
  %25 = fcmp ogt double %24, 0x3CB0000000000000
  br i1 %25, label %26, label %57

26:                                               ; preds = %15
  %27 = load double, ptr %10, align 8, !tbaa !11
  %28 = fmul double %27, 2.000000e+00
  %29 = getelementptr inbounds i8, ptr %0, i64 72
  %30 = load double, ptr %29, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %0, i64 80
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = tail call double @llvm.fmuladd.f64(double %28, double %30, double %32)
  %34 = tail call double @sqrt(double noundef %33) #4
  %35 = load double, ptr %0, align 8, !tbaa !15
  %36 = fsub double %34, %35
  %37 = load double, ptr %10, align 8, !tbaa !11
  %38 = fdiv double %36, %37
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 3) #4
  store double %38, ptr %39, align 8, !tbaa !12
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 3) #4
  %41 = load double, ptr %40, align 8, !tbaa !12
  %42 = fcmp ult double %41, 0.000000e+00
  br i1 %42, label %45, label %43

43:                                               ; preds = %26
  %44 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %1, double noundef 0.000000e+00, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %44, label %.thread, label %45

45:                                               ; preds = %43, %26
  %46 = load double, ptr %0, align 8, !tbaa !15
  %47 = fadd double %34, %46
  %48 = fneg double %47
  %49 = load double, ptr %10, align 8, !tbaa !11
  %50 = fdiv double %48, %49
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 3) #4
  store double %50, ptr %51, align 8, !tbaa !12
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 3) #4
  %53 = load double, ptr %52, align 8, !tbaa !12
  %54 = fcmp ult double %53, 0.000000e+00
  br i1 %54, label %73, label %55

55:                                               ; preds = %45
  %56 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %1, double noundef 0.000000e+00, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %56, label %.thread, label %73

57:                                               ; preds = %15
  %58 = load double, ptr %0, align 8, !tbaa !15
  %59 = tail call noundef double @_ZSt3absd(double noundef %58)
  %60 = fcmp ogt double %59, 0x3CB0000000000000
  %61 = getelementptr inbounds i8, ptr %0, i64 72
  %62 = load double, ptr %61, align 8, !tbaa !13
  br i1 %60, label %63, label %68

63:                                               ; preds = %57
  %64 = load double, ptr %0, align 8, !tbaa !15
  %65 = fdiv double %62, %64
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 3) #4
  store double %65, ptr %66, align 8, !tbaa !12
  %67 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %1, double noundef 0.000000e+00, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %67, label %.thread, label %73

68:                                               ; preds = %57
  %69 = tail call noundef double @_ZSt3absd(double noundef %62)
  %70 = fcmp olt double %69, 0x3CB0000000000000
  br i1 %70, label %71, label %73

71:                                               ; preds = %68
  %72 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE7ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %1, double noundef 0.000000e+00, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %72, label %.thread, label %73

73:                                               ; preds = %55, %45, %63, %71, %68
  br label %.thread

.thread:                                          ; preds = %55, %43, %71, %63, %7, %73
  %.1 = phi i1 [ false, %73 ], [ false, %7 ], [ true, %63 ], [ true, %71 ], [ true, %43 ], [ true, %55 ]
  ret i1 %.1
}

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 = { 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 #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 = { 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 24}
!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 8}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 72}
!14 = !{!6, !7, i64 80}
!15 = !{!6, !7, i64 0}


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