; 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 uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep112time_all_velERPNS_7ProfileEdddddb(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, i1 noundef zeroext %7) #0 align 2 {
  %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 i8, align 1
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  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
  %20 = zext i1 %7 to i8
  store i8 %20, ptr %16, align 1, !tbaa !11
  %21 = load ptr, ptr %9, align 8
  %22 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %23 = load double, ptr %22, align 8, !tbaa !13
  %24 = fneg double %23
  %25 = load double, ptr %13, align 8, !tbaa !9
  %26 = fadd double %24, %25
  %27 = load double, ptr %15, align 8, !tbaa !9
  %28 = fdiv double %26, %27
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.ruckig::Profile", ptr %30, i32 0, i32 0
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %31, i64 noundef 0) #6
  store double %28, ptr %32, align 8, !tbaa !9
  %33 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 12
  %34 = load double, ptr %33, align 8, !tbaa !16
  %35 = fdiv double %34, 2.000000e+00
  %36 = load double, ptr %13, align 8, !tbaa !9
  %37 = load double, ptr %13, align 8, !tbaa !9
  %38 = fneg double %36
  %39 = call double @llvm.fmuladd.f64(double %38, double %37, double %35)
  %40 = load double, ptr %15, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %42 = load double, ptr %41, align 8, !tbaa !17
  %43 = load double, ptr %11, align 8, !tbaa !9
  %44 = fsub double %42, %43
  %45 = fneg double %40
  %46 = call double @llvm.fmuladd.f64(double %45, double %44, double %39)
  %47 = load double, ptr %13, align 8, !tbaa !9
  %48 = load double, ptr %15, align 8, !tbaa !9
  %49 = fmul double %47, %48
  %50 = fdiv double %46, %49
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.ruckig::Profile", ptr %52, i32 0, i32 0
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %53, i64 noundef 1) #6
  store double %50, ptr %54, align 8, !tbaa !9
  %55 = load double, ptr %13, align 8, !tbaa !9
  %56 = load double, ptr %15, align 8, !tbaa !9
  %57 = fdiv double %55, %56
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.ruckig::Profile", ptr %59, i32 0, i32 0
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %60, i64 noundef 2) #6
  store double %57, ptr %61, align 8, !tbaa !9
  %62 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 14
  %63 = load double, ptr %62, align 8, !tbaa !18
  %64 = load double, ptr %14, align 8, !tbaa !9
  %65 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 17
  %66 = load double, ptr %65, align 8, !tbaa !19
  %67 = load double, ptr %13, align 8, !tbaa !9
  %68 = fmul double %66, %67
  %69 = fneg double %68
  %70 = call double @llvm.fmuladd.f64(double %63, double %64, double %69)
  %71 = load double, ptr %13, align 8, !tbaa !9
  %72 = fmul double 8.000000e+00, %71
  %73 = load double, ptr %14, align 8, !tbaa !9
  %74 = fmul double %72, %73
  %75 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 16
  %76 = load double, ptr %75, align 8, !tbaa !20
  %77 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 13
  %78 = load double, ptr %77, align 8, !tbaa !21
  %79 = fsub double %76, %78
  %80 = load double, ptr %15, align 8, !tbaa !9
  %81 = fmul double 3.000000e+00, %80
  %82 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %83 = load double, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %85 = load double, ptr %84, align 8, !tbaa !17
  %86 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 3
  %87 = load double, ptr %86, align 8, !tbaa !22
  %88 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %89 = load double, ptr %88, align 8, !tbaa !23
  %90 = fmul double %87, %89
  %91 = fneg double %90
  %92 = call double @llvm.fmuladd.f64(double %83, double %85, double %91)
  %93 = call double @llvm.fmuladd.f64(double %81, double %92, double %79)
  %94 = fmul double %74, %93
  %95 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %70, double %94)
  %96 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 12
  %97 = load double, ptr %96, align 8, !tbaa !16
  %98 = fmul double 6.000000e+00, %97
  %99 = load double, ptr %14, align 8, !tbaa !9
  %100 = fmul double %98, %99
  %101 = load double, ptr %13, align 8, !tbaa !9
  %102 = load double, ptr %13, align 8, !tbaa !9
  %103 = load double, ptr %15, align 8, !tbaa !9
  %104 = fmul double 2.000000e+00, %103
  %105 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %106 = load double, ptr %105, align 8, !tbaa !17
  %107 = fmul double %104, %106
  %108 = fneg double %107
  %109 = call double @llvm.fmuladd.f64(double %101, double %102, double %108)
  %110 = call double @llvm.fmuladd.f64(double %100, double %109, double %95)
  %111 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 15
  %112 = load double, ptr %111, align 8, !tbaa !24
  %113 = fmul double 6.000000e+00, %112
  %114 = load double, ptr %13, align 8, !tbaa !9
  %115 = fmul double %113, %114
  %116 = load double, ptr %14, align 8, !tbaa !9
  %117 = load double, ptr %14, align 8, !tbaa !9
  %118 = load double, ptr %15, align 8, !tbaa !9
  %119 = fmul double 2.000000e+00, %118
  %120 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %121 = load double, ptr %120, align 8, !tbaa !23
  %122 = fmul double %119, %121
  %123 = fneg double %122
  %124 = call double @llvm.fmuladd.f64(double %116, double %117, double %123)
  %125 = fneg double %115
  %126 = call double @llvm.fmuladd.f64(double %125, double %124, double %110)
  %127 = load double, ptr %15, align 8, !tbaa !9
  %128 = fmul double 1.200000e+01, %127
  %129 = load double, ptr %13, align 8, !tbaa !9
  %130 = load double, ptr %14, align 8, !tbaa !9
  %131 = fmul double %129, %130
  %132 = load double, ptr %13, align 8, !tbaa !9
  %133 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %134 = load double, ptr %133, align 8, !tbaa !17
  %135 = load double, ptr %11, align 8, !tbaa !9
  %136 = fadd double %134, %135
  %137 = load double, ptr %14, align 8, !tbaa !9
  %138 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %139 = load double, ptr %138, align 8, !tbaa !23
  %140 = load double, ptr %11, align 8, !tbaa !9
  %141 = fadd double %139, %140
  %142 = fmul double %137, %141
  %143 = fneg double %142
  %144 = call double @llvm.fmuladd.f64(double %132, double %136, double %143)
  %145 = load double, ptr %15, align 8, !tbaa !9
  %146 = fmul double 2.000000e+00, %145
  %147 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 9
  %148 = load double, ptr %147, align 8, !tbaa !25
  %149 = fneg double %146
  %150 = call double @llvm.fmuladd.f64(double %149, double %148, double %144)
  %151 = load double, ptr %14, align 8, !tbaa !9
  %152 = load double, ptr %13, align 8, !tbaa !9
  %153 = fsub double %151, %152
  %154 = load double, ptr %15, align 8, !tbaa !9
  %155 = fmul double %153, %154
  %156 = load double, ptr %11, align 8, !tbaa !9
  %157 = fmul double %155, %156
  %158 = load double, ptr %11, align 8, !tbaa !9
  %159 = fmul double %157, %158
  %160 = call double @llvm.fmuladd.f64(double %131, double %150, double %159)
  %161 = load double, ptr %15, align 8, !tbaa !9
  %162 = load double, ptr %13, align 8, !tbaa !9
  %163 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 11
  %164 = load double, ptr %163, align 8, !tbaa !26
  %165 = load double, ptr %14, align 8, !tbaa !9
  %166 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 10
  %167 = load double, ptr %166, align 8, !tbaa !27
  %168 = fmul double %165, %167
  %169 = fneg double %168
  %170 = call double @llvm.fmuladd.f64(double %162, double %164, double %169)
  %171 = call double @llvm.fmuladd.f64(double %161, double %170, double %160)
  %172 = fneg double %128
  %173 = call double @llvm.fmuladd.f64(double %172, double %171, double %126)
  %174 = load double, ptr %13, align 8, !tbaa !9
  %175 = fmul double 2.400000e+01, %174
  %176 = load double, ptr %14, align 8, !tbaa !9
  %177 = fmul double %175, %176
  %178 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 18
  %179 = load double, ptr %178, align 8, !tbaa !28
  %180 = fmul double %177, %179
  %181 = load double, ptr %11, align 8, !tbaa !9
  %182 = fmul double %180, %181
  %183 = fdiv double %173, %182
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = getelementptr inbounds %"class.ruckig::Profile", ptr %185, i32 0, i32 0
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %186, i64 noundef 3) #6
  store double %183, ptr %187, align 8, !tbaa !9
  %188 = load double, ptr %14, align 8, !tbaa !9
  %189 = fneg double %188
  %190 = load double, ptr %15, align 8, !tbaa !9
  %191 = fdiv double %189, %190
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = getelementptr inbounds %"class.ruckig::Profile", ptr %193, i32 0, i32 0
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %194, i64 noundef 4) #6
  store double %191, ptr %195, align 8, !tbaa !9
  %196 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 15
  %197 = load double, ptr %196, align 8, !tbaa !24
  %198 = fdiv double %197, 2.000000e+00
  %199 = load double, ptr %14, align 8, !tbaa !9
  %200 = load double, ptr %14, align 8, !tbaa !9
  %201 = fneg double %199
  %202 = call double @llvm.fmuladd.f64(double %201, double %200, double %198)
  %203 = load double, ptr %15, align 8, !tbaa !9
  %204 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %205 = load double, ptr %204, align 8, !tbaa !23
  %206 = load double, ptr %11, align 8, !tbaa !9
  %207 = fsub double %205, %206
  %208 = fneg double %203
  %209 = call double @llvm.fmuladd.f64(double %208, double %207, double %202)
  %210 = fneg double %209
  %211 = load double, ptr %14, align 8, !tbaa !9
  %212 = load double, ptr %15, align 8, !tbaa !9
  %213 = fmul double %211, %212
  %214 = fdiv double %210, %213
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds %"class.ruckig::Profile", ptr %216, i32 0, i32 0
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %217, i64 noundef 5) #6
  store double %214, ptr %218, align 8, !tbaa !9
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %221 = getelementptr inbounds %"class.ruckig::Profile", ptr %220, i32 0, i32 0
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %221, i64 noundef 4) #6
  %223 = load double, ptr %222, align 8, !tbaa !9
  %224 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 3
  %225 = load double, ptr %224, align 8, !tbaa !22
  %226 = load double, ptr %15, align 8, !tbaa !9
  %227 = fdiv double %225, %226
  %228 = fadd double %223, %227
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = getelementptr inbounds %"class.ruckig::Profile", ptr %230, i32 0, i32 0
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %231, i64 noundef 6) #6
  store double %228, ptr %232, align 8, !tbaa !9
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  %235 = load double, ptr %15, align 8, !tbaa !9
  %236 = load double, ptr %11, align 8, !tbaa !9
  %237 = load double, ptr %12, align 8, !tbaa !9
  %238 = load double, ptr %13, align 8, !tbaa !9
  %239 = load double, ptr %14, align 8, !tbaa !9
  %240 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE0ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %234, double noundef %235, double noundef %236, double noundef %237, double noundef %238, double noundef %239)
  br i1 %240, label %241, label %243

