; LLVM IR from ERGO-Code/HiGHS :: src/interfaces (highs_c_api)

; 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.HighsLinearObjective = type <{ double, double, %"class.std::vector", double, double, i32, [4 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 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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 uwtable
define dso_local i32 @Highs_passLinearObjectives(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #1 personality ptr @__gxx_personality_v0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.HighsLinearObjective, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = call i32 @Highs_clearLinearObjectives(ptr noundef %26)
  store i32 %27, ptr %18, align 4, !tbaa !9
  %28 = load i32, ptr %18, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %8
  %31 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %31, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %127

32:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @_ZN20HighsLinearObjectiveC2Ev(ptr noundef nonnull align 8 dereferenceable(60) %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %119, %32
  %34 = load i32, ptr %21, align 4, !tbaa !9
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 2, ptr %19, align 4
  br label %123

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = invoke i32 @Highs_getNumCol(ptr noundef %39)
          to label %41 unwind label %59

41:                                               ; preds = %38
  store i32 %40, ptr %22, align 4, !tbaa !9
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load i32, ptr %21, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 0
  store double %46, ptr %47, align 8, !tbaa !13
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load i32, ptr %21, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 1
  store double %52, ptr %53, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %74, %41
  %55 = load i32, ptr %25, align 4, !tbaa !9
  %56 = load i32, ptr %22, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %63, label %58

58:                                               ; preds = %54
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %81

59:                                               ; preds = %81, %38
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %23, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %24, align 4
  br label %122

63:                                               ; preds = %54
  %64 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 2
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i32, ptr %21, align 4, !tbaa !9
  %67 = load i32, ptr %22, align 4, !tbaa !9
  %68 = mul nsw i32 %66, %67
  %69 = load i32, ptr %25, align 4, !tbaa !9
  %70 = add nsw i32 %68, %69
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %65, i64 %71
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %73 unwind label %77

73:                                               ; preds = %63
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %25, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %25, align 4, !tbaa !9
  br label %54, !llvm.loop !20

77:                                               ; preds = %63
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %23, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %122

81:                                               ; preds = %58
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load i32, ptr %21, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 3
  store double %86, ptr %87, align 8, !tbaa !22
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = load i32, ptr %21, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %88, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 4
  store double %92, ptr %93, align 8, !tbaa !23
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  %95 = load i32, ptr %21, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i32, ptr %94, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 5
  store i32 %98, ptr %99, align 8, !tbaa !24
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load i32, ptr %21, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 0
  store double %104, ptr %105, align 8, !tbaa !13
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load i32, ptr %21, align 4, !tbaa !9
  %108 = invoke noundef i32 @_ZN5Highs18addLinearObjectiveERK20HighsLinearObjectivei(ptr noundef nonnull align 8 dereferenceable(20928) %106, ptr noundef nonnull align 8 dereferenceable(60) %20, i32 noundef %107)
          to label %109 unwind label %59

109:                                              ; preds = %81
  store i32 %108, ptr %18, align 4, !tbaa !9
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %113, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %116

114:                                              ; preds = %109
  %115 = getelementptr inbounds %struct.HighsLinearObjective, ptr %20, i32 0, i32 2
  call void @_ZNSt6vectorIdSaIdEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #5
  store i32 0, ptr %19, align 4
  br label %116

116:                                              ; preds = %114, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %117 = load i32, ptr %19, align 4
  switch i32 %117, label %123 [
    i32 0, label %118
  ]

118:                                              ; preds = %116
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %21, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %21, align 4, !tbaa !9
  br label %33, !llvm.loop !25

122:                                              ; preds = %77, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @_ZN20HighsLinearObjectiveD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %129

123:                                              ; preds = %116, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %124 = load i32, ptr %19, align 4
  switch i32 %124, label %126 [
    i32 2, label %125
  ]

125:                                              ; preds = %123
  store i32 0, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %126

126:                                              ; preds = %125, %123
  call void @_ZN20HighsLinearObjectiveD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  br label %127

127:                                              ; preds = %126, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %128 = load i32, ptr %9, align 4
  ret i32 %128

129:                                              ; preds = %122
  %130 = load ptr, ptr %23, align 8
  %131 = load i32, ptr %24, align 4
  %132 = insertvalue { ptr, i32 } poison, ptr %130, 0
  %133 = insertvalue { ptr, i32 } %132, i32 %131, 1
  resume { ptr, i32 } %133
}

; Function Attrs: mustprogress uwtable
declare dso_local i32 @Highs_clearLinearObjectives(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @Highs_getNumCol(ptr noundef) #1

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

declare noundef i32 @_ZN5Highs18addLinearObjectiveERK20HighsLinearObjectivei(ptr noundef nonnull align 8 dereferenceable(20928), ptr noundef nonnull align 8 dereferenceable(60), i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { 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 #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 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS20HighsLinearObjective", !12, i64 0, !12, i64 8, !15, i64 16, !12, i64 40, !12, i64 48, !10, i64 56}
!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", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!14, !12, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !12, i64 40}
!23 = !{!14, !12, i64 48}
!24 = !{!14, !10, i64 56}
!25 = distinct !{!25, !21}


; 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.HighsLinearObjective = type <{ double, double, %"class.std::vector", double, double, i32, [4 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 }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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 uwtable
define dso_local i32 @Highs_passLinearObjectives(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %9 = alloca %struct.HighsLinearObjective, align 8
  %10 = tail call i32 @Highs_clearLinearObjectives(ptr noundef %0)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %11, label %45

11:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @_ZN20HighsLinearObjectiveC2Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #5
  %.not4550 = icmp sgt i32 %1, 0
  br i1 %.not4550, label %.lr.ph53, label %._crit_edge54

.lr.ph53:                                         ; preds = %11
  %12 = getelementptr inbounds i8, ptr %9, i64 8
  %13 = getelementptr inbounds i8, ptr %9, i64 16
  %14 = getelementptr inbounds i8, ptr %9, i64 40
  %15 = getelementptr inbounds i8, ptr %9, i64 48
  %16 = getelementptr inbounds i8, ptr %9, i64 56
  %wide.trip.count61 = zext nneg i32 %1 to i64
  br label %17

17:                                               ; preds = %.lr.ph53, %43
  %indvars.iv58 = phi i64 [ 0, %.lr.ph53 ], [ %indvars.iv.next59, %43 ]
  %18 = invoke i32 @Highs_getNumCol(ptr noundef %0)
          to label %19 unwind label %36

19:                                               ; preds = %17
  %20 = getelementptr inbounds double, ptr %2, i64 %indvars.iv58
  %21 = load double, ptr %20, align 8, !tbaa !5
  store double %21, ptr %9, align 8, !tbaa !9
  %22 = getelementptr inbounds double, ptr %3, i64 %indvars.iv58
  %23 = load double, ptr %22, align 8, !tbaa !5
  store double %23, ptr %12, align 8, !tbaa !17
  %24 = icmp sgt i32 %18, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %25 = zext nneg i32 %18 to i64
  %26 = mul nuw nsw i64 %indvars.iv58, %25
  %invariant.gep = getelementptr inbounds double, ptr %4, i64 %26
  br label %38

._crit_edge.loopexit:                             ; preds = %39
  %.pre = load double, ptr %20, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %19
  %27 = phi double [ %.pre, %._crit_edge.loopexit ], [ %21, %19 ]
  %28 = getelementptr inbounds double, ptr %5, i64 %indvars.iv58
  %29 = load double, ptr %28, align 8, !tbaa !5
  store double %29, ptr %14, align 8, !tbaa !18
  %30 = getelementptr inbounds double, ptr %6, i64 %indvars.iv58
  %31 = load double, ptr %30, align 8, !tbaa !5
  store double %31, ptr %15, align 8, !tbaa !19
  %32 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv58
  %33 = load i32, ptr %32, align 4, !tbaa !20
  store i32 %33, ptr %16, align 8, !tbaa !21
  store double %27, ptr %9, align 8, !tbaa !9
  %34 = trunc nuw nsw i64 %indvars.iv58 to i32
  %35 = invoke noundef i32 @_ZN5Highs18addLinearObjectiveERK20HighsLinearObjectivei(ptr noundef nonnull align 8 dereferenceable(20928) %0, ptr noundef nonnull align 8 dereferenceable(60) %9, i32 noundef %34)
          to label %42 unwind label %36

36:                                               ; preds = %._crit_edge, %17
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %44

38:                                               ; preds = %.lr.ph, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %39 ]
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %gep)
          to label %39 unwind label %40

39:                                               ; preds = %38
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %25
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %38, !llvm.loop !22

40:                                               ; preds = %38
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %._crit_edge
  %.not44 = icmp eq i32 %35, 0
  br i1 %.not44, label %43, label %._crit_edge54

43:                                               ; preds = %42
  call void @_ZNSt6vectorIdSaIdEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next59, %wide.trip.count61
  br i1 %exitcond62.not, label %._crit_edge54, label %17, !llvm.loop !24

44:                                               ; preds = %40, %36
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %37, %36 ]
  call void @_ZN20HighsLinearObjectiveD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  resume { ptr, i32 } %.pn

._crit_edge54:                                    ; preds = %43, %42, %11
  %spec.select = phi i32 [ 0, %11 ], [ %35, %42 ], [ 0, %43 ]
  call void @_ZN20HighsLinearObjectiveD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  br label %45

45:                                               ; preds = %8, %._crit_edge54
  %.4 = phi i32 [ %spec.select, %._crit_edge54 ], [ %10, %8 ]
  ret i32 %.4
}

; Function Attrs: mustprogress uwtable
declare dso_local i32 @Highs_clearLinearObjectives(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @Highs_getNumCol(ptr noundef) local_unnamed_addr #1

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

declare noundef i32 @_ZN5Highs18addLinearObjectiveERK20HighsLinearObjectivei(ptr noundef nonnull align 8 dereferenceable(20928), ptr noundef nonnull align 8 dereferenceable(60), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS20HighsLinearObjective", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 40, !6, i64 48, !16, i64 56}
!11 = !{!"_ZTSSt6vectorIdSaIdEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!10, !6, i64 8}
!18 = !{!10, !6, i64 40}
!19 = !{!10, !6, i64 48}
!20 = !{!16, !16, i64 0}
!21 = !{!10, !16, i64 56}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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