; LLVM IR from pantor/ruckig :: src/ruckig (position_second_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"

%"struct.ruckig::Block::Interval" = type { double, double, %"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] }
%"class.ruckig::PositionSecondOrderStep1" = type { double, double, double, double, double, double, double, %"struct.std::array" }
%"struct.std::array" = type { [3 x %"class.ruckig::Profile"] }
%"class.ruckig::Block" = type { %"class.ruckig::Profile", double, %"class.std::optional", %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<ruckig::Block::Interval>::_Storage", i8 }>
%"union.std::_Optional_payload_base<ruckig::Block::Interval>::_Storage" = type { %"struct.ruckig::Block::Interval" }

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ruckig24PositionSecondOrderStep111get_profileERKNS_7ProfileERNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(572) %1, ptr noundef nonnull align 8 dereferenceable(1784) %2) #0 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.ruckig::Block::Interval", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  %18 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %19 = load double, ptr %18, align 8, !tbaa !9
  %20 = fcmp oeq double %19, 0.000000e+00
  br i1 %20, label %21, label %72

21:                                               ; preds = %3
  %22 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %23 = load double, ptr %22, align 8, !tbaa !13
  %24 = fcmp oeq double %23, 0.000000e+00
  br i1 %24, label %25, label %72

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.ruckig::Block", ptr %26, i32 0, i32 0
  store ptr %27, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6ruckig7Profile12set_boundaryERKS0_(ptr noundef nonnull align 8 dereferenceable(572) %28, ptr noundef nonnull align 8 dereferenceable(572) %29)
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %34 = load double, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 4
  %36 = load double, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 5
  %38 = load double, ptr %37, align 8, !tbaa !15
  %39 = call noundef zeroext i1 @_ZNK6ruckig24PositionSecondOrderStep120time_all_single_stepEPNS_7ProfileEdddd(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef %30, double noundef %32, double noundef %34, double noundef %36, double noundef %38)
  br i1 %39, label %40, label %70

40:                                               ; preds = %25
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.ruckig::Profile", ptr %41, i32 0, i32 1
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EE4backEv(ptr noundef nonnull align 8 dereferenceable(56) %42) #6
  %44 = load double, ptr %43, align 8, !tbaa !16
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.ruckig::Profile", ptr %45, i32 0, i32 6
  %47 = getelementptr inbounds %"class.ruckig::BrakeProfile", ptr %46, i32 0, i32 0
  %48 = load double, ptr %47, align 8, !tbaa !17
  %49 = fadd double %44, %48
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.ruckig::Profile", ptr %50, i32 0, i32 7
  %52 = getelementptr inbounds %"class.ruckig::BrakeProfile", ptr %51, i32 0, i32 0
  %53 = load double, ptr %52, align 8, !tbaa !26
  %54 = fadd double %49, %53
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.ruckig::Block", ptr %55, i32 0, i32 1
  store double %54, ptr %56, align 8, !tbaa !27
  %57 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 0
  %58 = load double, ptr %57, align 8, !tbaa !34
  %59 = call noundef double @_ZSt3absd(double noundef %58)
  %60 = fcmp ogt double %59, 0x3CB0000000000000
  br i1 %60, label %61, label %69

61:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 592, ptr %9) #6
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.ruckig::Block", ptr %62, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !27
  %65 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #6
  call void @_ZN6ruckig5Block8IntervalC2Edd(ptr noundef nonnull align 8 dereferenceable(592) %9, double noundef %64, double noundef %65)
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.ruckig::Block", ptr %66, i32 0, i32 2
  %68 = call noundef nonnull align 8 dereferenceable(600) ptr @_ZNSt8optionalIN6ruckig5Block8IntervalEEaSIS2_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES6_ISt6__and_IJSt9is_scalarIS2_ES7_IS2_NSt5decayISA_E4typeEEEEESt16is_constructibleIS2_JSA_EESt13is_assignableIRS2_SA_EEERS3_E4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(600) %67, ptr noundef nonnull align 8 dereferenceable(592) %9) #6
  call void @llvm.lifetime.end.p0(i64 592, ptr %9) #6
  br label %69