241:                                              ; preds = %8
  %242 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %21, ptr noundef nonnull align 8 dereferenceable(8) %242)
  br label %656

243:                                              ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %244 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 12
  %245 = load double, ptr %244, align 8, !tbaa !16
  %246 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 18
  %247 = load double, ptr %246, align 8, !tbaa !28
  %248 = fmul double 2.000000e+00, %247
  %249 = fdiv double %245, %248
  %250 = load double, ptr %11, align 8, !tbaa !9
  %251 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %252 = load double, ptr %251, align 8, !tbaa !17
  %253 = fsub double %250, %252
  %254 = load double, ptr %15, align 8, !tbaa !9
  %255 = fdiv double %253, %254
  %256 = fadd double %249, %255
  %257 = call double @sqrt(double noundef %256) #6
  store double %257, ptr %17, align 8, !tbaa !9
  %258 = load double, ptr %17, align 8, !tbaa !9
  %259 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %260 = load double, ptr %259, align 8, !tbaa !13
  %261 = load double, ptr %15, align 8, !tbaa !9
  %262 = fdiv double %260, %261
  %263 = fsub double %258, %262
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = load ptr, ptr %264, align 8, !tbaa !5
  %266 = getelementptr inbounds %"class.ruckig::Profile", ptr %265, i32 0, i32 0
  %267 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %266, i64 noundef 0) #6
  store double %263, ptr %267, align 8, !tbaa !9
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = load ptr, ptr %268, align 8, !tbaa !5
  %270 = getelementptr inbounds %"class.ruckig::Profile", ptr %269, i32 0, i32 0
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %270, i64 noundef 1) #6
  store double 0.000000e+00, ptr %271, align 8, !tbaa !9
  %272 = load double, ptr %17, align 8, !tbaa !9
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  %274 = load ptr, ptr %273, align 8, !tbaa !5
  %275 = getelementptr inbounds %"class.ruckig::Profile", ptr %274, i32 0, i32 0
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %275, i64 noundef 2) #6
  store double %272, ptr %276, align 8, !tbaa !9
  %277 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 17
  %278 = load double, ptr %277, align 8, !tbaa !19
  %279 = load double, ptr %14, align 8, !tbaa !9
  %280 = fmul double 8.000000e+00, %279
  %281 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 16
  %282 = load double, ptr %281, align 8, !tbaa !20
  %283 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 13
  %284 = load double, ptr %283, align 8, !tbaa !21
  %285 = fsub double %282, %284
  %286 = fmul double %280, %285
  %287 = fneg double %286
  %288 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %278, double %287)
  %289 = load double, ptr %14, align 8, !tbaa !9
  %290 = fmul double 2.400000e+01, %289
  %291 = load double, ptr %15, align 8, !tbaa !9
  %292 = fmul double %290, %291
  %293 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %294 = load double, ptr %293, align 8, !tbaa !13
  %295 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %296 = load double, ptr %295, align 8, !tbaa !17
  %297 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 3
  %298 = load double, ptr %297, align 8, !tbaa !22
  %299 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %300 = load double, ptr %299, align 8, !tbaa !23
  %301 = fmul double %298, %300
  %302 = fneg double %301
  %303 = call double @llvm.fmuladd.f64(double %294, double %296, double %302)
  %304 = fneg double %292
  %305 = call double @llvm.fmuladd.f64(double %304, double %303, double %288)
  %306 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 15
  %307 = load double, ptr %306, align 8, !tbaa !24
  %308 = fmul double 6.000000e+00, %307
  %309 = load double, ptr %14, align 8, !tbaa !9
  %310 = load double, ptr %14, align 8, !tbaa !9
  %311 = load double, ptr %15, align 8, !tbaa !9
  %312 = fmul double 2.000000e+00, %311
  %313 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %314 = load double, ptr %313, align 8, !tbaa !23
  %315 = fmul double %312, %314
  %316 = fneg double %315
  %317 = call double @llvm.fmuladd.f64(double %309, double %310, double %316)
  %318 = call double @llvm.fmuladd.f64(double %308, double %317, double %305)
  %319 = load double, ptr %15, align 8, !tbaa !9
  %320 = fmul double 1.200000e+01, %319
  %321 = load double, ptr %14, align 8, !tbaa !9
  %322 = fmul double 2.000000e+00, %321
  %323 = load double, ptr %15, align 8, !tbaa !9
  %324 = fmul double %322, %323
  %325 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 9
  %326 = load double, ptr %325, align 8, !tbaa !25
  %327 = load double, ptr %14, align 8, !tbaa !9
  %328 = load double, ptr %14, align 8, !tbaa !9
  %329 = fmul double %327, %328
  %330 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %331 = load double, ptr %330, align 8, !tbaa !23
  %332 = load double, ptr %11, align 8, !tbaa !9
  %333 = fadd double %331, %332
  %334 = fmul double %329, %333
  %335 = call double @llvm.fmuladd.f64(double %324, double %326, double %334)
  %336 = load double, ptr %15, align 8, !tbaa !9
  %337 = load double, ptr %11, align 8, !tbaa !9
  %338 = load double, ptr %11, align 8, !tbaa !9
  %339 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 11
  %340 = load double, ptr %339, align 8, !tbaa !26
  %341 = fneg double %340
  %342 = call double @llvm.fmuladd.f64(double %337, double %338, double %341)
  %343 = call double @llvm.fmuladd.f64(double %336, double %342, double %335)
  %344 = load double, ptr %14, align 8, !tbaa !9
  %345 = load double, ptr %17, align 8, !tbaa !9
  %346 = fmul double %344, %345
  %347 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 12
  %348 = load double, ptr %347, align 8, !tbaa !16
  %349 = load double, ptr %15, align 8, !tbaa !9
  %350 = fmul double 2.000000e+00, %349
  %351 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %352 = load double, ptr %351, align 8, !tbaa !17
  %353 = load double, ptr %11, align 8, !tbaa !9
  %354 = fadd double %352, %353
  %355 = fneg double %350
  %356 = call double @llvm.fmuladd.f64(double %355, double %354, double %348)
  %357 = call double @llvm.fmuladd.f64(double %346, double %356, double %343)
  %358 = fneg double %320
  %359 = call double @llvm.fmuladd.f64(double %358, double %357, double %318)
  %360 = fneg double %359
  %361 = load double, ptr %14, align 8, !tbaa !9
  %362 = fmul double 2.400000e+01, %361
  %363 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 18
  %364 = load double, ptr %363, align 8, !tbaa !28
  %365 = fmul double %362, %364
  %366 = load double, ptr %11, align 8, !tbaa !9
  %367 = fmul double %365, %366
  %368 = fdiv double %360, %367
  %369 = load ptr, ptr %10, align 8, !tbaa !5
  %370 = load ptr, ptr %369, align 8, !tbaa !5
  %371 = getelementptr inbounds %"class.ruckig::Profile", ptr %370, i32 0, i32 0
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %371, i64 noundef 3) #6
  store double %368, ptr %372, align 8, !tbaa !9
  %373 = load ptr, ptr %10, align 8, !tbaa !5
  %374 = load ptr, ptr %373, align 8, !tbaa !5
  %375 = load double, ptr %15, align 8, !tbaa !9
  %376 = load double, ptr %11, align 8, !tbaa !9
  %377 = load double, ptr %12, align 8, !tbaa !9
  %378 = load double, ptr %13, align 8, !tbaa !9
  %379 = load double, ptr %14, align 8, !tbaa !9
  %380 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %374, double noundef %375, double noundef %376, double noundef %377, double noundef %378, double noundef %379)
  br i1 %380, label %381, label %383

