; LLVM IR from Eaglegor/SchedulerEngine :: Engine/Algorithms/TSPSolvers/SimulatedAnnealing (DefaultTemperatureScheduler)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl" }
%"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl" = type { %"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Scheduler::Cost" = type { float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Scheduler::DefaultTemperatureScheduler" = type { %"class.Scheduler::TemperatureScheduler", float, float, i64, float, float }
%"class.Scheduler::TemperatureScheduler" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler27DefaultTemperatureScheduler10initializeERNS_3RunERKNS_20ScheduleCostFunctionE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 %1, ptr noundef nonnull align 1 %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.Scheduler::Cost", align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.Scheduler::Cost", align 4
  %16 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN9Scheduler20TemperatureScheduler20create_initial_costsERNS_3RunERKNS_20ScheduleCostFunctionEm(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 %18, ptr noundef nonnull align 1 %19, i64 noundef 120)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  invoke void @_ZN9Scheduler4CostC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %21 unwind label %34

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store float 0.000000e+00, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %22 = call ptr @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8
  %26 = invoke ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPKN9Scheduler4CostESt6vectorIS3_SaIS3_EEEEET_SA_NSt15iterator_traitsISA_E15difference_typeE(ptr %25, i64 noundef 1)
          to label %27 unwind label %38

27:                                               ; preds = %21
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %26, ptr %28, align 8
  br label %29

29:                                               ; preds = %53, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %30 = call ptr @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br i1 %32, label %42, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %60

34:                                               ; preds = %3
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %9, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %10, align 4
  br label %92

38:                                               ; preds = %21
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %9, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %10, align 4
  br label %59

42:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  invoke void @_ZNK9Scheduler4CostmiERKS0_(ptr dead_on_unwind writable sret(%"class.Scheduler::Cost") align 4 %15, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %44 unwind label %55

44:                                               ; preds = %42
  %45 = invoke noundef float @_ZNK9Scheduler4Cost8getValueEv(ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %46 unwind label %55

46:                                               ; preds = %44
  %47 = fpext float %45 to double
  %48 = call double @llvm.fabs.f64(double %47)
  %49 = load float, ptr %11, align 4, !tbaa !9
  %50 = fpext float %49 to double
  %51 = fadd double %50, %48
  %52 = fptrunc double %51 to float
  store float %52, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %53

53:                                               ; preds = %46
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %29, !llvm.loop !11

55:                                               ; preds = %44, %42
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %59

59:                                               ; preds = %55, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %91

60:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %61 = load float, ptr %11, align 4, !tbaa !9
  %62 = call noundef i64 @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %63 = sub i64 %62, 1
  %64 = uitofp i64 %63 to float
  %65 = fdiv float %61, %64
  store float %65, ptr %16, align 4, !tbaa !9
  %66 = load float, ptr %16, align 4, !tbaa !9
  %67 = fneg float %66
  %68 = getelementptr inbounds %"class.Scheduler::DefaultTemperatureScheduler", ptr %17, i32 0, i32 1
  %69 = load float, ptr %68, align 8, !tbaa !13
  %70 = fdiv float %67, %69
  %71 = getelementptr inbounds %"class.Scheduler::DefaultTemperatureScheduler", ptr %17, i32 0, i32 4
  store float %70, ptr %71, align 8, !tbaa !17
  %72 = load float, ptr %16, align 4, !tbaa !9
  %73 = fneg float %72
  %74 = getelementptr inbounds %"class.Scheduler::DefaultTemperatureScheduler", ptr %17, i32 0, i32 2
  %75 = load float, ptr %74, align 4, !tbaa !18
  %76 = fdiv float %73, %75
  %77 = getelementptr inbounds %"class.Scheduler::DefaultTemperatureScheduler", ptr %17, i32 0, i32 4
  %78 = load float, ptr %77, align 8, !tbaa !17
  %79 = fdiv float %76, %78
  %80 = getelementptr inbounds %"class.Scheduler::DefaultTemperatureScheduler", ptr %17, i32 0, i32 3
  %81 = load i64, ptr %80, align 8, !tbaa !19
  %82 = uitofp i64 %81 to float
  %83 = fdiv float 1.000000e+00, %82
  %84 = invoke noundef float @_ZSt3powff(float noundef %79, float noundef %83)
          to label %85 unwind label %87

85:                                               ; preds = %60
  %86 = getelementptr inbounds %"class.Scheduler::DefaultTemperatureScheduler", ptr %17, i32 0, i32 5
  store float %84, ptr %86, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @_ZNSt6vectorIN9Scheduler4CostESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  ret void

87:                                               ; preds = %60
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %9, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %91

91:                                               ; preds = %87, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %92

92:                                               ; preds = %91, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @_ZNSt6vectorIN9Scheduler4CostESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %9, align 8
  %95 = load i32, ptr %10, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97
}

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

declare void @_ZN9Scheduler20TemperatureScheduler20create_initial_costsERNS_3RunERKNS_20ScheduleCostFunctionEm(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1, ptr noundef nonnull align 1, i64 noundef) #2

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

declare void @_ZN9Scheduler4CostC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxltIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

declare void @_ZNK9Scheduler4CostmiERKS0_(ptr dead_on_unwind writable sret(%"class.Scheduler::Cost") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

declare noundef float @_ZNK9Scheduler4Cost8getValueEv(ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN9Scheduler4CostESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN9Scheduler27DefaultTemperatureSchedulerE", !15, i64 0, !10, i64 8, !10, i64 12, !16, i64 16, !10, i64 24, !10, i64 28}
!15 = !{!"_ZTSN9Scheduler20TemperatureSchedulerE"}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !10, i64 24}
!18 = !{!14, !10, i64 12}
!19 = !{!14, !16, i64 16}
!20 = !{!14, !10, i64 28}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl" }
%"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl" = type { %"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Scheduler::Cost, std::allocator<Scheduler::Cost>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Scheduler::Cost" = type { float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler27DefaultTemperatureScheduler10initializeERNS_3RunERKNS_20ScheduleCostFunctionE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 %1, ptr noundef nonnull align 1 %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.Scheduler::Cost", align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.Scheduler::Cost", align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN9Scheduler20TemperatureScheduler20create_initial_costsERNS_3RunERKNS_20ScheduleCostFunctionEm(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 1 %1, ptr noundef nonnull align 1 %2, i64 noundef 120)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  invoke void @_ZN9Scheduler4CostC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %10 unwind label %35

10:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %11 = call ptr @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %12 = invoke ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPKN9Scheduler4CostESt6vectorIS3_SaIS3_EEEEET_SA_NSt15iterator_traitsISA_E15difference_typeE(ptr %11, i64 noundef 1)
          to label %13 unwind label %37

13:                                               ; preds = %10
  store ptr %12, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %14 = call ptr @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %14, ptr %7, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %15, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %42, %13
  %.010.lcssa = phi float [ 0.000000e+00, %13 ], [ %44, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %16 = call noundef i64 @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %17 = add i64 %16, -1
  %18 = uitofp i64 %17 to float
  %19 = fneg float %.010.lcssa
  %20 = fdiv float %19, %18
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load float, ptr %21, align 8, !tbaa !5
  %23 = fdiv float %20, %22
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  store float %23, ptr %24, align 8, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %0, i64 12
  %26 = load float, ptr %25, align 4, !tbaa !13
  %27 = fdiv float %20, %26
  %28 = fdiv float %27, %23
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load i64, ptr %29, align 8, !tbaa !14
  %31 = uitofp i64 %30 to float
  %32 = fdiv float 1.000000e+00, %31
  %33 = call noundef float @_ZSt3powff(float noundef %28, float noundef %32)
  %34 = getelementptr inbounds i8, ptr %0, i64 28
  store float %33, ptr %34, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @_ZNSt6vectorIN9Scheduler4CostESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  ret void

35:                                               ; preds = %3
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %51

37:                                               ; preds = %10
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %50

.lr.ph:                                           ; preds = %13, %42
  %.01014 = phi float [ %44, %42 ], [ 0.000000e+00, %13 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZNK9Scheduler4CostmiERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.Scheduler::Cost") align 4 %8, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %40 unwind label %48

40:                                               ; preds = %.lr.ph
  %41 = invoke noundef float @_ZNK9Scheduler4Cost8getValueEv(ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %42 unwind label %48

42:                                               ; preds = %40
  %43 = call float @llvm.fabs.f32(float %41)
  %44 = fadd float %.01014, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %46 = call ptr @_ZNKSt6vectorIN9Scheduler4CostESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %46, ptr %7, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !16

48:                                               ; preds = %40, %.lr.ph
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %50

50:                                               ; preds = %48, %37
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %51

51:                                               ; preds = %50, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %50 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @_ZNSt6vectorIN9Scheduler4CostESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn.pn
}

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

declare void @_ZN9Scheduler20TemperatureScheduler20create_initial_costsERNS_3RunERKNS_20ScheduleCostFunctionEm(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1, ptr noundef nonnull align 1, i64 noundef) local_unnamed_addr #2

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

declare void @_ZN9Scheduler4CostC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxltIPKN9Scheduler4CostESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

declare void @_ZNK9Scheduler4CostmiERKS0_(ptr dead_on_unwind writable sret(%"class.Scheduler::Cost") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

declare noundef float @_ZNK9Scheduler4Cost8getValueEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN9Scheduler4CostESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #6

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 = { "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 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !8, i64 8}
!6 = !{!"_ZTSN9Scheduler27DefaultTemperatureSchedulerE", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !8, i64 24, !8, i64 28}
!7 = !{!"_ZTSN9Scheduler20TemperatureSchedulerE"}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!6, !8, i64 24}
!13 = !{!6, !8, i64 12}
!14 = !{!6, !11, i64 16}
!15 = !{!6, !8, i64 28}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass