; LLVM IR from simbody/simbody :: SimTKmath/Optimizers/src/IpOpt (IpStdAugSystemSolver)

; 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.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.41" = type { i8 }
%"class.SimTKIpopt::SmartPtr.45" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.23" = type { i8 }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.53" = type { i8 }
%"class.SimTKIpopt::StdAugSystemSolver" = type <{ %"class.SimTKIpopt::AugSystemSolver.base", [7 x i8], %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.13", %"class.SimTKIpopt::SmartPtr.13", %"class.SimTKIpopt::SmartPtr.13", %"class.SimTKIpopt::SmartPtr.14", %"class.SimTKIpopt::SmartPtr.13", %"class.SimTKIpopt::SmartPtr.15", i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, i32, i32, double, i32, i32, double, i32, [4 x i8], %"class.SimTKIpopt::SmartPtr.16", %"class.SimTKIpopt::SmartPtr.17", i8, [7 x i8] }>
%"class.SimTKIpopt::AugSystemSolver.base" = type { %"class.SimTKIpopt::AlgorithmStrategyObject.base" }
%"class.SimTKIpopt::AlgorithmStrategyObject.base" = type <{ %"class.SimTKIpopt::ReferencedObject.base", [4 x i8], %"class.SimTKIpopt::SmartPtr.6", %"class.SimTKIpopt::SmartPtr.7", %"class.SimTKIpopt::SmartPtr.8", %"class.SimTKIpopt::SmartPtr.9", i8 }>
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.SimTKIpopt::SmartPtr.6" = type { ptr }
%"class.SimTKIpopt::SmartPtr.7" = type { ptr }
%"class.SimTKIpopt::SmartPtr.8" = type { ptr }
%"class.SimTKIpopt::SmartPtr.9" = type { ptr }
%"class.SimTKIpopt::SmartPtr.10" = type { ptr }
%"class.SimTKIpopt::SmartPtr.11" = type { ptr }
%"class.SimTKIpopt::SmartPtr.12" = type { ptr }
%"class.SimTKIpopt::SmartPtr.14" = type { ptr }
%"class.SimTKIpopt::SmartPtr.13" = type { ptr }
%"class.SimTKIpopt::SmartPtr.15" = type { ptr }
%"class.SimTKIpopt::SmartPtr.16" = type { ptr }
%"class.SimTKIpopt::SmartPtr.17" = type { ptr }

@.str.4 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@_ZTIN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.13 = external hidden unnamed_addr constant [39 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt18StdAugSystemSolver10MultiSolveEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dPKNS_6MatrixES6_dS9_S6_dRSt6vectorINS_8SmartPtrIS5_EESaISC_EESF_SF_SF_RSA_INSB_IS4_EESaISG_EESJ_SJ_SJ_bi(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef %1, double noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, double noundef %9, ptr noundef %10, ptr noundef %11, double noundef %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20, i1 noundef zeroext %21, i32 noundef %22) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca double, align 8
  %27 = alloca ptr, align 8
  %28 = alloca double, align 8
  %29 = alloca ptr, align 8
  %30 = alloca double, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca double, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca double, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i8, align 1
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %"class.std::vector.39", align 8
  %49 = alloca %"class.std::allocator.41", align 1
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %54 = alloca i32, align 4
  %55 = alloca [16 x i8], align 16
  %56 = alloca %"class.std::__cxx11::basic_string", align 8
  %57 = alloca %"class.std::allocator.23", align 1
  %58 = alloca %"class.std::__cxx11::basic_string", align 8
  %59 = alloca %"class.std::allocator.23", align 1
  %60 = alloca %"class.std::__cxx11::basic_string", align 8
  %61 = alloca %"class.std::allocator.23", align 1
  %62 = alloca %"class.std::__cxx11::basic_string", align 8
  %63 = alloca %"class.std::allocator.23", align 1
  %64 = alloca i32, align 4
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca ptr, align 8
  %68 = alloca i32, align 4
  %69 = alloca %"class.std::vector.51", align 8
  %70 = alloca %"class.std::allocator.53", align 1
  %71 = alloca i32, align 4
  %72 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  %75 = alloca i32, align 4
  %76 = alloca [16 x i8], align 16
  %77 = alloca %"class.std::__cxx11::basic_string", align 8
  %78 = alloca %"class.std::allocator.23", align 1
  %79 = alloca %"class.std::__cxx11::basic_string", align 8
  %80 = alloca %"class.std::allocator.23", align 1
  %81 = alloca %"class.std::__cxx11::basic_string", align 8
  %82 = alloca %"class.std::allocator.23", align 1
  %83 = alloca %"class.std::__cxx11::basic_string", align 8
  %84 = alloca %"class.std::allocator.23", align 1
  %85 = alloca i1, align 1
  store ptr %0, ptr %24, align 8, !tbaa !5
  store ptr %1, ptr %25, align 8, !tbaa !5
  store double %2, ptr %26, align 8, !tbaa !9
  store ptr %3, ptr %27, align 8, !tbaa !5
  store double %4, ptr %28, align 8, !tbaa !9
  store ptr %5, ptr %29, align 8, !tbaa !5
  store double %6, ptr %30, align 8, !tbaa !9
  store ptr %7, ptr %31, align 8, !tbaa !5
  store ptr %8, ptr %32, align 8, !tbaa !5
  store double %9, ptr %33, align 8, !tbaa !9
  store ptr %10, ptr %34, align 8, !tbaa !5
  store ptr %11, ptr %35, align 8, !tbaa !5
  store double %12, ptr %36, align 8, !tbaa !9
  store ptr %13, ptr %37, align 8, !tbaa !5
  store ptr %14, ptr %38, align 8, !tbaa !5
  store ptr %15, ptr %39, align 8, !tbaa !5
  store ptr %16, ptr %40, align 8, !tbaa !5
  store ptr %17, ptr %41, align 8, !tbaa !5
  store ptr %18, ptr %42, align 8, !tbaa !5
  store ptr %19, ptr %43, align 8, !tbaa !5
  store ptr %20, ptr %44, align 8, !tbaa !5
  %86 = zext i1 %21 to i8
  store i8 %86, ptr %45, align 1, !tbaa !11
  store i32 %22, ptr %46, align 4, !tbaa !13
  %87 = load ptr, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %88 = load ptr, ptr %37, align 8, !tbaa !5
  %89 = call noundef i64 @_ZNKSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #8
  %90 = trunc i64 %89 to i32
  store i32 %90, ptr %47, align 4, !tbaa !13
  %91 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 28
  %92 = call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17CompoundSymMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %91)
  br i1 %92, label %133, label %93

93:                                               ; preds = %23
  %94 = load ptr, ptr %25, align 8, !tbaa !5
  %95 = load ptr, ptr %31, align 8, !tbaa !5
  %96 = load ptr, ptr %34, align 8, !tbaa !5
  %97 = load ptr, ptr %37, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef 0) #8
  %99 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %98)
  %100 = load ptr, ptr %38, align 8, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef 0) #8
  %102 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %101)
  %103 = load ptr, ptr %39, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef 0) #8
  %105 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %104)
  %106 = load ptr, ptr %40, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef 0) #8
  %108 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %107)
  call void @_ZN10SimTKIpopt18StdAugSystemSolver20CreateAugmentedSpaceERKNS_9SymMatrixERKNS_6MatrixES6_RKNS_6VectorES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(233) %87, ptr noundef nonnull align 8 dereferenceable(80) %94, ptr noundef nonnull align 8 dereferenceable(69) %95, ptr noundef nonnull align 8 dereferenceable(69) %96, ptr noundef nonnull align 8 dereferenceable(205) %99, ptr noundef nonnull align 8 dereferenceable(205) %102, ptr noundef nonnull align 8 dereferenceable(205) %105, ptr noundef nonnull align 8 dereferenceable(205) %108)
  %109 = load ptr, ptr %25, align 8, !tbaa !5
  %110 = load double, ptr %26, align 8, !tbaa !9
  %111 = load ptr, ptr %27, align 8, !tbaa !5
  %112 = load double, ptr %28, align 8, !tbaa !9
  %113 = load ptr, ptr %29, align 8, !tbaa !5
  %114 = load double, ptr %30, align 8, !tbaa !9
  %115 = load ptr, ptr %31, align 8, !tbaa !5
  %116 = load ptr, ptr %32, align 8, !tbaa !5
  %117 = load double, ptr %33, align 8, !tbaa !9
  %118 = load ptr, ptr %34, align 8, !tbaa !5
  %119 = load ptr, ptr %35, align 8, !tbaa !5
  %120 = load double, ptr %36, align 8, !tbaa !9
  %121 = load ptr, ptr %37, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef 0) #8
  %123 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %122)
  %124 = load ptr, ptr %38, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef 0) #8
  %126 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %125)
  %127 = load ptr, ptr %39, align 8, !tbaa !5
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef 0) #8
  %129 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %128)
  %130 = load ptr, ptr %40, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef 0) #8
  %132 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %131)
  call void @_ZN10SimTKIpopt18StdAugSystemSolver21CreateAugmentedSystemEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_(ptr noundef nonnull align 8 dereferenceable(233) %87, ptr noundef %109, double noundef %110, ptr noundef %111, double noundef %112, ptr noundef %113, double noundef %114, ptr noundef nonnull align 8 dereferenceable(69) %115, ptr noundef %116, double noundef %117, ptr noundef nonnull align 8 dereferenceable(69) %118, ptr noundef %119, double noundef %120, ptr noundef nonnull align 8 dereferenceable(205) %123, ptr noundef nonnull align 8 dereferenceable(205) %126, ptr noundef nonnull align 8 dereferenceable(205) %129, ptr noundef nonnull align 8 dereferenceable(205) %132)
  br label %133

