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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::_Bit_reference" = type { ptr, i64 }
%"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::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::Timer" = type { %"class.std::chrono::time_point" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { 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.HighsCallback = type { %"class.std::function", ptr, ptr, %"class.std::vector.10", %struct.HighsCallbackDataOut, %struct.HighsCallbackDataIn }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::vector.10" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%struct.HighsCallbackDataOut = type { i32, double, i32, i32, i32, double, i64, i64, double, double, double, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.HighsCallbackDataIn = type { i32, ptr }

@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3ipx7Control14InterruptCheckEi = external hidden unnamed_addr constant [50 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 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 uwtable
define dso_local noundef i32 @_ZNK3ipx7Control14InterruptCheckEi(ptr noundef nonnull align 8 dereferenceable(1496) %0, i32 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::_Bit_reference", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %11 = load ptr, ptr %4, align 8
  %12 = call noundef ptr @_ZN17HighsTaskExecutor18getThisWorkerDequeEv()
  call void @_ZN15HighsSplitDeque14checkInterruptEv(ptr noundef nonnull align 64 dereferenceable(524544) %12)
  %13 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 0
  %14 = getelementptr inbounds %struct.ipx_parameters, ptr %13, i32 0, i32 3
  %15 = load double, ptr %14, align 8, !tbaa !11
  %16 = fcmp oge double %15, 0.000000e+00
  br i1 %16, label %17, label %25

17:                                               ; preds = %2
  %18 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 0
  %19 = getelementptr inbounds %struct.ipx_parameters, ptr %18, i32 0, i32 3
  %20 = load double, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 3
  %22 = call noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
  %23 = fcmp olt double %20, %22
  br i1 %23, label %24, label %25

24:                                               ; preds = %17
  store i32 999, ptr %3, align 4
  br label %79

25:                                               ; preds = %17, %2
  %26 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %32

30:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef 20, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx7Control14InterruptCheckEi) #5
  unreachable

31:                                               ; No predecessors!
  br label %32

32:                                               ; preds = %31, %29
  %33 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %78

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds %struct.HighsCallback, ptr %38, i32 0, i32 0
  %40 = call noundef zeroext i1 @_ZNKSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  br i1 %40, label %41, label %51

41:                                               ; preds = %36
  %42 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds %struct.HighsCallback, ptr %43, i32 0, i32 3
  %45 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %44, i64 noundef 2)
  %46 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %47 = extractvalue { ptr, i64 } %45, 0
  store ptr %47, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %49 = extractvalue { ptr, i64 } %45, 1
  store i64 %49, ptr %48, align 8
  %50 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %51

51:                                               ; preds = %41, %36
  %52 = phi i1 [ false, %36 ], [ %50, %41 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br i1 %52, label %53, label %77

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  call void @_ZN13HighsCallback25clearHighsCallbackDataOutEv(ptr noundef nonnull align 8 dereferenceable(256) %55)
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = getelementptr inbounds %struct.HighsCallback, ptr %58, i32 0, i32 4
  %60 = getelementptr inbounds %struct.HighsCallbackDataOut, ptr %59, i32 0, i32 3
  store i32 %56, ptr %60, align 4, !tbaa !36
  %61 = getelementptr inbounds %"class.ipx::Control", ptr %11, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %63 unwind label %67

63:                                               ; preds = %53
  %64 = invoke noundef zeroext i1 @_ZN13HighsCallback14callbackActionEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %62, i32 noundef 2, ptr noundef %7)
          to label %65 unwind label %71

65:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  br i1 %64, label %66, label %76

66:                                               ; preds = %65
  store i32 998, ptr %3, align 4
  br label %79

67:                                               ; preds = %53
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  br label %75

71:                                               ; preds = %63
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %9, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %75

75:                                               ; preds = %71, %67
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  br label %81

76:                                               ; preds = %65
  br label %77

77:                                               ; preds = %76, %51
  br label %78

78:                                               ; preds = %77, %32
  store i32 0, ptr %3, align 4
  br label %79

79:                                               ; preds = %78, %66, %24
  %80 = load i32, ptr %3, align 4
  ret i32 %80

81:                                               ; preds = %75
  %82 = load ptr, ptr %9, align 8
  %83 = load i32, ptr %10, align 4
  %84 = insertvalue { ptr, i32 } poison, ptr %82, 0
  %85 = insertvalue { ptr, i32 } %84, i32 %83, 1
  resume { ptr, i32 } %85
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17HighsTaskExecutor18getThisWorkerDequeEv() #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HighsSplitDeque14checkInterruptEv(ptr noundef nonnull align 64 dereferenceable(524544)) #2 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

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

declare void @_ZN13HighsCallback25clearHighsCallbackDataOutEv(ptr noundef nonnull align 8 dereferenceable(256)) #3

declare noundef zeroext i1 @_ZN13HighsCallback14callbackActionEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, ptr noundef) #3

; 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 = { "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 = { noreturn 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 #5 = { noreturn nounwind }
attributes #6 = { 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, !13, i64 24}
!12 = !{!"_ZTS14ipx_parameters", !10, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !10, i64 88, !13, i64 96, !13, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !13, i64 128, !10, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !10, i64 224, !14, i64 228, !14, i64 229, !6, i64 232}
!13 = !{!"double", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !6, i64 240}
!16 = !{!"_ZTSN3ipx7ControlE", !17, i64 0, !6, i64 240, !18, i64 248, !27, i64 760, !27, i64 768, !30, i64 776, !30, i64 1136}
!17 = !{!"_ZTSN3ipx10ParametersE", !12, i64 0}
!18 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !19, i64 0, !20, i64 8}
!19 = !{!"_ZTSSo"}
!20 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !21, i64 0, !7, i64 64, !23, i64 104, !24, i64 120, !25, i64 124, !25, i64 132, !25, i64 140, !6, i64 152, !26, i64 160, !14, i64 168, !14, i64 169, !14, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !14, i64 192, !6, i64 200, !6, i64 208, !26, i64 216, !6, i64 224, !6, i64 232}
!21 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !22, i64 56}
!22 = !{!"_ZTSSt6locale", !6, i64 0}
!23 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !14, i64 8}
!24 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!25 = !{!"_ZTS11__mbstate_t", !10, i64 0, !7, i64 4}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSN3ipx5TimerE", !28, i64 0}
!28 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !29, i64 0}
!29 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !26, i64 0}
!30 = !{!"_ZTSN3ipx11MultistreamE", !19, i64 0, !31, i64 8}
!31 = !{!"_ZTSN3ipx11Multistream11multibufferE", !21, i64 0, !32, i64 64}
!32 = !{!"_ZTSSt6vectorIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!37, !10, i64 108}
!37 = !{!"_ZTS13HighsCallback", !38, i64 0, !6, i64 32, !6, i64 40, !40, i64 48, !46, i64 88, !47, i64 240}
!38 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !39, i64 0, !6, i64 24}
!39 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!40 = !{!"_ZTSSt6vectorIbSaIbEE", !41, i64 0}
!41 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !42, i64 0}
!42 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !44, i64 0, !44, i64 16, !6, i64 32}
!44 = !{!"_ZTSSt13_Bit_iterator", !45, i64 0}
!45 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !10, i64 8}
!46 = !{!"_ZTS20HighsCallbackDataOut", !10, i64 0, !13, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !13, i64 32, !26, i64 40, !26, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !10, i64 144}
!47 = !{!"_ZTS19HighsCallbackDataIn", !10, i64 0, !6, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::_Bit_reference" = type { ptr, i64 }
%"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 }

@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3ipx7Control14InterruptCheckEi = external hidden unnamed_addr constant [50 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 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 uwtable
define dso_local noundef range(i32 0, 1000) i32 @_ZNK3ipx7Control14InterruptCheckEi(ptr noundef nonnull align 8 dereferenceable(1496) %0, i32 noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::_Bit_reference", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = tail call noundef ptr @_ZN17HighsTaskExecutor18getThisWorkerDequeEv()
  tail call void @_ZN15HighsSplitDeque14checkInterruptEv(ptr noundef nonnull align 64 dereferenceable(524544) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = fcmp ult double %8, 0.000000e+00
  br i1 %9, label %14, label %10

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 760
  %12 = tail call noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %13 = fcmp olt double %8, %12
  br i1 %13, label %41, label %14

14:                                               ; preds = %10, %2
  %15 = getelementptr inbounds i8, ptr %0, i64 240
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %17, label %18

17:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef 20, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx7Control14InterruptCheckEi) #5
  unreachable

18:                                               ; preds = %14
  %19 = tail call noundef zeroext i1 @_ZNKSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  br i1 %19, label %20, label %.critedge

20:                                               ; preds = %18
  %21 = load ptr, ptr %15, align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %21, i64 48
  %23 = tail call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %22, i64 noundef 2)
  %24 = extractvalue { ptr, i64 } %23, 0
  store ptr %24, ptr %3, align 8
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  %26 = extractvalue { ptr, i64 } %23, 1
  store i64 %26, ptr %25, align 8
  %27 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br i1 %27, label %28, label %40

28:                                               ; preds = %20
  %29 = load ptr, ptr %15, align 8, !tbaa !13
  call void @_ZN13HighsCallback25clearHighsCallbackDataOutEv(ptr noundef nonnull align 8 dereferenceable(256) %29)
  %30 = load ptr, ptr %15, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %30, i64 108
  store i32 %1, ptr %31, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %32 unwind label %35

32:                                               ; preds = %28
  %33 = invoke noundef zeroext i1 @_ZN13HighsCallback14callbackActionEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %30, i32 noundef 2, ptr noundef nonnull %4)
          to label %34 unwind label %37

34:                                               ; preds = %32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br i1 %33, label %41, label %40

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

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn

.critedge:                                        ; preds = %18
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %40

40:                                               ; preds = %20, %.critedge, %34
  br label %41

41:                                               ; preds = %34, %10, %40
  %.05 = phi i32 [ 0, %40 ], [ 999, %10 ], [ 998, %34 ]
  ret i32 %.05
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17HighsTaskExecutor18getThisWorkerDequeEv() local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HighsSplitDeque14checkInterruptEv(ptr noundef nonnull align 64 dereferenceable(524544)) local_unnamed_addr #2 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

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

declare void @_ZN13HighsCallback25clearHighsCallbackDataOutEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN13HighsCallback14callbackActionEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, ptr noundef) local_unnamed_addr #3