381:                                              ; preds = %243
  %382 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %21, ptr noundef nonnull align 8 dereferenceable(8) %382)
  store i32 1, ptr %18, align 4
  br label %654

383:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %384 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 15
  %385 = load double, ptr %384, align 8, !tbaa !24
  %386 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 18
  %387 = load double, ptr %386, align 8, !tbaa !28
  %388 = fmul double 2.000000e+00, %387
  %389 = fdiv double %385, %388
  %390 = load double, ptr %11, align 8, !tbaa !9
  %391 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %392 = load double, ptr %391, align 8, !tbaa !23
  %393 = fsub double %390, %392
  %394 = load double, ptr %15, align 8, !tbaa !9
  %395 = fdiv double %393, %394
  %396 = fadd double %389, %395
  %397 = call double @sqrt(double noundef %396) #6
  store double %397, ptr %19, align 8, !tbaa !9
  %398 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %399 = load double, ptr %398, align 8, !tbaa !13
  %400 = fneg double %399
  %401 = load double, ptr %13, align 8, !tbaa !9
  %402 = fadd double %400, %401
  %403 = load double, ptr %15, align 8, !tbaa !9
  %404 = fdiv double %402, %403
  %405 = load ptr, ptr %10, align 8, !tbaa !5
  %406 = load ptr, ptr %405, align 8, !tbaa !5
  %407 = getelementptr inbounds %"class.ruckig::Profile", ptr %406, i32 0, i32 0
  %408 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %407, i64 noundef 0) #6
  store double %404, ptr %408, align 8, !tbaa !9
  %409 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 12
  %410 = load double, ptr %409, align 8, !tbaa !16
  %411 = fdiv double %410, 2.000000e+00
  %412 = load double, ptr %13, align 8, !tbaa !9
  %413 = load double, ptr %13, align 8, !tbaa !9
  %414 = fneg double %412
  %415 = call double @llvm.fmuladd.f64(double %414, double %413, double %411)
  %416 = load double, ptr %15, align 8, !tbaa !9
  %417 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %418 = load double, ptr %417, align 8, !tbaa !17
  %419 = load double, ptr %11, align 8, !tbaa !9
  %420 = fsub double %418, %419
  %421 = fneg double %416
  %422 = call double @llvm.fmuladd.f64(double %421, double %420, double %415)
  %423 = load double, ptr %13, align 8, !tbaa !9
  %424 = load double, ptr %15, align 8, !tbaa !9
  %425 = fmul double %423, %424
  %426 = fdiv double %422, %425
  %427 = load ptr, ptr %10, align 8, !tbaa !5
  %428 = load ptr, ptr %427, align 8, !tbaa !5
  %429 = getelementptr inbounds %"class.ruckig::Profile", ptr %428, i32 0, i32 0
  %430 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %429, i64 noundef 1) #6
  store double %426, ptr %430, align 8, !tbaa !9
  %431 = load double, ptr %13, align 8, !tbaa !9
  %432 = load double, ptr %15, align 8, !tbaa !9
  %433 = fdiv double %431, %432
  %434 = load ptr, ptr %10, align 8, !tbaa !5
  %435 = load ptr, ptr %434, align 8, !tbaa !5
  %436 = getelementptr inbounds %"class.ruckig::Profile", ptr %435, i32 0, i32 0
  %437 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %436, i64 noundef 2) #6
  store double %433, ptr %437, align 8, !tbaa !9
  %438 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 14
  %439 = load double, ptr %438, align 8, !tbaa !18
  %440 = load double, ptr %13, align 8, !tbaa !9
  %441 = fmul double 8.000000e+00, %440
  %442 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 16
  %443 = load double, ptr %442, align 8, !tbaa !20
  %444 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 13
  %445 = load double, ptr %444, align 8, !tbaa !21
  %446 = fsub double %443, %445
  %447 = fmul double %441, %446
  %448 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %439, double %447)
  %449 = load double, ptr %13, align 8, !tbaa !9
  %450 = fmul double 2.400000e+01, %449
  %451 = load double, ptr %15, align 8, !tbaa !9
  %452 = fmul double %450, %451
  %453 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %454 = load double, ptr %453, align 8, !tbaa !13
  %455 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %456 = load double, ptr %455, align 8, !tbaa !17
  %457 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 3
  %458 = load double, ptr %457, align 8, !tbaa !22
  %459 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %460 = load double, ptr %459, align 8, !tbaa !23
  %461 = fmul double %458, %460
  %462 = fneg double %461
  %463 = call double @llvm.fmuladd.f64(double %454, double %456, double %462)
  %464 = call double @llvm.fmuladd.f64(double %452, double %463, double %448)
  %465 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 12
  %466 = load double, ptr %465, align 8, !tbaa !16
  %467 = fmul double 6.000000e+00, %466
  %468 = load double, ptr %13, align 8, !tbaa !9
  %469 = load double, ptr %13, align 8, !tbaa !9
  %470 = load double, ptr %15, align 8, !tbaa !9
  %471 = fmul double 2.000000e+00, %470
  %472 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %473 = load double, ptr %472, align 8, !tbaa !17
  %474 = fmul double %471, %473
  %475 = fneg double %474
  %476 = call double @llvm.fmuladd.f64(double %468, double %469, double %475)
  %477 = call double @llvm.fmuladd.f64(double %467, double %476, double %464)
  %478 = load double, ptr %15, align 8, !tbaa !9
  %479 = fmul double 1.200000e+01, %478
  %480 = load double, ptr %13, align 8, !tbaa !9
  %481 = fmul double -2.000000e+00, %480
  %482 = load double, ptr %15, align 8, !tbaa !9
  %483 = fmul double %481, %482
  %484 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 9
  %485 = load double, ptr %484, align 8, !tbaa !25
  %486 = load double, ptr %13, align 8, !tbaa !9
  %487 = load double, ptr %13, align 8, !tbaa !9
  %488 = fmul double %486, %487
  %489 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %490 = load double, ptr %489, align 8, !tbaa !17
  %491 = load double, ptr %11, align 8, !tbaa !9
  %492 = fadd double %490, %491
  %493 = fmul double %488, %492
  %494 = call double @llvm.fmuladd.f64(double %483, double %485, double %493)
  %495 = load double, ptr %15, align 8, !tbaa !9
  %496 = load double, ptr %11, align 8, !tbaa !9
  %497 = load double, ptr %11, align 8, !tbaa !9
  %498 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 10
  %499 = load double, ptr %498, align 8, !tbaa !27
  %500 = fneg double %499
  %501 = call double @llvm.fmuladd.f64(double %496, double %497, double %500)
  %502 = call double @llvm.fmuladd.f64(double %495, double %501, double %494)
  %503 = load double, ptr %13, align 8, !tbaa !9
  %504 = load double, ptr %19, align 8, !tbaa !9
  %505 = fmul double %503, %504
  %506 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 15
  %507 = load double, ptr %506, align 8, !tbaa !24
  %508 = fneg double %507
  %509 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %510 = load double, ptr %509, align 8, !tbaa !23
  %511 = load double, ptr %11, align 8, !tbaa !9
  %512 = fadd double %510, %511
  %513 = fmul double 2.000000e+00, %512
  %514 = load double, ptr %15, align 8, !tbaa !9
  %515 = call double @llvm.fmuladd.f64(double %513, double %514, double %508)
  %516 = call double @llvm.fmuladd.f64(double %505, double %515, double %502)
  %517 = fneg double %479
  %518 = call double @llvm.fmuladd.f64(double %517, double %516, double %477)
  %519 = load double, ptr %13, align 8, !tbaa !9
  %520 = fmul double 2.400000e+01, %519
  %521 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 18
  %522 = load double, ptr %521, align 8, !tbaa !28
  %523 = fmul double %520, %522
  %524 = load double, ptr %11, align 8, !tbaa !9
  %525 = fmul double %523, %524
  %526 = fdiv double %518, %525
  %527 = load ptr, ptr %10, align 8, !tbaa !5
  %528 = load ptr, ptr %527, align 8, !tbaa !5
  %529 = getelementptr inbounds %"class.ruckig::Profile", ptr %528, i32 0, i32 0
  %530 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %529, i64 noundef 3) #6
  store double %526, ptr %530, align 8, !tbaa !9
  %531 = load double, ptr %19, align 8, !tbaa !9
  %532 = load ptr, ptr %10, align 8, !tbaa !5
  %533 = load ptr, ptr %532, align 8, !tbaa !5
  %534 = getelementptr inbounds %"class.ruckig::Profile", ptr %533, i32 0, i32 0
  %535 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %534, i64 noundef 4) #6
  store double %531, ptr %535, align 8, !tbaa !9
  %536 = load ptr, ptr %10, align 8, !tbaa !5
  %537 = load ptr, ptr %536, align 8, !tbaa !5
  %538 = getelementptr inbounds %"class.ruckig::Profile", ptr %537, i32 0, i32 0
  %539 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %538, i64 noundef 5) #6
  store double 0.000000e+00, ptr %539, align 8, !tbaa !9
  %540 = load double, ptr %19, align 8, !tbaa !9
  %541 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 3
  %542 = load double, ptr %541, align 8, !tbaa !22
  %543 = load double, ptr %15, align 8, !tbaa !9
  %544 = fdiv double %542, %543
  %545 = fadd double %540, %544
  %546 = load ptr, ptr %10, align 8, !tbaa !5
  %547 = load ptr, ptr %546, align 8, !tbaa !5
  %548 = getelementptr inbounds %"class.ruckig::Profile", ptr %547, i32 0, i32 0
  %549 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %548, i64 noundef 6) #6
  store double %545, ptr %549, align 8, !tbaa !9
  %550 = load ptr, ptr %10, align 8, !tbaa !5
  %551 = load ptr, ptr %550, align 8, !tbaa !5
  %552 = load double, ptr %15, align 8, !tbaa !9
  %553 = load double, ptr %11, align 8, !tbaa !9
  %554 = load double, ptr %12, align 8, !tbaa !9
  %555 = load double, ptr %13, align 8, !tbaa !9
  %556 = load double, ptr %14, align 8, !tbaa !9
  %557 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE5ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %551, double noundef %552, double noundef %553, double noundef %554, double noundef %555, double noundef %556)
  br i1 %557, label %558, label %560

