; LLVM IR from ERGO-Code/HiGHS :: src/simplex/HighsSimplexAnalysis.ll (ZN20HighsSimplexAnalysis20iterationRecordMajorEv)

; 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.HighsSimplexAnalysis = type { ptr, %"class.std::vector.23", %"class.std::vector.23", ptr, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %struct.HighsLogOptions, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, double, double, i32, double, double, i32, double, double, double, double, double, double, double, double, double, double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, double, double, i32, double, double, i32, i32, double, double, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.28", %"class.std::unique_ptr", i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, i32, i32, double, double, double, i8, double, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, i32, i32, [10 x %"struct.HighsSimplexAnalysis::AnIterOpRec"], i32, i32, [22 x %"struct.HighsSimplexAnalysis::AnIterTraceRec"], [12 x i32], [3 x i32], [4 x i8], %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsLogOptions = type <{ ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::function", ptr, i8, [7 x i8] }>
%"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::__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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_Vector_impl" }
%"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_Vector_impl" = type { %"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_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.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"struct.HighsSimplexAnalysis::AnIterOpRec" = type { double, double, i32, i32, i32, i32, double, i32, %"class.std::__cxx11::basic_string", %struct.HighsValueDistribution }
%"struct.HighsSimplexAnalysis::AnIterTraceRec" = type { double, double, [10 x double], double, i32, i32, i32 }
%struct.HighsValueDistribution = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, i32, [4 x i8], double, double, %"class.std::vector", %"class.std::vector.3", i32, [4 x i8] }>
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.88 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN20HighsSimplexAnalysis20iterationRecordMajorEv = external hidden unnamed_addr constant [50 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [17 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN20HighsSimplexAnalysis20iterationRecordMajorEv(ptr noundef nonnull align 8 dereferenceable(8576) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8
  %5 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 11
  %6 = load i8, ptr %5, align 1, !tbaa !9, !range !44, !noundef !45
  %7 = trunc i8 %6 to i1
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  br label %11

9:                                                ; preds = %1
  call void @__assert_fail(ptr noundef @.str.88, ptr noundef @.str.89, i32 noundef 704, ptr noundef @__PRETTY_FUNCTION__._ZN20HighsSimplexAnalysis20iterationRecordMajorEv) #4
  unreachable

10:                                               ; No predecessors!
  br label %11

11:                                               ; preds = %10, %8
  %12 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 60
  %13 = load i32, ptr %12, align 4, !tbaa !46
  %14 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 127
  %15 = load i32, ptr %14, align 8, !tbaa !47
  %16 = add nsw i32 %15, %13
  store i32 %16, ptr %14, align 8, !tbaa !47
  %17 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 61
  %18 = load i32, ptr %17, align 8, !tbaa !48
  %19 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 128
  %20 = load i32, ptr %19, align 4, !tbaa !49
  %21 = add nsw i32 %20, %18
  store i32 %21, ptr %19, align 4, !tbaa !49
  %22 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 60
  %23 = load i32, ptr %22, align 4, !tbaa !46
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %11
  br label %28

26:                                               ; preds = %11
  call void @__assert_fail(ptr noundef @.str.90, ptr noundef @.str.89, i32 noundef 707, ptr noundef @__PRETTY_FUNCTION__._ZN20HighsSimplexAnalysis20iterationRecordMajorEv) #4
  unreachable

27:                                               ; No predecessors!
  br label %28

28:                                               ; preds = %27, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %29 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 61
  %30 = load i32, ptr %29, align 8, !tbaa !48
  %31 = sitofp i32 %30 to double
  %32 = fmul double 1.000000e+00, %31
  %33 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 60
  %34 = load i32, ptr %33, align 4, !tbaa !46
  %35 = sitofp i32 %34 to double
  %36 = fdiv double %32, %35
  store double %36, ptr %3, align 8, !tbaa !50
  %37 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 126
  %38 = load double, ptr %37, align 8, !tbaa !51
  %39 = fcmp olt double %38, 0.000000e+00
  br i1 %39, label %40, label %43

40:                                               ; preds = %28
  %41 = load double, ptr %3, align 8, !tbaa !50
  %42 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 126
  store double %41, ptr %42, align 8, !tbaa !51
  br label %50

43:                                               ; preds = %28
  %44 = load double, ptr %3, align 8, !tbaa !50
  %45 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 126
  %46 = load double, ptr %45, align 8, !tbaa !51
  %47 = fmul double 0x3FEE666666666666, %46
  %48 = call double @llvm.fmuladd.f64(double 5.000000e-02, double %44, double %47)
  %49 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 126
  store double %48, ptr %49, align 8, !tbaa !51
  br label %50

50:                                               ; preds = %43, %40
  %51 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 125
  %52 = load double, ptr %51, align 8, !tbaa !52
  %53 = fcmp olt double %52, 0.000000e+00
  br i1 %53, label %54, label %59

54:                                               ; preds = %50
  %55 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 63
  %56 = load i32, ptr %55, align 8, !tbaa !53
  %57 = sitofp i32 %56 to double
  %58 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 125
  store double %57, ptr %58, align 8, !tbaa !52
  br label %68

59:                                               ; preds = %50
  %60 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 63
  %61 = load i32, ptr %60, align 8, !tbaa !53
  %62 = sitofp i32 %61 to double
  %63 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 125
  %64 = load double, ptr %63, align 8, !tbaa !52
  %65 = fmul double 0x3FEE666666666666, %64
  %66 = call double @llvm.fmuladd.f64(double 5.000000e-02, double %62, double %65)
  %67 = getelementptr inbounds %class.HighsSimplexAnalysis, ptr %4, i32 0, i32 125
  store double %66, ptr %67, align 8, !tbaa !52
  br label %68

68:                                               ; preds = %59, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
attributes #5 = { 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, !22, i64 241}
!10 = !{!"_ZTS20HighsSimplexAnalysis", !6, i64 0, !11, i64 8, !11, i64 32, !6, i64 56, !15, i64 64, !15, i64 68, !15, i64 72, !16, i64 80, !16, i64 112, !19, i64 144, !22, i64 240, !22, i64 241, !22, i64 242, !22, i64 243, !22, i64 244, !22, i64 245, !22, i64 246, !15, i64 248, !23, i64 252, !15, i64 256, !15, i64 260, !15, i64 264, !15, i64 268, !15, i64 272, !15, i64 276, !15, i64 280, !16, i64 288, !24, i64 320, !24, i64 328, !24, i64 336, !24, i64 344, !24, i64 352, !24, i64 360, !24, i64 368, !24, i64 376, !24, i64 384, !24, i64 392, !24, i64 400, !24, i64 408, !15, i64 416, !15, i64 420, !24, i64 424, !24, i64 432, !15, i64 440, !24, i64 448, !24, i64 456, !15, i64 464, !24, i64 472, !24, i64 480, !24, i64 488, !24, i64 496, !24, i64 504, !24, i64 512, !24, i64 520, !24, i64 528, !24, i64 536, !24, i64 544, !15, i64 552, !24, i64 560, !15, i64 568, !15, i64 572, !15, i64 576, !15, i64 580, !15, i64 584, !15, i64 588, !15, i64 592, !15, i64 596, !15, i64 600, !25, i64 608, !25, i64 760, !25, i64 912, !25, i64 1064, !25, i64 1216, !25, i64 1368, !25, i64 1520, !25, i64 1672, !25, i64 1824, !25, i64 1976, !15, i64 2128, !15, i64 2132, !15, i64 2136, !15, i64 2140, !24, i64 2144, !24, i64 2152, !15, i64 2160, !15, i64 2164, !15, i64 2168, !15, i64 2172, !15, i64 2176, !24, i64 2184, !24, i64 2192, !15, i64 2200, !24, i64 2208, !24, i64 2216, !15, i64 2224, !15, i64 2228, !24, i64 2232, !24, i64 2240, !26, i64 2248, !26, i64 2272, !26, i64 2296, !26, i64 2320, !34, i64 2344, !38, i64 2368, !15, i64 2376, !15, i64 2380, !15, i64 2384, !15, i64 2388, !24, i64 2392, !24, i64 2400, !24, i64 2408, !24, i64 2416, !24, i64 2424, !24, i64 2432, !24, i64 2440, !24, i64 2448, !24, i64 2456, !24, i64 2464, !15, i64 2472, !15, i64 2476, !24, i64 2480, !24, i64 2488, !24, i64 2496, !22, i64 2504, !24, i64 2512, !24, i64 2520, !15, i64 2528, !15, i64 2532, !15, i64 2536, !15, i64 2540, !15, i64 2544, !24, i64 2552, !24, i64 2560, !24, i64 2568, !24, i64 2576, !24, i64 2584, !24, i64 2592, !24, i64 2600, !24, i64 2608, !24, i64 2616, !15, i64 2624, !15, i64 2628, !7, i64 2632, !15, i64 4952, !15, i64 4956, !7, i64 4960, !7, i64 7600, !7, i64 7648, !25, i64 7664, !25, i64 7816, !25, i64 7968, !25, i64 8120, !25, i64 8272, !25, i64 8424}
!11 = !{!"_ZTSSt6vectorI15HighsTimerClockSaIS0_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseI15HighsTimerClockSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseI15HighsTimerClockSaIS0_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI15HighsTimerClockSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTS15HighsLogOptions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !20, i64 48, !6, i64 80, !22, i64 88}
!20 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !21, i64 0, !6, i64 24}
!21 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTS14EdgeWeightMode", !7, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTS22HighsValueDistribution", !16, i64 0, !16, i64 32, !15, i64 64, !15, i64 68, !15, i64 72, !24, i64 80, !24, i64 88, !26, i64 96, !30, i64 120, !15, i64 144}
!26 = !{!"_ZTSSt6vectorIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIiSaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorI17TranStageAnalysisSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseI17TranStageAnalysisSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI17TranStageAnalysisSaIS0_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI17TranStageAnalysisSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_dataINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_ELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_implINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !41, i64 0}
!41 = !{!"_ZTSSt5tupleIJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !42, i64 0}
!42 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !43, i64 0}
!43 = !{!"_ZTSSt10_Head_baseILm0EPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEELb0EE", !6, i64 0}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{!10, !15, i64 572}
!47 = !{!10, !15, i64 2528}
!48 = !{!10, !15, i64 576}
!49 = !{!10, !15, i64 2532}
!50 = !{!24, !24, i64 0}
!51 = !{!10, !24, i64 2520}
!52 = !{!10, !24, i64 2512}
!53 = !{!10, !15, i64 584}


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

@.str.88 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN20HighsSimplexAnalysis20iterationRecordMajorEv = external hidden unnamed_addr constant [50 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN20HighsSimplexAnalysis20iterationRecordMajorEv(ptr nocapture noundef nonnull align 8 dereferenceable(8576) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 241
  %3 = load i8, ptr %2, align 1, !tbaa !5, !range !43, !noundef !44
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %6, label %5

5:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.88, ptr noundef nonnull @.str.89, i32 noundef 704, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN20HighsSimplexAnalysis20iterationRecordMajorEv) #3
  unreachable

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 572
  %8 = getelementptr inbounds i8, ptr %0, i64 2528
  %9 = load <2 x i32>, ptr %7, align 4, !tbaa !45
  %10 = load <2 x i32>, ptr %8, align 8, !tbaa !45
  %11 = add nsw <2 x i32> %10, %9
  store <2 x i32> %11, ptr %8, align 8, !tbaa !45
  %12 = extractelement <2 x i32> %9, i64 0
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.89, i32 noundef 707, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN20HighsSimplexAnalysis20iterationRecordMajorEv) #3
  unreachable

15:                                               ; preds = %6
  %16 = extractelement <2 x i32> %9, i64 1
  %17 = sitofp i32 %16 to double
  %18 = uitofp nneg i32 %12 to double
  %19 = fdiv double %17, %18
  %20 = getelementptr inbounds i8, ptr %0, i64 2512
  %21 = getelementptr inbounds i8, ptr %0, i64 584
  %22 = load i32, ptr %21, align 8, !tbaa !46
  %23 = sitofp i32 %22 to double
  %24 = load <2 x double>, ptr %20, align 8, !tbaa !47
  %25 = fcmp olt <2 x double> %24, zeroinitializer
  %26 = fmul <2 x double> %24, <double 0x3FEE666666666666, double 0x3FEE666666666666>
  %27 = insertelement <2 x double> poison, double %23, i64 0
  %28 = insertelement <2 x double> %27, double %19, i64 1
  %29 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %28, <2 x double> <double 5.000000e-02, double 5.000000e-02>, <2 x double> %26)
  %30 = select <2 x i1> %25, <2 x double> %28, <2 x double> %29
  store <2 x double> %30, ptr %20, align 8, !tbaa !47
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { noreturn 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, !21, i64 241}
!6 = !{!"_ZTS20HighsSimplexAnalysis", !7, i64 0, !10, i64 8, !10, i64 32, !7, i64 56, !14, i64 64, !14, i64 68, !14, i64 72, !15, i64 80, !15, i64 112, !18, i64 144, !21, i64 240, !21, i64 241, !21, i64 242, !21, i64 243, !21, i64 244, !21, i64 245, !21, i64 246, !14, i64 248, !22, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !14, i64 268, !14, i64 272, !14, i64 276, !14, i64 280, !15, i64 288, !23, i64 320, !23, i64 328, !23, i64 336, !23, i64 344, !23, i64 352, !23, i64 360, !23, i64 368, !23, i64 376, !23, i64 384, !23, i64 392, !23, i64 400, !23, i64 408, !14, i64 416, !14, i64 420, !23, i64 424, !23, i64 432, !14, i64 440, !23, i64 448, !23, i64 456, !14, i64 464, !23, i64 472, !23, i64 480, !23, i64 488, !23, i64 496, !23, i64 504, !23, i64 512, !23, i64 520, !23, i64 528, !23, i64 536, !23, i64 544, !14, i64 552, !23, i64 560, !14, i64 568, !14, i64 572, !14, i64 576, !14, i64 580, !14, i64 584, !14, i64 588, !14, i64 592, !14, i64 596, !14, i64 600, !24, i64 608, !24, i64 760, !24, i64 912, !24, i64 1064, !24, i64 1216, !24, i64 1368, !24, i64 1520, !24, i64 1672, !24, i64 1824, !24, i64 1976, !14, i64 2128, !14, i64 2132, !14, i64 2136, !14, i64 2140, !23, i64 2144, !23, i64 2152, !14, i64 2160, !14, i64 2164, !14, i64 2168, !14, i64 2172, !14, i64 2176, !23, i64 2184, !23, i64 2192, !14, i64 2200, !23, i64 2208, !23, i64 2216, !14, i64 2224, !14, i64 2228, !23, i64 2232, !23, i64 2240, !25, i64 2248, !25, i64 2272, !25, i64 2296, !25, i64 2320, !33, i64 2344, !37, i64 2368, !14, i64 2376, !14, i64 2380, !14, i64 2384, !14, i64 2388, !23, i64 2392, !23, i64 2400, !23, i64 2408, !23, i64 2416, !23, i64 2424, !23, i64 2432, !23, i64 2440, !23, i64 2448, !23, i64 2456, !23, i64 2464, !14, i64 2472, !14, i64 2476, !23, i64 2480, !23, i64 2488, !23, i64 2496, !21, i64 2504, !23, i64 2512, !23, i64 2520, !14, i64 2528, !14, i64 2532, !14, i64 2536, !14, i64 2540, !14, i64 2544, !23, i64 2552, !23, i64 2560, !23, i64 2568, !23, i64 2576, !23, i64 2584, !23, i64 2592, !23, i64 2600, !23, i64 2608, !23, i64 2616, !14, i64 2624, !14, i64 2628, !8, i64 2632, !14, i64 4952, !14, i64 4956, !8, i64 4960, !8, i64 7600, !8, i64 7648, !24, i64 7664, !24, i64 7816, !24, i64 7968, !24, i64 8120, !24, i64 8272, !24, i64 8424}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorI15HighsTimerClockSaIS0_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseI15HighsTimerClockSaIS0_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseI15HighsTimerClockSaIS0_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseI15HighsTimerClockSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"int", !8, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !8, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"_ZTS15HighsLogOptions", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !19, i64 48, !7, i64 80, !21, i64 88}
!19 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !20, i64 0, !7, i64 24}
!20 = !{!"_ZTSSt14_Function_base", !8, i64 0, !7, i64 16}
!21 = !{!"bool", !8, i64 0}
!22 = !{!"_ZTS14EdgeWeightMode", !8, i64 0}
!23 = !{!"double", !8, i64 0}
!24 = !{!"_ZTS22HighsValueDistribution", !15, i64 0, !15, i64 32, !14, i64 64, !14, i64 68, !14, i64 72, !23, i64 80, !23, i64 88, !25, i64 96, !29, i64 120, !14, i64 144}
!25 = !{!"_ZTSSt6vectorIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!29 = !{!"_ZTSSt6vectorIiSaIiEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!33 = !{!"_ZTSSt6vectorI17TranStageAnalysisSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI17TranStageAnalysisSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI17TranStageAnalysisSaIS0_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI17TranStageAnalysisSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!37 = !{!"_ZTSSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_dataINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_ELb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_implINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EE", !40, i64 0}
!40 = !{!"_ZTSSt5tupleIJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !41, i64 0}
!41 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_Head_baseILm0EPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEELb0EE", !7, i64 0}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!14, !14, i64 0}
!46 = !{!6, !14, i64 584}
!47 = !{!23, !23, i64 0}


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