133:                                              ; preds = %93, %23
  %134 = load ptr, ptr %25, align 8, !tbaa !5
  %135 = load double, ptr %26, align 8, !tbaa !9
  %136 = load ptr, ptr %27, align 8, !tbaa !5
  %137 = load double, ptr %28, align 8, !tbaa !9
  %138 = load ptr, ptr %29, align 8, !tbaa !5
  %139 = load double, ptr %30, align 8, !tbaa !9
  %140 = load ptr, ptr %31, align 8, !tbaa !5
  %141 = load ptr, ptr %32, align 8, !tbaa !5
  %142 = load double, ptr %33, align 8, !tbaa !9
  %143 = load ptr, ptr %34, align 8, !tbaa !5
  %144 = load ptr, ptr %35, align 8, !tbaa !5
  %145 = load double, ptr %36, align 8, !tbaa !9
  %146 = call noundef zeroext i1 @_ZN10SimTKIpopt18StdAugSystemSolver29AugmentedSystemRequiresChangeEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_d(ptr noundef nonnull align 8 dereferenceable(233) %87, ptr noundef %134, double noundef %135, ptr noundef %136, double noundef %137, ptr noundef %138, double noundef %139, ptr noundef nonnull align 8 dereferenceable(69) %140, ptr noundef %141, double noundef %142, ptr noundef nonnull align 8 dereferenceable(69) %143, ptr noundef %144, double noundef %145)
  br i1 %146, label %147, label %172

147:                                              ; preds = %133
  %148 = load ptr, ptr %25, align 8, !tbaa !5
  %149 = load double, ptr %26, align 8, !tbaa !9
  %150 = load ptr, ptr %27, align 8, !tbaa !5
  %151 = load double, ptr %28, align 8, !tbaa !9
  %152 = load ptr, ptr %29, align 8, !tbaa !5
  %153 = load double, ptr %30, align 8, !tbaa !9
  %154 = load ptr, ptr %31, align 8, !tbaa !5
  %155 = load ptr, ptr %32, align 8, !tbaa !5
  %156 = load double, ptr %33, align 8, !tbaa !9
  %157 = load ptr, ptr %34, align 8, !tbaa !5
  %158 = load ptr, ptr %35, align 8, !tbaa !5
  %159 = load double, ptr %36, align 8, !tbaa !9
  %160 = load ptr, ptr %37, align 8, !tbaa !5
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef 0) #8
  %162 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %161)
  %163 = load ptr, ptr %38, align 8, !tbaa !5
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef 0) #8
  %165 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %164)
  %166 = load ptr, ptr %39, align 8, !tbaa !5
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef 0) #8
  %168 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %167)
  %169 = load ptr, ptr %40, align 8, !tbaa !5
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef 0) #8
  %171 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %170)
  call void @_ZN10SimTKIpopt18StdAugSystemSolver21CreateAugmentedSystemEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_(ptr noundef nonnull align 8 dereferenceable(233) %87, ptr noundef %148, double noundef %149, ptr noundef %150, double noundef %151, ptr noundef %152, double noundef %153, ptr noundef nonnull align 8 dereferenceable(69) %154, ptr noundef %155, double noundef %156, ptr noundef nonnull align 8 dereferenceable(69) %157, ptr noundef %158, double noundef %159, ptr noundef nonnull align 8 dereferenceable(205) %162, ptr noundef nonnull align 8 dereferenceable(205) %165, ptr noundef nonnull align 8 dereferenceable(205) %168, ptr noundef nonnull align 8 dereferenceable(205) %171)
  br label %172

172:                                              ; preds = %147, %133
  call void @llvm.lifetime.start.p0(i64 24, ptr %48) #8
  %173 = load i32, ptr %47, align 4, !tbaa !13
  %174 = sext i32 %173 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #8
  call void @_ZNSaIN10SimTKIpopt8SmartPtrIKNS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #8
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %174, ptr noundef nonnull align 1 dereferenceable(1) %49)
          to label %175 unwind label %181

175:                                              ; preds = %172
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  store i32 0, ptr %52, align 4, !tbaa !13
  br label %176

176:                                              ; preds = %249, %175
  %177 = load i32, ptr %52, align 4, !tbaa !13
  %178 = load i32, ptr %47, align 4, !tbaa !13
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %185, label %180

180:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %281

181:                                              ; preds = %172
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %50, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %51, align 4
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #8
  br label %609

185:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %186 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 10
  %187 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19CompoundVectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %186)
          to label %188 unwind label %252

188:                                              ; preds = %185
  %189 = load ptr, ptr %187, align 8, !tbaa !15
  %190 = getelementptr inbounds ptr, ptr %189, i64 4
  %191 = load ptr, ptr %190, align 8
  %192 = invoke noundef ptr %191(ptr noundef nonnull align 8 dereferenceable(48) %187, i1 noundef zeroext true)
          to label %193 unwind label %252

193:                                              ; preds = %188
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef %192)
          to label %194 unwind label %252

194:                                              ; preds = %193
  %195 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %196 unwind label %256

196:                                              ; preds = %194
  %197 = load ptr, ptr %37, align 8, !tbaa !5
  %198 = load i32, ptr %52, align 4, !tbaa !13
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %197, i64 noundef %199) #8
  %201 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %200)
          to label %202 unwind label %256

202:                                              ; preds = %196
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %195, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(205) %201)
          to label %203 unwind label %256

203:                                              ; preds = %202
  %204 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %205 unwind label %256

205:                                              ; preds = %203
  %206 = load ptr, ptr %38, align 8, !tbaa !5
  %207 = load i32, ptr %52, align 4, !tbaa !13
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %208) #8
  %210 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %209)
          to label %211 unwind label %256

211:                                              ; preds = %205
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %204, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(205) %210)
          to label %212 unwind label %256

212:                                              ; preds = %211
  %213 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %214 unwind label %256

214:                                              ; preds = %212
  %215 = load ptr, ptr %39, align 8, !tbaa !5
  %216 = load i32, ptr %52, align 4, !tbaa !13
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #8
  %219 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %218)
          to label %220 unwind label %256

220:                                              ; preds = %214
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %213, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(205) %219)
          to label %221 unwind label %256

221:                                              ; preds = %220
  %222 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %223 unwind label %256

223:                                              ; preds = %221
  %224 = load ptr, ptr %40, align 8, !tbaa !5
  %225 = load i32, ptr %52, align 4, !tbaa !13
  %226 = sext i32 %225 to i64
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %226) #8
  %228 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %227)
          to label %229 unwind label %256

229:                                              ; preds = %223
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %222, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(205) %228)
          to label %230 unwind label %256

230:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  store i32 16, ptr %54, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #8
  %231 = getelementptr inbounds [16 x i8], ptr %55, i64 0, i64 0
  %232 = load i32, ptr %52, align 4, !tbaa !13
  %233 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %231, i64 noundef 16, ptr noundef @.str.5, i32 noundef %232) #8
  %234 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %235 unwind label %260

