; LLVM IR from ERGO-Code/HiGHS :: src/ipm/ipx/lp_solver.ll (ZN3ipx8LpSolver26CrossoverFromStartingPointEPKdS2_S2_S2_)

; 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::__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 }
%"class.ipx::Timer" = type { %"class.std::chrono::time_point" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::valarray" = type { i64, ptr }
%"class.ipx::LpSolver" = type { %"class.ipx::Control", %"struct.ipx::Info", %"class.ipx::Model", %"class.std::unique_ptr", %"class.std::unique_ptr.18", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::vector.4", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray" }
%"class.ipx::Control" = type { %"struct.ipx::Parameters", ptr, %"class.std::basic_ofstream", %"class.ipx::Timer", %"class.ipx::Timer", %"class.ipx::Multistream", %"class.ipx::Multistream" }
%"struct.ipx::Parameters" = type { %struct.ipx_parameters }
%struct.ipx_parameters = type { i32, ptr, double, double, i8, i32, i32, i32, double, double, double, double, double, i32, double, double, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i8, i8, ptr }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }
%"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.ipx::Multistream" = type { %"class.std::basic_ostream.base", %"struct.ipx::Multistream::multibuffer", %"class.std::basic_ios" }
%"struct.ipx::Multistream::multibuffer" = type { %"class.std::basic_streambuf", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::basic_streambuf<char> *, std::allocator<std::basic_streambuf<char> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::basic_streambuf<char> *, std::allocator<std::basic_streambuf<char> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::basic_streambuf<char> *, std::allocator<std::basic_streambuf<char> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::basic_streambuf<char> *, std::allocator<std::basic_streambuf<char> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ipx::Info" = type { %struct.ipx_info }
%struct.ipx_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, double, double, double, double }
%"class.ipx::Model" = type { i8, i32, i32, i32, i32, %"class.ipx::SparseMatrix", %"class.ipx::SparseMatrix", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", double, double, i32, i32, i32, i32, i32, %"class.std::vector.4", %"class.std::vector.14", double, double, double, %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.ipx::SparseMatrix", %"class.std::vector.4", %"class.std::valarray", %"class.std::valarray" }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.ipx::SparseMatrix" = type { i32, %"class.std::vector.4", %"class.std::vector.4", %"class.std::vector.9", %"class.std::vector.4", %"class.std::vector.9" }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.17" }
%"struct.std::_Head_base.17" = type { ptr }
%"class.std::unique_ptr.18" = type { %"struct.std::__uniq_ptr_data.19" }
%"struct.std::__uniq_ptr_data.19" = type { %"class.std::__uniq_ptr_impl.20" }
%"class.std::__uniq_ptr_impl.20" = type { %"class.std::tuple.21" }
%"class.std::tuple.21" = type { %"struct.std::_Tuple_impl.22" }
%"struct.std::_Tuple_impl.22" = type { %"struct.std::_Head_base.25" }
%"struct.std::_Head_base.25" = type { ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.19 = external hidden unnamed_addr constant [31 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: 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ipx8LpSolver13ClearSolutionEv(ptr noundef nonnull align 8 dereferenceable(2864)) #2 align 2

declare void @_ZNK3ipx7Control4hLogENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1496), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ipx8LpSolver12RunCrossoverEv(ptr noundef nonnull align 8 dereferenceable(2864)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3ipx8LpSolver26CrossoverFromStartingPointEPKdS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(2864) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.ipx::Timer", align 8
  %24 = alloca %"class.std::valarray", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %28 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 2
  %29 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %28)
  store i32 %29, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %30 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 2
  %31 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %30)
  store i32 %31, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %32 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 2
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %32)
  store ptr %33, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %34 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 2
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %34)
  store ptr %35, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %36 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 2
  %37 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %36)
  store ptr %37, ptr %16, align 8, !tbaa !5
  call void @_ZN3ipx8LpSolver13ClearSolutionEv(ptr noundef nonnull align 8 dereferenceable(2864) %27)
  %38 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %39 unwind label %70