69:                                               ; preds = %61, %40
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %71

70:                                               ; preds = %25
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %71

71:                                               ; preds = %70, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %203

72:                                               ; preds = %21, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %73 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 7
  %74 = call noundef ptr @_ZNSt5arrayIN6ruckig7ProfileELm3EE5beginEv(ptr noundef nonnull align 8 dereferenceable(1728) %73) #7
  store ptr %74, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %75, ptr %12, align 8, !tbaa !5
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6ruckig7Profile12set_boundaryERKS0_(ptr noundef nonnull align 8 dereferenceable(572) %76, ptr noundef nonnull align 8 dereferenceable(572) %77)
  %78 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 1
  %79 = load double, ptr %78, align 8, !tbaa !35
  %80 = call noundef double @_ZSt3absd(double noundef %79)
  %81 = fcmp olt double %80, 0x3CB0000000000000
  br i1 %81, label %82, label %161

82:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %83 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 6
  %84 = load double, ptr %83, align 8, !tbaa !36
  %85 = fcmp oge double %84, 0.000000e+00
  br i1 %85, label %86, label %89

86:                                               ; preds = %82
  %87 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %88 = load double, ptr %87, align 8, !tbaa !9
  br label %92

89:                                               ; preds = %82
  %90 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %91 = load double, ptr %90, align 8, !tbaa !13
  br label %92

92:                                               ; preds = %89, %86
  %93 = phi double [ %88, %86 ], [ %91, %89 ]
  store double %93, ptr %13, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %94 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 6
  %95 = load double, ptr %94, align 8, !tbaa !36
  %96 = fcmp oge double %95, 0.000000e+00
  br i1 %96, label %97, label %100

97:                                               ; preds = %92
  %98 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %99 = load double, ptr %98, align 8, !tbaa !13
  br label %103

100:                                              ; preds = %92
  %101 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %102 = load double, ptr %101, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %100, %97
  %104 = phi double [ %99, %97 ], [ %102, %100 ]
  store double %104, ptr %14, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %105 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 6
  %106 = load double, ptr %105, align 8, !tbaa !36
  %107 = fcmp oge double %106, 0.000000e+00
  br i1 %107, label %108, label %111

108:                                              ; preds = %103
  %109 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 4
  %110 = load double, ptr %109, align 8, !tbaa !14
  br label %114

111:                                              ; preds = %103
  %112 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 5
  %113 = load double, ptr %112, align 8, !tbaa !15
  br label %114

114:                                              ; preds = %111, %108
  %115 = phi double [ %110, %108 ], [ %113, %111 ]
  store double %115, ptr %15, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %116 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 6
  %117 = load double, ptr %116, align 8, !tbaa !36
  %118 = fcmp oge double %117, 0.000000e+00
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 5
  %121 = load double, ptr %120, align 8, !tbaa !15
  br label %125

122:                                              ; preds = %114
  %123 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 4
  %124 = load double, ptr %123, align 8, !tbaa !14
  br label %125

125:                                              ; preds = %122, %119
  %126 = phi double [ %121, %119 ], [ %124, %122 ]
  store double %126, ptr %16, align 8, !tbaa !16
  %127 = load double, ptr %13, align 8, !tbaa !16
  %128 = load double, ptr %14, align 8, !tbaa !16
  %129 = load double, ptr %15, align 8, !tbaa !16
  %130 = load double, ptr %16, align 8, !tbaa !16
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %127, double noundef %128, double noundef %129, double noundef %130, i1 noundef zeroext true)
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = icmp ugt ptr %131, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %125
  store i32 2, ptr %10, align 4
  br label %158

