; LLVM IR from buresjan/optim_lbm :: nomad/src/Algos/DMultiMads (DMultiMadsBarrier)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.NOMAD_4_3::ArrayOfDouble" = type { ptr, i64, ptr }
%"class.NOMAD_4_3::DMultiMadsBarrier" = type { %"class.NOMAD_4_3::BarrierBase", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.NOMAD_4_3::ArrayOfDouble", %"class.std::vector", i64, %"class.std::vector.9", i64 }
%"class.NOMAD_4_3::BarrierBase" = type { ptr, %"class.std::vector", %"class.std::vector", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.NOMAD_4_3::Double", i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<NOMAD_4_3::EvalPoint>, std::allocator<std::shared_ptr<NOMAD_4_3::EvalPoint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<NOMAD_4_3::EvalPoint>, std::allocator<std::shared_ptr<NOMAD_4_3::EvalPoint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<NOMAD_4_3::EvalPoint>, std::allocator<std::shared_ptr<NOMAD_4_3::EvalPoint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<NOMAD_4_3::EvalPoint>, std::allocator<std::shared_ptr<NOMAD_4_3::EvalPoint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<NOMAD_4_3::BBInputType, std::allocator<NOMAD_4_3::BBInputType>>::_Vector_impl" }
%"struct.std::_Vector_base<NOMAD_4_3::BBInputType, std::allocator<NOMAD_4_3::BBInputType>>::_Vector_impl" = type { %"struct.std::_Vector_base<NOMAD_4_3::BBInputType, std::allocator<NOMAD_4_3::BBInputType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NOMAD_4_3::BBInputType, std::allocator<NOMAD_4_3::BBInputType>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

declare noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_317DMultiMadsBarrier25updateCurrentIncumbentInfEv(ptr noundef nonnull align 8 dereferenceable(240) %0) #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::shared_ptr", align 8
  %4 = alloca i64, align 8
  %5 = alloca double, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.NOMAD_4_3::Double", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %22 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %23 = alloca double, align 8
  %24 = alloca %"class.NOMAD_4_3::Double", align 8
  %25 = alloca %"class.NOMAD_4_3::Double", align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i64, align 8
  %29 = alloca double, align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.NOMAD_4_3::Double", align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca ptr, align 8
  %36 = alloca double, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i64, align 8
  %39 = alloca double, align 8
  %40 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %41 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %42 = alloca double, align 8
  %43 = alloca %"class.std::shared_ptr", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %44 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #7
  call void @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr null) #7
  %45 = getelementptr inbounds %"class.NOMAD_4_3::DMultiMadsBarrier", ptr %44, i32 0, i32 2
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @_ZNSt12__shared_ptrIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  %47 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 1
  %48 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %49 = icmp ugt i64 %48, 0
  br i1 %49, label %50, label %323

50:                                               ; preds = %1
  %51 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 2
  %52 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %53 = icmp ugt i64 %52, 0
  br i1 %53, label %54, label %323

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store double 0xFFEFFFFFFFFFFFFF, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %174, %54
  %56 = load i64, ptr %6, align 8, !tbaa !9
  %57 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 2
  %58 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #7
  %59 = icmp ult i64 %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %178

61:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store double 0x7FEFFFFFFFFFFFFF, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %62 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 2
  %63 = load i64, ptr %6, align 8, !tbaa !9
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %63) #7
  %65 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %64) #7
  %66 = call noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %65, i32 noundef 0)
  store ptr %66, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::Double") align 8 %10, ptr noundef nonnull align 8 dereferenceable(105) %67, i32 noundef 0)
  %68 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_36Double9isDefinedEv(ptr noundef nonnull align 8 dereferenceable(17) %10)
          to label %69 unwind label %85

69:                                               ; preds = %61
  br i1 %68, label %70, label %173

70:                                               ; preds = %69
  %71 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 5
  %72 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3leERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(17) %71)
          to label %73 unwind label %85

73:                                               ; preds = %70
  br i1 %72, label %74, label %173

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %75 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 1
  store ptr %75, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #7
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #7
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  br label %82

82:                                               ; preds = %162, %74
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %83, label %89, label %84

84:                                               ; preds = %82
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %165

