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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.ruckig::PositionThirdOrderStep1" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %"struct.std::array" }
%"struct.std::array" = type { [6 x %"class.ruckig::Profile"] }
%"class.ruckig::Profile" = type <{ %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.1", %"struct.std::array.1", %"struct.std::array.1", %"class.ruckig::BrakeProfile", %"class.ruckig::BrakeProfile", double, double, double, i32, i32, i32, [4 x i8] }>
%"struct.std::array.0" = type { [7 x double] }
%"struct.std::array.1" = type { [8 x double] }
%"class.ruckig::BrakeProfile" = type { double, %"struct.std::array.2", %"struct.std::array.2", %"struct.std::array.2", %"struct.std::array.2", %"struct.std::array.2" }
%"struct.std::array.2" = type { [2 x double] }

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep114time_acc0_acc1ERPNS_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) #5 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 double, align 8
  %19 = alloca double, align 8
  %20 = 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
  %21 = zext i1 %7 to i8
  store i8 %21, ptr %16, align 1, !tbaa !11
  %22 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %23 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 17
  %24 = load double, ptr %23, align 8, !tbaa !13
  %25 = load double, ptr %13, align 8, !tbaa !9
  %26 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 14
  %27 = load double, ptr %26, align 8, !tbaa !16
  %28 = load double, ptr %14, align 8, !tbaa !9
  %29 = fmul double %27, %28
  %30 = fneg double %29
  %31 = call double @llvm.fmuladd.f64(double %24, double %25, double %30)
  %32 = load double, ptr %13, align 8, !tbaa !9
  %33 = load double, ptr %14, align 8, !tbaa !9
  %34 = fmul double %32, %33
  %35 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 13
  %36 = load double, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 16
  %38 = load double, ptr %37, align 8, !tbaa !18
  %39 = fsub double %36, %38
  %40 = load double, ptr %13, align 8, !tbaa !9
  %41 = fmul double 3.000000e+00, %40
  %42 = load double, ptr %14, align 8, !tbaa !9
  %43 = fmul double %41, %42
  %44 = load double, ptr %13, align 8, !tbaa !9
  %45 = load double, ptr %14, align 8, !tbaa !9
  %46 = fsub double %44, %45
  %47 = fmul double %43, %46
  %48 = call double @llvm.fmuladd.f64(double 8.000000e+00, double %39, double %47)
  %49 = load double, ptr %14, align 8, !tbaa !9
  %50 = fmul double 6.000000e+00, %49
  %51 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 15
  %52 = load double, ptr %51, align 8, !tbaa !19
  %53 = call double @llvm.fmuladd.f64(double %50, double %52, double %48)
  %54 = load double, ptr %13, align 8, !tbaa !9
  %55 = fmul double 6.000000e+00, %54
  %56 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 12
  %57 = load double, ptr %56, align 8, !tbaa !20
  %58 = fneg double %55
  %59 = call double @llvm.fmuladd.f64(double %58, double %57, double %53)
  %60 = fmul double %34, %59
  %61 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %31, double %60)
  %62 = load double, ptr %15, align 8, !tbaa !9
  %63 = fmul double 1.200000e+01, %62
  %64 = load double, ptr %13, align 8, !tbaa !9
  %65 = load double, ptr %14, align 8, !tbaa !9
  %66 = fmul double %64, %65
  %67 = load double, ptr %13, align 8, !tbaa !9
  %68 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 1
  %69 = load double, ptr %68, align 8, !tbaa !21
  %70 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %69, double %67)
  %71 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 0
  %72 = load double, ptr %71, align 8, !tbaa !22
  %73 = load double, ptr %14, align 8, !tbaa !9
  %74 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 3
  %75 = load double, ptr %74, align 8, !tbaa !23
  %76 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %75, double %73)
  %77 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 2
  %78 = load double, ptr %77, align 8, !tbaa !24
  %79 = fmul double %76, %78
  %80 = fneg double %79
  %81 = call double @llvm.fmuladd.f64(double %70, double %72, double %80)
  %82 = load double, ptr %14, align 8, !tbaa !9
  %83 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 12
  %84 = load double, ptr %83, align 8, !tbaa !20
  %85 = fmul double %82, %84
  %86 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 0
  %87 = load double, ptr %86, align 8, !tbaa !22
  %88 = fmul double %85, %87
  %89 = call double @llvm.fmuladd.f64(double %66, double %81, double %88)
  %90 = load double, ptr %13, align 8, !tbaa !9
  %91 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 15
  %92 = load double, ptr %91, align 8, !tbaa !19
  %93 = fmul double %90, %92
  %94 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 2
  %95 = load double, ptr %94, align 8, !tbaa !24
  %96 = fneg double %93
  %97 = call double @llvm.fmuladd.f64(double %96, double %95, double %89)
  %98 = call double @llvm.fmuladd.f64(double %63, double %97, double %61)
  %99 = load double, ptr %13, align 8, !tbaa !9
  %100 = load double, ptr %14, align 8, !tbaa !9
  %101 = fsub double %99, %100
  %102 = fmul double 3.000000e+00, %101
  %103 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 18
  %104 = load double, ptr %103, align 8, !tbaa !25
  %105 = fmul double %102, %104
  %106 = fdiv double %98, %105
  %107 = load double, ptr %13, align 8, !tbaa !9
  %108 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 11
  %109 = load double, ptr %108, align 8, !tbaa !26
  %110 = load double, ptr %14, align 8, !tbaa !9
  %111 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 10
  %112 = load double, ptr %111, align 8, !tbaa !27
  %113 = fmul double %110, %112
  %114 = fneg double %113
  %115 = call double @llvm.fmuladd.f64(double %107, double %109, double %114)
  %116 = load double, ptr %14, align 8, !tbaa !9
  %117 = fmul double 2.000000e+00, %116
  %118 = load double, ptr %13, align 8, !tbaa !9
  %119 = fmul double %117, %118
  %120 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 9
  %121 = load double, ptr %120, align 8, !tbaa !28
  %122 = fneg double %119
  %123 = call double @llvm.fmuladd.f64(double %122, double %121, double %115)
  %124 = fmul double 4.000000e+00, %123
  %125 = load double, ptr %13, align 8, !tbaa !9
  %126 = load double, ptr %14, align 8, !tbaa !9
  %127 = fsub double %125, %126
  %128 = fdiv double %124, %127
  %129 = fadd double %106, %128
  store double %129, ptr %17, align 8, !tbaa !9
  %130 = load double, ptr %17, align 8, !tbaa !9
  %131 = fcmp oge double %130, 0.000000e+00
  br i1 %131, label %132, label %356

