; LLVM IR from ERGO-Code/HiGHS :: src/qpsolver/basis.ll (ZN5Basis5ZprodERK8QpVectorRS0_)

; 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.Basis = type <{ %class.HVectorBase, %struct.QpVector, %struct.QpVector, ptr, %class.HFactor, i32, [4 x i8], %struct.MatrixBase, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::map", %"class.std::vector", %struct.QpVector, %struct.QpVector, i32, i32, %class.HVectorBase, %class.HVectorBase, i8, [7 x i8] }>
%class.HFactor = type { double, double, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %struct.RefactorInfo, i32, i32, i32, i32, i32, i32, i32, double, i8, ptr, ptr, ptr, ptr, double, double, i32, double, %"class.std::unique_ptr", %struct.HighsLogOptions, i8, i8, i32, i32, ptr, i32, %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.13", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %class.HVectorBase }
%struct.RefactorInfo = type { i8, %"class.std::vector", %"class.std::vector", %"class.std::vector.15", double }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_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.21" }
%"struct.std::_Head_base.21" = type { 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::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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 }
%struct.MatrixBase = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.8" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, BasisStatus>, std::_Select1st<std::pair<const int, BasisStatus>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, BasisStatus>, std::_Select1st<std::pair<const int, BasisStatus>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%struct.QpVector = type { i32, i32, %"class.std::vector", %"class.std::vector.8" }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.8", double, %"class.std::vector.13", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.8" }

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5Basis5btranERK8QpVectorRS0_bi(ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext, i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5Basis5ZprodERK8QpVectorRS0_(ptr noundef nonnull align 8 dereferenceable(2913) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  %12 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 2
  call void @_ZN8QpVector5resetEv(ptr noundef nonnull align 8 dereferenceable(56) %12)
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.QpVector, ptr %13, i32 0, i32 1
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 2
  %17 = getelementptr inbounds %struct.QpVector, ptr %16, i32 0, i32 1
  store i32 %15, ptr %17, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !54
  br label %18

18:                                               ; preds = %59, %3
  %19 = load i32, ptr %7, align 4, !tbaa !54
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.QpVector, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !55
  %23 = icmp slt i32 %19, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %62

25:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.QpVector, ptr %26, i32 0, i32 2
  %28 = load i32, ptr %7, align 4, !tbaa !54
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #3
  %31 = load i32, ptr %30, align 4, !tbaa !54
  store i32 %31, ptr %8, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %32 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 9
  %33 = load i32, ptr %8, align 4, !tbaa !54
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #3
  %36 = load i32, ptr %35, align 4, !tbaa !54
  store i32 %36, ptr %9, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %37 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 12
  %38 = load i32, ptr %9, align 4, !tbaa !54
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #3
  %41 = load i32, ptr %40, align 4, !tbaa !54
  store i32 %41, ptr %10, align 4, !tbaa !54
  %42 = load i32, ptr %10, align 4, !tbaa !54
  %43 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 2
  %44 = getelementptr inbounds %struct.QpVector, ptr %43, i32 0, i32 2
  %45 = load i32, ptr %7, align 4, !tbaa !54
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #3
  store i32 %42, ptr %47, align 4, !tbaa !54
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.QpVector, ptr %48, i32 0, i32 3
  %50 = load i32, ptr %8, align 4, !tbaa !54
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #3
  %53 = load double, ptr %52, align 8, !tbaa !56
  %54 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 2
  %55 = getelementptr inbounds %struct.QpVector, ptr %54, i32 0, i32 3
  %56 = load i32, ptr %10, align 4, !tbaa !54
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %57) #3
  store double %53, ptr %58, align 8, !tbaa !56
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %59

59:                                               ; preds = %25
  %60 = load i32, ptr %7, align 4, !tbaa !54
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %7, align 4, !tbaa !54
  br label %18, !llvm.loop !57

62:                                               ; preds = %24
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.QpVector, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !55
  %66 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 2
  %67 = getelementptr inbounds %struct.QpVector, ptr %66, i32 0, i32 0
  store i32 %65, ptr %67, align 8, !tbaa !59
  %68 = getelementptr inbounds %class.Basis, ptr %11, i32 0, i32 2
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN5Basis5btranERK8QpVectorRS0_bi(ptr noundef nonnull align 8 dereferenceable(2913) %11, ptr noundef nonnull align 8 dereferenceable(56) %68, ptr noundef nonnull align 8 dereferenceable(56) %69, i1 noundef zeroext false, i32 noundef -1)
  ret ptr %70
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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 = { 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, !11, i64 4}
!10 = !{!"_ZTS8QpVector", !11, i64 0, !11, i64 4, !12, i64 8, !16, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!21, !11, i64 236}
!21 = !{!"_ZTS5Basis", !22, i64 0, !10, i64 176, !10, i64 232, !6, i64 288, !29, i64 296, !11, i64 2208, !44, i64 2216, !12, i64 2296, !12, i64 2320, !12, i64 2344, !45, i64 2368, !12, i64 2416, !10, i64 2440, !10, i64 2496, !11, i64 2552, !11, i64 2556, !22, i64 2560, !22, i64 2736, !28, i64 2912}
!22 = !{!"_ZTS11HVectorBaseIdE", !11, i64 0, !11, i64 4, !12, i64 8, !16, i64 32, !23, i64 56, !24, i64 64, !12, i64 88, !6, i64 112, !28, i64 120, !11, i64 124, !12, i64 128, !16, i64 152}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIcSaIcEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTS7HFactor", !23, i64 0, !23, i64 8, !11, i64 16, !12, i64 24, !12, i64 48, !12, i64 72, !30, i64 96, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !23, i64 216, !28, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !23, i64 264, !23, i64 272, !11, i64 280, !23, i64 288, !35, i64 296, !41, i64 304, !28, i64 400, !28, i64 401, !11, i64 404, !11, i64 408, !6, i64 416, !11, i64 424, !12, i64 432, !16, i64 456, !12, i64 480, !12, i64 504, !12, i64 528, !16, i64 552, !12, i64 576, !12, i64 600, !12, i64 624, !12, i64 648, !12, i64 672, !12, i64 696, !12, i64 720, !16, i64 744, !16, i64 768, !12, i64 792, !12, i64 816, !12, i64 840, !12, i64 864, !12, i64 888, !12, i64 912, !24, i64 936, !16, i64 960, !12, i64 984, !12, i64 1008, !12, i64 1032, !12, i64 1056, !12, i64 1080, !12, i64 1104, !12, i64 1128, !12, i64 1152, !12, i64 1176, !12, i64 1200, !16, i64 1224, !12, i64 1248, !12, i64 1272, !16, i64 1296, !12, i64 1320, !12, i64 1344, !16, i64 1368, !11, i64 1392, !11, i64 1396, !12, i64 1400, !12, i64 1424, !12, i64 1448, !16, i64 1472, !12, i64 1496, !12, i64 1520, !12, i64 1544, !12, i64 1568, !16, i64 1592, !16, i64 1616, !12, i64 1640, !12, i64 1664, !12, i64 1688, !16, i64 1712, !22, i64 1736}
!30 = !{!"_ZTS12RefactorInfo", !28, i64 0, !12, i64 8, !12, i64 32, !31, i64 56, !23, i64 80}
!31 = !{!"_ZTSSt6vectorIaSaIaEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt10unique_ptrIN7HFactor7LogDataESt14default_deleteIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_dataIN7HFactor7LogDataESt14default_deleteIS1_ELb1ELb1EE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_implIN7HFactor7LogDataESt14default_deleteIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt5tupleIJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !39, i64 0}
!39 = !{!"_ZTSSt11_Tuple_implILm0EJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !40, i64 0}
!40 = !{!"_ZTSSt10_Head_baseILm0EPN7HFactor7LogDataELb0EE", !6, i64 0}
!41 = !{!"_ZTS15HighsLogOptions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !42, i64 48, !6, i64 80, !28, i64 88}
!42 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !43, i64 0, !6, i64 24}
!43 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!44 = !{!"_ZTS10MatrixBase", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 32, !16, i64 56}
!45 = !{!"_ZTSSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEE", !46, i64 0}
!46 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !47, i64 0}
!47 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !48, i64 0, !50, i64 8}
!48 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !49, i64 0}
!49 = !{!"_ZTSSt4lessIiE"}
!50 = !{!"_ZTSSt15_Rb_tree_header", !51, i64 0, !53, i64 32}
!51 = !{!"_ZTSSt18_Rb_tree_node_base", !52, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!52 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!53 = !{!"long", !7, i64 0}
!54 = !{!11, !11, i64 0}
!55 = !{!10, !11, i64 0}
!56 = !{!23, !23, i64 0}
!57 = distinct !{!57, !58}
!58 = !{!"llvm.loop.mustprogress"}
!59 = !{!21, !11, i64 232}


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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5Basis5btranERK8QpVectorRS0_bi(ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8QpVector5resetEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5Basis5ZprodERK8QpVectorRS0_(ptr noundef nonnull align 8 dereferenceable(2913) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) local_unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @_ZN8QpVector5resetEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
  %5 = getelementptr inbounds i8, ptr %2, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 236
  store i32 %6, ptr %7, align 4, !tbaa !19
  %8 = load i32, ptr %1, align 8, !tbaa !53
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 2320
  %12 = getelementptr inbounds i8, ptr %0, i64 2416
  %13 = getelementptr inbounds i8, ptr %0, i64 240
  %14 = getelementptr inbounds i8, ptr %1, i64 32
  %15 = getelementptr inbounds i8, ptr %0, i64 264
  br label %17

._crit_edge:                                      ; preds = %17, %3
  %.lcssa = phi i32 [ %8, %3 ], [ %31, %17 ]
  store i32 %.lcssa, ptr %4, align 8, !tbaa !54
  %16 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZN5Basis5btranERK8QpVectorRS0_bi(ptr noundef nonnull align 8 dereferenceable(2913) %0, ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) %2, i1 noundef zeroext false, i32 noundef -1)
  ret ptr %16

17:                                               ; preds = %.lr.ph, %17
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %17 ]
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv) #2
  %19 = load i32, ptr %18, align 4, !tbaa !55
  %20 = sext i32 %19 to i64
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %20) #2
  %22 = load i32, ptr %21, align 4, !tbaa !55
  %23 = sext i32 %22 to i64
  %24 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #2
  %25 = load i32, ptr %24, align 4, !tbaa !55
  %26 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #2
  store i32 %25, ptr %26, align 4, !tbaa !55
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %20) #2
  %28 = load double, ptr %27, align 8, !tbaa !56
  %29 = sext i32 %25 to i64
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %29) #2
  store double %28, ptr %30, align 8, !tbaa !56
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = load i32, ptr %1, align 8, !tbaa !53
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next, %32
  br i1 %33, label %17, label %._crit_edge, !llvm.loop !57
}

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