235:                                              ; preds = %230
  %236 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %237 unwind label %260

237:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 32, ptr %56) #8
  %238 = getelementptr inbounds [16 x i8], ptr %55, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef %238, ptr noundef nonnull align 1 dereferenceable(1) %57)
          to label %239 unwind label %264

239:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 32, ptr %58) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %59) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %59)
          to label %240 unwind label %268

240:                                              ; preds = %239
  invoke void @_ZNK10SimTKIpopt6Vector5PrintERKNS_10JournalistENS_13EJournalLevelENS_16EJournalCategoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSD_(ptr noundef nonnull align 8 dereferenceable(205) %234, ptr noundef nonnull align 8 dereferenceable(40) %236, i32 noundef 8, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %56, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %58)
          to label %241 unwind label %272

241:                                              ; preds = %240
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #8
  %242 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_14CompoundVectorEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %243 unwind label %260

243:                                              ; preds = %241
  %244 = load i32, ptr %52, align 4, !tbaa !13
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %245) #8
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef %242)
          to label %248 unwind label %260

248:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %52, align 4, !tbaa !13
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %52, align 4, !tbaa !13
  br label %176, !llvm.loop !17

252:                                              ; preds = %193, %188, %185
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %50, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %51, align 4
  br label %280

256:                                              ; preds = %229, %223, %221, %220, %214, %212, %211, %205, %203, %202, %196, %194
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %50, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %51, align 4
  br label %279

260:                                              ; preds = %243, %241, %235, %230
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %50, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %51, align 4
  br label %278

264:                                              ; preds = %237
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %50, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %51, align 4
  br label %277

268:                                              ; preds = %239
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %50, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %51, align 4
  br label %276

272:                                              ; preds = %240
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %50, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %51, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #8
  br label %276

276:                                              ; preds = %272, %268
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #8
  br label %277

277:                                              ; preds = %276, %264
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #8
  br label %278

278:                                              ; preds = %277, %260
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  br label %279

279:                                              ; preds = %278, %256
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  br label %280

280:                                              ; preds = %279, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %608

281:                                              ; preds = %180
  %282 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 28
  %283 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %282)
          to label %284 unwind label %348

284:                                              ; preds = %281
  %285 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %286 unwind label %348

286:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 32, ptr %60) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %61) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %61)
          to label %287 unwind label %352

287:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %63)
          to label %288 unwind label %356

288:                                              ; preds = %287
  %289 = load ptr, ptr %283, align 8, !tbaa !15
  %290 = getelementptr inbounds ptr, ptr %289, i64 3
  %291 = load ptr, ptr %290, align 8
  invoke void %291(ptr noundef nonnull align 8 dereferenceable(69) %283, ptr noundef nonnull align 8 dereferenceable(40) %285, i32 noundef 9, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %60, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %62)
          to label %292 unwind label %360

292:                                              ; preds = %288
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #8
  %293 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %294 unwind label %348

294:                                              ; preds = %292
  %295 = invoke noundef zeroext i1 @_ZNK10SimTKIpopt10Journalist13ProduceOutputENS_13EJournalLevelENS_16EJournalCategoryE(ptr noundef nonnull align 8 dereferenceable(40) %293, i32 noundef 10, i32 noundef 7)
          to label %296 unwind label %348

296:                                              ; preds = %294
  br i1 %295, label %297, label %426

297:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #8
  %298 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 28
  %299 = invoke noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %298)
          to label %300 unwind label %366

300:                                              ; preds = %297
  %301 = invoke noundef i32 @_ZN10SimTKIpopt13TripletHelper16GetNumberEntriesERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(69) %299)
          to label %302 unwind label %366

302:                                              ; preds = %300
  store i32 %301, ptr %64, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  %303 = load i32, ptr %64, align 4, !tbaa !13
  %304 = sext i32 %303 to i64
  %305 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %304, i64 4)
  %306 = extractvalue { i64, i1 } %305, 1
  %307 = extractvalue { i64, i1 } %305, 0
  %308 = select i1 %306, i64 -1, i64 %307
  %309 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %308) #9
          to label %310 unwind label %370

310:                                              ; preds = %302
  store ptr %309, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  %311 = load i32, ptr %64, align 4, !tbaa !13
  %312 = sext i32 %311 to i64
  %313 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %312, i64 4)
  %314 = extractvalue { i64, i1 } %313, 1
  %315 = extractvalue { i64, i1 } %313, 0
  %316 = select i1 %314, i64 -1, i64 %315
  %317 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %316) #9
          to label %318 unwind label %374

318:                                              ; preds = %310
  store ptr %317, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %319 = load i32, ptr %64, align 4, !tbaa !13
  %320 = sext i32 %319 to i64
  %321 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %320, i64 8)
  %322 = extractvalue { i64, i1 } %321, 1
  %323 = extractvalue { i64, i1 } %321, 0
  %324 = select i1 %322, i64 -1, i64 %323
  %325 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %324) #9
          to label %326 unwind label %378

326:                                              ; preds = %318
  store ptr %325, ptr %67, align 8, !tbaa !5
  %327 = load i32, ptr %64, align 4, !tbaa !13
  %328 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 28
  %329 = invoke noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %328)
          to label %330 unwind label %378

330:                                              ; preds = %326
  %331 = load ptr, ptr %65, align 8, !tbaa !5
  %332 = load ptr, ptr %66, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt13TripletHelper10FillRowColEiRKNS_6MatrixEPiS4_ii(i32 noundef %327, ptr noundef nonnull align 8 dereferenceable(69) %329, ptr noundef %331, ptr noundef %332, i32 noundef 0, i32 noundef 0)
          to label %333 unwind label %378

333:                                              ; preds = %330
  %334 = load i32, ptr %64, align 4, !tbaa !13
  %335 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 28
  %336 = invoke noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %335)
          to label %337 unwind label %378

337:                                              ; preds = %333
  %338 = load ptr, ptr %67, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt13TripletHelper10FillValuesEiRKNS_6MatrixEPd(i32 noundef %334, ptr noundef nonnull align 8 dereferenceable(69) %336, ptr noundef %338)
          to label %339 unwind label %378

339:                                              ; preds = %337
  %340 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %341 unwind label %378

341:                                              ; preds = %339
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %340, i32 noundef 10, i32 noundef 7, ptr noundef @.str.8)
          to label %342 unwind label %378

342:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #8
  store i32 0, ptr %68, align 4, !tbaa !13
  br label %343

343:                                              ; preds = %402, %342
  %344 = load i32, ptr %68, align 4, !tbaa !13
  %345 = load i32, ptr %64, align 4, !tbaa !13
  %346 = icmp slt i32 %344, %345
  br i1 %346, label %382, label %347

347:                                              ; preds = %343
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #8
  br label %409

348:                                              ; preds = %294, %292, %284, %281
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %50, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %51, align 4
  br label %608

352:                                              ; preds = %286
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %50, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %51, align 4
  br label %365

356:                                              ; preds = %287
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %50, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %51, align 4
  br label %364

360:                                              ; preds = %288
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %50, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %51, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #8
  br label %364

364:                                              ; preds = %360, %356
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #8
  br label %365

365:                                              ; preds = %364, %352
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #8
  br label %608

366:                                              ; preds = %300, %297
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %50, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %51, align 4
  br label %425

370:                                              ; preds = %302
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %50, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %51, align 4
  br label %424

374:                                              ; preds = %310
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %50, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %51, align 4
  br label %423

378:                                              ; preds = %341, %339, %337, %333, %330, %326, %318
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %50, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %51, align 4
  br label %422

382:                                              ; preds = %343
  %383 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %384 unwind label %405

384:                                              ; preds = %382
  %385 = load i32, ptr %68, align 4, !tbaa !13
  %386 = load ptr, ptr %65, align 8, !tbaa !5
  %387 = load i32, ptr %68, align 4, !tbaa !13
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds i32, ptr %386, i64 %388
  %390 = load i32, ptr %389, align 4, !tbaa !13
  %391 = load ptr, ptr %66, align 8, !tbaa !5
  %392 = load i32, ptr %68, align 4, !tbaa !13
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds i32, ptr %391, i64 %393
  %395 = load i32, ptr %394, align 4, !tbaa !13
  %396 = load ptr, ptr %67, align 8, !tbaa !5
  %397 = load i32, ptr %68, align 4, !tbaa !13
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds double, ptr %396, i64 %398
  %400 = load double, ptr %399, align 8, !tbaa !9
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %383, i32 noundef 10, i32 noundef 7, ptr noundef @.str.9, i32 noundef %385, i32 noundef %390, i32 noundef %395, double noundef %400)
          to label %401 unwind label %405