132:                                              ; preds = %8
  %133 = load double, ptr %17, align 8, !tbaa !9
  %134 = call double @sqrt(double noundef %133) #6
  %135 = fdiv double %134, 2.000000e+00
  store double %135, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %136 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 12
  %137 = load double, ptr %136, align 8, !tbaa !20
  %138 = load double, ptr %13, align 8, !tbaa !9
  %139 = fmul double 2.000000e+00, %138
  %140 = load double, ptr %15, align 8, !tbaa !9
  %141 = fmul double %139, %140
  %142 = fdiv double %137, %141
  %143 = load double, ptr %14, align 8, !tbaa !9
  %144 = load double, ptr %13, align 8, !tbaa !9
  %145 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %144, double %143)
  %146 = load double, ptr %15, align 8, !tbaa !9
  %147 = fmul double 2.000000e+00, %146
  %148 = fdiv double %145, %147
  %149 = fadd double %142, %148
  %150 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 0
  %151 = load double, ptr %150, align 8, !tbaa !22
  %152 = load double, ptr %13, align 8, !tbaa !9
  %153 = fdiv double %151, %152
  %154 = fsub double %149, %153
  store double %154, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %155 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 15
  %156 = load double, ptr %155, align 8, !tbaa !19
  %157 = fneg double %156
  %158 = load double, ptr %14, align 8, !tbaa !9
  %159 = fmul double 2.000000e+00, %158
  %160 = load double, ptr %15, align 8, !tbaa !9
  %161 = fmul double %159, %160
  %162 = fdiv double %157, %161
  %163 = load double, ptr %13, align 8, !tbaa !9
  %164 = load double, ptr %14, align 8, !tbaa !9
  %165 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %164, double %163)
  %166 = load double, ptr %15, align 8, !tbaa !9
  %167 = fmul double 2.000000e+00, %166
  %168 = fdiv double %165, %167
  %169 = fsub double %162, %168
  %170 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 2
  %171 = load double, ptr %170, align 8, !tbaa !24
  %172 = load double, ptr %14, align 8, !tbaa !9
  %173 = fdiv double %171, %172
  %174 = fadd double %169, %173
  store double %174, ptr %19, align 8, !tbaa !9
  %175 = load double, ptr %18, align 8, !tbaa !9
  %176 = load double, ptr %17, align 8, !tbaa !9
  %177 = load double, ptr %13, align 8, !tbaa !9
  %178 = fdiv double %176, %177
  %179 = fcmp ogt double %175, %178
  br i1 %179, label %180, label %265