135:                                              ; preds = %125
  %136 = load double, ptr %13, align 8, !tbaa !16
  %137 = load double, ptr %14, align 8, !tbaa !16
  %138 = load double, ptr %15, align 8, !tbaa !16
  %139 = load double, ptr %16, align 8, !tbaa !16
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %136, double noundef %137, double noundef %138, double noundef %139, i1 noundef zeroext true)
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = icmp ugt ptr %140, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %135
  store i32 2, ptr %10, align 4
  br label %158

144:                                              ; preds = %135
  %145 = load double, ptr %14, align 8, !tbaa !16
  %146 = load double, ptr %13, align 8, !tbaa !16
  %147 = load double, ptr %16, align 8, !tbaa !16
  %148 = load double, ptr %15, align 8, !tbaa !16
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %145, double noundef %146, double noundef %147, double noundef %148, i1 noundef zeroext true)
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = icmp ugt ptr %149, %150
  br i1 %151, label %152, label %153

152:                                              ; preds = %144
  store i32 2, ptr %10, align 4
  br label %158

153:                                              ; preds = %144
  %154 = load double, ptr %14, align 8, !tbaa !16
  %155 = load double, ptr %13, align 8, !tbaa !16
  %156 = load double, ptr %16, align 8, !tbaa !16
  %157 = load double, ptr %15, align 8, !tbaa !16
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %154, double noundef %155, double noundef %156, double noundef %157, i1 noundef zeroext true)
  store i32 0, ptr %10, align 4
  br label %158

158:                                              ; preds = %153, %152, %143, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %159 = load i32, ptr %10, align 4
  switch i32 %159, label %202 [
    i32 0, label %160
    i32 2, label %195
  ]

160:                                              ; preds = %158
  br label %194

161:                                              ; preds = %72
  %162 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %165 = load double, ptr %164, align 8, !tbaa !13
  %166 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 4
  %167 = load double, ptr %166, align 8, !tbaa !14
  %168 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 5
  %169 = load double, ptr %168, align 8, !tbaa !15
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %163, double noundef %165, double noundef %167, double noundef %169, i1 noundef zeroext false)
  %170 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %171 = load double, ptr %170, align 8, !tbaa !13
  %172 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 5
  %175 = load double, ptr %174, align 8, !tbaa !15
  %176 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 4
  %177 = load double, ptr %176, align 8, !tbaa !14
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %171, double noundef %173, double noundef %175, double noundef %177, i1 noundef zeroext false)
  %178 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %179 = load double, ptr %178, align 8, !tbaa !9
  %180 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %181 = load double, ptr %180, align 8, !tbaa !13
  %182 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 4
  %183 = load double, ptr %182, align 8, !tbaa !14
  %184 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 5
  %185 = load double, ptr %184, align 8, !tbaa !15
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %179, double noundef %181, double noundef %183, double noundef %185, i1 noundef zeroext false)
  %186 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 3
  %187 = load double, ptr %186, align 8, !tbaa !13
  %188 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 2
  %189 = load double, ptr %188, align 8, !tbaa !9
  %190 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 5
  %191 = load double, ptr %190, align 8, !tbaa !15
  %192 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 4
  %193 = load double, ptr %192, align 8, !tbaa !14
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %17, ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef %187, double noundef %189, double noundef %191, double noundef %193, i1 noundef zeroext false)
  br label %194

194:                                              ; preds = %161, %160
  br label %195

195:                                              ; preds = %194, %158
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = getelementptr inbounds %"class.ruckig::PositionSecondOrderStep1", ptr %17, i32 0, i32 7
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = call noundef i64 @_ZSt8distanceIPN6ruckig7ProfileEENSt15iterator_traitsIT_E15difference_typeES4_S4_(ptr noundef %198, ptr noundef %199)
  %201 = call noundef zeroext i1 @_ZN6ruckig5Block15calculate_blockILm3ELb1EEEbRS0_RSt5arrayINS_7ProfileEXT_EEm(ptr noundef nonnull align 8 dereferenceable(1784) %196, ptr noundef nonnull align 8 dereferenceable(1728) %197, i64 noundef %200)
  store i1 %201, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %202