401:                                              ; preds = %384
  br label %402

402:                                              ; preds = %401
  %403 = load i32, ptr %68, align 4, !tbaa !13
  %404 = add nsw i32 %403, 1
  store i32 %404, ptr %68, align 4, !tbaa !13
  br label %343, !llvm.loop !19

405:                                              ; preds = %384, %382
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %50, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %51, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #8
  br label %422

409:                                              ; preds = %347
  %410 = load ptr, ptr %65, align 8, !tbaa !5
  %411 = icmp eq ptr %410, null
  br i1 %411, label %413, label %412

412:                                              ; preds = %409
  call void @_ZdaPv(ptr noundef %410) #10
  br label %413

413:                                              ; preds = %412, %409
  store ptr null, ptr %65, align 8, !tbaa !5
  %414 = load ptr, ptr %66, align 8, !tbaa !5
  %415 = icmp eq ptr %414, null
  br i1 %415, label %417, label %416

416:                                              ; preds = %413
  call void @_ZdaPv(ptr noundef %414) #10
  br label %417

417:                                              ; preds = %416, %413
  store ptr null, ptr %66, align 8, !tbaa !5
  %418 = load ptr, ptr %67, align 8, !tbaa !5
  %419 = icmp eq ptr %418, null
  br i1 %419, label %421, label %420

420:                                              ; preds = %417
  call void @_ZdaPv(ptr noundef %418) #10
  br label %421

421:                                              ; preds = %420, %417
  store ptr null, ptr %67, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #8
  br label %426

422:                                              ; preds = %405, %378
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  br label %423

423:                                              ; preds = %422, %374
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  br label %424

424:                                              ; preds = %423, %370
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  br label %425

425:                                              ; preds = %424, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #8
  br label %608

426:                                              ; preds = %421, %296
  call void @llvm.lifetime.start.p0(i64 24, ptr %69) #8
  %427 = load i32, ptr %47, align 4, !tbaa !13
  %428 = sext i32 %427 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %70) #8
  call void @_ZNSaIN10SimTKIpopt8SmartPtrINS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #8
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %428, ptr noundef nonnull align 1 dereferenceable(1) %70)
          to label %429 unwind label %435

429:                                              ; preds = %426
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %70) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #8
  store i32 0, ptr %71, align 4, !tbaa !13
  br label %430

430:                                              ; preds = %492, %429
  %431 = load i32, ptr %71, align 4, !tbaa !13
  %432 = load i32, ptr %47, align 4, !tbaa !13
  %433 = icmp slt i32 %431, %432
  br i1 %433, label %439, label %434

434:                                              ; preds = %430
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #8
  br label %504

435:                                              ; preds = %426
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %50, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %51, align 4
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %70) #8
  br label %607

439:                                              ; preds = %430
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #8
  %440 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 10
  %441 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19CompoundVectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %440)
          to label %442 unwind label %495

442:                                              ; preds = %439
  %443 = load ptr, ptr %441, align 8, !tbaa !15
  %444 = getelementptr inbounds ptr, ptr %443, i64 4
  %445 = load ptr, ptr %444, align 8
  %446 = invoke noundef ptr %445(ptr noundef nonnull align 8 dereferenceable(48) %441, i1 noundef zeroext true)
          to label %447 unwind label %495

447:                                              ; preds = %442
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef %446)
          to label %448 unwind label %495

448:                                              ; preds = %447
  %449 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %450 unwind label %499

450:                                              ; preds = %448
  %451 = load ptr, ptr %41, align 8, !tbaa !5
  %452 = load i32, ptr %71, align 4, !tbaa !13
  %453 = sext i32 %452 to i64
  %454 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %451, i64 noundef %453) #8
  %455 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %454)
          to label %456 unwind label %499

456:                                              ; preds = %450
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %449, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(205) %455)
          to label %457 unwind label %499

457:                                              ; preds = %456
  %458 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %459 unwind label %499

459:                                              ; preds = %457
  %460 = load ptr, ptr %42, align 8, !tbaa !5
  %461 = load i32, ptr %71, align 4, !tbaa !13
  %462 = sext i32 %461 to i64
  %463 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %460, i64 noundef %462) #8
  %464 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %463)
          to label %465 unwind label %499

465:                                              ; preds = %459
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %458, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(205) %464)
          to label %466 unwind label %499

466:                                              ; preds = %465
  %467 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %468 unwind label %499

468:                                              ; preds = %466
  %469 = load ptr, ptr %43, align 8, !tbaa !5
  %470 = load i32, ptr %71, align 4, !tbaa !13
  %471 = sext i32 %470 to i64
  %472 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %469, i64 noundef %471) #8
  %473 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %472)
          to label %474 unwind label %499

474:                                              ; preds = %468
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %467, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(205) %473)
          to label %475 unwind label %499

475:                                              ; preds = %474
  %476 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %477 unwind label %499

477:                                              ; preds = %475
  %478 = load ptr, ptr %44, align 8, !tbaa !5
  %479 = load i32, ptr %71, align 4, !tbaa !13
  %480 = sext i32 %479 to i64
  %481 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %478, i64 noundef %480) #8
  %482 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %481)
          to label %483 unwind label %499

483:                                              ; preds = %477
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %476, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(205) %482)
          to label %484 unwind label %499

484:                                              ; preds = %483
  %485 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_14CompoundVectorEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %486 unwind label %499

486:                                              ; preds = %484
  %487 = load i32, ptr %71, align 4, !tbaa !13
  %488 = sext i32 %487 to i64
  %489 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %488) #8
  %490 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %489, ptr noundef %485)
          to label %491 unwind label %499

491:                                              ; preds = %486
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %492

492:                                              ; preds = %491
  %493 = load i32, ptr %71, align 4, !tbaa !13
  %494 = add nsw i32 %493, 1
  store i32 %494, ptr %71, align 4, !tbaa !13
  br label %430, !llvm.loop !20

495:                                              ; preds = %447, %442, %439
  %496 = landingpad { ptr, i32 }
          cleanup
  %497 = extractvalue { ptr, i32 } %496, 0
  store ptr %497, ptr %50, align 8
  %498 = extractvalue { ptr, i32 } %496, 1
  store i32 %498, ptr %51, align 4
  br label %503

499:                                              ; preds = %486, %484, %483, %477, %475, %474, %468, %466, %465, %459, %457, %456, %450, %448
  %500 = landingpad { ptr, i32 }
          cleanup
  %501 = extractvalue { ptr, i32 } %500, 0
  store ptr %501, ptr %50, align 8
  %502 = extractvalue { ptr, i32 } %500, 1
  store i32 %502, ptr %51, align 4
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #8
  br label %503

503:                                              ; preds = %499, %495
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #8
  br label %606

504:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #8
  %505 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 2
  %506 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15SymLinearSolverEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %505)
          to label %507 unwind label %530

507:                                              ; preds = %504
  %508 = getelementptr inbounds %"class.SimTKIpopt::StdAugSystemSolver", ptr %87, i32 0, i32 28
  %509 = invoke noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %508)
          to label %510 unwind label %530

510:                                              ; preds = %507
  %511 = load i8, ptr %45, align 1, !tbaa !11, !range !21, !noundef !22
  %512 = trunc i8 %511 to i1
  %513 = load i32, ptr %46, align 4, !tbaa !13
  %514 = load ptr, ptr %506, align 8, !tbaa !15
  %515 = getelementptr inbounds ptr, ptr %514, i64 3
  %516 = load ptr, ptr %515, align 8
  %517 = invoke noundef i32 %516(ptr noundef nonnull align 8 dereferenceable(49) %506, ptr noundef nonnull align 8 dereferenceable(80) %509, ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 8 dereferenceable(24) %69, i1 noundef zeroext %512, i32 noundef %513)
          to label %518 unwind label %530

518:                                              ; preds = %510
  store i32 %517, ptr %73, align 4, !tbaa !23
  %519 = load i32, ptr %73, align 4, !tbaa !23
  %520 = icmp eq i32 %519, 0
  br i1 %520, label %521, label %572