39:                                               ; preds = %5
  invoke void @_ZNK3ipx7Control4hLogENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1496) %38, ptr noundef %17)
          to label %40 unwind label %74

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  %41 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = add nsw i32 %42, %43
  %45 = sext i32 %44 to i64
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %41, i64 noundef %45, double noundef 0.000000e+00)
  %46 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 6
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %46, i64 noundef %48, double noundef 0.000000e+00)
  %49 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 7
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = add nsw i32 %50, %51
  %53 = sext i32 %52 to i64
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %49, i64 noundef %53, double noundef 0.000000e+00)
  %54 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 8
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %54, i64 noundef 0, double noundef 0.000000e+00)
  %55 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 2
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %61 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 6
  %62 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 7
  call void @_ZNK3ipx5Model21PresolveStartingPointEPKdS2_S2_S2_RSt8valarrayIdES5_S5_(ptr noundef nonnull align 8 dereferenceable(704) %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %145, %40
  %64 = load i32, ptr %21, align 4, !tbaa !9
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = add nsw i32 %65, %66
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %79, label %69

69:                                               ; preds = %63
  store i32 2, ptr %22, align 4
  br label %148

70:                                               ; preds = %5
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %19, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %20, align 4
  br label %78

74:                                               ; preds = %39
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %19, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %78

78:                                               ; preds = %74, %70
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  br label %311

79:                                               ; preds = %63
  %80 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %81 = load i32, ptr %21, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %80, i64 noundef %82) #8
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = load i32, ptr %21, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %85, i64 noundef %87) #8
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = fcmp olt double %84, %89
  br i1 %90, label %103, label %91

91:                                               ; preds = %79
  %92 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %93 = load i32, ptr %21, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %92, i64 noundef %94) #8
  %96 = load double, ptr %95, align 8, !tbaa !11
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load i32, ptr %21, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %97, i64 noundef %99) #8
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = fcmp ogt double %96, %101
  br i1 %102, label %103, label %104

103:                                              ; preds = %91, %79
  store i32 105, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %148

104:                                              ; preds = %91
  %105 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %106 = load i32, ptr %21, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %105, i64 noundef %107) #8
  %109 = load double, ptr %108, align 8, !tbaa !11
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = load i32, ptr %21, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %110, i64 noundef %112) #8
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = fcmp une double %109, %114
  br i1 %115, label %116, label %124

116:                                              ; preds = %104
  %117 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 7
  %118 = load i32, ptr %21, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %117, i64 noundef %119) #8
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = fcmp ogt double %121, 0.000000e+00
  br i1 %122, label %123, label %124

123:                                              ; preds = %116
  store i32 105, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %148

124:                                              ; preds = %116, %104
  %125 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %125, i64 noundef %127) #8
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = load i32, ptr %21, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef %132) #8
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = fcmp une double %129, %134
  br i1 %135, label %136, label %144

136:                                              ; preds = %124
  %137 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 7
  %138 = load i32, ptr %21, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %137, i64 noundef %139) #8
  %141 = load double, ptr %140, align 8, !tbaa !11
  %142 = fcmp olt double %141, 0.000000e+00
  br i1 %142, label %143, label %144

143:                                              ; preds = %136
  store i32 105, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %148

144:                                              ; preds = %136, %124
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %21, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %21, align 4, !tbaa !9
  br label %63, !llvm.loop !13

148:                                              ; preds = %143, %123, %103, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %149 = load i32, ptr %22, align 4
  switch i32 %149, label %309 [
    i32 2, label %150
  ]

150:                                              ; preds = %148
  %151 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 4
  %152 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #9
  %153 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 0
  %154 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 2
  invoke void @_ZN3ipx5BasisC1ERKNS_7ControlERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(176) %152, ptr noundef nonnull align 8 dereferenceable(1496) %153, ptr noundef nonnull align 8 dereferenceable(704) %154)
          to label %155 unwind label %171

155:                                              ; preds = %150
  call void @_ZNSt10unique_ptrIN3ipx5BasisESt14default_deleteIS1_EE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef %152) #8
  %156 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 0
  %157 = call noundef i32 @_ZNK3ipx7Control11crash_basisEv(ptr noundef nonnull align 8 dereferenceable(1496) %156)
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %308

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = load i32, ptr %12, align 4, !tbaa !9
  %162 = add nsw i32 %160, %161
  %163 = sext i32 %162 to i64
  call void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %163)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %278, %159
  %165 = load i32, ptr %25, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = add nsw i32 %166, %167
  %169 = icmp slt i32 %165, %168
  br i1 %169, label %175, label %170

170:                                              ; preds = %164
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %281