202:                                              ; preds = %195, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %203

203:                                              ; preds = %202, %71
  %204 = load i1, ptr %4, align 1
  ret i1 %204
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EE4backEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ruckig5Block8IntervalC2Edd(ptr noundef nonnull align 8 dereferenceable(592), double noundef, double noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(600) ptr @_ZNSt8optionalIN6ruckig5Block8IntervalEEaSIS2_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES6_ISt6__and_IJSt9is_scalarIS2_ES7_IS2_NSt5decayISA_E4typeEEEEESt16is_constructibleIS2_JSA_EESt13is_assignableIRS2_SA_EEERS3_E4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(600), ptr noundef nonnull align 8 dereferenceable(592)) #3 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIN6ruckig7ProfileELm3EE5beginEv(ptr noundef nonnull align 8 dereferenceable(1728)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig5Block15calculate_blockILm3ELb1EEEbRS0_RSt5arrayINS_7ProfileEXT_EEm(ptr noundef nonnull align 8 dereferenceable(1784), ptr noundef nonnull align 8 dereferenceable(1728), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPN6ruckig7ProfileEENSt15iterator_traitsIT_E15difference_typeES4_S4_(ptr noundef, ptr noundef) #5

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

!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, !11, i64 16}
!10 = !{!"_ZTSN6ruckig24PositionSecondOrderStep1E", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTSSt5arrayIN6ruckig7ProfileELm3EE", !7, i64 0}
!13 = !{!10, !11, i64 24}
!14 = !{!10, !11, i64 32}
!15 = !{!10, !11, i64 40}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 360}
!18 = !{!"_ZTSN6ruckig7ProfileE", !19, i64 0, !19, i64 56, !19, i64 112, !20, i64 168, !20, i64 232, !20, i64 296, !21, i64 360, !21, i64 448, !11, i64 536, !11, i64 544, !11, i64 552, !23, i64 560, !24, i64 564, !25, i64 568}
!19 = !{!"_ZTSSt5arrayIdLm7EE", !7, i64 0}
!20 = !{!"_ZTSSt5arrayIdLm8EE", !7, i64 0}
!21 = !{!"_ZTSN6ruckig12BrakeProfileE", !11, i64 0, !22, i64 8, !22, i64 24, !22, i64 40, !22, i64 56, !22, i64 72}
!22 = !{!"_ZTSSt5arrayIdLm2EE", !7, i64 0}
!23 = !{!"_ZTSN6ruckig7Profile13ReachedLimitsE", !7, i64 0}
!24 = !{!"_ZTSN6ruckig7Profile9DirectionE", !7, i64 0}
!25 = !{!"_ZTSN6ruckig7Profile12ControlSignsE", !7, i64 0}
!26 = !{!18, !11, i64 448}
!27 = !{!28, !11, i64 576}
!28 = !{!"_ZTSN6ruckig5BlockE", !18, i64 0, !11, i64 576, !29, i64 584, !29, i64 1184}
!29 = !{!"_ZTSSt8optionalIN6ruckig5Block8IntervalEE", !30, i64 0}
!30 = !{!"_ZTSSt14_Optional_baseIN6ruckig5Block8IntervalELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt17_Optional_payloadIN6ruckig5Block8IntervalELb1ELb1ELb1EE", !32, i64 0}
!32 = !{!"_ZTSSt22_Optional_payload_baseIN6ruckig5Block8IntervalEE", !7, i64 0, !33, i64 592}
!33 = !{!"bool", !7, i64 0}
!34 = !{!10, !11, i64 0}
!35 = !{!10, !11, i64 8}
!36 = !{!10, !11, i64 48}


; 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"