521:                                              ; preds = %518
  %522 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %523 unwind label %530

523:                                              ; preds = %521
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %522, i32 noundef 5, i32 noundef 7, ptr noundef @.str.10)
          to label %524 unwind label %530

524:                                              ; preds = %523
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #8
  store i32 0, ptr %74, align 4, !tbaa !13
  br label %525

525:                                              ; preds = %549, %524
  %526 = load i32, ptr %74, align 4, !tbaa !13
  %527 = load i32, ptr %47, align 4, !tbaa !13
  %528 = icmp slt i32 %526, %527
  br i1 %528, label %534, label %529

529:                                              ; preds = %525
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #8
  br label %571

530:                                              ; preds = %599, %597, %523, %521, %510, %507, %504
  %531 = landingpad { ptr, i32 }
          cleanup
  %532 = extractvalue { ptr, i32 } %531, 0
  store ptr %532, ptr %50, align 8
  %533 = extractvalue { ptr, i32 } %531, 1
  store i32 %533, ptr %51, align 4
  br label %605

534:                                              ; preds = %525
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #8
  store i32 16, ptr %75, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %76) #8
  %535 = getelementptr inbounds [16 x i8], ptr %76, i64 0, i64 0
  %536 = load i32, ptr %74, align 4, !tbaa !13
  %537 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %535, i64 noundef 16, ptr noundef @.str.11, i32 noundef %536) #8
  %538 = load i32, ptr %74, align 4, !tbaa !13
  %539 = sext i32 %538 to i64
  %540 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %539) #8
  %541 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %540)
          to label %542 unwind label %552

542:                                              ; preds = %534
  %543 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %544 unwind label %552

544:                                              ; preds = %542
  call void @llvm.lifetime.start.p0(i64 32, ptr %77) #8
  %545 = getelementptr inbounds [16 x i8], ptr %76, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %78) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef %545, ptr noundef nonnull align 1 dereferenceable(1) %78)
          to label %546 unwind label %556

546:                                              ; preds = %544
  call void @llvm.lifetime.start.p0(i64 32, ptr %79) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %80) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %80) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %79, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %80)
          to label %547 unwind label %560

547:                                              ; preds = %546
  invoke void @_ZNK10SimTKIpopt6Vector5PrintERKNS_10JournalistENS_13EJournalLevelENS_16EJournalCategoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSD_(ptr noundef nonnull align 8 dereferenceable(205) %541, ptr noundef nonnull align 8 dereferenceable(40) %543, i32 noundef 8, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %77, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %79)
          to label %548 unwind label %564

548:                                              ; preds = %547
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %79) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %80) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %79) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %77) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %78) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %77) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #8
  br label %549

549:                                              ; preds = %548
  %550 = load i32, ptr %74, align 4, !tbaa !13
  %551 = add nsw i32 %550, 1
  store i32 %551, ptr %74, align 4, !tbaa !13
  br label %525, !llvm.loop !25

552:                                              ; preds = %542, %534
  %553 = landingpad { ptr, i32 }
          cleanup
  %554 = extractvalue { ptr, i32 } %553, 0
  store ptr %554, ptr %50, align 8
  %555 = extractvalue { ptr, i32 } %553, 1
  store i32 %555, ptr %51, align 4
  br label %570

556:                                              ; preds = %544
  %557 = landingpad { ptr, i32 }
          cleanup
  %558 = extractvalue { ptr, i32 } %557, 0
  store ptr %558, ptr %50, align 8
  %559 = extractvalue { ptr, i32 } %557, 1
  store i32 %559, ptr %51, align 4
  br label %569

560:                                              ; preds = %546
  %561 = landingpad { ptr, i32 }
          cleanup
  %562 = extractvalue { ptr, i32 } %561, 0
  store ptr %562, ptr %50, align 8
  %563 = extractvalue { ptr, i32 } %561, 1
  store i32 %563, ptr %51, align 4
  br label %568

564:                                              ; preds = %547
  %565 = landingpad { ptr, i32 }
          cleanup
  %566 = extractvalue { ptr, i32 } %565, 0
  store ptr %566, ptr %50, align 8
  %567 = extractvalue { ptr, i32 } %565, 1
  store i32 %567, ptr %51, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %79) #8
  br label %568

568:                                              ; preds = %564, %560
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %80) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %79) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %77) #8
  br label %569

569:                                              ; preds = %568, %556
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %78) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %77) #8
  br label %570

570:                                              ; preds = %569, %552
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #8
  br label %605

571:                                              ; preds = %529
  br label %603

572:                                              ; preds = %518
  %573 = load i32, ptr %73, align 4, !tbaa !23
  %574 = icmp eq i32 %573, 4
  br i1 %574, label %575, label %597

575:                                              ; preds = %572
  store i1 true, ptr %85, align 1
  %576 = call ptr @__cxa_allocate_exception(i64 112) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %82) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %81, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %82)
          to label %577 unwind label %580

577:                                              ; preds = %575
  call void @llvm.lifetime.start.p0(i64 1, ptr %84) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %84) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %83, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %84)
          to label %578 unwind label %584

578:                                              ; preds = %577
  invoke void @_ZN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i(ptr noundef nonnull align 8 dereferenceable(112) %576, ptr noundef %81, ptr noundef %83, i32 noundef 230)
          to label %579 unwind label %588

579:                                              ; preds = %578
  store i1 false, ptr %85, align 1
  invoke void @__cxa_throw(ptr %576, ptr @_ZTIN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERE, ptr @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #11
          to label %615 unwind label %588

580:                                              ; preds = %575
  %581 = landingpad { ptr, i32 }
          cleanup
  %582 = extractvalue { ptr, i32 } %581, 0
  store ptr %582, ptr %50, align 8
  %583 = extractvalue { ptr, i32 } %581, 1
  store i32 %583, ptr %51, align 4
  br label %593

584:                                              ; preds = %577
  %585 = landingpad { ptr, i32 }
          cleanup
  %586 = extractvalue { ptr, i32 } %585, 0
  store ptr %586, ptr %50, align 8
  %587 = extractvalue { ptr, i32 } %585, 1
  store i32 %587, ptr %51, align 4
  br label %592

588:                                              ; preds = %579, %578
  %589 = landingpad { ptr, i32 }
          cleanup
  %590 = extractvalue { ptr, i32 } %589, 0
  store ptr %590, ptr %50, align 8
  %591 = extractvalue { ptr, i32 } %589, 1
  store i32 %591, ptr %51, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %83) #8
  br label %592

592:                                              ; preds = %588, %584
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %84) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %84) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %81) #8
  br label %593

593:                                              ; preds = %592, %580
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %82) #8
  %594 = load i1, ptr %85, align 1
  br i1 %594, label %595, label %596

595:                                              ; preds = %593
  call void @__cxa_free_exception(ptr %576) #8
  br label %596

596:                                              ; preds = %595, %593
  br label %605

597:                                              ; preds = %572
  %598 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %87)
          to label %599 unwind label %530

599:                                              ; preds = %597
  %600 = load i32, ptr %73, align 4, !tbaa !23
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %598, i32 noundef 5, i32 noundef 7, ptr noundef @.str.13, i32 noundef %600)
          to label %601 unwind label %530

601:                                              ; preds = %599
  br label %602

602:                                              ; preds = %601
  br label %603

603:                                              ; preds = %602, %571
  %604 = load i32, ptr %73, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %69) #8
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  ret i32 %604

605:                                              ; preds = %596, %570, %530
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  br label %606

606:                                              ; preds = %605, %503
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  br label %607

607:                                              ; preds = %606, %435
  call void @llvm.lifetime.end.p0(i64 24, ptr %69) #8
  br label %608

608:                                              ; preds = %607, %425, %365, %348, %280
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  br label %609

609:                                              ; preds = %608, %181
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %610

610:                                              ; preds = %609
  %611 = load ptr, ptr %50, align 8
  %612 = load i32, ptr %51, align 4
  %613 = insertvalue { ptr, i32 } poison, ptr %611, 0
  %614 = insertvalue { ptr, i32 } %613, i32 %612, 1
  resume { ptr, i32 } %614