171:                                              ; preds = %150
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %19, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %20, align 4
  call void @_ZdlPvm(ptr noundef %152, i64 noundef 176) #10
  br label %311

175:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %176 = load ptr, ptr %16, align 8, !tbaa !5
  %177 = load i32, ptr %25, align 4, !tbaa !9
  %178 = invoke noundef i32 @_ZNK3ipx12SparseMatrix7entriesEi(ptr noundef nonnull align 8 dereferenceable(128) %176, i32 noundef %177)
          to label %179 unwind label %195

179:                                              ; preds = %175
  store i32 %178, ptr %26, align 4, !tbaa !9
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load i32, ptr %25, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %180, i64 noundef %182) #8
  %184 = load double, ptr %183, align 8, !tbaa !11
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = load i32, ptr %25, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %185, i64 noundef %187) #8
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = fcmp oeq double %184, %189
  br i1 %190, label %191, label %199

191:                                              ; preds = %179
  %192 = load i32, ptr %25, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %193) #8
  store double 0.000000e+00, ptr %194, align 8, !tbaa !11
  br label %277

195:                                              ; preds = %207, %199, %175
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %19, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %307

199:                                              ; preds = %179
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = load i32, ptr %25, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %200, i64 noundef %202) #8
  %204 = load double, ptr %203, align 8, !tbaa !11
  %205 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %204)
          to label %206 unwind label %195

206:                                              ; preds = %199
  br i1 %205, label %207, label %219

207:                                              ; preds = %206
  %208 = load ptr, ptr %15, align 8, !tbaa !5
  %209 = load i32, ptr %25, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %208, i64 noundef %210) #8
  %212 = load double, ptr %211, align 8, !tbaa !11
  %213 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %212)
          to label %214 unwind label %195

214:                                              ; preds = %207
  br i1 %213, label %215, label %219

215:                                              ; preds = %214
  %216 = load i32, ptr %25, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %217) #8
  store double 0x7FF0000000000000, ptr %218, align 8, !tbaa !11
  br label %276

219:                                              ; preds = %214, %206
  %220 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 7
  %221 = load i32, ptr %25, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %220, i64 noundef %222) #8
  %224 = load double, ptr %223, align 8, !tbaa !11
  %225 = fcmp une double %224, 0.000000e+00
  br i1 %225, label %226, label %230

226:                                              ; preds = %219
  %227 = load i32, ptr %25, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %228) #8
  store double 0.000000e+00, ptr %229, align 8, !tbaa !11
  br label %275

230:                                              ; preds = %219
  %231 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %232 = load i32, ptr %25, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %231, i64 noundef %233) #8
  %235 = load double, ptr %234, align 8, !tbaa !11
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = load i32, ptr %25, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %236, i64 noundef %238) #8
  %240 = load double, ptr %239, align 8, !tbaa !11
  %241 = fcmp une double %235, %240
  br i1 %241, label %242, label %265

242:                                              ; preds = %230
  %243 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 5
  %244 = load i32, ptr %25, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %243, i64 noundef %245) #8
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = load i32, ptr %25, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %248, i64 noundef %250) #8
  %252 = load double, ptr %251, align 8, !tbaa !11
  %253 = fcmp une double %247, %252
  br i1 %253, label %254, label %265

254:                                              ; preds = %242
  %255 = load i32, ptr %12, align 4, !tbaa !9
  %256 = load i32, ptr %12, align 4, !tbaa !9
  %257 = load i32, ptr %26, align 4, !tbaa !9
  %258 = sub nsw i32 %256, %257
  %259 = add nsw i32 %258, 1
  %260 = add nsw i32 %255, %259
  %261 = sitofp i32 %260 to double
  %262 = load i32, ptr %25, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %263) #8
  store double %261, ptr %264, align 8, !tbaa !11
  br label %274

265:                                              ; preds = %242, %230
  %266 = load i32, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %26, align 4, !tbaa !9
  %268 = sub nsw i32 %266, %267
  %269 = add nsw i32 %268, 1
  %270 = sitofp i32 %269 to double
  %271 = load i32, ptr %25, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %272) #8
  store double %270, ptr %273, align 8, !tbaa !11
  br label %274

274:                                              ; preds = %265, %254
  br label %275

275:                                              ; preds = %274, %226
  br label %276

276:                                              ; preds = %275, %215
  br label %277