attributes #0 = { 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 #1 = { 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 #2 = { 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, !7, i64 4}
!6 = !{!"_ZTS8QpVector", !7, i64 0, !7, i64 4, !10, i64 8, !15, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIiSaIiEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!20, !7, i64 236}
!20 = !{!"_ZTS5Basis", !21, i64 0, !6, i64 176, !6, i64 232, !14, i64 288, !28, i64 296, !7, i64 2208, !43, i64 2216, !10, i64 2296, !10, i64 2320, !10, i64 2344, !44, i64 2368, !10, i64 2416, !6, i64 2440, !6, i64 2496, !7, i64 2552, !7, i64 2556, !21, i64 2560, !21, i64 2736, !27, i64 2912}
!21 = !{!"_ZTS11HVectorBaseIdE", !7, i64 0, !7, i64 4, !10, i64 8, !15, i64 32, !22, i64 56, !23, i64 64, !10, i64 88, !14, i64 112, !27, i64 120, !7, i64 124, !10, i64 128, !15, i64 152}
!22 = !{!"double", !8, i64 0}
!23 = !{!"_ZTSSt6vectorIcSaIcEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!27 = !{!"bool", !8, i64 0}
!28 = !{!"_ZTS7HFactor", !22, i64 0, !22, i64 8, !7, i64 16, !10, i64 24, !10, i64 48, !10, i64 72, !29, i64 96, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !22, i64 216, !27, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !22, i64 264, !22, i64 272, !7, i64 280, !22, i64 288, !34, i64 296, !40, i64 304, !27, i64 400, !27, i64 401, !7, i64 404, !7, i64 408, !14, i64 416, !7, i64 424, !10, i64 432, !15, i64 456, !10, i64 480, !10, i64 504, !10, i64 528, !15, i64 552, !10, i64 576, !10, i64 600, !10, i64 624, !10, i64 648, !10, i64 672, !10, i64 696, !10, i64 720, !15, i64 744, !15, i64 768, !10, i64 792, !10, i64 816, !10, i64 840, !10, i64 864, !10, i64 888, !10, i64 912, !23, i64 936, !15, i64 960, !10, i64 984, !10, i64 1008, !10, i64 1032, !10, i64 1056, !10, i64 1080, !10, i64 1104, !10, i64 1128, !10, i64 1152, !10, i64 1176, !10, i64 1200, !15, i64 1224, !10, i64 1248, !10, i64 1272, !15, i64 1296, !10, i64 1320, !10, i64 1344, !15, i64 1368, !7, i64 1392, !7, i64 1396, !10, i64 1400, !10, i64 1424, !10, i64 1448, !15, i64 1472, !10, i64 1496, !10, i64 1520, !10, i64 1544, !10, i64 1568, !15, i64 1592, !15, i64 1616, !10, i64 1640, !10, i64 1664, !10, i64 1688, !15, i64 1712, !21, i64 1736}
!29 = !{!"_ZTS12RefactorInfo", !27, i64 0, !10, i64 8, !10, i64 32, !30, i64 56, !22, i64 80}
!30 = !{!"_ZTSSt6vectorIaSaIaEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!34 = !{!"_ZTSSt10unique_ptrIN7HFactor7LogDataESt14default_deleteIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_dataIN7HFactor7LogDataESt14default_deleteIS1_ELb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_implIN7HFactor7LogDataESt14default_deleteIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt5tupleIJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !38, i64 0}
!38 = !{!"_ZTSSt11_Tuple_implILm0EJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !39, i64 0}
!39 = !{!"_ZTSSt10_Head_baseILm0EPN7HFactor7LogDataELb0EE", !14, i64 0}
!40 = !{!"_ZTS15HighsLogOptions", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !41, i64 48, !14, i64 80, !27, i64 88}
!41 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !42, i64 0, !14, i64 24}
!42 = !{!"_ZTSSt14_Function_base", !8, i64 0, !14, i64 16}
!43 = !{!"_ZTS10MatrixBase", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 32, !15, i64 56}
!44 = !{!"_ZTSSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEE", !45, i64 0}
!45 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !46, i64 0}
!46 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !47, i64 0, !49, i64 8}
!47 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !48, i64 0}
!48 = !{!"_ZTSSt4lessIiE"}
!49 = !{!"_ZTSSt15_Rb_tree_header", !50, i64 0, !52, i64 32}
!50 = !{!"_ZTSSt18_Rb_tree_node_base", !51, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!51 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!52 = !{!"long", !8, i64 0}
!53 = !{!6, !7, i64 0}
!54 = !{!20, !7, i64 232}
!55 = !{!7, !7, i64 0}
!56 = !{!22, !22, i64 0}
!57 = distinct !{!57, !58}
!58 = !{!"llvm.loop.mustprogress"}


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