; LLVM IR from ERGO-Code/HiGHS :: src/presolve (HighsPostsolveStack)

; 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.anon = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.presolve::HighsPostsolveStack::ForcingColumn" = type { double, double, i32, i8, i8 }
%struct.HighsSolution = type { i8, i8, %"class.std::vector.20", %"class.std::vector.20", %"class.std::vector.20", %"class.std::vector.20" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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.HighsBasis = type { i8, i8, i8, i8, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::vector.26", %"class.std::vector.26" }
%"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.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.54 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [2 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: 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 nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(1020) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull align 8 dereferenceable(96) %4) #2 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca %class.anon, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 -1, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 4, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %19 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingColumn", ptr %18, i32 0, i32 1
  %20 = load double, ptr %19, align 8, !tbaa !13
  store double %20, ptr %13, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  store i8 0, ptr %15, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  %21 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %22, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 1
  store ptr %14, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 2
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %25, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 3
  store ptr %13, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 4
  store ptr %11, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 5
  store ptr %12, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 6
  store ptr %18, ptr %29, align 8, !tbaa !19
  %30 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 7
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %31, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingColumn", ptr %18, i32 0, i32 3
  %33 = load i8, ptr %32, align 4, !tbaa !21, !range !22, !noundef !23
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %36

35:                                               ; preds = %5
  call void @"_ZZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasisENK3$_0clEi"(ptr noundef nonnull align 8 dereferenceable(64) %16, i32 noundef 1)
  br label %37

36:                                               ; preds = %5
  call void @"_ZZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasisENK3$_0clEi"(ptr noundef nonnull align 8 dereferenceable(64) %16, i32 noundef -1)
  br label %37

37:                                               ; preds = %36, %35
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %48

40:                                               ; preds = %37
  br i1 false, label %41, label %48

41:                                               ; preds = %40
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = icmp sgt i32 %43, 1
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, ptr @.str.55, ptr @.str.56
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.54, i32 noundef %42, ptr noundef %46)
  br label %48

48:                                               ; preds = %41, %40, %37
  %49 = load double, ptr %13, align 8, !tbaa !17
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.HighsSolution, ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingColumn", ptr %18, i32 0, i32 2
  %53 = load i32, ptr %52, align 8, !tbaa !24
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %54) #5
  store double %49, ptr %55, align 8, !tbaa !17
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.HighsSolution, ptr %56, i32 0, i32 1
  %58 = load i8, ptr %57, align 1, !tbaa !25, !range !22, !noundef !23
  %59 = trunc i8 %58 to i1
  br i1 %59, label %61, label %60

60:                                               ; preds = %48
  store i32 1, ptr %17, align 4
  br label %102

61:                                               ; preds = %48
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.HighsSolution, ptr %62, i32 0, i32 3
  %64 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingColumn", ptr %18, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !24
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %66) #5
  store double 0.000000e+00, ptr %67, align 8, !tbaa !17
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.HighsBasis, ptr %68, i32 0, i32 0
  %70 = load i8, ptr %69, align 8, !tbaa !31, !range !22, !noundef !23
  %71 = trunc i8 %70 to i1
  br i1 %71, label %73, label %72

72:                                               ; preds = %61
  store i32 1, ptr %17, align 4
  br label %102

73:                                               ; preds = %61
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = icmp eq i32 %74, -1
  br i1 %75, label %76, label %88

76:                                               ; preds = %73
  %77 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingColumn", ptr %18, i32 0, i32 3
  %78 = load i8, ptr %77, align 4, !tbaa !21, !range !22, !noundef !23
  %79 = trunc i8 %78 to i1
  %80 = zext i1 %79 to i64
  %81 = select i1 %79, i8 0, i8 2
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.HighsBasis, ptr %82, i32 0, i32 7
  %84 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingColumn", ptr %18, i32 0, i32 2
  %85 = load i32, ptr %84, align 8, !tbaa !24
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %86) #5
  store i8 %81, ptr %87, align 1, !tbaa !11
  br label %101

88:                                               ; preds = %73
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.HighsBasis, ptr %89, i32 0, i32 7
  %91 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingColumn", ptr %18, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !24
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %93) #5
  store i8 1, ptr %94, align 1, !tbaa !11
  %95 = load i8, ptr %12, align 1, !tbaa !11
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.HighsBasis, ptr %96, i32 0, i32 8
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #5
  store i8 %95, ptr %100, align 1, !tbaa !11
  br label %101

101:                                              ; preds = %88, %76
  store i32 0, ptr %17, align 4
  br label %102

102:                                              ; preds = %101, %72, %60
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %103 = load i32, ptr %17, align 4
  switch i32 %103, label %105 [
    i32 0, label %104
    i32 1, label %104
  ]

104:                                              ; preds = %102, %102
  ret void

105:                                              ; preds = %102
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasisENK3$_0clEi"(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #3 align 2