180:                                              ; preds = %132
  %181 = load double, ptr %19, align 8, !tbaa !9
  %182 = load double, ptr %17, align 8, !tbaa !9
  %183 = fneg double %182
  %184 = load double, ptr %14, align 8, !tbaa !9
  %185 = fdiv double %183, %184
  %186 = fcmp ogt double %181, %185
  br i1 %186, label %187, label %265

187:                                              ; preds = %180
  %188 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 1
  %189 = load double, ptr %188, align 8, !tbaa !21
  %190 = fneg double %189
  %191 = load double, ptr %13, align 8, !tbaa !9
  %192 = fadd double %190, %191
  %193 = load double, ptr %15, align 8, !tbaa !9
  %194 = fdiv double %192, %193
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = getelementptr inbounds %"class.ruckig::Profile", ptr %196, i32 0, i32 0
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %197, i64 noundef 0) #6
  store double %194, ptr %198, align 8, !tbaa !9
  %199 = load double, ptr %18, align 8, !tbaa !9
  %200 = load double, ptr %17, align 8, !tbaa !9
  %201 = load double, ptr %13, align 8, !tbaa !9
  %202 = fdiv double %200, %201
  %203 = fsub double %199, %202
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = getelementptr inbounds %"class.ruckig::Profile", ptr %205, i32 0, i32 0
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %206, i64 noundef 1) #6
  store double %203, ptr %207, align 8, !tbaa !9
  %208 = load double, ptr %13, align 8, !tbaa !9
  %209 = load double, ptr %15, align 8, !tbaa !9
  %210 = fdiv double %208, %209
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = getelementptr inbounds %"class.ruckig::Profile", ptr %212, i32 0, i32 0
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %213, i64 noundef 2) #6
  store double %210, ptr %214, align 8, !tbaa !9
  %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 3) #6
  store double 0.000000e+00, ptr %218, align 8, !tbaa !9
  %219 = load double, ptr %14, align 8, !tbaa !9
  %220 = fneg double %219
  %221 = load double, ptr %15, align 8, !tbaa !9
  %222 = fdiv double %220, %221
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = load ptr, ptr %223, align 8, !tbaa !5
  %225 = getelementptr inbounds %"class.ruckig::Profile", ptr %224, i32 0, i32 0
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %225, i64 noundef 4) #6
  store double %222, ptr %226, align 8, !tbaa !9
  %227 = load double, ptr %19, align 8, !tbaa !9
  %228 = load double, ptr %17, align 8, !tbaa !9
  %229 = load double, ptr %14, align 8, !tbaa !9
  %230 = fdiv double %228, %229
  %231 = fadd double %227, %230
  %232 = load ptr, ptr %10, align 8, !tbaa !5
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = getelementptr inbounds %"class.ruckig::Profile", ptr %233, i32 0, i32 0
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %234, i64 noundef 5) #6
  store double %231, ptr %235, align 8, !tbaa !9
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = getelementptr inbounds %"class.ruckig::Profile", ptr %237, i32 0, i32 0
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %238, i64 noundef 4) #6
  %240 = load double, ptr %239, align 8, !tbaa !9
  %241 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 3
  %242 = load double, ptr %241, align 8, !tbaa !23
  %243 = load double, ptr %15, align 8, !tbaa !9
  %244 = fdiv double %242, %243
  %245 = fadd double %240, %244
  %246 = load ptr, ptr %10, align 8, !tbaa !5
  %247 = load ptr, ptr %246, align 8, !tbaa !5
  %248 = getelementptr inbounds %"class.ruckig::Profile", ptr %247, i32 0, i32 0
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %248, i64 noundef 6) #6
  store double %245, ptr %249, align 8, !tbaa !9
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = load ptr, ptr %250, align 8, !tbaa !5
  %252 = load double, ptr %15, align 8, !tbaa !9
  %253 = load double, ptr %11, align 8, !tbaa !9
  %254 = load double, ptr %12, align 8, !tbaa !9
  %255 = load double, ptr %13, align 8, !tbaa !9
  %256 = load double, ptr %14, align 8, !tbaa !9
  %257 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE4ELb1EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %251, double noundef %252, double noundef %253, double noundef %254, double noundef %255, double noundef %256)
  br i1 %257, label %258, label %264