558:                                              ; preds = %383
  %559 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %21, ptr noundef nonnull align 8 dereferenceable(8) %559)
  store i32 1, ptr %18, align 4
  br label %653

560:                                              ; preds = %383
  %561 = load double, ptr %17, align 8, !tbaa !9
  %562 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %563 = load double, ptr %562, align 8, !tbaa !13
  %564 = load double, ptr %15, align 8, !tbaa !9
  %565 = fdiv double %563, %564
  %566 = fsub double %561, %565
  %567 = load ptr, ptr %10, align 8, !tbaa !5
  %568 = load ptr, ptr %567, align 8, !tbaa !5
  %569 = getelementptr inbounds %"class.ruckig::Profile", ptr %568, i32 0, i32 0
  %570 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %569, i64 noundef 0) #6
  store double %566, ptr %570, align 8, !tbaa !9
  %571 = load ptr, ptr %10, align 8, !tbaa !5
  %572 = load ptr, ptr %571, align 8, !tbaa !5
  %573 = getelementptr inbounds %"class.ruckig::Profile", ptr %572, i32 0, i32 0
  %574 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %573, i64 noundef 1) #6
  store double 0.000000e+00, ptr %574, align 8, !tbaa !9
  %575 = load double, ptr %17, align 8, !tbaa !9
  %576 = load ptr, ptr %10, align 8, !tbaa !5
  %577 = load ptr, ptr %576, align 8, !tbaa !5
  %578 = getelementptr inbounds %"class.ruckig::Profile", ptr %577, i32 0, i32 0
  %579 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %578, i64 noundef 2) #6
  store double %575, ptr %579, align 8, !tbaa !9
  %580 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 16
  %581 = load double, ptr %580, align 8, !tbaa !20
  %582 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 13
  %583 = load double, ptr %582, align 8, !tbaa !21
  %584 = fsub double %581, %583
  %585 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 18
  %586 = load double, ptr %585, align 8, !tbaa !28
  %587 = fmul double 3.000000e+00, %586
  %588 = load double, ptr %11, align 8, !tbaa !9
  %589 = fmul double %587, %588
  %590 = fdiv double %584, %589
  %591 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 1
  %592 = load double, ptr %591, align 8, !tbaa !13
  %593 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %594 = load double, ptr %593, align 8, !tbaa !17
  %595 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 3
  %596 = load double, ptr %595, align 8, !tbaa !22
  %597 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %598 = load double, ptr %597, align 8, !tbaa !23
  %599 = fmul double %596, %598
  %600 = fneg double %599
  %601 = call double @llvm.fmuladd.f64(double %592, double %594, double %600)
  %602 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 15
  %603 = load double, ptr %602, align 8, !tbaa !24
  %604 = load double, ptr %19, align 8, !tbaa !9
  %605 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 12
  %606 = load double, ptr %605, align 8, !tbaa !16
  %607 = load double, ptr %17, align 8, !tbaa !9
  %608 = fmul double %606, %607
  %609 = call double @llvm.fmuladd.f64(double %603, double %604, double %608)
  %610 = fdiv double %609, 2.000000e+00
  %611 = fadd double %601, %610
  %612 = load double, ptr %15, align 8, !tbaa !9
  %613 = load double, ptr %11, align 8, !tbaa !9
  %614 = fmul double %612, %613
  %615 = fdiv double %611, %614
  %616 = fadd double %590, %615
  %617 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 0
  %618 = load double, ptr %617, align 8, !tbaa !17
  %619 = load double, ptr %11, align 8, !tbaa !9
  %620 = fdiv double %618, %619
  %621 = fadd double %620, 1.000000e+00
  %622 = load double, ptr %17, align 8, !tbaa !9
  %623 = fneg double %621
  %624 = call double @llvm.fmuladd.f64(double %623, double %622, double %616)
  %625 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 2
  %626 = load double, ptr %625, align 8, !tbaa !23
  %627 = load double, ptr %11, align 8, !tbaa !9
  %628 = fdiv double %626, %627
  %629 = fadd double %628, 1.000000e+00
  %630 = load double, ptr %19, align 8, !tbaa !9
  %631 = fneg double %629
  %632 = call double @llvm.fmuladd.f64(double %631, double %630, double %624)
  %633 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %21, i32 0, i32 9
  %634 = load double, ptr %633, align 8, !tbaa !25
  %635 = load double, ptr %11, align 8, !tbaa !9
  %636 = fdiv double %634, %635
  %637 = fadd double %632, %636
  %638 = load ptr, ptr %10, align 8, !tbaa !5
  %639 = load ptr, ptr %638, align 8, !tbaa !5
  %640 = getelementptr inbounds %"class.ruckig::Profile", ptr %639, i32 0, i32 0
  %641 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %640, i64 noundef 3) #6
  store double %637, ptr %641, align 8, !tbaa !9
  %642 = load ptr, ptr %10, align 8, !tbaa !5
  %643 = load ptr, ptr %642, align 8, !tbaa !5
  %644 = load double, ptr %15, align 8, !tbaa !9
  %645 = load double, ptr %11, align 8, !tbaa !9
  %646 = load double, ptr %12, align 8, !tbaa !9
  %647 = load double, ptr %13, align 8, !tbaa !9
  %648 = load double, ptr %14, align 8, !tbaa !9
  %649 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE1ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %643, double noundef %644, double noundef %645, double noundef %646, double noundef %647, double noundef %648)
  br i1 %649, label %650, label %652