declare i32 @printf(ptr noundef, ...) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { "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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS16HighsBasisStatus", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTSN8presolve19HighsPostsolveStack13ForcingColumnE", !15, i64 0, !15, i64 8, !10, i64 16, !16, i64 20, !16, i64 21}
!15 = !{!"double", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!15, !15, i64 0}
!18 = !{!16, !16, i64 0}
!19 = !{!20, !6, i64 48}
!20 = !{!"_ZTSZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasisE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!21 = !{!14, !16, i64 20}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!14, !10, i64 16}
!25 = !{!26, !16, i64 1}
!26 = !{!"_ZTS13HighsSolution", !16, i64 0, !16, i64 1, !27, i64 8, !27, i64 32, !27, i64 56, !27, i64 80}
!27 = !{!"_ZTSSt6vectorIdSaIdEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!32, !16, i64 0}
!32 = !{!"_ZTS10HighsBasis", !16, i64 0, !16, i64 1, !16, i64 2, !16, i64 3, !10, i64 4, !10, i64 8, !33, i64 16, !36, i64 48, !36, i64 72}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !35, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{!"long", !7, i64 0}
!36 = !{!"_ZTSSt6vectorI16HighsBasisStatusSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseI16HighsBasisStatusSaIS0_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


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

%class.anon = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; 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 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 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(1020) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull align 8 dereferenceable(96) %4) local_unnamed_addr #1 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca %class.anon, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store i32 -1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #3
  store i8 4, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load double, ptr %11, align 8, !tbaa !11
  store double %12, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #3
  store ptr %2, ptr %10, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %9, ptr %13, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %3, ptr %14, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %8, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %10, i64 32
  store ptr %6, ptr %16, align 8, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %10, i64 40
  store ptr %7, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %10, i64 48
  store ptr %0, ptr %18, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %10, i64 56
  store ptr %1, ptr %19, align 8, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %0, i64 20
  %21 = load i8, ptr %20, align 4, !tbaa !20, !range !21, !noundef !22
  %22 = trunc nuw i8 %21 to i1
  %. = select i1 %22, i32 1, i32 -1
  call void @"_ZZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasisENK3$_0clEi"(ptr noundef nonnull align 8 dereferenceable(64) %10, i32 noundef %.)
  %23 = load double, ptr %8, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %3, i64 8
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load i32, ptr %25, align 8, !tbaa !23
  %27 = sext i32 %26 to i64
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %27) #3
  store double %23, ptr %28, align 8, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %3, i64 1
  %30 = load i8, ptr %29, align 1, !tbaa !24, !range !21, !noundef !22
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %55

32:                                               ; preds = %5
  %33 = getelementptr inbounds i8, ptr %3, i64 32
  %34 = load i32, ptr %25, align 8, !tbaa !23
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #3
  store double 0.000000e+00, ptr %36, align 8, !tbaa !15
  %37 = load i8, ptr %4, align 8, !tbaa !30, !range !21, !noundef !22
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %55

39:                                               ; preds = %32
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = icmp eq i32 %40, -1
  br i1 %41, label %42, label %46

42:                                               ; preds = %39
  %43 = load i8, ptr %20, align 4, !tbaa !20, !range !21, !noundef !22
  %44 = trunc nuw i8 %43 to i1
  %45 = select i1 %44, i8 0, i8 2
  br label %.sink.split

46:                                               ; preds = %39
  %47 = getelementptr inbounds i8, ptr %4, i64 48
  %48 = load i32, ptr %25, align 8, !tbaa !23
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #3
  store i8 1, ptr %50, align 1, !tbaa !9
  %51 = load i8, ptr %7, align 1, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %46, %42
  %.sink = phi i64 [ 72, %46 ], [ 48, %42 ]
  %.sink15.in = phi ptr [ %6, %46 ], [ %25, %42 ]
  %.sink11 = phi i8 [ %51, %46 ], [ %45, %42 ]
  %52 = getelementptr inbounds i8, ptr %4, i64 %.sink
  %.sink15 = load i32, ptr %.sink15.in, align 4, !tbaa !5
  %53 = sext i32 %.sink15 to i64
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %53) #3
  store i8 %.sink11, ptr %54, align 1, !tbaa !9
  br label %55

55:                                               ; preds = %.sink.split, %32, %5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasisENK3$_0clEi"(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #2 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS16HighsBasisStatus", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTSN8presolve19HighsPostsolveStack13ForcingColumnE", !13, i64 0, !13, i64 8, !6, i64 16, !14, i64 20, !14, i64 21}
!13 = !{!"double", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!19, !17, i64 48}
!19 = !{!"_ZTSZNK8presolve19HighsPostsolveStack13ForcingColumn4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasisE3$_0", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56}
!20 = !{!12, !14, i64 20}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!12, !6, i64 16}
!24 = !{!25, !14, i64 1}
!25 = !{!"_ZTS13HighsSolution", !14, i64 0, !14, i64 1, !26, i64 8, !26, i64 32, !26, i64 56, !26, i64 80}
!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", !17, i64 0, !17, i64 8, !17, i64 16}
!30 = !{!31, !14, i64 0}
!31 = !{!"_ZTS10HighsBasis", !14, i64 0, !14, i64 1, !14, i64 2, !14, i64 3, !6, i64 4, !6, i64 8, !32, i64 16, !35, i64 48, !35, i64 72}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !34, i64 8, !7, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSSt6vectorI16HighsBasisStatusSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseI16HighsBasisStatusSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}


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