258:                                              ; preds = %187
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %22, ptr noundef nonnull align 8 dereferenceable(8) %259)
  %260 = load i8, ptr %16, align 1, !tbaa !11, !range !29, !noundef !30
  %261 = trunc i8 %260 to i1
  br i1 %261, label %262, label %263

262:                                              ; preds = %258
  store i32 1, ptr %20, align 4
  br label %353

263:                                              ; preds = %258
  br label %264

264:                                              ; preds = %263, %187
  br label %265

265:                                              ; preds = %264, %180, %132
  %266 = load double, ptr %18, align 8, !tbaa !9
  %267 = load double, ptr %17, align 8, !tbaa !9
  %268 = fneg double %267
  %269 = load double, ptr %13, align 8, !tbaa !9
  %270 = fdiv double %268, %269
  %271 = fcmp ogt double %266, %270
  br i1 %271, label %272, label %352

272:                                              ; preds = %265
  %273 = load double, ptr %19, align 8, !tbaa !9
  %274 = load double, ptr %17, align 8, !tbaa !9
  %275 = load double, ptr %14, align 8, !tbaa !9
  %276 = fdiv double %274, %275
  %277 = fcmp ogt double %273, %276
  br i1 %277, label %278, label %352

278:                                              ; preds = %272
  %279 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 1
  %280 = load double, ptr %279, align 8, !tbaa !21
  %281 = fneg double %280
  %282 = load double, ptr %13, align 8, !tbaa !9
  %283 = fadd double %281, %282
  %284 = load double, ptr %15, align 8, !tbaa !9
  %285 = fdiv double %283, %284
  %286 = load ptr, ptr %10, align 8, !tbaa !5
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = getelementptr inbounds %"class.ruckig::Profile", ptr %287, i32 0, i32 0
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %288, i64 noundef 0) #6
  store double %285, ptr %289, align 8, !tbaa !9
  %290 = load double, ptr %18, align 8, !tbaa !9
  %291 = load double, ptr %17, align 8, !tbaa !9
  %292 = load double, ptr %13, align 8, !tbaa !9
  %293 = fdiv double %291, %292
  %294 = fadd double %290, %293
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  %296 = load ptr, ptr %295, align 8, !tbaa !5
  %297 = getelementptr inbounds %"class.ruckig::Profile", ptr %296, i32 0, i32 0
  %298 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %297, i64 noundef 1) #6
  store double %294, ptr %298, align 8, !tbaa !9
  %299 = load double, ptr %13, align 8, !tbaa !9
  %300 = load double, ptr %15, align 8, !tbaa !9
  %301 = fdiv double %299, %300
  %302 = load ptr, ptr %10, align 8, !tbaa !5
  %303 = load ptr, ptr %302, align 8, !tbaa !5
  %304 = getelementptr inbounds %"class.ruckig::Profile", ptr %303, i32 0, i32 0
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %304, i64 noundef 2) #6
  store double %301, ptr %305, align 8, !tbaa !9
  %306 = load ptr, ptr %10, align 8, !tbaa !5
  %307 = load ptr, ptr %306, align 8, !tbaa !5
  %308 = getelementptr inbounds %"class.ruckig::Profile", ptr %307, i32 0, i32 0
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %308, i64 noundef 3) #6
  store double 0.000000e+00, ptr %309, align 8, !tbaa !9
  %310 = load double, ptr %14, align 8, !tbaa !9
  %311 = fneg double %310
  %312 = load double, ptr %15, align 8, !tbaa !9
  %313 = fdiv double %311, %312
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = load ptr, ptr %314, align 8, !tbaa !5
  %316 = getelementptr inbounds %"class.ruckig::Profile", ptr %315, i32 0, i32 0
  %317 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %316, i64 noundef 4) #6
  store double %313, ptr %317, align 8, !tbaa !9
  %318 = load double, ptr %19, align 8, !tbaa !9
  %319 = load double, ptr %17, align 8, !tbaa !9
  %320 = load double, ptr %14, align 8, !tbaa !9
  %321 = fdiv double %319, %320
  %322 = fsub double %318, %321
  %323 = load ptr, ptr %10, align 8, !tbaa !5
  %324 = load ptr, ptr %323, align 8, !tbaa !5
  %325 = getelementptr inbounds %"class.ruckig::Profile", ptr %324, i32 0, i32 0
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %325, i64 noundef 5) #6
  store double %322, ptr %326, align 8, !tbaa !9
  %327 = load ptr, ptr %10, align 8, !tbaa !5
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = getelementptr inbounds %"class.ruckig::Profile", ptr %328, i32 0, i32 0
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %329, i64 noundef 4) #6
  %331 = load double, ptr %330, align 8, !tbaa !9
  %332 = getelementptr inbounds %"class.ruckig::PositionThirdOrderStep1", ptr %22, i32 0, i32 3
  %333 = load double, ptr %332, align 8, !tbaa !23
  %334 = load double, ptr %15, align 8, !tbaa !9
  %335 = fdiv double %333, %334
  %336 = fadd double %331, %335
  %337 = load ptr, ptr %10, align 8, !tbaa !5
  %338 = load ptr, ptr %337, align 8, !tbaa !5
  %339 = getelementptr inbounds %"class.ruckig::Profile", ptr %338, i32 0, i32 0
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %339, i64 noundef 6) #6
  store double %336, ptr %340, align 8, !tbaa !9
  %341 = load ptr, ptr %10, align 8, !tbaa !5
  %342 = load ptr, ptr %341, align 8, !tbaa !5
  %343 = load double, ptr %15, align 8, !tbaa !9
  %344 = load double, ptr %11, align 8, !tbaa !9
  %345 = load double, ptr %12, align 8, !tbaa !9
  %346 = load double, ptr %13, align 8, !tbaa !9
  %347 = load double, ptr %14, align 8, !tbaa !9
  %348 = call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE4ELb1EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %342, double noundef %343, double noundef %344, double noundef %345, double noundef %346, double noundef %347)
  br i1 %348, label %349, label %351

349:                                              ; preds = %278
  %350 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %22, ptr noundef nonnull align 8 dereferenceable(8) %350)
  br label %351

351:                                              ; preds = %349, %278
  br label %352

352:                                              ; preds = %351, %272, %265
  store i32 0, ptr %20, align 4
  br label %353

353:                                              ; preds = %352, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %354 = load i32, ptr %20, align 4
  switch i32 %354, label %357 [
    i32 0, label %355
  ]

355:                                              ; preds = %353
  br label %356

356:                                              ; preds = %355, %8
  store i32 0, ptr %20, align 4
  br label %357

357:                                              ; preds = %356, %353
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %358 = load i32, ptr %20, align 4
  switch i32 %358, label %360 [
    i32 0, label %359
    i32 1, label %359
  ]

359:                                              ; preds = %357, %357
  ret void

360:                                              ; preds = %357
  unreachable
}

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 136}
!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 112}
!17 = !{!14, !10, i64 104}
!18 = !{!14, !10, i64 128}
!19 = !{!14, !10, i64 120}
!20 = !{!14, !10, i64 96}
!21 = !{!14, !10, i64 8}
!22 = !{!14, !10, i64 0}
!23 = !{!14, !10, i64 24}
!24 = !{!14, !10, i64 16}
!25 = !{!14, !10, i64 144}
!26 = !{!14, !10, i64 88}
!27 = !{!14, !10, i64 80}
!28 = !{!14, !10, i64 72}
!29 = !{i8 0, i8 2}
!30 = !{}


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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ruckig23PositionThirdOrderStep114time_acc0_acc1ERPNS_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 #4 align 2 {
  %9 = getelementptr inbounds i8, ptr %0, i64 136
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 112
  %12 = load double, ptr %11, align 8, !tbaa !11
  %13 = fneg double %12
  %14 = fmul double %13, %5
  %15 = tail call double @llvm.fmuladd.f64(double %10, double %4, double %14)
  %16 = fmul double %4, %5
  %17 = getelementptr inbounds i8, ptr %0, i64 104
  %18 = load double, ptr %17, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  %20 = load double, ptr %19, align 8, !tbaa !13
  %21 = fsub double %18, %20
  %22 = fmul double %4, 3.000000e+00
  %23 = fmul double %22, %5
  %24 = fmul double %5, 6.000000e+00
  %25 = getelementptr inbounds i8, ptr %0, i64 120
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %0, i64 96
  %28 = load double, ptr %27, align 8, !tbaa !15
  %29 = fmul double %4, -6.000000e+00
  %30 = fmul double %6, 1.200000e+01
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = tail call double @llvm.fmuladd.f64(double %32, double -2.000000e+00, double %4)
  %34 = load double, ptr %0, align 8, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  %36 = load double, ptr %35, align 8, !tbaa !18
  %37 = tail call double @llvm.fmuladd.f64(double %36, double -2.000000e+00, double %5)
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %39 = load double, ptr %38, align 8, !tbaa !19
  %40 = fneg double %37
  %41 = fmul double %39, %40
  %42 = tail call double @llvm.fmuladd.f64(double %33, double %34, double %41)
  %43 = fmul double %28, %5
  %44 = fmul double %43, %34
  %45 = tail call double @llvm.fmuladd.f64(double %16, double %42, double %44)
  %46 = fneg double %26
  %47 = fmul double %46, %4
  %48 = tail call double @llvm.fmuladd.f64(double %47, double %39, double %45)
  %49 = getelementptr inbounds i8, ptr %0, i64 144
  %50 = load double, ptr %49, align 8, !tbaa !20
  %51 = getelementptr inbounds i8, ptr %0, i64 88
  %52 = load double, ptr %51, align 8, !tbaa !21
  %53 = getelementptr inbounds i8, ptr %0, i64 80
  %54 = load double, ptr %53, align 8, !tbaa !22
  %55 = fneg double %54
  %56 = fmul double %55, %5
  %57 = tail call double @llvm.fmuladd.f64(double %4, double %52, double %56)
  %58 = fmul double %5, 2.000000e+00
  %59 = getelementptr inbounds i8, ptr %0, i64 72
  %60 = load double, ptr %59, align 8, !tbaa !23
  %61 = fneg double %58
  %62 = fmul double %61, %4
  %63 = tail call double @llvm.fmuladd.f64(double %62, double %60, double %57)
  %64 = fmul double %63, 4.000000e+00
  %65 = fsub double %4, %5
  %66 = fmul double %23, %65
  %67 = tail call double @llvm.fmuladd.f64(double %21, double 8.000000e+00, double %66)
  %68 = tail call double @llvm.fmuladd.f64(double %24, double %26, double %67)
  %69 = tail call double @llvm.fmuladd.f64(double %29, double %28, double %68)
  %70 = fmul double %16, %69
  %71 = tail call double @llvm.fmuladd.f64(double %15, double 3.000000e+00, double %70)
  %72 = tail call double @llvm.fmuladd.f64(double %30, double %48, double %71)
  %73 = fmul double %65, 3.000000e+00
  %74 = fmul double %73, %50
  %75 = insertelement <2 x double> poison, double %72, i64 0
  %76 = insertelement <2 x double> %75, double %64, i64 1
  %77 = insertelement <2 x double> poison, double %74, i64 0
  %78 = insertelement <2 x double> %77, double %65, i64 1
  %79 = fdiv <2 x double> %76, %78
  %shift = shufflevector <2 x double> %79, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %80 = fadd <2 x double> %79, %shift
  %81 = extractelement <2 x double> %80, i64 0
  %82 = fcmp ult double %81, 0.000000e+00
  br i1 %82, label %.critedge, label %83