85:                                               ; preds = %70, %61
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %11, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %12, align 4
  br label %177

89:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  store ptr %90, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %91) #7
  %93 = invoke noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %92, i32 noundef 0)
          to label %94 unwind label %101

94:                                               ; preds = %89
  store ptr %93, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %128, %94
  %96 = load i64, ptr %19, align 8, !tbaa !9
  %97 = getelementptr inbounds %"class.NOMAD_4_3::DMultiMadsBarrier", ptr %44, i32 0, i32 5
  %98 = load i64, ptr %97, align 8, !tbaa !13
  %99 = icmp ult i64 %96, %98
  br i1 %99, label %105, label %100

100:                                              ; preds = %95
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %155

101:                                              ; preds = %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %11, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %12, align 4
  br label %164

105:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %21, ptr noundef nonnull align 8 dereferenceable(105) %106, i32 noundef 0)
          to label %107 unwind label %131

107:                                              ; preds = %105
  %108 = load i64, ptr %19, align 8, !tbaa !9
  %109 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %108)
          to label %110 unwind label %135

110:                                              ; preds = %107
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %109)
          to label %112 unwind label %135

112:                                              ; preds = %110
  %113 = load double, ptr %111, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %22, ptr noundef nonnull align 8 dereferenceable(105) %114, i32 noundef 0)
          to label %115 unwind label %139

115:                                              ; preds = %112
  %116 = load i64, ptr %19, align 8, !tbaa !9
  %117 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %116)
          to label %118 unwind label %143

118:                                              ; preds = %115
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %117)
          to label %120 unwind label %143

120:                                              ; preds = %118
  %121 = load double, ptr %119, align 8, !tbaa !11
  %122 = fsub double %113, %121
  store double %122, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %124 unwind label %147

124:                                              ; preds = %120
  %125 = load double, ptr %123, align 8, !tbaa !11
  %126 = load double, ptr %17, align 8, !tbaa !11
  %127 = fadd double %126, %125
  store double %127, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %128

128:                                              ; preds = %124
  %129 = load i64, ptr %19, align 8, !tbaa !9
  %130 = add i64 %129, 1
  store i64 %130, ptr %19, align 8, !tbaa !9
  br label %95, !llvm.loop !30

131:                                              ; preds = %105
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %11, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %12, align 4
  br label %154

135:                                              ; preds = %110, %107
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %11, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %12, align 4
  br label %153

139:                                              ; preds = %112
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %11, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %12, align 4
  br label %152

143:                                              ; preds = %118, %115
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %11, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %12, align 4
  br label %151

147:                                              ; preds = %120
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %11, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %151

151:                                              ; preds = %147, %143
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  br label %152

152:                                              ; preds = %151, %139
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  br label %153

153:                                              ; preds = %152, %135
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %154

154:                                              ; preds = %153, %131
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %164

155:                                              ; preds = %100
  %156 = load double, ptr %8, align 8, !tbaa !11
  %157 = load double, ptr %17, align 8, !tbaa !11
  %158 = fcmp ogt double %156, %157
  br i1 %158, label %159, label %161

159:                                              ; preds = %155
  %160 = load double, ptr %17, align 8, !tbaa !11
  store double %160, ptr %8, align 8, !tbaa !11
  br label %161

161:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %162

162:                                              ; preds = %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %82

164:                                              ; preds = %154, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %177

165:                                              ; preds = %84
  %166 = load double, ptr %5, align 8, !tbaa !11
  %167 = load double, ptr %8, align 8, !tbaa !11
  %168 = fcmp olt double %166, %167
  br i1 %168, label %169, label %172

169:                                              ; preds = %165
  %170 = load double, ptr %8, align 8, !tbaa !11
  store double %170, ptr %5, align 8, !tbaa !11
  %171 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %171, ptr %4, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %169, %165
  br label %173

173:                                              ; preds = %172, %73, %69
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %174

174:                                              ; preds = %173
  %175 = load i64, ptr %6, align 8, !tbaa !9
  %176 = add i64 %175, 1
  store i64 %176, ptr %6, align 8, !tbaa !9
  br label %55, !llvm.loop !32