615:                                              ; preds = %579
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt18StdAugSystemSolver20CreateAugmentedSpaceERKNS_9SymMatrixERKNS_6MatrixES6_RKNS_6VectorES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(233), ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(69), ptr noundef nonnull align 8 dereferenceable(69), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(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(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt18StdAugSystemSolver21CreateAugmentedSystemEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_(ptr noundef nonnull align 8 dereferenceable(233), ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt18StdAugSystemSolver29AugmentedSystemRequiresChangeEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_d(ptr noundef nonnull align 8 dereferenceable(233), ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef) #2 align 2

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

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

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

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

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

declare void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, ptr noundef nonnull align 8 dereferenceable(205)) #3

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

declare void @_ZNK10SimTKIpopt6Vector5PrintERKNS_10JournalistENS_13EJournalLevelENS_16EJournalCategoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSD_(ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

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

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

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

declare noundef i32 @_ZN10SimTKIpopt13TripletHelper16GetNumberEntriesERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(69)) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

declare void @_ZN10SimTKIpopt13TripletHelper10FillRowColEiRKNS_6MatrixEPiS4_ii(i32 noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare void @_ZN10SimTKIpopt13TripletHelper10FillValuesEiRKNS_6MatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef) #3

declare void @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef, ...) #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

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

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

declare void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, ptr noundef nonnull align 8 dereferenceable(205)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(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(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

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

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

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

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

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

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

!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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt16ESymSolverStatusE", !7, i64 0}
!25 = distinct !{!25, !18}


; 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.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.41" = type { i8 }
%"class.SimTKIpopt::SmartPtr.45" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.23" = type { i8 }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.53" = type { i8 }

@.str.4 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@_ZTIN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt18StdAugSystemSolver10MultiSolveEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dPKNS_6MatrixES6_dS9_S6_dRSt6vectorINS_8SmartPtrIS5_EESaISC_EESF_SF_SF_RSA_INSB_IS4_EESaISG_EESJ_SJ_SJ_bi(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef %1, double noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, double noundef %9, ptr noundef %10, ptr noundef %11, double noundef %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20, i1 noundef zeroext %21, i32 noundef %22) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %24 = alloca %"class.std::vector.39", align 8
  %25 = alloca %"class.std::allocator.41", align 1
  %26 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %27 = alloca [16 x i8], align 16
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator.23", align 1
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator.23", align 1
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator.23", align 1
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::allocator.23", align 1
  %36 = alloca %"class.std::vector.51", align 8
  %37 = alloca %"class.std::allocator.53", align 1
  %38 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %39 = alloca [16 x i8], align 16
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::allocator.23", align 1
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::allocator.23", align 1
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::allocator.23", align 1
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca %"class.std::allocator.23", align 1
  %48 = tail call noundef i64 @_ZNKSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %49 = trunc i64 %48 to i32
  %50 = getelementptr inbounds i8, ptr %0, i64 216
  %51 = tail call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17CompoundSymMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %50)
  br i1 %51, label %69, label %52

52:                                               ; preds = %23
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #7
  %54 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #7
  %56 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55)
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #7
  %58 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %57)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #7
  %60 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %59)
  tail call void @_ZN10SimTKIpopt18StdAugSystemSolver20CreateAugmentedSpaceERKNS_9SymMatrixERKNS_6MatrixES6_RKNS_6VectorES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(69) %7, ptr noundef nonnull align 8 dereferenceable(69) %10, ptr noundef nonnull align 8 dereferenceable(205) %54, ptr noundef nonnull align 8 dereferenceable(205) %56, ptr noundef nonnull align 8 dereferenceable(205) %58, ptr noundef nonnull align 8 dereferenceable(205) %60)
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #7
  %62 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %61)
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #7
  %64 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #7
  %66 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %65)
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #7
  %68 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %67)
  tail call void @_ZN10SimTKIpopt18StdAugSystemSolver21CreateAugmentedSystemEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef nonnull %1, double noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, double noundef %6, ptr noundef nonnull align 8 dereferenceable(69) %7, ptr noundef %8, double noundef %9, ptr noundef nonnull align 8 dereferenceable(69) %10, ptr noundef %11, double noundef %12, ptr noundef nonnull align 8 dereferenceable(205) %62, ptr noundef nonnull align 8 dereferenceable(205) %64, ptr noundef nonnull align 8 dereferenceable(205) %66, ptr noundef nonnull align 8 dereferenceable(205) %68)
  br label %69

69:                                               ; preds = %52, %23
  %70 = tail call noundef zeroext i1 @_ZN10SimTKIpopt18StdAugSystemSolver29AugmentedSystemRequiresChangeEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_d(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef %1, double noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, double noundef %6, ptr noundef nonnull align 8 dereferenceable(69) %7, ptr noundef %8, double noundef %9, ptr noundef nonnull align 8 dereferenceable(69) %10, ptr noundef %11, double noundef %12)
  br i1 %70, label %71, label %80

71:                                               ; preds = %69
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #7
  %73 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
  %74 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #7
  %75 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %74)
  %76 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #7
  %77 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %76)
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #7
  %79 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %78)
  tail call void @_ZN10SimTKIpopt18StdAugSystemSolver21CreateAugmentedSystemEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef %1, double noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, double noundef %6, ptr noundef nonnull align 8 dereferenceable(69) %7, ptr noundef %8, double noundef %9, ptr noundef nonnull align 8 dereferenceable(69) %10, ptr noundef %11, double noundef %12, ptr noundef nonnull align 8 dereferenceable(205) %73, ptr noundef nonnull align 8 dereferenceable(205) %75, ptr noundef nonnull align 8 dereferenceable(205) %77, ptr noundef nonnull align 8 dereferenceable(205) %79)
  br label %80

80:                                               ; preds = %71, %69
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #7
  %sext = shl i64 %48, 32
  %81 = ashr exact i64 %sext, 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #7
  call void @_ZNSaIN10SimTKIpopt8SmartPtrIKNS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %81, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %82 unwind label %87

82:                                               ; preds = %80
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #7
  %83 = icmp sgt i32 %49, 0
  br i1 %83, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %82
  %84 = getelementptr inbounds i8, ptr %0, i64 120
  %wide.trip.count = and i64 %48, 2147483647
  br label %89

._crit_edge:                                      ; preds = %124, %82
  %85 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %86 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %142 unwind label %176

87:                                               ; preds = %80
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #7
  br label %295

89:                                               ; preds = %.lr.ph, %124
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %124 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %90 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19CompoundVectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %84)
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 32
  %93 = load ptr, ptr %92, align 8
  %94 = invoke noundef ptr %93(ptr noundef nonnull align 8 dereferenceable(48) %90, i1 noundef zeroext true)
          to label %95 unwind label %125

95:                                               ; preds = %89
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %94)
          to label %96 unwind label %125

96:                                               ; preds = %95
  %97 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #7
  %99 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %98)
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %97, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(205) %99)
          to label %100 unwind label %127

100:                                              ; preds = %96
  %101 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv) #7
  %103 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %102)
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %101, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(205) %103)
          to label %104 unwind label %127

104:                                              ; preds = %100
  %105 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv) #7
  %107 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %106)
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %105, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(205) %107)
          to label %108 unwind label %127

108:                                              ; preds = %104
  %109 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv) #7
  %111 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %110)
  invoke void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %109, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(205) %111)
          to label %112 unwind label %127

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  %113 = trunc nuw nsw i64 %indvars.iv to i32
  %114 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %27, i64 noundef 16, ptr noundef nonnull @.str.5, i32 noundef %113) #7
  %115 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %116 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %117 unwind label %129

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull %27, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %118 unwind label %131

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %119 unwind label %133

119:                                              ; preds = %118
  invoke void @_ZNK10SimTKIpopt6Vector5PrintERKNS_10JournalistENS_13EJournalLevelENS_16EJournalCategoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSD_(ptr noundef nonnull align 8 dereferenceable(205) %115, ptr noundef nonnull align 8 dereferenceable(40) %116, i32 noundef 8, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %28, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %120 unwind label %135

120:                                              ; preds = %119
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #7
  %121 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_14CompoundVectorEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv) #7
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef %121)
          to label %124 unwind label %129

124:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %89, !llvm.loop !8

125:                                              ; preds = %95, %89
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %141

127:                                              ; preds = %108, %104, %100, %96
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %140

129:                                              ; preds = %120, %112
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %139

131:                                              ; preds = %117
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %138

133:                                              ; preds = %118
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %137

135:                                              ; preds = %119
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  br label %137