; 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 = { "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 = { noreturn 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 #5 = { noreturn nounwind }
attributes #6 = { 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, !11, i64 24}
!6 = !{!"_ZTS14ipx_parameters", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !11, i64 96, !11, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !11, i64 128, !7, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !7, i64 224, !12, i64 228, !12, i64 229, !10, i64 232}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!14, !10, i64 240}
!14 = !{!"_ZTSN3ipx7ControlE", !15, i64 0, !10, i64 240, !16, i64 248, !25, i64 760, !25, i64 768, !28, i64 776, !28, i64 1136}
!15 = !{!"_ZTSN3ipx10ParametersE", !6, i64 0}
!16 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !17, i64 0, !18, i64 8}
!17 = !{!"_ZTSSo"}
!18 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !19, i64 0, !8, i64 64, !21, i64 104, !22, i64 120, !23, i64 124, !23, i64 132, !23, i64 140, !10, i64 152, !24, i64 160, !12, i64 168, !12, i64 169, !12, i64 170, !8, i64 171, !10, i64 176, !10, i64 184, !12, i64 192, !10, i64 200, !10, i64 208, !24, i64 216, !10, i64 224, !10, i64 232}
!19 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !20, i64 56}
!20 = !{!"_ZTSSt6locale", !10, i64 0}
!21 = !{!"_ZTSSt12__basic_fileIcE", !10, i64 0, !12, i64 8}
!22 = !{!"_ZTSSt13_Ios_Openmode", !8, i64 0}
!23 = !{!"_ZTS11__mbstate_t", !7, i64 0, !8, i64 4}
!24 = !{!"long", !8, i64 0}
!25 = !{!"_ZTSN3ipx5TimerE", !26, i64 0}
!26 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !27, i64 0}
!27 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !24, i64 0}
!28 = !{!"_ZTSN3ipx11MultistreamE", !17, i64 0, !29, i64 8}
!29 = !{!"_ZTSN3ipx11Multistream11multibufferE", !19, i64 0, !30, i64 64}
!30 = !{!"_ZTSSt6vectorIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPSt15basic_streambufIcSt11char_traitsIcEESaIS4_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!34 = !{!35, !7, i64 108}
!35 = !{!"_ZTS13HighsCallback", !36, i64 0, !10, i64 32, !10, i64 40, !38, i64 48, !44, i64 88, !45, i64 240}
!36 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !37, i64 0, !10, i64 24}
!37 = !{!"_ZTSSt14_Function_base", !8, i64 0, !10, i64 16}
!38 = !{!"_ZTSSt6vectorIbSaIbEE", !39, i64 0}
!39 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !40, i64 0}
!40 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !42, i64 0, !42, i64 16, !10, i64 32}
!42 = !{!"_ZTSSt13_Bit_iterator", !43, i64 0}
!43 = !{!"_ZTSSt18_Bit_iterator_base", !10, i64 0, !7, i64 8}
!44 = !{!"_ZTS20HighsCallbackDataOut", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !11, i64 32, !24, i64 40, !24, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !7, i64 144}
!45 = !{!"_ZTS19HighsCallbackDataIn", !7, i64 0, !10, i64 8}


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