277:                                              ; preds = %276, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %25, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %25, align 4, !tbaa !9
  br label %164, !llvm.loop !15

281:                                              ; preds = %170
  %282 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 4
  %283 = call noundef ptr @_ZNKSt10unique_ptrIN3ipx5BasisESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %282) #8
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef 0) #8
  %285 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 1
  invoke void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176) %283, ptr noundef %284, ptr noundef %285)
          to label %286 unwind label %299

286:                                              ; preds = %281
  %287 = invoke noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %288 unwind label %299

288:                                              ; preds = %286
  %289 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 1
  %290 = getelementptr inbounds %struct.ipx_info, ptr %289, i32 0, i32 44
  %291 = load double, ptr %290, align 8, !tbaa !16
  %292 = fadd double %291, %287
  store double %292, ptr %290, align 8, !tbaa !16
  %293 = getelementptr inbounds %"class.ipx::LpSolver", ptr %27, i32 0, i32 1
  %294 = getelementptr inbounds %struct.ipx_info, ptr %293, i32 0, i32 3
  %295 = load i32, ptr %294, align 4, !tbaa !18
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %303

297:                                              ; preds = %288
  invoke void @_ZN3ipx8LpSolver13ClearSolutionEv(ptr noundef nonnull align 8 dereferenceable(2864) %27)
          to label %298 unwind label %299

298:                                              ; preds = %297
  store i32 0, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %304

299:                                              ; preds = %297, %286, %281
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %19, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %20, align 4
  br label %307

303:                                              ; preds = %288
  store i32 0, ptr %22, align 4
  br label %304

304:                                              ; preds = %303, %298
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %305 = load i32, ptr %22, align 4
  switch i32 %305, label %309 [
    i32 0, label %306
  ]

306:                                              ; preds = %304
  br label %308

307:                                              ; preds = %299, %195
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %311

308:                                              ; preds = %306, %155
  call void @_ZN3ipx8LpSolver12RunCrossoverEv(ptr noundef nonnull align 8 dereferenceable(2864) %27)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %309

309:                                              ; preds = %308, %304, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %310 = load i32, ptr %6, align 4
  ret i32 %310

311:                                              ; preds = %307, %171, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %312

312:                                              ; preds = %311
  %313 = load ptr, ptr %19, align 8
  %314 = load i32, ptr %20, align 4
  %315 = insertvalue { ptr, i32 } poison, ptr %313, 0
  %316 = insertvalue { ptr, i32 } %315, i32 %314, 1
  resume { ptr, i32 } %316
}

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

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

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

declare void @_ZNK3ipx5Model21PresolveStartingPointEPKdS2_S2_S2_RSt8valarrayIdES5_S5_(ptr noundef nonnull align 8 dereferenceable(704), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

declare void @_ZN3ipx5BasisC1ERKNS_7ControlERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(1496), ptr noundef nonnull align 8 dereferenceable(704)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

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

declare void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3ipx12SparseMatrix7entriesEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) #1

declare void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef, ptr noundef) #4

declare noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin allocsize(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 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !12, i64 248}
!17 = !{!"_ZTS8ipx_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !12, i64 408, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456}
!18 = !{!17, !10, i64 12}


; 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::__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 }
%"class.ipx::Timer" = type { %"class.std::chrono::time_point" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::valarray" = type { i64, ptr }

@.str.19 = external hidden unnamed_addr constant [31 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 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ipx8LpSolver13ClearSolutionEv(ptr noundef nonnull align 8 dereferenceable(2864)) local_unnamed_addr #2 align 2

declare void @_ZNK3ipx7Control4hLogENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1496), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ipx8LpSolver12RunCrossoverEv(ptr noundef nonnull align 8 dereferenceable(2864)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 106) i32 @_ZN3ipx8LpSolver26CrossoverFromStartingPointEPKdS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(2864) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.ipx::Timer", align 8
  %9 = alloca %"class.std::valarray", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 1960
  %11 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  %12 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  %15 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  tail call void @_ZN3ipx8LpSolver13ClearSolutionEv(ptr noundef nonnull align 8 dereferenceable(2864) %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %16 unwind label %25

16:                                               ; preds = %5
  invoke void @_ZNK3ipx7Control4hLogENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1496) %0, ptr noundef nonnull %6)
          to label %17 unwind label %27