177:                                              ; preds = %164, %85
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %322

178:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  call void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17) %24, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  invoke void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %179 unwind label %189

179:                                              ; preds = %178
  %180 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3eqERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %24, ptr noundef nonnull align 8 dereferenceable(17) %25)
          to label %181 unwind label %193

181:                                              ; preds = %179
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  br i1 %180, label %182, label %316

182:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store double 0x7FEFFFFFFFFFFFFF, ptr %27, align 8, !tbaa !11
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %183

183:                                              ; preds = %311, %182
  %184 = load i64, ptr %28, align 8, !tbaa !9
  %185 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 2
  %186 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %185) #7
  %187 = icmp ult i64 %184, %186
  br i1 %187, label %198, label %188

188:                                              ; preds = %183
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %315

189:                                              ; preds = %178
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %11, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %12, align 4
  br label %197

193:                                              ; preds = %179
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %11, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %12, align 4
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %25) #7
  br label %197

197:                                              ; preds = %193, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  br label %322

198:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 0x7FEFFFFFFFFFFFFF, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %199 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 2
  %200 = load i64, ptr %28, align 8, !tbaa !9
  %201 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %200) #7
  %202 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %201) #7
  %203 = call noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %202, i32 noundef 0)
  store ptr %203, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #7
  %204 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::Double") align 8 %31, ptr noundef nonnull align 8 dereferenceable(105) %204, i32 noundef 0)
  %205 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_36Double9isDefinedEv(ptr noundef nonnull align 8 dereferenceable(17) %31)
          to label %206 unwind label %222

206:                                              ; preds = %198
  br i1 %205, label %207, label %310

207:                                              ; preds = %206
  %208 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 5
  %209 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3leERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %31, ptr noundef nonnull align 8 dereferenceable(17) %208)
          to label %210 unwind label %222

210:                                              ; preds = %207
  br i1 %209, label %211, label %310

211:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %212 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 1
  store ptr %212, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %213 = load ptr, ptr %32, align 8, !tbaa !5
  %214 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %213) #7
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %214, ptr %215, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %216 = load ptr, ptr %32, align 8, !tbaa !5
  %217 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %216) #7
  %218 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %217, ptr %218, align 8
  br label %219

219:                                              ; preds = %299, %211
  %220 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  br i1 %220, label %226, label %221

221:                                              ; preds = %219
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %302

222:                                              ; preds = %207, %198
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %11, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %12, align 4
  br label %314

226:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %227 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  store ptr %227, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  store double 0.000000e+00, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %228 = load ptr, ptr %35, align 8, !tbaa !5
  %229 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %228) #7
  %230 = invoke noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %229, i32 noundef 0)
          to label %231 unwind label %238

231:                                              ; preds = %226
  store ptr %230, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %232

232:                                              ; preds = %265, %231
  %233 = load i64, ptr %38, align 8, !tbaa !9
  %234 = getelementptr inbounds %"class.NOMAD_4_3::DMultiMadsBarrier", ptr %44, i32 0, i32 5
  %235 = load i64, ptr %234, align 8, !tbaa !13
  %236 = icmp ult i64 %233, %235
  br i1 %236, label %242, label %237

237:                                              ; preds = %232
  store i32 15, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %292

238:                                              ; preds = %226
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %11, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %12, align 4
  br label %301

242:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #7
  %243 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %40, ptr noundef nonnull align 8 dereferenceable(105) %243, i32 noundef 0)
          to label %244 unwind label %268

244:                                              ; preds = %242
  %245 = load i64, ptr %38, align 8, !tbaa !9
  %246 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %245)
          to label %247 unwind label %272

247:                                              ; preds = %244
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %246)
          to label %249 unwind label %272

249:                                              ; preds = %247
  %250 = load double, ptr %248, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #7
  %251 = load ptr, ptr %37, align 8, !tbaa !5
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %41, ptr noundef nonnull align 8 dereferenceable(105) %251, i32 noundef 0)
          to label %252 unwind label %276

252:                                              ; preds = %249
  %253 = load i64, ptr %38, align 8, !tbaa !9
  %254 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %253)
          to label %255 unwind label %280

255:                                              ; preds = %252
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %254)
          to label %257 unwind label %280