650:                                              ; preds = %560
  %651 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %21, ptr noundef nonnull align 8 dereferenceable(8) %651)
  br label %652

652:                                              ; preds = %650, %560
  store i32 0, ptr %18, align 4
  br label %653

653:                                              ; preds = %652, %558
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %654

654:                                              ; preds = %653, %381
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %655 = load i32, ptr %18, align 4
  switch i32 %655, label %657 [
    i32 0, label %656
    i32 1, label %656
  ]

656:                                              ; preds = %654, %654, %241
  ret void

657:                                              ; preds = %654
  unreachable
}

; 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) #1 align 2

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

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

; 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)) #3 align 2

; 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 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572), double noundef, double noundef, double noundef, double noundef, double noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE1ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572), double noundef, double noundef, double noundef, double noundef, double noundef) #1 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 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 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 8}
!14 = !{!"_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, !15, i64 152}
!15 = !{!"_ZTSSt5arrayIN6ruckig7ProfileELm6EE", !7, i64 0}
!16 = !{!14, !10, i64 96}
!17 = !{!14, !10, i64 0}
!18 = !{!14, !10, i64 112}
!19 = !{!14, !10, i64 136}
!20 = !{!14, !10, i64 128}
!21 = !{!14, !10, i64 104}
!22 = !{!14, !10, i64 24}
!23 = !{!14, !10, i64 16}
!24 = !{!14, !10, i64 120}
!25 = !{!14, !10, i64 72}
!26 = !{!14, !10, i64 88}
!27 = !{!14, !10, i64 80}
!28 = !{!14, !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 uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep112time_all_velERPNS_7ProfileEdddddb(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, i1 noundef zeroext %7) local_unnamed_addr #0 align 2 {
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = fsub double %4, %10
  %12 = fdiv double %11, %6
  %13 = load ptr, ptr %1, align 8, !tbaa !11
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %13, i64 noundef 0) #5
  store double %12, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  %16 = load double, ptr %15, align 8, !tbaa !14
  %17 = fmul double %16, 5.000000e-01
  %18 = fneg double %4
  %19 = tail call double @llvm.fmuladd.f64(double %18, double %4, double %17)
  %20 = load double, ptr %0, align 8, !tbaa !15
  %21 = fsub double %20, %2
  %22 = fneg double %6
  %23 = tail call double @llvm.fmuladd.f64(double %22, double %21, double %19)
  %24 = fmul double %4, %6
  %25 = fdiv double %23, %24
  %26 = load ptr, ptr %1, align 8, !tbaa !11
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %26, i64 noundef 1) #5
  store double %25, ptr %27, align 8, !tbaa !13
  %28 = fdiv double %4, %6
  %29 = load ptr, ptr %1, align 8, !tbaa !11
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %29, i64 noundef 2) #5
  store double %28, ptr %30, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %0, i64 112
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %0, i64 136
  %34 = load double, ptr %33, align 8, !tbaa !17
  %35 = fneg double %34
  %36 = fmul double %35, %4
  %37 = tail call double @llvm.fmuladd.f64(double %32, double %5, double %36)
  %38 = fmul double %4, 8.000000e+00
  %39 = fmul double %38, %5
  %40 = getelementptr inbounds i8, ptr %0, i64 128
  %41 = load double, ptr %40, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %0, i64 104
  %43 = load double, ptr %42, align 8, !tbaa !19
  %44 = fsub double %41, %43
  %45 = fmul double %6, 3.000000e+00
  %46 = load double, ptr %9, align 8, !tbaa !5
  %47 = load double, ptr %0, align 8, !tbaa !15
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  %49 = load double, ptr %48, align 8, !tbaa !20
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  %51 = load double, ptr %50, align 8, !tbaa !21
  %52 = fneg double %49
  %53 = fmul double %51, %52
  %54 = tail call double @llvm.fmuladd.f64(double %46, double %47, double %53)
  %55 = tail call double @llvm.fmuladd.f64(double %45, double %54, double %44)
  %56 = fmul double %39, %55
  %57 = tail call double @llvm.fmuladd.f64(double %37, double 3.000000e+00, double %56)
  %58 = load double, ptr %15, align 8, !tbaa !14
  %59 = fmul double %58, 6.000000e+00
  %60 = fmul double %59, %5
  %61 = fmul double %6, -2.000000e+00
  %62 = fmul double %61, %47
  %63 = tail call double @llvm.fmuladd.f64(double %4, double %4, double %62)
  %64 = tail call double @llvm.fmuladd.f64(double %60, double %63, double %57)
  %65 = getelementptr inbounds i8, ptr %0, i64 120
  %66 = load double, ptr %65, align 8, !tbaa !22
  %67 = fmul double %61, %51
  %68 = tail call double @llvm.fmuladd.f64(double %5, double %5, double %67)
  %69 = fmul double %66, -6.000000e+00
  %70 = fmul double %69, %4
  %71 = tail call double @llvm.fmuladd.f64(double %70, double %68, double %64)
  %72 = fmul double %4, %5
  %73 = fadd double %47, %2
  %74 = fadd double %51, %2
  %75 = fneg double %74
  %76 = fmul double %75, %5
  %77 = tail call double @llvm.fmuladd.f64(double %4, double %73, double %76)
  %78 = getelementptr inbounds i8, ptr %0, i64 72
  %79 = load double, ptr %78, align 8, !tbaa !23
  %80 = tail call double @llvm.fmuladd.f64(double %61, double %79, double %77)
  %81 = fsub double %5, %4
  %82 = fmul double %81, %6
  %83 = fmul double %82, %2
  %84 = fmul double %83, %2
  %85 = tail call double @llvm.fmuladd.f64(double %72, double %80, double %84)
  %86 = getelementptr inbounds i8, ptr %0, i64 88
  %87 = load double, ptr %86, align 8, !tbaa !24
  %88 = getelementptr inbounds i8, ptr %0, i64 80
  %89 = load double, ptr %88, align 8, !tbaa !25
  %90 = fneg double %89
  %91 = fmul double %90, %5
  %92 = tail call double @llvm.fmuladd.f64(double %4, double %87, double %91)
  %93 = tail call double @llvm.fmuladd.f64(double %6, double %92, double %85)
  %94 = fmul double %6, -1.200000e+01
  %95 = tail call double @llvm.fmuladd.f64(double %94, double %93, double %71)
  %96 = fmul double %4, 2.400000e+01
  %97 = fmul double %96, %5
  %98 = getelementptr inbounds i8, ptr %0, i64 144
  %99 = load double, ptr %98, align 8, !tbaa !26
  %100 = fmul double %97, %99
  %101 = fmul double %100, %2
  %102 = fdiv double %95, %101
  %103 = load ptr, ptr %1, align 8, !tbaa !11
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %103, i64 noundef 3) #5
  store double %102, ptr %104, align 8, !tbaa !13
  %105 = fneg double %5
  %106 = fdiv double %105, %6
  %107 = load ptr, ptr %1, align 8, !tbaa !11
  %108 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %107, i64 noundef 4) #5
  store double %106, ptr %108, align 8, !tbaa !13
  %109 = load double, ptr %65, align 8, !tbaa !22
  %110 = fmul double %109, 5.000000e-01
  %111 = tail call double @llvm.fmuladd.f64(double %105, double %5, double %110)
  %112 = load double, ptr %50, align 8, !tbaa !21
  %113 = fsub double %112, %2
  %114 = tail call double @llvm.fmuladd.f64(double %22, double %113, double %111)
  %115 = fneg double %114
  %116 = fmul double %5, %6
  %117 = fdiv double %115, %116
  %118 = load ptr, ptr %1, align 8, !tbaa !11
  %119 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %118, i64 noundef 5) #5
  store double %117, ptr %119, align 8, !tbaa !13
  %120 = load ptr, ptr %1, align 8, !tbaa !11
  %121 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %120, i64 noundef 4) #5
  %122 = load double, ptr %121, align 8, !tbaa !13
  %123 = load double, ptr %48, align 8, !tbaa !20
  %124 = fdiv double %123, %6
  %125 = fadd double %122, %124
  %126 = load ptr, ptr %1, align 8, !tbaa !11
  %127 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %126, i64 noundef 6) #5
  store double %125, ptr %127, align 8, !tbaa !13
  %128 = load ptr, ptr %1, align 8, !tbaa !11
  %129 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE0ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %128, double noundef %6, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %129, label %.sink.split, label %130

130:                                              ; preds = %8
  %131 = load <2 x double>, ptr %15, align 8
  %132 = load double, ptr %98, align 8, !tbaa !26
  %133 = fmul double %132, 2.000000e+00
  %134 = load double, ptr %0, align 8, !tbaa !15
  %135 = fsub double %2, %134
  %136 = insertelement <2 x double> %131, double %135, i64 1
  %137 = insertelement <2 x double> poison, double %6, i64 1
  %138 = insertelement <2 x double> %137, double %133, i64 0
  %139 = fdiv <2 x double> %136, %138
  %shift = shufflevector <2 x double> %139, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %140 = fadd <2 x double> %139, %shift
  %141 = extractelement <2 x double> %140, i64 0
  %142 = tail call double @sqrt(double noundef %141) #5
  %143 = load double, ptr %9, align 8, !tbaa !5
  %144 = fdiv double %143, %6
  %145 = fsub double %142, %144
  %146 = load ptr, ptr %1, align 8, !tbaa !11
  %147 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %146, i64 noundef 0) #5
  store double %145, ptr %147, align 8, !tbaa !13
  %148 = load ptr, ptr %1, align 8, !tbaa !11
  %149 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %148, i64 noundef 1) #5
  store double 0.000000e+00, ptr %149, align 8, !tbaa !13
  %150 = load ptr, ptr %1, align 8, !tbaa !11
  %151 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %150, i64 noundef 2) #5
  store double %142, ptr %151, align 8, !tbaa !13
  %152 = load double, ptr %33, align 8, !tbaa !17
  %153 = load double, ptr %40, align 8, !tbaa !18
  %154 = load double, ptr %42, align 8, !tbaa !19
  %155 = fsub double %153, %154
  %156 = fmul double %5, -8.000000e+00
  %157 = fmul double %156, %155
  %158 = tail call double @llvm.fmuladd.f64(double %152, double 3.000000e+00, double %157)
  %159 = fmul double %5, 2.400000e+01
  %160 = load double, ptr %9, align 8, !tbaa !5
  %161 = load double, ptr %0, align 8, !tbaa !15
  %162 = load double, ptr %48, align 8, !tbaa !20
  %163 = load double, ptr %50, align 8, !tbaa !21
  %164 = fneg double %162
  %165 = fmul double %163, %164
  %166 = tail call double @llvm.fmuladd.f64(double %160, double %161, double %165)
  %167 = fneg double %159
  %168 = fmul double %167, %6
  %169 = tail call double @llvm.fmuladd.f64(double %168, double %166, double %158)
  %170 = load double, ptr %65, align 8, !tbaa !22
  %171 = fmul double %170, 6.000000e+00
  %172 = fmul double %61, %163
  %173 = tail call double @llvm.fmuladd.f64(double %5, double %5, double %172)
  %174 = tail call double @llvm.fmuladd.f64(double %171, double %173, double %169)
  %175 = fmul double %5, 2.000000e+00
  %176 = fmul double %175, %6
  %177 = load double, ptr %78, align 8, !tbaa !23
  %178 = fmul double %5, %5
  %179 = fadd double %163, %2
  %180 = fmul double %178, %179
  %181 = tail call double @llvm.fmuladd.f64(double %176, double %177, double %180)
  %182 = load double, ptr %86, align 8, !tbaa !24
  %183 = fneg double %182
  %184 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %183)
  %185 = tail call double @llvm.fmuladd.f64(double %6, double %184, double %181)
  %186 = fmul double %142, %5
  %187 = load double, ptr %15, align 8, !tbaa !14
  %188 = fadd double %161, %2
  %189 = tail call double @llvm.fmuladd.f64(double %61, double %188, double %187)
  %190 = tail call double @llvm.fmuladd.f64(double %186, double %189, double %185)
  %191 = tail call double @llvm.fmuladd.f64(double %94, double %190, double %174)
  %192 = fneg double %191
  %193 = load double, ptr %98, align 8, !tbaa !26
  %194 = fmul double %159, %193
  %195 = fmul double %194, %2
  %196 = fdiv double %192, %195
  %197 = load ptr, ptr %1, align 8, !tbaa !11
  %198 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %197, i64 noundef 3) #5
  store double %196, ptr %198, align 8, !tbaa !13
  %199 = load ptr, ptr %1, align 8, !tbaa !11
  %200 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %199, double noundef %6, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %200, label %.sink.split, label %201

