; LLVM IR from rl-tools/rl-tools :: src/rl/environments/pendulum/ppo/cpu (training)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl" }
%"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.rl_tools::rl::utils::evaluation::Result" = type { [1000 x float], float, float, [1000 x i64], float, float }
%"class.__gnu_cxx::__normal_iterator.3" = type { ptr }
%class.anon.4 = type { i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.rl_tools::rl::utils::evaluation::Result", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %17 = alloca ptr, align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %22 = alloca %class.anon.4, align 1
  %23 = alloca float, align 4
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca i1, align 1
  %27 = alloca i1, align 1
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  store i8 1, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %28

28:                                               ; preds = %38, %2
  %29 = load i64, ptr %8, align 8, !tbaa !13
  %30 = icmp ult i64 %29, 1
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %45

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 12016, ptr %9) #7
  %33 = load i64, ptr %8, align 8, !tbaa !13
  %34 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %35 = trunc i8 %34 to i1
  invoke void @_Z3runILm1000EEDamb(ptr dead_on_unwind writable sret(%"struct.rl_tools::rl::utils::evaluation::Result") align 8 %9, i64 noundef %33, i1 noundef zeroext %35)
          to label %36 unwind label %41

36:                                               ; preds = %32
  invoke void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE9push_backERKSL_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(12016) %9)
          to label %37 unwind label %41

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 12016, ptr %9) #7
  br label %38

38:                                               ; preds = %37
  %39 = load i64, ptr %8, align 8, !tbaa !13
  %40 = add i64 %39, 1
  store i64 %40, ptr %8, align 8, !tbaa !13
  br label %28, !llvm.loop !17

41:                                               ; preds = %36, %32
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %10, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 12016, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %166

45:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store float 0.000000e+00, ptr %12, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store float 0.000000e+00, ptr %13, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store ptr %7, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %46 = load ptr, ptr %14, align 8, !tbaa !9
  %47 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %15, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %49 = load ptr, ptr %14, align 8, !tbaa !9
  %50 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %16, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  br label %52

52:                                               ; preds = %70, %45
  %53 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8rl_tools2rl5utils10evaluation6ResultINS4_13SpecificationIfmNS2_20environment_wrappers17ScaleObservationsINS7_18scale_observations13SpecificationIfmEENS2_12environments8PendulumINSC_8pendulum13SpecificationIfmNSE_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISM_SaISM_EEEEbRKNS_17__normal_iteratorIT_T0_EESW_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %53, label %55, label %54

54:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %72

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %56 = call noundef nonnull align 8 dereferenceable(12016) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS4_13SpecificationIfmNS2_20environment_wrappers17ScaleObservationsINS7_18scale_observations13SpecificationIfmEENS2_12environments8PendulumINSC_8pendulum13SpecificationIfmNSE_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISM_SaISM_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  store ptr %56, ptr %17, align 8, !tbaa !9
  %57 = load ptr, ptr %17, align 8, !tbaa !9
  %58 = getelementptr inbounds %"struct.rl_tools::rl::utils::evaluation::Result", ptr %57, i32 0, i32 1
  %59 = load float, ptr %58, align 8, !tbaa !21
  %60 = load float, ptr %12, align 4, !tbaa !19
  %61 = fadd float %60, %59
  store float %61, ptr %12, align 4, !tbaa !19
  %62 = load ptr, ptr %17, align 8, !tbaa !9
  %63 = getelementptr inbounds %"struct.rl_tools::rl::utils::evaluation::Result", ptr %62, i32 0, i32 1
  %64 = load float, ptr %63, align 8, !tbaa !21
  %65 = load ptr, ptr %17, align 8, !tbaa !9
  %66 = getelementptr inbounds %"struct.rl_tools::rl::utils::evaluation::Result", ptr %65, i32 0, i32 1
  %67 = load float, ptr %66, align 8, !tbaa !21
  %68 = load float, ptr %13, align 4, !tbaa !19
  %69 = call float @llvm.fmuladd.f32(float %64, float %67, float %68)
  store float %69, ptr %13, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %70

70:                                               ; preds = %55
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS4_13SpecificationIfmNS2_20environment_wrappers17ScaleObservationsINS7_18scale_observations13SpecificationIfmEENS2_12environments8PendulumINSC_8pendulum13SpecificationIfmNSE_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISM_SaISM_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %52

72:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %73 = load float, ptr %12, align 4, !tbaa !19
  %74 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %75 = uitofp i64 %74 to float
  %76 = fdiv float %73, %75
  store float %76, ptr %18, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %77 = load float, ptr %13, align 4, !tbaa !19
  %78 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %79 = uitofp i64 %78 to float
  %80 = fdiv float %77, %79
  %81 = load float, ptr %18, align 4, !tbaa !19
  %82 = load float, ptr %18, align 4, !tbaa !19
  %83 = fneg float %81
  %84 = call float @llvm.fmuladd.f32(float %83, float %82, float %80)
  %85 = invoke noundef float @_ZSt4sqrtf(float noundef %84)
          to label %86 unwind label %136

86:                                               ; preds = %72
  store float %85, ptr %19, align 4, !tbaa !19
  %87 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %20, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  %89 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %21, i32 0, i32 0
  store ptr %89, ptr %90, align 8
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %20, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %21, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS5_13SpecificationIfmNS3_20environment_wrappers17ScaleObservationsINS8_18scale_observations13SpecificationIfmEENS3_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISN_SaISN_EEEEZ4mainE3$_0EvT_SU_T0_"(ptr %92, ptr %94)
          to label %95 unwind label %136

95:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %96 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %97 = udiv i64 %96, 2
  %98 = call noundef nonnull align 8 dereferenceable(12016) ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %97) #7
  %99 = getelementptr inbounds %"struct.rl_tools::rl::utils::evaluation::Result", ptr %98, i32 0, i32 1
  %100 = load float, ptr %99, align 8, !tbaa !21
  store float %100, ptr %23, align 4, !tbaa !19
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %102 unwind label %140

102:                                              ; preds = %95
  %103 = load float, ptr %18, align 4, !tbaa !19
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %101, float noundef %103)
          to label %105 unwind label %140

105:                                              ; preds = %102
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %107 unwind label %140

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %109 unwind label %140

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  %110 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %111 = icmp ugt i64 %110, 1
  store i1 false, ptr %26, align 1
  store i1 false, ptr %27, align 1
  br i1 %111, label %112, label %115

112:                                              ; preds = %109
  %113 = load float, ptr %19, align 4, !tbaa !19
  invoke void @_ZNSt7__cxx119to_stringEf(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, float noundef %113)
          to label %114 unwind label %144

114:                                              ; preds = %112
  br label %117

115:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  store i1 true, ptr %26, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  store i1 true, ptr %27, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %116 unwind label %148

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116, %114
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %119 unwind label %152

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %121 unwind label %152

121:                                              ; preds = %119
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  %122 = load i1, ptr %27, align 1
  br i1 %122, label %123, label %124

123:                                              ; preds = %121
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  br label %124

124:                                              ; preds = %123, %121
  %125 = load i1, ptr %26, align 1
  br i1 %125, label %126, label %127

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %127

127:                                              ; preds = %126, %124
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %129 unwind label %140

129:                                              ; preds = %127
  %130 = load float, ptr %23, align 4, !tbaa !19
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %128, float noundef %130)
          to label %132 unwind label %140

132:                                              ; preds = %129
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %134 unwind label %140

134:                                              ; preds = %132
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  %135 = load i32, ptr %3, align 4
  ret i32 %135

136:                                              ; preds = %86, %72
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %10, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %11, align 4
  br label %165

140:                                              ; preds = %132, %129, %127, %107, %105, %102, %95
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %10, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %11, align 4
  br label %164

144:                                              ; preds = %112
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %10, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %11, align 4
  br label %163

148:                                              ; preds = %115
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %10, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %11, align 4
  br label %156

152:                                              ; preds = %119, %117
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %10, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %156

156:                                              ; preds = %152, %148
  %157 = load i1, ptr %27, align 1
  br i1 %157, label %158, label %159

158:                                              ; preds = %156
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  br label %159

159:                                              ; preds = %158, %156
  %160 = load i1, ptr %26, align 1
  br i1 %160, label %161, label %162

161:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %162

162:                                              ; preds = %161, %159
  br label %163

163:                                              ; preds = %162, %144
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  br label %164

164:                                              ; preds = %163, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %165

165:                                              ; preds = %164, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %166