257:                                              ; preds = %255
  %258 = load double, ptr %256, align 8, !tbaa !11
  %259 = fsub double %250, %258
  store double %259, ptr %39, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  store double 0.000000e+00, ptr %42, align 8, !tbaa !11
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %261 unwind label %284

261:                                              ; preds = %257
  %262 = load double, ptr %260, align 8, !tbaa !11
  %263 = load double, ptr %36, align 8, !tbaa !11
  %264 = fadd double %263, %262
  store double %264, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %265

265:                                              ; preds = %261
  %266 = load i64, ptr %38, align 8, !tbaa !9
  %267 = add i64 %266, 1
  store i64 %267, ptr %38, align 8, !tbaa !9
  br label %232, !llvm.loop !33

268:                                              ; preds = %242
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %11, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %12, align 4
  br label %291

272:                                              ; preds = %247, %244
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %11, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %12, align 4
  br label %290

276:                                              ; preds = %249
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %11, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %12, align 4
  br label %289

280:                                              ; preds = %255, %252
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %11, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %12, align 4
  br label %288

284:                                              ; preds = %257
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %11, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %288

288:                                              ; preds = %284, %280
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  br label %289

289:                                              ; preds = %288, %276
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #7
  br label %290

290:                                              ; preds = %289, %272
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  br label %291

291:                                              ; preds = %290, %268
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %301

292:                                              ; preds = %237
  %293 = load double, ptr %29, align 8, !tbaa !11
  %294 = load double, ptr %36, align 8, !tbaa !11
  %295 = fcmp ogt double %293, %294
  br i1 %295, label %296, label %298

296:                                              ; preds = %292
  %297 = load double, ptr %36, align 8, !tbaa !11
  store double %297, ptr %29, align 8, !tbaa !11
  br label %298

298:                                              ; preds = %296, %292
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %299

299:                                              ; preds = %298
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br label %219

301:                                              ; preds = %291, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %314

302:                                              ; preds = %221
  %303 = load double, ptr %27, align 8, !tbaa !11
  %304 = load double, ptr %29, align 8, !tbaa !11
  %305 = fcmp ogt double %303, %304
  br i1 %305, label %306, label %309

306:                                              ; preds = %302
  %307 = load double, ptr %29, align 8, !tbaa !11
  store double %307, ptr %27, align 8, !tbaa !11
  %308 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %308, ptr %4, align 8, !tbaa !9
  br label %309

309:                                              ; preds = %306, %302
  br label %310

310:                                              ; preds = %309, %210, %206
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %31) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %311

311:                                              ; preds = %310
  %312 = load i64, ptr %28, align 8, !tbaa !9
  %313 = add i64 %312, 1
  store i64 %313, ptr %28, align 8, !tbaa !9
  br label %183, !llvm.loop !34

314:                                              ; preds = %301, %222
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %31) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %322

315:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %316

316:                                              ; preds = %315, %181
  %317 = getelementptr inbounds %"class.NOMAD_4_3::BarrierBase", ptr %44, i32 0, i32 2
  %318 = load i64, ptr %4, align 8, !tbaa !9
  %319 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %317, i64 noundef %318) #7
  %320 = getelementptr inbounds %"class.NOMAD_4_3::DMultiMadsBarrier", ptr %44, i32 0, i32 2
  %321 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %320, ptr noundef nonnull align 8 dereferenceable(16) %319) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %326

322:                                              ; preds = %314, %197, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %327

323:                                              ; preds = %50, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #7
  call void @_ZNK9NOMAD_4_317DMultiMadsBarrier19getFirstXInfNoXFeasEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %43, ptr noundef nonnull align 8 dereferenceable(240) %44)
  %324 = getelementptr inbounds %"class.NOMAD_4_3::DMultiMadsBarrier", ptr %44, i32 0, i32 2
  %325 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %324, ptr noundef nonnull align 8 dereferenceable(16) %43) #7
  call void @_ZNSt12__shared_ptrIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #7
  br label %326

326:                                              ; preds = %323, %316
  ret void

327:                                              ; preds = %322
  %328 = load ptr, ptr %11, align 8
  %329 = load i32, ptr %12, align 4
  %330 = insertvalue { ptr, i32 } poison, ptr %328, 0
  %331 = insertvalue { ptr, i32 } %330, i32 %329, 1
  resume { ptr, i32 } %331
}

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::Double") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #1

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

declare void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9NOMAD_4_317DMultiMadsBarrier19getFirstXInfNoXFeasEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(240)) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3leERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) #6

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

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3eqERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) #6

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17)) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 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 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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 200}
!14 = !{!"_ZTSN9NOMAD_4_317DMultiMadsBarrierE", !15, i64 0, !20, i64 120, !20, i64 136, !25, i64 152, !16, i64 176, !10, i64 200, !26, i64 208, !10, i64 232}
!15 = !{!"_ZTSN9NOMAD_4_311BarrierBaseE", !16, i64 8, !16, i64 32, !20, i64 56, !20, i64 72, !23, i64 88, !10, i64 112}
!16 = !{!"_ZTSSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt10shared_ptrIN9NOMAD_4_39EvalPointEE", !21, i64 0}
!21 = !{!"_ZTSSt12__shared_ptrIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!22 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!23 = !{!"_ZTSN9NOMAD_4_36DoubleE", !12, i64 8, !24, i64 16}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !10, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIN9NOMAD_4_311BBInputTypeESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_311BBInputTypeESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_311BBInputTypeESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_311BBInputTypeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}


; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.NOMAD_4_3::ArrayOfDouble" = type { ptr, i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE3endEv(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_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

declare noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_317DMultiMadsBarrier25updateCurrentIncumbentInfEv(ptr noundef nonnull align 8 dereferenceable(240) %0) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::shared_ptr", align 8
  %3 = alloca double, align 8
  %4 = alloca %"class.NOMAD_4_3::Double", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca double, align 8
  %8 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %9 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.NOMAD_4_3::Double", align 8
  %12 = alloca %"class.NOMAD_4_3::Double", align 8
  %13 = alloca double, align 8
  %14 = alloca %"class.NOMAD_4_3::Double", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %19 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.std::shared_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr null) #7
  %22 = getelementptr inbounds i8, ptr %0, i64 136
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @_ZNSt12__shared_ptrIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %.not = icmp eq i64 %25, 0
  br i1 %.not, label %170, label %26

26:                                               ; preds = %1
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  %28 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %.not73 = icmp eq i64 %28, 0
  br i1 %.not73, label %170, label %29

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store double 0xFFEFFFFFFFFFFFFF, ptr %3, align 8, !tbaa !5
  %30 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %.not148 = icmp eq i64 %30, 0
  br i1 %.not148, label %._crit_edge131, label %.lr.ph130

.lr.ph130:                                        ; preds = %29
  %31 = getelementptr inbounds i8, ptr %0, i64 88
  %32 = getelementptr inbounds i8, ptr %0, i64 200
  br label %33

._crit_edge131:                                   ; preds = %90, %29
  %.044.lcssa = phi i64 [ 0, %29 ], [ %.1, %90 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17) %11, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  store double 0.000000e+00, ptr %13, align 8, !tbaa !5
  invoke void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %95 unwind label %101

33:                                               ; preds = %.lr.ph130, %90
  %.044128 = phi i64 [ 0, %.lr.ph130 ], [ %.1, %90 ]
  %.046127 = phi i64 [ 0, %.lr.ph130 ], [ %91, %90 ]
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.046127) #7
  %35 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %34) #7
  %36 = call noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %35, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::Double") align 8 %4, ptr noundef nonnull align 8 dereferenceable(105) %36, i32 noundef 0)
  %37 = call noundef zeroext i1 @_ZNK9NOMAD_4_36Double9isDefinedEv(ptr noundef nonnull align 8 dereferenceable(17) %4)
  br i1 %37, label %38, label %90

38:                                               ; preds = %33
  %39 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3leERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %4, ptr noundef nonnull align 8 dereferenceable(17) %31)
          to label %40 unwind label %47

40:                                               ; preds = %38
  br i1 %39, label %41, label %90

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %42 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  store ptr %42, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %43 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  store ptr %43, ptr %6, align 8
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %44, label %.lr.ph124, label %._crit_edge125