201:                                              ; preds = %130
  %202 = load <2 x double>, ptr %65, align 8
  %203 = load double, ptr %98, align 8, !tbaa !26
  %204 = fmul double %203, 2.000000e+00
  %205 = load double, ptr %50, align 8, !tbaa !21
  %206 = fsub double %2, %205
  %207 = insertelement <2 x double> %202, double %206, i64 1
  %208 = insertelement <2 x double> %137, double %204, i64 0
  %209 = fdiv <2 x double> %207, %208
  %shift178 = shufflevector <2 x double> %209, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %210 = fadd <2 x double> %209, %shift178
  %211 = extractelement <2 x double> %210, i64 0
  %212 = tail call double @sqrt(double noundef %211) #5
  %213 = load double, ptr %9, align 8, !tbaa !5
  %214 = fsub double %4, %213
  %215 = fdiv double %214, %6
  %216 = load ptr, ptr %1, align 8, !tbaa !11
  %217 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %216, i64 noundef 0) #5
  store double %215, ptr %217, align 8, !tbaa !13
  %218 = load double, ptr %15, align 8, !tbaa !14
  %219 = fmul double %218, 5.000000e-01
  %220 = tail call double @llvm.fmuladd.f64(double %18, double %4, double %219)
  %221 = load double, ptr %0, align 8, !tbaa !15
  %222 = fsub double %221, %2
  %223 = tail call double @llvm.fmuladd.f64(double %22, double %222, double %220)
  %224 = fdiv double %223, %24
  %225 = load ptr, ptr %1, align 8, !tbaa !11
  %226 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %225, i64 noundef 1) #5
  store double %224, ptr %226, align 8, !tbaa !13
  %227 = load ptr, ptr %1, align 8, !tbaa !11
  %228 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %227, i64 noundef 2) #5
  store double %28, ptr %228, align 8, !tbaa !13
  %229 = load double, ptr %31, align 8, !tbaa !16
  %230 = load double, ptr %40, align 8, !tbaa !18
  %231 = load double, ptr %42, align 8, !tbaa !19
  %232 = fsub double %230, %231
  %233 = fmul double %38, %232
  %234 = tail call double @llvm.fmuladd.f64(double %229, double 3.000000e+00, double %233)
  %235 = fmul double %96, %6
  %236 = load double, ptr %9, align 8, !tbaa !5
  %237 = load double, ptr %0, align 8, !tbaa !15
  %238 = load double, ptr %48, align 8, !tbaa !20
  %239 = load double, ptr %50, align 8, !tbaa !21
  %240 = fneg double %238
  %241 = fmul double %239, %240
  %242 = tail call double @llvm.fmuladd.f64(double %236, double %237, double %241)
  %243 = tail call double @llvm.fmuladd.f64(double %235, double %242, double %234)
  %244 = load double, ptr %15, align 8, !tbaa !14
  %245 = fmul double %244, 6.000000e+00
  %246 = fmul double %61, %237
  %247 = tail call double @llvm.fmuladd.f64(double %4, double %4, double %246)
  %248 = tail call double @llvm.fmuladd.f64(double %245, double %247, double %243)
  %249 = fmul double %4, -2.000000e+00
  %250 = fmul double %249, %6
  %251 = load double, ptr %78, align 8, !tbaa !23
  %252 = fmul double %4, %4
  %253 = fadd double %237, %2
  %254 = fmul double %252, %253
  %255 = tail call double @llvm.fmuladd.f64(double %250, double %251, double %254)
  %256 = load double, ptr %88, align 8, !tbaa !25
  %257 = fneg double %256
  %258 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %257)
  %259 = tail call double @llvm.fmuladd.f64(double %6, double %258, double %255)
  %260 = fmul double %212, %4
  %261 = load double, ptr %65, align 8, !tbaa !22
  %262 = fneg double %261
  %263 = fadd double %239, %2
  %264 = fmul double %263, 2.000000e+00
  %265 = tail call double @llvm.fmuladd.f64(double %264, double %6, double %262)
  %266 = tail call double @llvm.fmuladd.f64(double %260, double %265, double %259)
  %267 = tail call double @llvm.fmuladd.f64(double %94, double %266, double %248)
  %268 = load double, ptr %98, align 8, !tbaa !26
  %269 = fmul double %96, %268
  %270 = fmul double %269, %2
  %271 = fdiv double %267, %270
  %272 = load ptr, ptr %1, align 8, !tbaa !11
  %273 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %272, i64 noundef 3) #5
  store double %271, ptr %273, align 8, !tbaa !13
  %274 = load ptr, ptr %1, align 8, !tbaa !11
  %275 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %274, i64 noundef 4) #5
  store double %212, ptr %275, align 8, !tbaa !13
  %276 = load ptr, ptr %1, align 8, !tbaa !11
  %277 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %276, i64 noundef 5) #5
  store double 0.000000e+00, ptr %277, align 8, !tbaa !13
  %278 = load double, ptr %48, align 8, !tbaa !20
  %279 = fdiv double %278, %6
  %280 = fadd double %212, %279
  %281 = load ptr, ptr %1, align 8, !tbaa !11
  %282 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %281, i64 noundef 6) #5
  store double %280, ptr %282, align 8, !tbaa !13
  %283 = load ptr, ptr %1, align 8, !tbaa !11
  %284 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE5ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %283, double noundef %6, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %284, label %.sink.split, label %285