166:                                              ; preds = %165, %41
  call void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %10, align 8
  %169 = load i32, ptr %11, align 4
  %170 = insertvalue { ptr, i32 } poison, ptr %168, 0
  %171 = insertvalue { ptr, i32 } %170, i32 %169, 1
  resume { ptr, i32 } %171
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3runILm1000EEDamb(ptr dead_on_unwind noalias writable sret(%"struct.rl_tools::rl::utils::evaluation::Result") align 8, i64 noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE9push_backERKSL_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12016)) #2 align 2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS5_13SpecificationIfmNS3_20environment_wrappers17ScaleObservationsINS8_18scale_observations13SpecificationIfmEENS3_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISN_SaISN_EEEEZ4mainE3$_0EvT_SU_T0_"(ptr, ptr) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12016) ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEf(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, float noundef) #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 norecurse 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!22, !20, i64 4000}
!22 = !{!"_ZTSN8rl_tools2rl5utils10evaluation6ResultINS2_13SpecificationIfmNS0_20environment_wrappers17ScaleObservationsINS5_18scale_observations13SpecificationIfmEENS0_12environments8PendulumINSA_8pendulum13SpecificationIfmNSC_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEE", !7, i64 0, !20, i64 4000, !20, i64 4004, !7, i64 4008, !20, i64 12008, !20, i64 12012}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl" }
%"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>, std::allocator<rl_tools::rl::utils::evaluation::Result<rl_tools::rl::utils::evaluation::Specification<float, unsigned long, rl_tools::rl::environment_wrappers::ScaleObservations<rl_tools::rl::environment_wrappers::scale_observations::Specification<float, unsigned long>, rl_tools::rl::environments::Pendulum<rl_tools::rl::environments::pendulum::Specification<float, unsigned long>>>, 1000, 200>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.rl_tools::rl::utils::evaluation::Result" = type { [1000 x float], float, float, [1000 x i64], float, float }
%"class.__gnu_cxx::__normal_iterator.3" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
.critedge:
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"struct.rl_tools::rl::utils::evaluation::Result", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 12016, ptr nonnull %3) #7
  invoke void @_Z3runILm1000EEDamb(ptr dead_on_unwind nonnull writable sret(%"struct.rl_tools::rl::utils::evaluation::Result") align 8 %3, i64 noundef 0, i1 noundef zeroext true)
          to label %8 unwind label %13

8:                                                ; preds = %.critedge
  invoke void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE9push_backERKSL_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(12016) %3)
          to label %9 unwind label %13

9:                                                ; preds = %8
  call void @llvm.lifetime.end.p0(i64 12016, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %10 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %10, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %11 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %11, ptr %5, align 8
  %12 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8rl_tools2rl5utils10evaluation6ResultINS4_13SpecificationIfmNS2_20environment_wrappers17ScaleObservationsINS7_18scale_observations13SpecificationIfmEENS2_12environments8PendulumINSC_8pendulum13SpecificationIfmNSE_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISM_SaISM_EEEEbRKNS_17__normal_iteratorIT_T0_EESW_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %12, label %.lr.ph, label %._crit_edge

13:                                               ; preds = %8, %.critedge
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12016, ptr nonnull %3) #7
  br label %73

._crit_edge:                                      ; preds = %.lr.ph, %9
  %.036.lcssa = phi float [ 0.000000e+00, %9 ], [ %30, %.lr.ph ]
  %.035.lcssa = phi float [ 0.000000e+00, %9 ], [ %29, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %15 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %16 = uitofp i64 %15 to float
  %17 = fdiv float %.035.lcssa, %16
  %18 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %19 = uitofp i64 %18 to float
  %20 = fdiv float %.036.lcssa, %19
  %21 = fneg float %17
  %22 = call float @llvm.fmuladd.f32(float %21, float %17, float %20)
  %23 = call noundef float @_ZSt4sqrtf(float noundef %22)
  %24 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %25 = call ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS5_13SpecificationIfmNS3_20environment_wrappers17ScaleObservationsINS8_18scale_observations13SpecificationIfmEENS3_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISN_SaISN_EEEEZ4mainE3$_0EvT_SU_T0_"(ptr %24, ptr %25)
          to label %33 unwind label %63

.lr.ph:                                           ; preds = %9, %.lr.ph
  %.03552 = phi float [ %29, %.lr.ph ], [ 0.000000e+00, %9 ]
  %.03651 = phi float [ %30, %.lr.ph ], [ 0.000000e+00, %9 ]
  %26 = call noundef nonnull align 8 dereferenceable(12016) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS4_13SpecificationIfmNS2_20environment_wrappers17ScaleObservationsINS7_18scale_observations13SpecificationIfmEENS2_12environments8PendulumINSC_8pendulum13SpecificationIfmNSE_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISM_SaISM_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %27 = getelementptr inbounds i8, ptr %26, i64 4000
  %28 = load float, ptr %27, align 8, !tbaa !5
  %29 = fadd float %.03552, %28
  %30 = call float @llvm.fmuladd.f32(float %28, float %28, float %.03651)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS4_13SpecificationIfmNS2_20environment_wrappers17ScaleObservationsINS7_18scale_observations13SpecificationIfmEENS2_12environments8PendulumINSC_8pendulum13SpecificationIfmNSE_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISM_SaISM_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8rl_tools2rl5utils10evaluation6ResultINS4_13SpecificationIfmNS2_20environment_wrappers17ScaleObservationsINS7_18scale_observations13SpecificationIfmEENS2_12environments8PendulumINSC_8pendulum13SpecificationIfmNSE_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISM_SaISM_EEEEbRKNS_17__normal_iteratorIT_T0_EESW_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %32, label %.lr.ph, label %._crit_edge

33:                                               ; preds = %._crit_edge
  %34 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %35 = lshr i64 %34, 1
  %36 = call noundef nonnull align 8 dereferenceable(12016) ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %35) #7
  %37 = getelementptr inbounds i8, ptr %36, i64 4000
  %38 = load float, ptr %37, align 8, !tbaa !5
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %40 unwind label %65