83:                                               ; preds = %8
  %84 = tail call double @sqrt(double noundef %81) #6
  %85 = fmul double %84, 5.000000e-01
  %86 = load <2 x double>, ptr %27, align 8
  %87 = fmul double %4, 2.000000e+00
  %88 = fmul double %87, %6
  %89 = insertelement <2 x double> poison, double %4, i64 0
  %90 = insertelement <2 x double> %89, double %5, i64 1
  %91 = shufflevector <2 x double> %90, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %92 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> <double -2.000000e+00, double -2.000000e+00>, <2 x double> %91)
  %93 = fmul double %6, 2.000000e+00
  %94 = load double, ptr %0, align 8, !tbaa !17
  %95 = insertelement <2 x double> %86, double %94, i64 1
  %96 = insertelement <2 x double> poison, double %88, i64 0
  %97 = insertelement <2 x double> %96, double %4, i64 1
  %98 = fdiv <2 x double> %95, %97
  %99 = load double, ptr %25, align 8, !tbaa !14
  %100 = fneg double %99
  %101 = fmul double %58, %6
  %102 = load double, ptr %38, align 8, !tbaa !19
  %103 = insertelement <2 x double> poison, double %100, i64 0
  %104 = insertelement <2 x double> %103, double %102, i64 1
  %105 = insertelement <2 x double> poison, double %101, i64 0
  %106 = insertelement <2 x double> %105, double %5, i64 1
  %107 = fdiv <2 x double> %104, %106
  %108 = fneg double %85
  %109 = insertelement <2 x double> poison, double %93, i64 0
  %110 = shufflevector <2 x double> %109, <2 x double> poison, <2 x i32> zeroinitializer
  %111 = fdiv <2 x double> %92, %110
  %112 = shufflevector <2 x double> %98, <2 x double> %107, <2 x i32> <i32 0, i32 2>
  %113 = fsub <2 x double> %112, %111
  %114 = fadd <2 x double> %112, %111
  %115 = shufflevector <2 x double> %113, <2 x double> %114, <2 x i32> <i32 1, i32 2>
  %116 = shufflevector <2 x double> %107, <2 x double> %98, <2 x i32> <i32 1, i32 3>
  %117 = fadd <2 x double> %115, %116
  %118 = fsub <2 x double> %115, %116
  %119 = shufflevector <2 x double> %117, <2 x double> %118, <2 x i32> <i32 0, i32 3>
  %120 = insertelement <2 x double> poison, double %108, i64 0
  %121 = insertelement <2 x double> %120, double %85, i64 1
  %122 = fdiv <2 x double> %121, %91
  %123 = fcmp ogt <2 x double> %119, %122
  %124 = extractelement <2 x i1> %123, i64 0
  %125 = extractelement <2 x i1> %123, i64 1
  %or.cond = select i1 %125, i1 %124, i1 false
  br i1 %or.cond, label %126, label %._crit_edge