%"struct.ruckig::Block::Interval" = type { double, double, %"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
declare dso_local void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784), ptr noundef nonnull align 8 dereferenceable(8), double noundef, double noundef, double noundef, double noundef, i1 noundef zeroext) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ruckig24PositionSecondOrderStep111get_profileERKNS_7ProfileERNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(572) %1, ptr noundef nonnull align 8 dereferenceable(1784) %2) local_unnamed_addr #0 align 2 {
  %4 = alloca %"struct.ruckig::Block::Interval", align 8
  %5 = alloca ptr, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load double, ptr %6, align 8, !tbaa !5
  %8 = fcmp oeq double %7, 0.000000e+00
  br i1 %8, label %9, label %40

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load double, ptr %10, align 8, !tbaa !11
  %12 = fcmp oeq double %11, 0.000000e+00
  br i1 %12, label %13, label %40

13:                                               ; preds = %9
  tail call void @_ZN6ruckig7Profile12set_boundaryERKS0_(ptr noundef nonnull align 8 dereferenceable(572) %2, ptr noundef nonnull align 8 dereferenceable(572) %1)
  %14 = load double, ptr %6, align 8, !tbaa !5
  %15 = load double, ptr %10, align 8, !tbaa !11
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = load double, ptr %16, align 8, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load double, ptr %18, align 8, !tbaa !13
  %20 = tail call noundef zeroext i1 @_ZNK6ruckig24PositionSecondOrderStep120time_all_single_stepEPNS_7ProfileEdddd(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull %2, double noundef %14, double noundef %15, double noundef %17, double noundef %19)
  br i1 %20, label %21, label %91

21:                                               ; preds = %13
  %22 = getelementptr inbounds i8, ptr %2, i64 56
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EE4backEv(ptr noundef nonnull align 8 dereferenceable(56) %22) #6
  %24 = load double, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %2, i64 360
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = fadd double %24, %26
  %28 = getelementptr inbounds i8, ptr %2, i64 448
  %29 = load double, ptr %28, align 8, !tbaa !24
  %30 = fadd double %27, %29
  %31 = getelementptr inbounds i8, ptr %2, i64 576
  store double %30, ptr %31, align 8, !tbaa !25
  %32 = load double, ptr %0, align 8, !tbaa !32
  %33 = tail call noundef double @_ZSt3absd(double noundef %32)
  %34 = fcmp ogt double %33, 0x3CB0000000000000
  br i1 %34, label %35, label %91

35:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 592, ptr nonnull %4) #6
  %36 = load double, ptr %31, align 8, !tbaa !25
  %37 = tail call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #6
  call void @_ZN6ruckig5Block8IntervalC2Edd(ptr noundef nonnull align 8 dereferenceable(592) %4, double noundef %36, double noundef %37)
  %38 = getelementptr inbounds i8, ptr %2, i64 584
  %39 = call noundef nonnull align 8 dereferenceable(600) ptr @_ZNSt8optionalIN6ruckig5Block8IntervalEEaSIS2_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES6_ISt6__and_IJSt9is_scalarIS2_ES7_IS2_NSt5decayISA_E4typeEEEEESt16is_constructibleIS2_JSA_EESt13is_assignableIRS2_SA_EEERS3_E4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(600) %38, ptr noundef nonnull align 8 dereferenceable(592) %4) #6
  call void @llvm.lifetime.end.p0(i64 592, ptr nonnull %4) #6
  br label %91

40:                                               ; preds = %9, %3
  %41 = getelementptr inbounds i8, ptr %0, i64 56
  %42 = tail call noundef ptr @_ZNSt5arrayIN6ruckig7ProfileELm3EE5beginEv(ptr noundef nonnull align 8 dereferenceable(1728) %41) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store ptr %42, ptr %5, align 8, !tbaa !33
  tail call void @_ZN6ruckig7Profile12set_boundaryERKS0_(ptr noundef nonnull align 8 dereferenceable(572) %42, ptr noundef nonnull align 8 dereferenceable(572) %1)
  %43 = getelementptr inbounds i8, ptr %0, i64 8
  %44 = load double, ptr %43, align 8, !tbaa !35
  %45 = tail call noundef double @_ZSt3absd(double noundef %44)
  %46 = fcmp olt double %45, 0x3CB0000000000000
  br i1 %46, label %47, label %67