285:                                              ; preds = %201
  %286 = load double, ptr %9, align 8, !tbaa !5
  %287 = fdiv double %286, %6
  %288 = fsub double %142, %287
  %289 = load ptr, ptr %1, align 8, !tbaa !11
  %290 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %289, i64 noundef 0) #5
  store double %288, ptr %290, align 8, !tbaa !13
  %291 = load ptr, ptr %1, align 8, !tbaa !11
  %292 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %291, i64 noundef 1) #5
  store double 0.000000e+00, ptr %292, align 8, !tbaa !13
  %293 = load ptr, ptr %1, align 8, !tbaa !11
  %294 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %293, i64 noundef 2) #5
  store double %142, ptr %294, align 8, !tbaa !13
  %295 = load double, ptr %40, align 8, !tbaa !18
  %296 = load double, ptr %42, align 8, !tbaa !19
  %297 = fsub double %295, %296
  %298 = load double, ptr %98, align 8, !tbaa !26
  %299 = fmul double %298, 3.000000e+00
  %300 = load double, ptr %9, align 8, !tbaa !5
  %301 = load double, ptr %0, align 8, !tbaa !15
  %302 = load double, ptr %48, align 8, !tbaa !20
  %303 = load double, ptr %50, align 8, !tbaa !21
  %304 = fneg double %302
  %305 = fmul double %303, %304
  %306 = tail call double @llvm.fmuladd.f64(double %300, double %301, double %305)
  %307 = load double, ptr %65, align 8, !tbaa !22
  %308 = load double, ptr %15, align 8, !tbaa !14
  %309 = fmul double %142, %308
  %310 = tail call double @llvm.fmuladd.f64(double %307, double %212, double %309)
  %311 = fmul double %310, 5.000000e-01
  %312 = fadd double %306, %311
  %313 = insertelement <2 x double> poison, double %2, i64 0
  %314 = shufflevector <2 x double> %313, <2 x double> poison, <2 x i32> zeroinitializer
  %315 = insertelement <2 x double> %137, double %299, i64 0
  %316 = fmul <2 x double> %314, %315
  %317 = insertelement <2 x double> poison, double %297, i64 0
  %318 = insertelement <2 x double> %317, double %312, i64 1
  %319 = fdiv <2 x double> %318, %316
  %shift179 = shufflevector <2 x double> %319, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %320 = fadd <2 x double> %319, %shift179
  %321 = extractelement <2 x double> %320, i64 0
  %322 = fdiv double %301, %2
  %323 = fadd double %322, 1.000000e+00
  %324 = fneg double %323
  %325 = tail call double @llvm.fmuladd.f64(double %324, double %142, double %321)
  %326 = fdiv double %303, %2
  %327 = fadd double %326, 1.000000e+00
  %328 = fneg double %327
  %329 = tail call double @llvm.fmuladd.f64(double %328, double %212, double %325)
  %330 = load double, ptr %78, align 8, !tbaa !23
  %331 = fdiv double %330, %2
  %332 = fadd double %331, %329
  %333 = load ptr, ptr %1, align 8, !tbaa !11
  %334 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %333, i64 noundef 3) #5
  store double %332, ptr %334, align 8, !tbaa !13
  %335 = load ptr, ptr %1, align 8, !tbaa !11
  %336 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE1ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %335, double noundef %6, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %336, label %.sink.split, label %337

.sink.split:                                      ; preds = %285, %201, %130, %8
  tail call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  br label %337

337:                                              ; preds = %.sink.split, %285
  ret void
}

; 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 #1 align 2

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

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

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

; 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 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE6ELb0EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572), double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 8}
!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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 96}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !7, i64 112}
!17 = !{!6, !7, i64 136}
!18 = !{!6, !7, i64 128}
!19 = !{!6, !7, i64 104}
!20 = !{!6, !7, i64 24}
!21 = !{!6, !7, i64 16}
!22 = !{!6, !7, i64 120}
!23 = !{!6, !7, i64 72}
!24 = !{!6, !7, i64 88}
!25 = !{!6, !7, i64 80}
!26 = !{!6, !7, i64 144}


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