17:                                               ; preds = %16
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  %18 = getelementptr inbounds i8, ptr %0, i64 2680
  %19 = add nsw i32 %12, %11
  %20 = sext i32 %19 to i64
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %20, double noundef 0.000000e+00)
  %21 = getelementptr inbounds i8, ptr %0, i64 2696
  %22 = sext i32 %11 to i64
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %22, double noundef 0.000000e+00)
  %23 = getelementptr inbounds i8, ptr %0, i64 2712
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %20, double noundef 0.000000e+00)
  %24 = getelementptr inbounds i8, ptr %0, i64 2728
  call void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef 0, double noundef 0.000000e+00)
  call void @_ZNK3ipx5Model21PresolveStartingPointEPKdS2_S2_S2_RSt8valarrayIdES5_S5_(ptr noundef nonnull align 8 dereferenceable(704) %10, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %.not83 = icmp sgt i32 %19, 0
  br i1 %.not83, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %17
  %wide.trip.count = zext nneg i32 %19 to i64
  br label %.lr.ph

25:                                               ; preds = %5
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %29

27:                                               ; preds = %16
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %29

29:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %131

.lr.ph:                                           ; preds = %.lr.ph.preheader, %61
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %61 ]
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %indvars.iv) #8
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv) #8
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = fcmp olt double %31, %33
  br i1 %34, label %.loopexit, label %35

35:                                               ; preds = %.lr.ph
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %indvars.iv) #8
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %indvars.iv) #8
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = fcmp ogt double %37, %39
  br i1 %40, label %.loopexit, label %41

41:                                               ; preds = %35
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %indvars.iv) #8
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv) #8
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = fcmp une double %43, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %41
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #8
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = fcmp ogt double %49, 0.000000e+00
  br i1 %50, label %.loopexit, label %51

51:                                               ; preds = %47, %41
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %indvars.iv) #8
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %indvars.iv) #8
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = fcmp une double %53, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %51
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #8
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = fcmp olt double %59, 0.000000e+00
  br i1 %60, label %.loopexit, label %61

61:                                               ; preds = %51, %57
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !9

.critedge:                                        ; preds = %61, %17
  %62 = getelementptr inbounds i8, ptr %0, i64 2672
  %63 = call noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #9
  invoke void @_ZN3ipx5BasisC1ERKNS_7ControlERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(176) %63, ptr noundef nonnull align 8 dereferenceable(1496) %0, ptr noundef nonnull align 8 dereferenceable(704) %10)
          to label %64 unwind label %72

64:                                               ; preds = %.critedge
  call void @_ZNSt10unique_ptrIN3ipx5BasisESt14default_deleteIS1_EE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull %63) #8
  %65 = call noundef i32 @_ZNK3ipx7Control11crash_basisEv(ptr noundef nonnull align 8 dereferenceable(1496) %0)
  %.not77 = icmp eq i32 %65, 0
  br i1 %.not77, label %130, label %66

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %20)
  br i1 %.not83, label %.lr.ph86, label %._crit_edge

.lr.ph86:                                         ; preds = %66
  %67 = add i32 %11, 1
  %factor = shl i32 %11, 1
  %68 = or disjoint i32 %factor, 1
  %wide.trip.count91 = zext nneg i32 %19 to i64
  br label %74

._crit_edge:                                      ; preds = %115, %66
  %69 = call noundef ptr @_ZNKSt10unique_ptrIN3ipx5BasisESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %62) #8
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef 0) #8
  %71 = getelementptr inbounds i8, ptr %0, i64 1496
  invoke void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176) %69, ptr noundef nonnull %70, ptr noundef nonnull %71)
          to label %117 unwind label %126

72:                                               ; preds = %.critedge
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %63, i64 noundef 176) #10
  br label %131

74:                                               ; preds = %.lr.ph86, %115
  %indvars.iv88 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next89, %115 ]
  %75 = trunc nuw nsw i64 %indvars.iv88 to i32
  %76 = invoke noundef i32 @_ZNK3ipx12SparseMatrix7entriesEi(ptr noundef nonnull align 8 dereferenceable(128) %15, i32 noundef %75)
          to label %77 unwind label %83

77:                                               ; preds = %74
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv88) #8
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %indvars.iv88) #8
  %81 = load double, ptr %80, align 8, !tbaa !5
  %82 = fcmp oeq double %79, %81
  br i1 %82, label %115, label %85

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %129