47:                                               ; preds = %40
  %48 = getelementptr inbounds i8, ptr %0, i64 48
  %49 = load double, ptr %48, align 8, !tbaa !36
  %50 = fcmp ult double %49, 0.000000e+00
  %51 = getelementptr inbounds i8, ptr %0, i64 24
  %.val = load double, ptr %51, align 8
  %.val40 = load double, ptr %6, align 8
  %52 = select i1 %50, double %.val, double %.val40
  %53 = select i1 %50, double %.val40, double %.val
  %54 = getelementptr inbounds i8, ptr %0, i64 32
  %55 = getelementptr inbounds i8, ptr %0, i64 40
  %.val43 = load double, ptr %55, align 8
  %.val44 = load double, ptr %54, align 8
  %56 = select i1 %50, double %.val43, double %.val44
  %57 = select i1 %50, double %.val44, double %.val43
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %52, double noundef %53, double noundef %56, double noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %5, align 8, !tbaa !33
  %59 = icmp ugt ptr %58, %42
  br i1 %59, label %87, label %60

60:                                               ; preds = %47
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %52, double noundef %53, double noundef %56, double noundef %57, i1 noundef zeroext true)
  %61 = load ptr, ptr %5, align 8, !tbaa !33
  %62 = icmp ugt ptr %61, %42
  br i1 %62, label %87, label %63

63:                                               ; preds = %60
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %53, double noundef %52, double noundef %57, double noundef %56, i1 noundef zeroext true)
  %64 = load ptr, ptr %5, align 8, !tbaa !33
  %65 = icmp ugt ptr %64, %42
  br i1 %65, label %87, label %66

66:                                               ; preds = %63
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %53, double noundef %52, double noundef %57, double noundef %56, i1 noundef zeroext true)
  br label %87

67:                                               ; preds = %40
  %68 = load double, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %0, i64 24
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds i8, ptr %0, i64 32
  %72 = load double, ptr %71, align 8, !tbaa !12
  %73 = getelementptr inbounds i8, ptr %0, i64 40
  %74 = load double, ptr %73, align 8, !tbaa !13
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %68, double noundef %70, double noundef %72, double noundef %74, i1 noundef zeroext false)
  %75 = load double, ptr %69, align 8, !tbaa !11
  %76 = load double, ptr %6, align 8, !tbaa !5
  %77 = load double, ptr %73, align 8, !tbaa !13
  %78 = load double, ptr %71, align 8, !tbaa !12
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_noneERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %75, double noundef %76, double noundef %77, double noundef %78, i1 noundef zeroext false)
  %79 = load double, ptr %6, align 8, !tbaa !5
  %80 = load double, ptr %69, align 8, !tbaa !11
  %81 = load double, ptr %71, align 8, !tbaa !12
  %82 = load double, ptr %73, align 8, !tbaa !13
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %79, double noundef %80, double noundef %81, double noundef %82, i1 noundef zeroext false)
  %83 = load double, ptr %69, align 8, !tbaa !11
  %84 = load double, ptr %6, align 8, !tbaa !5
  %85 = load double, ptr %73, align 8, !tbaa !13
  %86 = load double, ptr %71, align 8, !tbaa !12
  call void @_ZNK6ruckig24PositionSecondOrderStep19time_acc0ERPNS_7ProfileEddddb(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %83, double noundef %84, double noundef %85, double noundef %86, i1 noundef zeroext false)
  br label %87

87:                                               ; preds = %66, %47, %60, %63, %67
  %88 = load ptr, ptr %5, align 8, !tbaa !33
  %89 = call noundef i64 @_ZSt8distanceIPN6ruckig7ProfileEENSt15iterator_traitsIT_E15difference_typeES4_S4_(ptr noundef nonnull %42, ptr noundef %88)
  %90 = call noundef zeroext i1 @_ZN6ruckig5Block15calculate_blockILm3ELb1EEEbRS0_RSt5arrayINS_7ProfileEXT_EEm(ptr noundef nonnull align 8 dereferenceable(1784) %2, ptr noundef nonnull align 8 dereferenceable(1728) %41, i64 noundef %89)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %91