137:                                              ; preds = %135, %133
  %.pn164 = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  br label %138

138:                                              ; preds = %137, %131
  %.pn164.pn = phi { ptr, i32 } [ %.pn164, %137 ], [ %132, %131 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #7
  br label %139

139:                                              ; preds = %138, %129
  %.pn167 = phi { ptr, i32 } [ %130, %129 ], [ %.pn164.pn, %138 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  br label %140

140:                                              ; preds = %139, %127
  %.pn167.pn = phi { ptr, i32 } [ %.pn167, %139 ], [ %128, %127 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %141

141:                                              ; preds = %140, %125
  %.pn167.pn.pn = phi { ptr, i32 } [ %.pn167.pn, %140 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %294

142:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %33) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %143 unwind label %178

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %35) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %144 unwind label %180

144:                                              ; preds = %143
  %145 = load ptr, ptr %85, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 24
  %147 = load ptr, ptr %146, align 8
  invoke void %147(ptr noundef nonnull align 8 dereferenceable(69) %85, ptr noundef nonnull align 8 dereferenceable(40) %86, i32 noundef 9, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %32, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %148 unwind label %182

148:                                              ; preds = %144
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #7
  %149 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %150 unwind label %176

150:                                              ; preds = %148
  %151 = invoke noundef zeroext i1 @_ZNK10SimTKIpopt10Journalist13ProduceOutputENS_13EJournalLevelENS_16EJournalCategoryE(ptr noundef nonnull align 8 dereferenceable(40) %149, i32 noundef 10, i32 noundef 7)
          to label %152 unwind label %176

152:                                              ; preds = %150
  br i1 %151, label %153, label %206

153:                                              ; preds = %152
  %154 = call noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %155 = invoke noundef i32 @_ZN10SimTKIpopt13TripletHelper16GetNumberEntriesERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(69) %154)
          to label %156 unwind label %186

156:                                              ; preds = %153
  %157 = sext i32 %155 to i64
  %158 = icmp slt i32 %155, 0
  %159 = shl nsw i64 %157, 2
  %160 = select i1 %158, i64 -1, i64 %159
  %161 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %160) #8
          to label %162 unwind label %188

162:                                              ; preds = %156
  %163 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %160) #8
          to label %164 unwind label %190

164:                                              ; preds = %162
  %165 = shl nsw i64 %157, 3
  %166 = select i1 %158, i64 -1, i64 %165
  %167 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %166) #8
          to label %168 unwind label %192

168:                                              ; preds = %164
  %169 = call noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  invoke void @_ZN10SimTKIpopt13TripletHelper10FillRowColEiRKNS_6MatrixEPiS4_ii(i32 noundef %155, ptr noundef nonnull align 8 dereferenceable(69) %169, ptr noundef nonnull %161, ptr noundef nonnull %163, i32 noundef 0, i32 noundef 0)
          to label %170 unwind label %192

170:                                              ; preds = %168
  %171 = call noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  invoke void @_ZN10SimTKIpopt13TripletHelper10FillValuesEiRKNS_6MatrixEPd(i32 noundef %155, ptr noundef nonnull align 8 dereferenceable(69) %171, ptr noundef nonnull %167)
          to label %172 unwind label %192

172:                                              ; preds = %170
  %173 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %174 unwind label %192

174:                                              ; preds = %172
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %173, i32 noundef 10, i32 noundef 7, ptr noundef nonnull @.str.8)
          to label %.preheader176 unwind label %192

.preheader176:                                    ; preds = %174
  %175 = icmp sgt i32 %155, 0
  br i1 %175, label %.lr.ph179.preheader, label %._crit_edge180

.lr.ph179.preheader:                              ; preds = %.preheader176
  %wide.trip.count191 = zext nneg i32 %155 to i64
  br label %.lr.ph179

176:                                              ; preds = %150, %148, %._crit_edge
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %294

178:                                              ; preds = %142
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %185

180:                                              ; preds = %143
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %184

182:                                              ; preds = %144
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  br label %184

184:                                              ; preds = %182, %180
  %.pn = phi { ptr, i32 } [ %183, %182 ], [ %181, %180 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %185

185:                                              ; preds = %184, %178
  %.pn.pn = phi { ptr, i32 } [ %.pn, %184 ], [ %179, %178 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #7
  br label %294

186:                                              ; preds = %153
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %294

188:                                              ; preds = %156
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %294

190:                                              ; preds = %162
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %294

192:                                              ; preds = %174, %172, %170, %168, %164
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %294

.lr.ph179:                                        ; preds = %.lr.ph179.preheader, %203
  %indvars.iv188 = phi i64 [ 0, %.lr.ph179.preheader ], [ %indvars.iv.next189, %203 ]
  %194 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %195 unwind label %204

195:                                              ; preds = %.lr.ph179
  %196 = getelementptr inbounds i32, ptr %161, i64 %indvars.iv188
  %197 = load i32, ptr %196, align 4, !tbaa !10
  %198 = getelementptr inbounds i32, ptr %163, i64 %indvars.iv188
  %199 = load i32, ptr %198, align 4, !tbaa !10
  %200 = getelementptr inbounds double, ptr %167, i64 %indvars.iv188
  %201 = load double, ptr %200, align 8, !tbaa !13
  %202 = trunc nuw nsw i64 %indvars.iv188 to i32
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %194, i32 noundef 10, i32 noundef 7, ptr noundef nonnull @.str.9, i32 noundef %202, i32 noundef %197, i32 noundef %199, double noundef %201)
          to label %203 unwind label %204

203:                                              ; preds = %195
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next189, %wide.trip.count191
  br i1 %exitcond192.not, label %._crit_edge180, label %.lr.ph179, !llvm.loop !15

204:                                              ; preds = %195, %.lr.ph179
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %294

._crit_edge180:                                   ; preds = %203, %.preheader176
  call void @_ZdaPv(ptr noundef nonnull %161) #9
  call void @_ZdaPv(ptr noundef nonnull %163) #9
  call void @_ZdaPv(ptr noundef nonnull %167) #9
  br label %206

206:                                              ; preds = %._crit_edge180, %152
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %36) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %37) #7
  call void @_ZNSaIN10SimTKIpopt8SmartPtrINS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #7
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %81, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %207 unwind label %216

207:                                              ; preds = %206
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #7
  br i1 %83, label %.lr.ph183, label %._crit_edge184

.lr.ph183:                                        ; preds = %207
  %208 = getelementptr inbounds i8, ptr %0, i64 120
  %wide.trip.count196 = and i64 %48, 2147483647
  br label %218

._crit_edge184:                                   ; preds = %245, %207
  %209 = getelementptr inbounds i8, ptr %0, i64 56
  %210 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15SymLinearSolverEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %209)
  %211 = call noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %212 = load ptr, ptr %210, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %212, i64 24
  %214 = load ptr, ptr %213, align 8
  %215 = invoke noundef i32 %214(ptr noundef nonnull align 8 dereferenceable(49) %210, ptr noundef nonnull align 8 dereferenceable(80) %211, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %36, i1 noundef zeroext %21, i32 noundef %22)
          to label %251 unwind label %255

216:                                              ; preds = %206
  %217 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #7
  br label %293

218:                                              ; preds = %.lr.ph183, %245
  %indvars.iv193 = phi i64 [ 0, %.lr.ph183 ], [ %indvars.iv.next194, %245 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #7
  %219 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19CompoundVectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %208)
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %221 = getelementptr inbounds i8, ptr %220, i64 32
  %222 = load ptr, ptr %221, align 8
  %223 = invoke noundef ptr %222(ptr noundef nonnull align 8 dereferenceable(48) %219, i1 noundef zeroext true)
          to label %224 unwind label %246

224:                                              ; preds = %218
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef %223)
          to label %225 unwind label %246

225:                                              ; preds = %224
  %226 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv193) #7
  %228 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %227)
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %226, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(205) %228)
          to label %229 unwind label %248

229:                                              ; preds = %225
  %230 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv193) #7
  %232 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %231)
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %230, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(205) %232)
          to label %233 unwind label %248

233:                                              ; preds = %229
  %234 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv193) #7
  %236 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %235)
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %234, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(205) %236)
          to label %237 unwind label %248

237:                                              ; preds = %233
  %238 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv193) #7
  %240 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %239)
  invoke void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265) %238, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(205) %240)
          to label %241 unwind label %248