126:                                              ; preds = %83
  %127 = load double, ptr %31, align 8, !tbaa !16
  %128 = fsub double %4, %127
  %129 = fdiv double %128, %6
  %130 = load ptr, ptr %1, align 8, !tbaa !24
  %131 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %130, i64 noundef 0) #6
  store double %129, ptr %131, align 8, !tbaa !26
  %132 = fsub <2 x double> %119, %122
  %133 = extractelement <2 x double> %132, i64 1
  %134 = load ptr, ptr %1, align 8, !tbaa !24
  %135 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %134, i64 noundef 1) #6
  store double %133, ptr %135, align 8, !tbaa !26
  %136 = fdiv double %4, %6
  %137 = load ptr, ptr %1, align 8, !tbaa !24
  %138 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %137, i64 noundef 2) #6
  store double %136, ptr %138, align 8, !tbaa !26
  %139 = load ptr, ptr %1, align 8, !tbaa !24
  %140 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %139, i64 noundef 3) #6
  store double 0.000000e+00, ptr %140, align 8, !tbaa !26
  %141 = fneg double %5
  %142 = fdiv double %141, %6
  %143 = load ptr, ptr %1, align 8, !tbaa !24
  %144 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %143, i64 noundef 4) #6
  store double %142, ptr %144, align 8, !tbaa !26
  %145 = fdiv double %85, %5
  %146 = extractelement <2 x double> %117, i64 0
  %147 = fadd double %145, %146
  %148 = load ptr, ptr %1, align 8, !tbaa !24
  %149 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %148, i64 noundef 5) #6
  store double %147, ptr %149, align 8, !tbaa !26
  %150 = load ptr, ptr %1, align 8, !tbaa !24
  %151 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %150, i64 noundef 4) #6
  %152 = load double, ptr %151, align 8, !tbaa !26
  %153 = load double, ptr %35, align 8, !tbaa !18
  %154 = fdiv double %153, %6
  %155 = fadd double %152, %154
  %156 = load ptr, ptr %1, align 8, !tbaa !24
  %157 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %156, i64 noundef 6) #6
  store double %155, ptr %157, align 8, !tbaa !26
  %158 = load ptr, ptr %1, align 8, !tbaa !24
  %159 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE4ELb1EEEbddddd(ptr noundef nonnull align 8 dereferenceable(572) %158, double noundef %6, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  br i1 %159, label %160, label %._crit_edge

160:                                              ; preds = %126
  %161 = extractelement <2 x double> %118, i64 1
  tail call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %162 = fdiv double %108, %4
  %163 = fcmp ule double %161, %162
  %or.cond117.not = or i1 %163, %7
  br i1 %or.cond117.not, label %.critedge, label %165

._crit_edge:                                      ; preds = %83, %126
  %.old = fdiv double %108, %4
  %164 = extractelement <2 x double> %118, i64 1
  %.old116 = fcmp ogt double %164, %.old
  br i1 %.old116, label %165, label %.critedge

165:                                              ; preds = %160, %._crit_edge
  %166 = fdiv double %85, %5
  %167 = extractelement <2 x double> %117, i64 0
  %168 = fcmp ogt double %167, %166
  br i1 %168, label %169, label %.critedge

169:                                              ; preds = %165
  %170 = load double, ptr %31, align 8, !tbaa !16
  %171 = fsub double %4, %170
  %172 = fdiv double %171, %6
  %173 = load ptr, ptr %1, align 8, !tbaa !24
  %174 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %173, i64 noundef 0) #6
  store double %172, ptr %174, align 8, !tbaa !26
  %175 = fadd <2 x double> %122, %119
  %176 = extractelement <2 x double> %175, i64 1
  %177 = load ptr, ptr %1, align 8, !tbaa !24
  %178 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %177, i64 noundef 1) #6
  store double %176, ptr %178, align 8, !tbaa !26
  %179 = fdiv double %4, %6
  %180 = load ptr, ptr %1, align 8, !tbaa !24
  %181 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %180, i64 noundef 2) #6
  store double %179, ptr %181, align 8, !tbaa !26
  %182 = load ptr, ptr %1, align 8, !tbaa !24
  %183 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %182, i64 noundef 3) #6
  store double 0.000000e+00, ptr %183, align 8, !tbaa !26
  %184 = fneg double %5
  %185 = fdiv double %184, %6
  %186 = load ptr, ptr %1, align 8, !tbaa !24
  %187 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %186, i64 noundef 4) #6
  store double %185, ptr %187, align 8, !tbaa !26
  %188 = fsub double %167, %166
  %189 = load ptr, ptr %1, align 8, !tbaa !24
  %190 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %189, i64 noundef 5) #6
  store double %188, ptr %190, align 8, !tbaa !26
  %191 = load ptr, ptr %1, align 8, !tbaa !24
  %192 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %191, i64 noundef 4) #6
  %193 = load double, ptr %192, align 8, !tbaa !26
  %194 = load double, ptr %35, align 8, !tbaa !18
  %195 = fdiv double %194, %6
  %196 = fadd double %193, %195
  %197 = load ptr, ptr %1, align 8, !tbaa !24
  %198 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EEixEm(ptr noundef nonnull align 8 dereferenceable(56) %197, i64 noundef 6) #6
  store double %196, ptr %198, align 8, !tbaa !26
  %199 = load ptr, ptr %1, align 8, !tbaa !24
  %200 = tail call noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE4ELb1EEEbddddd(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 %201, label %.critedge

201:                                              ; preds = %169
  tail call void @_ZNK6ruckig23PositionThirdOrderStep111add_profileERPNS_7ProfileE(ptr noundef nonnull align 8 dereferenceable(3608) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  br label %.critedge

.critedge:                                        ; preds = %160, %8, %._crit_edge, %165, %201, %169
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig7Profile5checkILNS0_12ControlSignsE0ELNS0_13ReachedLimitsE4ELb1EEEbddddd(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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 136}
!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 112}
!12 = !{!6, !7, i64 104}
!13 = !{!6, !7, i64 128}
!14 = !{!6, !7, i64 120}
!15 = !{!6, !7, i64 96}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 24}
!19 = !{!6, !7, i64 16}
!20 = !{!6, !7, i64 144}
!21 = !{!6, !7, i64 88}
!22 = !{!6, !7, i64 80}
!23 = !{!6, !7, i64 72}
!24 = !{!25, !25, i64 0}
!25 = !{!"any pointer", !8, i64 0}
!26 = !{!7, !7, i64 0}


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