91:                                               ; preds = %35, %21, %13, %87
  %.2 = phi i1 [ %90, %87 ], [ false, %13 ], [ true, %21 ], [ true, %35 ]
  ret i1 %.2
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm7EE4backEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ruckig5Block8IntervalC2Edd(ptr noundef nonnull align 8 dereferenceable(592), double noundef, double noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(600) ptr @_ZNSt8optionalIN6ruckig5Block8IntervalEEaSIS2_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES6_ISt6__and_IJSt9is_scalarIS2_ES7_IS2_NSt5decayISA_E4typeEEEEESt16is_constructibleIS2_JSA_EESt13is_assignableIRS2_SA_EEERS3_E4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(600), ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIN6ruckig7ProfileELm3EE5beginEv(ptr noundef nonnull align 8 dereferenceable(1728)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ruckig5Block15calculate_blockILm3ELb1EEEbRS0_RSt5arrayINS_7ProfileEXT_EEm(ptr noundef nonnull align 8 dereferenceable(1784), ptr noundef nonnull align 8 dereferenceable(1728), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPN6ruckig7ProfileEENSt15iterator_traitsIT_E15difference_typeES4_S4_(ptr noundef, ptr noundef) local_unnamed_addr #5

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

!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 16}
!6 = !{!"_ZTSN6ruckig24PositionSecondOrderStep1E", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5arrayIN6ruckig7ProfileELm3EE", !8, i64 0}
!11 = !{!6, !7, i64 24}
!12 = !{!6, !7, i64 32}
!13 = !{!6, !7, i64 40}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !7, i64 360}
!16 = !{!"_ZTSN6ruckig7ProfileE", !17, i64 0, !17, i64 56, !17, i64 112, !18, i64 168, !18, i64 232, !18, i64 296, !19, i64 360, !19, i64 448, !7, i64 536, !7, i64 544, !7, i64 552, !21, i64 560, !22, i64 564, !23, i64 568}
!17 = !{!"_ZTSSt5arrayIdLm7EE", !8, i64 0}
!18 = !{!"_ZTSSt5arrayIdLm8EE", !8, i64 0}
!19 = !{!"_ZTSN6ruckig12BrakeProfileE", !7, i64 0, !20, i64 8, !20, i64 24, !20, i64 40, !20, i64 56, !20, i64 72}
!20 = !{!"_ZTSSt5arrayIdLm2EE", !8, i64 0}
!21 = !{!"_ZTSN6ruckig7Profile13ReachedLimitsE", !8, i64 0}
!22 = !{!"_ZTSN6ruckig7Profile9DirectionE", !8, i64 0}
!23 = !{!"_ZTSN6ruckig7Profile12ControlSignsE", !8, i64 0}
!24 = !{!16, !7, i64 448}
!25 = !{!26, !7, i64 576}
!26 = !{!"_ZTSN6ruckig5BlockE", !16, i64 0, !7, i64 576, !27, i64 584, !27, i64 1184}
!27 = !{!"_ZTSSt8optionalIN6ruckig5Block8IntervalEE", !28, i64 0}
!28 = !{!"_ZTSSt14_Optional_baseIN6ruckig5Block8IntervalELb1ELb1EE", !29, i64 0}
!29 = !{!"_ZTSSt17_Optional_payloadIN6ruckig5Block8IntervalELb1ELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt22_Optional_payload_baseIN6ruckig5Block8IntervalEE", !8, i64 0, !31, i64 592}
!31 = !{!"bool", !8, i64 0}
!32 = !{!6, !7, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"any pointer", !8, i64 0}
!35 = !{!6, !7, i64 8}
!36 = !{!6, !7, i64 48}


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