40:                                               ; preds = %33
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %39, float noundef %17)
          to label %42 unwind label %65

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %44 unwind label %65

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %46 unwind label %65

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  %47 = call noundef i64 @_ZNKSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %48 = icmp ult i64 %47, 2
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  invoke void @_ZNSt7__cxx119to_stringEf(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, float noundef %23)
          to label %51 unwind label %67

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %51 unwind label %.thread

51:                                               ; preds = %50, %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %53 unwind label %70

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %55 unwind label %70

55:                                               ; preds = %53
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br i1 %48, label %56, label %.critedge45

56:                                               ; preds = %55
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %.critedge45

.critedge45:                                      ; preds = %55, %56
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %58 unwind label %65

58:                                               ; preds = %.critedge45
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %57, float noundef %38)
          to label %60 unwind label %65

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %62 unwind label %65

62:                                               ; preds = %60
  call void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  ret i32 0

63:                                               ; preds = %._crit_edge
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %73

65:                                               ; preds = %60, %58, %.critedge45, %44, %42, %40, %33
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %73

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge47

.thread:                                          ; preds = %50
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %72

70:                                               ; preds = %51, %53
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br i1 %48, label %72, label %.critedge47

72:                                               ; preds = %.thread, %70
  %.pn50 = phi { ptr, i32 } [ %69, %.thread ], [ %71, %70 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %.critedge47

.critedge47:                                      ; preds = %70, %72, %67
  %.pn.pn = phi { ptr, i32 } [ %.pn50, %72 ], [ %68, %67 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %73

73:                                               ; preds = %63, %.critedge47, %65, %13
  %.pn42 = phi { ptr, i32 } [ %14, %13 ], [ %64, %63 ], [ %66, %65 ], [ %.pn.pn, %.critedge47 ]
  call void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn42
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3runILm1000EEDamb(ptr dead_on_unwind noalias writable sret(%"struct.rl_tools::rl::utils::evaluation::Result") align 8, i64 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EE9push_backERKSL_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12016)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8rl_tools2rl5utils10evaluation6ResultINS5_13SpecificationIfmNS3_20environment_wrappers17ScaleObservationsINS8_18scale_observations13SpecificationIfmEENS3_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESt6vectorISN_SaISN_EEEEZ4mainE3$_0EvT_SU_T0_"(ptr, ptr) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12016) ptr @_ZNSt6vectorIN8rl_tools2rl5utils10evaluation6ResultINS3_13SpecificationIfmNS1_20environment_wrappers17ScaleObservationsINS6_18scale_observations13SpecificationIfmEENS1_12environments8PendulumINSB_8pendulum13SpecificationIfmNSD_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEESaISL_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEf(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, float noundef) local_unnamed_addr #6

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 norecurse 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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, !9, i64 4000}
!6 = !{!"_ZTSN8rl_tools2rl5utils10evaluation6ResultINS2_13SpecificationIfmNS0_20environment_wrappers17ScaleObservationsINS5_18scale_observations13SpecificationIfmEENS0_12environments8PendulumINSA_8pendulum13SpecificationIfmNSC_17DefaultParametersIfEEEEEEEELm1000ELm200EEEEE", !7, i64 0, !9, i64 4000, !9, i64 4004, !7, i64 4008, !9, i64 12008, !9, i64 12012}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"float", !7, i64 0}


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