._crit_edge125:                                   ; preds = %._crit_edge, %41
  %.047.lcssa = phi double [ 0x7FEFFFFFFFFFFFFF, %41 ], [ %.148, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %45 = load double, ptr %3, align 8, !tbaa !5
  %46 = fcmp olt double %45, %.047.lcssa
  br i1 %46, label %89, label %90

47:                                               ; preds = %38
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %94

.lr.ph124:                                        ; preds = %41, %._crit_edge
  %.047122 = phi double [ %.148, %._crit_edge ], [ 0x7FEFFFFFFFFFFFFF, %41 ]
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %49) #7
  %51 = invoke noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %50, i32 noundef 0)
          to label %.preheader89 unwind label %56

.preheader89:                                     ; preds = %.lr.ph124
  %52 = load i64, ptr %32, align 8, !tbaa !9
  %.not149 = icmp eq i64 %52, 0
  br i1 %.not149, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %68, %.preheader89
  %.060.lcssa = phi double [ 0.000000e+00, %.preheader89 ], [ %73, %68 ]
  %53 = fcmp ogt double %.047122, %.060.lcssa
  %.148 = select i1 %53, double %.060.lcssa, double %.047122
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %55, label %.lr.ph124, label %._crit_edge125

56:                                               ; preds = %.lr.ph124
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %88

.lr.ph:                                           ; preds = %.preheader89, %68
  %.054121 = phi i64 [ %74, %68 ], [ 0, %.preheader89 ]
  %.060120 = phi double [ %73, %68 ], [ 0.000000e+00, %.preheader89 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %8, ptr noundef nonnull align 8 dereferenceable(105) %51, i32 noundef 0)
          to label %58 unwind label %77

58:                                               ; preds = %.lr.ph
  %59 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.054121)
          to label %60 unwind label %79

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %59)
          to label %62 unwind label %79

62:                                               ; preds = %60
  %63 = load double, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %9, ptr noundef nonnull align 8 dereferenceable(105) %36, i32 noundef 0)
          to label %64 unwind label %81

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.054121)
          to label %66 unwind label %83

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %65)
          to label %68 unwind label %83

68:                                               ; preds = %66
  %69 = load double, ptr %67, align 8, !tbaa !5
  %70 = fsub double %63, %69
  store double %70, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = fadd double %.060120, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %74 = add nuw i64 %.054121, 1
  %75 = load i64, ptr %32, align 8, !tbaa !9
  %76 = icmp ult i64 %74, %75
  br i1 %76, label %.lr.ph, label %._crit_edge, !llvm.loop !28

77:                                               ; preds = %.lr.ph
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %87

79:                                               ; preds = %60, %58
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %86

81:                                               ; preds = %62
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %66, %64
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %85

85:                                               ; preds = %83, %81
  %.pn81 = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %86

86:                                               ; preds = %85, %79
  %.pn81.pn = phi { ptr, i32 } [ %.pn81, %85 ], [ %80, %79 ]
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %87

87:                                               ; preds = %86, %77
  %.pn81.pn.pn = phi { ptr, i32 } [ %.pn81.pn, %86 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %88

88:                                               ; preds = %87, %56
  %.pn81.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn, %87 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %94

89:                                               ; preds = %._crit_edge125
  store double %.047.lcssa, ptr %3, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %._crit_edge125, %89, %40, %33
  %.1 = phi i64 [ %.046127, %89 ], [ %.044128, %._crit_edge125 ], [ %.044128, %40 ], [ %.044128, %33 ]
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  %91 = add nuw i64 %.046127, 1
  %92 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %93 = icmp ult i64 %91, %92
  br i1 %93, label %33, label %._crit_edge131, !llvm.loop !30

94:                                               ; preds = %88, %47
  %.pn81.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn, %88 ], [ %48, %47 ]
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  br label %169

95:                                               ; preds = %._crit_edge131
  %96 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3eqERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %11, ptr noundef nonnull align 8 dereferenceable(17) %12)
          to label %97 unwind label %103

97:                                               ; preds = %95
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br i1 %96, label %.preheader88, label %.loopexit

.preheader88:                                     ; preds = %97
  %98 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %.not150 = icmp eq i64 %98, 0
  br i1 %.not150, label %.loopexit, label %.lr.ph146

.lr.ph146:                                        ; preds = %.preheader88
  %99 = getelementptr inbounds i8, ptr %0, i64 88
  %100 = getelementptr inbounds i8, ptr %0, i64 200
  br label %106

101:                                              ; preds = %._crit_edge131
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %105

103:                                              ; preds = %95
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %12) #7
  br label %105

105:                                              ; preds = %103, %101
  %.pn = phi { ptr, i32 } [ %104, %103 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %169

106:                                              ; preds = %.lr.ph146, %162
  %.2145 = phi i64 [ 0, %.lr.ph146 ], [ %.3, %162 ]
  %.051144 = phi i64 [ 0, %.lr.ph146 ], [ %163, %162 ]
  %.052143 = phi double [ 0x7FEFFFFFFFFFFFFF, %.lr.ph146 ], [ %.153, %162 ]
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.051144) #7
  %108 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %107) #7
  %109 = call noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %108, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::Double") align 8 %14, ptr noundef nonnull align 8 dereferenceable(105) %109, i32 noundef 0)
  %110 = call noundef zeroext i1 @_ZNK9NOMAD_4_36Double9isDefinedEv(ptr noundef nonnull align 8 dereferenceable(17) %14)
  br i1 %110, label %111, label %162

111:                                              ; preds = %106
  %112 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3leERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %14, ptr noundef nonnull align 8 dereferenceable(17) %99)
          to label %113 unwind label %119

113:                                              ; preds = %111
  br i1 %112, label %114, label %162

114:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %115 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  store ptr %115, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %116 = call ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  store ptr %116, ptr %16, align 8
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %117, label %.lr.ph140, label %._crit_edge141

._crit_edge141:                                   ; preds = %._crit_edge136, %114
  %.049.lcssa = phi double [ 0x7FEFFFFFFFFFFFFF, %114 ], [ %.150, %._crit_edge136 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %118 = fcmp ogt double %.052143, %.049.lcssa
  br i1 %118, label %161, label %162

119:                                              ; preds = %111
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %166

.lr.ph140:                                        ; preds = %114, %._crit_edge136
  %.049138 = phi double [ %.150, %._crit_edge136 ], [ 0x7FEFFFFFFFFFFFFF, %114 ]
  %121 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %122 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %121) #7
  %123 = invoke noundef ptr @_ZNK9NOMAD_4_39EvalPoint7getEvalENS_8EvalTypeE(ptr noundef nonnull align 8 dereferenceable(160) %122, i32 noundef 0)
          to label %.preheader unwind label %128

.preheader:                                       ; preds = %.lr.ph140
  %124 = load i64, ptr %100, align 8, !tbaa !9
  %.not151 = icmp eq i64 %124, 0
  br i1 %.not151, label %._crit_edge136, label %.lr.ph135

._crit_edge136:                                   ; preds = %140, %.preheader
  %.045.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %145, %140 ]
  %125 = fcmp ogt double %.049138, %.045.lcssa
  %.150 = select i1 %125, double %.045.lcssa, double %.049138
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %127 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN9NOMAD_4_39EvalPointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %127, label %.lr.ph140, label %._crit_edge141

128:                                              ; preds = %.lr.ph140
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %160

.lr.ph135:                                        ; preds = %.preheader, %140
  %.0134 = phi i64 [ %146, %140 ], [ 0, %.preheader ]
  %.045133 = phi double [ %145, %140 ], [ 0.000000e+00, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %18, ptr noundef nonnull align 8 dereferenceable(105) %109, i32 noundef 0)
          to label %130 unwind label %149

130:                                              ; preds = %.lr.ph135
  %131 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %.0134)
          to label %132 unwind label %151

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %131)
          to label %134 unwind label %151

134:                                              ; preds = %132
  %135 = load double, ptr %133, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %19, ptr noundef nonnull align 8 dereferenceable(105) %123, i32 noundef 0)
          to label %136 unwind label %153

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.0134)
          to label %138 unwind label %155

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %137)
          to label %140 unwind label %155