241:                                              ; preds = %237
  %242 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_14CompoundVectorEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv193) #7
  %244 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef %242)
          to label %245 unwind label %248

245:                                              ; preds = %241
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond197.not = icmp eq i64 %indvars.iv.next194, %wide.trip.count196
  br i1 %exitcond197.not, label %._crit_edge184, label %218, !llvm.loop !16

246:                                              ; preds = %224, %218
  %247 = landingpad { ptr, i32 }
          cleanup
  br label %250

248:                                              ; preds = %241, %237, %233, %229, %225
  %249 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  br label %250

250:                                              ; preds = %248, %246
  %.pn155 = phi { ptr, i32 } [ %249, %248 ], [ %247, %246 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  br label %292

251:                                              ; preds = %._crit_edge184
  switch i32 %215, label %289 [
    i32 0, label %252
    i32 4, label %277
  ]

252:                                              ; preds = %251
  %253 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %254 unwind label %255

254:                                              ; preds = %252
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %253, i32 noundef 5, i32 noundef 7, ptr noundef nonnull @.str.10)
          to label %.preheader unwind label %255

.preheader:                                       ; preds = %254
  br i1 %83, label %.lr.ph186.preheader, label %.loopexit

.lr.ph186.preheader:                              ; preds = %.preheader
  %wide.trip.count201 = and i64 %48, 2147483647
  br label %.lr.ph186

255:                                              ; preds = %291, %289, %254, %252, %._crit_edge184
  %256 = landingpad { ptr, i32 }
          cleanup
  br label %292

.lr.ph186:                                        ; preds = %.lr.ph186.preheader, %265
  %indvars.iv198 = phi i64 [ 0, %.lr.ph186.preheader ], [ %indvars.iv.next199, %265 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %39) #7
  %257 = trunc nuw nsw i64 %indvars.iv198 to i32
  %258 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %39, i64 noundef 16, ptr noundef nonnull @.str.11, i32 noundef %257) #7
  %259 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv198) #7
  %260 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %259)
  %261 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %262 unwind label %266

262:                                              ; preds = %.lr.ph186
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %41) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull %39, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %263 unwind label %268

263:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %43) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %43)
          to label %264 unwind label %270

264:                                              ; preds = %263
  invoke void @_ZNK10SimTKIpopt6Vector5PrintERKNS_10JournalistENS_13EJournalLevelENS_16EJournalCategoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSD_(ptr noundef nonnull align 8 dereferenceable(205) %260, ptr noundef nonnull align 8 dereferenceable(40) %261, i32 noundef 8, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %40, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %265 unwind label %272

265:                                              ; preds = %264
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %42) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #7
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %exitcond202.not = icmp eq i64 %indvars.iv.next199, %wide.trip.count201
  br i1 %exitcond202.not, label %.loopexit, label %.lr.ph186, !llvm.loop !17

266:                                              ; preds = %.lr.ph186
  %267 = landingpad { ptr, i32 }
          cleanup
  br label %276

268:                                              ; preds = %262
  %269 = landingpad { ptr, i32 }
          cleanup
  br label %275

270:                                              ; preds = %263
  %271 = landingpad { ptr, i32 }
          cleanup
  br label %274

272:                                              ; preds = %264
  %273 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #7
  br label %274

274:                                              ; preds = %272, %270
  %.pn150 = phi { ptr, i32 } [ %273, %272 ], [ %271, %270 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %42) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  br label %275

275:                                              ; preds = %274, %268
  %.pn150.pn = phi { ptr, i32 } [ %.pn150, %274 ], [ %269, %268 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #7
  br label %276

276:                                              ; preds = %275, %266
  %.pn150.pn.pn = phi { ptr, i32 } [ %.pn150.pn, %275 ], [ %267, %266 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #7
  br label %292

277:                                              ; preds = %251
  %278 = call ptr @__cxa_allocate_exception(i64 112) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %45) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %279 unwind label %.thread

279:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %47) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %280 unwind label %283

280:                                              ; preds = %279
  invoke void @_ZN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i(ptr noundef nonnull align 8 dereferenceable(112) %278, ptr noundef nonnull %44, ptr noundef nonnull %46, i32 noundef 230)
          to label %281 unwind label %285

281:                                              ; preds = %280
  invoke void @__cxa_throw(ptr nonnull %278, ptr nonnull @_ZTIN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERE, ptr nonnull @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #10
          to label %296 unwind label %285

.thread:                                          ; preds = %277
  %282 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #7
  br label %288

283:                                              ; preds = %279
  %284 = landingpad { ptr, i32 }
          cleanup
  br label %287

285:                                              ; preds = %281, %280
  %.0 = phi i1 [ false, %281 ], [ true, %280 ]
  %286 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  br label %287

287:                                              ; preds = %283, %285
  %.pn147 = phi { ptr, i32 } [ %286, %285 ], [ %284, %283 ]
  %.1 = phi i1 [ %.0, %285 ], [ true, %283 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %47) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #7
  br i1 %.1, label %288, label %292

288:                                              ; preds = %.thread, %287
  %.pn147.pn175 = phi { ptr, i32 } [ %282, %.thread ], [ %.pn147, %287 ]
  call void @__cxa_free_exception(ptr %278) #7
  br label %292

289:                                              ; preds = %251
  %290 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %291 unwind label %255

291:                                              ; preds = %289
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %290, i32 noundef 5, i32 noundef 7, ptr noundef nonnull @.str.13, i32 noundef %215)
          to label %.loopexit unwind label %255

.loopexit:                                        ; preds = %265, %.preheader, %291
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %36) #7
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #7
  ret i32 %215

292:                                              ; preds = %255, %276, %288, %287, %250
  %.pn155.pn = phi { ptr, i32 } [ %.pn155, %250 ], [ %.pn150.pn.pn, %276 ], [ %256, %255 ], [ %.pn147.pn175, %288 ], [ %.pn147, %287 ]
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  br label %293

293:                                              ; preds = %292, %216
  %.pn155.pn.pn = phi { ptr, i32 } [ %.pn155.pn, %292 ], [ %217, %216 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %36) #7
  br label %294

294:                                              ; preds = %186, %190, %204, %192, %188, %293, %185, %176, %141
  %.pn167.pn.pn.pn = phi { ptr, i32 } [ %.pn167.pn.pn, %141 ], [ %.pn155.pn.pn, %293 ], [ %177, %176 ], [ %.pn.pn, %185 ], [ %187, %186 ], [ %189, %188 ], [ %191, %190 ], [ %205, %204 ], [ %193, %192 ]
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  br label %295

295:                                              ; preds = %294, %87
  %.pn167.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn167.pn.pn.pn, %294 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #7
  resume { ptr, i32 } %.pn167.pn.pn.pn.pn

296:                                              ; preds = %281
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt18StdAugSystemSolver20CreateAugmentedSpaceERKNS_9SymMatrixERKNS_6MatrixES6_RKNS_6VectorES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(233), ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(69), ptr noundef nonnull align 8 dereferenceable(69), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(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 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt18StdAugSystemSolver21CreateAugmentedSystemEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_(ptr noundef nonnull align 8 dereferenceable(233), ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt18StdAugSystemSolver29AugmentedSystemRequiresChangeEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dRKNS_6MatrixES6_dS9_S6_d(ptr noundef nonnull align 8 dereferenceable(233), ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, double noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

declare void @_ZN10SimTKIpopt14CompoundVector7SetCompEiRKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare void @_ZNK10SimTKIpopt6Vector5PrintERKNS_10JournalistENS_13EJournalLevelENS_16EJournalCategoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSD_(ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_14CompoundVectorEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

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

declare noundef i32 @_ZN10SimTKIpopt13TripletHelper16GetNumberEntriesERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(69)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(137) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

declare void @_ZN10SimTKIpopt13TripletHelper10FillRowColEiRKNS_6MatrixEPiS4_ii(i32 noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN10SimTKIpopt13TripletHelper10FillValuesEiRKNS_6MatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(69), ptr noundef) local_unnamed_addr #3

declare void @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #6

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

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

declare void @_ZN10SimTKIpopt14CompoundVector15SetCompNonConstEiRNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(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 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt28FATAL_ERROR_IN_LINEAR_SOLVERC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

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

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

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

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !12, i64 0}
!15 = distinct !{!15, !9}
!16 = distinct !{!16, !9}
!17 = distinct !{!17, !9}


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