85:                                               ; preds = %77
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv88) #8
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %87)
  br i1 %88, label %89, label %93

89:                                               ; preds = %85
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %indvars.iv88) #8
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %91)
  br i1 %92, label %115, label %93

93:                                               ; preds = %89, %85
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv88) #8
  %95 = load double, ptr %94, align 8, !tbaa !5
  %96 = fcmp une double %95, 0.000000e+00
  br i1 %96, label %115, label %97

97:                                               ; preds = %93
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %indvars.iv88) #8
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv88) #8
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = fcmp une double %99, %101
  br i1 %102, label %103, label %112

103:                                              ; preds = %97
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %indvars.iv88) #8
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %indvars.iv88) #8
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fcmp une double %105, %107
  br i1 %108, label %109, label %112

109:                                              ; preds = %103
  %110 = sub i32 %68, %76
  %111 = sitofp i32 %110 to double
  br label %115

112:                                              ; preds = %103, %97
  %113 = sub i32 %67, %76
  %114 = sitofp i32 %113 to double
  br label %115

115:                                              ; preds = %93, %89, %77, %109, %112
  %.sink = phi double [ %111, %109 ], [ %114, %112 ], [ 0.000000e+00, %77 ], [ 0x7FF0000000000000, %89 ], [ 0.000000e+00, %93 ]
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv88) #8
  store double %.sink, ptr %116, align 8, !tbaa !5
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond92.not = icmp eq i64 %indvars.iv.next89, %wide.trip.count91
  br i1 %exitcond92.not, label %._crit_edge, label %74, !llvm.loop !11

117:                                              ; preds = %._crit_edge
  %118 = invoke noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %119 unwind label %126

119:                                              ; preds = %117
  %120 = getelementptr inbounds i8, ptr %0, i64 1744
  %121 = load double, ptr %120, align 8, !tbaa !12
  %122 = fadd double %118, %121
  store double %122, ptr %120, align 8, !tbaa !12
  %123 = getelementptr inbounds i8, ptr %0, i64 1508
  %124 = load i32, ptr %123, align 4, !tbaa !15
  %.not78 = icmp eq i32 %124, 0
  br i1 %.not78, label %.thread, label %125

.thread:                                          ; preds = %119
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %130

125:                                              ; preds = %119
  invoke void @_ZN3ipx8LpSolver13ClearSolutionEv(ptr noundef nonnull align 8 dereferenceable(2864) %0)
          to label %128 unwind label %126

126:                                              ; preds = %125, %117, %._crit_edge
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %129

128:                                              ; preds = %125
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %.loopexit

129:                                              ; preds = %126, %83
  %.pn79 = phi { ptr, i32 } [ %84, %83 ], [ %127, %126 ]
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %131

130:                                              ; preds = %.thread, %64
  call void @_ZN3ipx8LpSolver12RunCrossoverEv(ptr noundef nonnull align 8 dereferenceable(2864) %0)
  br label %.loopexit

.loopexit:                                        ; preds = %35, %.lr.ph, %47, %57, %128, %130
  %.2 = phi i32 [ 0, %130 ], [ 0, %128 ], [ 105, %57 ], [ 105, %47 ], [ 105, %.lr.ph ], [ 105, %35 ]
  ret i32 %.2

131:                                              ; preds = %129, %72, %29
  %.pn79.pn = phi { ptr, i32 } [ %.pn79, %129 ], [ %73, %72 ], [ %.pn, %29 ]
  resume { ptr, i32 } %.pn79.pn
}

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

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

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

declare void @_ZNK3ipx5Model21PresolveStartingPointEPKdS2_S2_S2_RSt8valarrayIdES5_S5_(ptr noundef nonnull align 8 dereferenceable(704), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

declare void @_ZN3ipx5BasisC1ERKNS_7ControlERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(1496), ptr noundef nonnull align 8 dereferenceable(704)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

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

declare void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) local_unnamed_addr #1

declare void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef, ptr noundef) local_unnamed_addr #4

declare noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin allocsize(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 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 248}
!13 = !{!"_ZTS8ipx_info", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !14, i64 192, !14, i64 196, !14, i64 200, !14, i64 204, !14, i64 208, !14, i64 212, !14, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !14, i64 416, !14, i64 420, !14, i64 424, !14, i64 428, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !14, i64 12}


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