140:                                              ; preds = %138
  %141 = load double, ptr %139, align 8, !tbaa !5
  %142 = fsub double %135, %141
  store double %142, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  store double 0.000000e+00, ptr %20, align 8, !tbaa !5
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %144 = load double, ptr %143, align 8, !tbaa !5
  %145 = fadd double %.045133, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %146 = add nuw i64 %.0134, 1
  %147 = load i64, ptr %100, align 8, !tbaa !9
  %148 = icmp ult i64 %146, %147
  br i1 %148, label %.lr.ph135, label %._crit_edge136, !llvm.loop !31

149:                                              ; preds = %.lr.ph135
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %159

151:                                              ; preds = %132, %130
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %158

153:                                              ; preds = %134
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %157

155:                                              ; preds = %138, %136
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  br label %157

157:                                              ; preds = %155, %153
  %.pn75 = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %158

158:                                              ; preds = %157, %151
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %157 ], [ %152, %151 ]
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %159

159:                                              ; preds = %158, %149
  %.pn75.pn.pn = phi { ptr, i32 } [ %.pn75.pn, %158 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %160

160:                                              ; preds = %159, %128
  %.pn75.pn.pn.pn = phi { ptr, i32 } [ %.pn75.pn.pn, %159 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %166

161:                                              ; preds = %._crit_edge141
  br label %162

162:                                              ; preds = %._crit_edge141, %161, %113, %106
  %.153 = phi double [ %.049.lcssa, %161 ], [ %.052143, %._crit_edge141 ], [ %.052143, %113 ], [ %.052143, %106 ]
  %.3 = phi i64 [ %.051144, %161 ], [ %.2145, %._crit_edge141 ], [ %.2145, %113 ], [ %.2145, %106 ]
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  %163 = add nuw i64 %.051144, 1
  %164 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %165 = icmp ult i64 %163, %164
  br i1 %165, label %106, label %.loopexit, !llvm.loop !32

166:                                              ; preds = %160, %119
  %.pn75.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn75.pn.pn.pn, %160 ], [ %120, %119 ]
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %169

.loopexit:                                        ; preds = %162, %.preheader88, %97
  %.4 = phi i64 [ %.044.lcssa, %97 ], [ 0, %.preheader88 ], [ %.3, %162 ]
  %167 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.4) #7
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %167) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %172

169:                                              ; preds = %166, %105, %94
  %.pn81.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn.pn, %94 ], [ %.pn75.pn.pn.pn.pn, %166 ], [ %.pn, %105 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn81.pn.pn.pn.pn.pn

170:                                              ; preds = %26, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  call void @_ZNK9NOMAD_4_317DMultiMadsBarrier19getFirstXInfNoXFeasEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %21, ptr noundef nonnull align 8 dereferenceable(240) %0)
  %171 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN9NOMAD_4_39EvalPointEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @_ZNSt12__shared_ptrIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %172

172:                                              ; preds = %170, %.loopexit
  ret void
}

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::Double") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #1

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

declare void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9NOMAD_4_317DMultiMadsBarrier19getFirstXInfNoXFeasEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3leERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #6

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

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3eqERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #6

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 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 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 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !22, i64 200}
!10 = !{!"_ZTSN9NOMAD_4_317DMultiMadsBarrierE", !11, i64 0, !17, i64 120, !17, i64 136, !23, i64 152, !12, i64 176, !22, i64 200, !24, i64 208, !22, i64 232}
!11 = !{!"_ZTSN9NOMAD_4_311BarrierBaseE", !12, i64 8, !12, i64 32, !17, i64 56, !17, i64 72, !20, i64 88, !22, i64 112}
!12 = !{!"_ZTSSt6vectorISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN9NOMAD_4_39EvalPointEESaIS3_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN9NOMAD_4_39EvalPointEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN9NOMAD_4_39EvalPointELN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0}
!20 = !{!"_ZTSN9NOMAD_4_36DoubleE", !6, i64 8, !21, i64 16}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !22, i64 8, !16, i64 16}
!24 = !{!"_ZTSSt6vectorIN9NOMAD_4_311BBInputTypeESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_311BBInputTypeESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_311BBInputTypeESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_311BBInputTypeESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}


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