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

; 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::__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.15" = type { i8 }
%"class.SimTKIpopt::TSymLinearSolver" = type <{ %"class.SimTKIpopt::SymLinearSolver.base", [3 x i8], i32, i32, i32, i32, i8, i8, i8, i8, %"class.SimTKIpopt::SmartPtr.6", %"class.SimTKIpopt::SmartPtr.7", ptr, i8, i8, [6 x i8], ptr, ptr, %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.13", i32, i8, [3 x i8] }>
%"class.SimTKIpopt::SymLinearSolver.base" = type { %"class.SimTKIpopt::AlgorithmStrategyObject.base" }
%"class.SimTKIpopt::AlgorithmStrategyObject.base" = type <{ %"class.SimTKIpopt::ReferencedObject.base", [4 x i8], %"class.SimTKIpopt::SmartPtr.8", %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.11", i8 }>
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"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.6" = type { ptr }
%"class.SimTKIpopt::SmartPtr.7" = type { ptr }
%"class.SimTKIpopt::SmartPtr.12" = type { ptr }
%"class.SimTKIpopt::SmartPtr.13" = type { ptr }

@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [103 x i8], align 1
@_ZTIN10SimTKIpopt17INVALID_WARMSTARTE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [102 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: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3 align 2

declare ptr @__cxa_allocate_exception(i64)

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt16TSymLinearSolver19InitializeStructureERKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.15", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.15", align 1
  %18 = alloca i1, align 1
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %23 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 6
  %24 = load i8, ptr %23, align 4, !tbaa !9, !range !25, !noundef !26
  %25 = trunc i8 %24 to i1
  br i1 %25, label %182, label %26

26:                                               ; preds = %2
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef i32 @_ZNK10SimTKIpopt9SymMatrix3DimEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  %29 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 3
  store i32 %28, ptr %29, align 8, !tbaa !27
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call noundef i32 @_ZN10SimTKIpopt13TripletHelper16GetNumberEntriesERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(69) %30)
  %32 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  store i32 %31, ptr %32, align 4, !tbaa !28
  %33 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 16
  %34 = load ptr, ptr %33, align 8, !tbaa !29
  %35 = icmp eq ptr %34, null
  br i1 %35, label %37, label %36

36:                                               ; preds = %26
  call void @_ZdaPv(ptr noundef %34) #9
  br label %37

37:                                               ; preds = %36, %26
  %38 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 17
  %39 = load ptr, ptr %38, align 8, !tbaa !30
  %40 = icmp eq ptr %39, null
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @_ZdaPv(ptr noundef %39) #9
  br label %42

42:                                               ; preds = %41, %37
  %43 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  %44 = load i32, ptr %43, align 4, !tbaa !28
  %45 = sext i32 %44 to i64
  %46 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %45, i64 4)
  %47 = extractvalue { i64, i1 } %46, 1
  %48 = extractvalue { i64, i1 } %46, 0
  %49 = select i1 %47, i64 -1, i64 %48
  %50 = call noalias noundef nonnull ptr @_Znam(i64 noundef %49) #10
  %51 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 16
  store ptr %50, ptr %51, align 8, !tbaa !29
  %52 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  %53 = load i32, ptr %52, align 4, !tbaa !28
  %54 = sext i32 %53 to i64
  %55 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %54, i64 4)
  %56 = extractvalue { i64, i1 } %55, 1
  %57 = extractvalue { i64, i1 } %55, 0
  %58 = select i1 %56, i64 -1, i64 %57
  %59 = call noalias noundef nonnull ptr @_Znam(i64 noundef %58) #10
  %60 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 17
  store ptr %59, ptr %60, align 8, !tbaa !30
  %61 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  %62 = load i32, ptr %61, align 4, !tbaa !28
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 16
  %65 = load ptr, ptr %64, align 8, !tbaa !29
  %66 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 17
  %67 = load ptr, ptr %66, align 8, !tbaa !30
  call void @_ZN10SimTKIpopt13TripletHelper10FillRowColEiRKNS_6MatrixEPiS4_ii(i32 noundef %62, ptr noundef nonnull align 8 dereferenceable(69) %63, ptr noundef %65, ptr noundef %67, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %68 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 20
  %69 = load i32, ptr %68, align 8, !tbaa !31
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %78

71:                                               ; preds = %42
  %72 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 16
  %73 = load ptr, ptr %72, align 8, !tbaa !29
  store ptr %73, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 17
  %75 = load ptr, ptr %74, align 8, !tbaa !30
  store ptr %75, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  %77 = load i32, ptr %76, align 4, !tbaa !28
  store i32 %77, ptr %9, align 4, !tbaa !32
  br label %137

78:                                               ; preds = %42
  %79 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 20
  %80 = load i32, ptr %79, align 8, !tbaa !31
  %81 = icmp eq i32 %80, 3
  br i1 %81, label %82, label %103

82:                                               ; preds = %78
  %83 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 19
  %84 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %83)
  %85 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 3
  %86 = load i32, ptr %85, align 8, !tbaa !27
  %87 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  %88 = load i32, ptr %87, align 4, !tbaa !28
  %89 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 16
  %90 = load ptr, ptr %89, align 8, !tbaa !29
  %91 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 17
  %92 = load ptr, ptr %91, align 8, !tbaa !30
  %93 = call noundef i32 @_ZN10SimTKIpopt23TripletToDenseConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72) %84, i32 noundef %86, i32 noundef %88, ptr noundef %90, ptr noundef %92)
  %94 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 5
  store i32 %93, ptr %94, align 8, !tbaa !33
  %95 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 19
  %96 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %95)
  %97 = call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %96)
  store ptr %97, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 19
  %99 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %98)
  %100 = call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %99)
  store ptr %100, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 5
  %102 = load i32, ptr %101, align 8, !tbaa !33
  store i32 %102, ptr %9, align 4, !tbaa !32
  br label %136

103:                                              ; preds = %78
  %104 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %105 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %104)
  %106 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %105)
  call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %106)
  %107 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %108 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %107)
  %109 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics34LinearSystemStructureConverterInitEv(ptr noundef nonnull align 8 dereferenceable(664) %108)
  call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %109)
  %110 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 18
  %111 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %110)
  %112 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 3
  %113 = load i32, ptr %112, align 8, !tbaa !27
  %114 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  %115 = load i32, ptr %114, align 4, !tbaa !28
  %116 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 16
  %117 = load ptr, ptr %116, align 8, !tbaa !29
  %118 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 17
  %119 = load ptr, ptr %118, align 8, !tbaa !30
  %120 = call noundef i32 @_ZN10SimTKIpopt21TripletToCSRConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72) %111, i32 noundef %113, i32 noundef %115, ptr noundef %117, ptr noundef %119)
  %121 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 5
  store i32 %120, ptr %121, align 8, !tbaa !33
  %122 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %123 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %122)
  %124 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics34LinearSystemStructureConverterInitEv(ptr noundef nonnull align 8 dereferenceable(664) %123)
  call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %124)
  %125 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 18
  %126 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %125)
  %127 = call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %126)
  store ptr %127, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 18
  %129 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %128)
  %130 = call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %129)
  store ptr %130, ptr %8, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %132 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %131)
  %133 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %132)
  call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %133)
  %134 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 5
  %135 = load i32, ptr %134, align 8, !tbaa !33
  store i32 %135, ptr %9, align 4, !tbaa !32
  br label %136

136:                                              ; preds = %103, %82
  br label %137

137:                                              ; preds = %136, %71
  %138 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 10
  %139 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %138)
  %140 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 3
  %141 = load i32, ptr %140, align 8, !tbaa !27
  %142 = load i32, ptr %9, align 4, !tbaa !32
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load ptr, ptr %139, align 8, !tbaa !34
  %146 = getelementptr inbounds ptr, ptr %145, i64 3
  %147 = load ptr, ptr %146, align 8
  %148 = call noundef i32 %147(ptr noundef nonnull align 8 dereferenceable(49) %139, i32 noundef %141, i32 noundef %142, ptr noundef %143, ptr noundef %144)
  store i32 %148, ptr %6, align 4, !tbaa !36
  %149 = load i32, ptr %6, align 4, !tbaa !36
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %153

151:                                              ; preds = %137
  %152 = load i32, ptr %6, align 4, !tbaa !36
  store i32 %152, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %179

153:                                              ; preds = %137
  %154 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 12
  %155 = load ptr, ptr %154, align 8, !tbaa !38
  %156 = icmp eq ptr %155, null
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  call void @_ZdaPv(ptr noundef %155) #9
  br label %158

158:                                              ; preds = %157, %153
  %159 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 11
  %160 = call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17TSymScalingMethodEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %159)
  br i1 %160, label %161, label %177

161:                                              ; preds = %158
  %162 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %163 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %162)
  %164 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %163)
  call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %164)
  %165 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 3
  %166 = load i32, ptr %165, align 8, !tbaa !27
  %167 = sext i32 %166 to i64
  %168 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %167, i64 8)
  %169 = extractvalue { i64, i1 } %168, 1
  %170 = extractvalue { i64, i1 } %168, 0
  %171 = select i1 %169, i64 -1, i64 %170
  %172 = call noalias noundef nonnull ptr @_Znam(i64 noundef %171) #10
  %173 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 12
  store ptr %172, ptr %173, align 8, !tbaa !38
  %174 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %175 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %174)
  %176 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %175)
  call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %176)
  br label %177

177:                                              ; preds = %161, %158
  %178 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 6
  store i8 1, ptr %178, align 4, !tbaa !9
  store i32 0, ptr %10, align 4
  br label %179

179:                                              ; preds = %177, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  %180 = load i32, ptr %10, align 4
  switch i32 %180, label %280 [
    i32 0, label %181
  ]

181:                                              ; preds = %179
  br label %277

182:                                              ; preds = %2
  %183 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 3
  %184 = load i32, ptr %183, align 8, !tbaa !27
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = call noundef i32 @_ZNK10SimTKIpopt9SymMatrix3DimEv(ptr noundef nonnull align 8 dereferenceable(80) %185)
  %187 = icmp eq i32 %184, %186
  br i1 %187, label %225, label %188

188:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %189 unwind label %198

189:                                              ; preds = %188
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  %190 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.9)
          to label %191 unwind label %202

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.13)
          to label %193 unwind label %202

193:                                              ; preds = %191
  store i1 true, ptr %18, align 1
  %194 = call ptr @__cxa_allocate_exception(i64 112) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %195 unwind label %206

195:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %196 unwind label %210

196:                                              ; preds = %195
  invoke void @_ZN10SimTKIpopt17INVALID_WARMSTARTC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i(ptr noundef nonnull align 8 dereferenceable(112) %194, ptr noundef %15, ptr noundef %16, i32 noundef 316)
          to label %197 unwind label %214

197:                                              ; preds = %196
  store i1 false, ptr %18, align 1
  invoke void @__cxa_throw(ptr %194, ptr @_ZTIN10SimTKIpopt17INVALID_WARMSTARTE, ptr @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #11
          to label %287 unwind label %214

198:                                              ; preds = %188
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %13, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  br label %224

202:                                              ; preds = %191, %189
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %13, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %14, align 4
  br label %223

206:                                              ; preds = %193
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %13, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %14, align 4
  br label %219

210:                                              ; preds = %195
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %13, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %14, align 4
  br label %218

214:                                              ; preds = %197, %196
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %13, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %218

218:                                              ; preds = %214, %210
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %219

219:                                              ; preds = %218, %206
  %220 = load i1, ptr %18, align 1
  br i1 %220, label %221, label %222

221:                                              ; preds = %219
  call void @__cxa_free_exception(ptr %194) #8
  br label %222

222:                                              ; preds = %221, %219
  br label %223

223:                                              ; preds = %222, %202
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  br label %224

224:                                              ; preds = %223, %198
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %282

225:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %226 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 20
  %227 = load i32, ptr %226, align 8, !tbaa !31
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %236

229:                                              ; preds = %225
  %230 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 16
  %231 = load ptr, ptr %230, align 8, !tbaa !29
  store ptr %231, ptr %19, align 8, !tbaa !5
  %232 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 17
  %233 = load ptr, ptr %232, align 8, !tbaa !30
  store ptr %233, ptr %20, align 8, !tbaa !5
  %234 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 4
  %235 = load i32, ptr %234, align 4, !tbaa !28
  store i32 %235, ptr %21, align 4, !tbaa !32
  br label %265

236:                                              ; preds = %225
  %237 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 20
  %238 = load i32, ptr %237, align 8, !tbaa !31
  %239 = icmp eq i32 %238, 3
  br i1 %239, label %240, label %249

240:                                              ; preds = %236
  %241 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 19
  %242 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %241)
  %243 = call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %242)
  store ptr %243, ptr %19, align 8, !tbaa !5
  %244 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 19
  %245 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %244)
  %246 = call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %245)
  store ptr %246, ptr %20, align 8, !tbaa !5
  %247 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 5
  %248 = load i32, ptr %247, align 8, !tbaa !33
  store i32 %248, ptr %21, align 4, !tbaa !32
  br label %264

249:                                              ; preds = %236
  %250 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %251 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %250)
  %252 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %251)
  call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %252)
  %253 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 18
  %254 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %253)
  %255 = call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %254)
  store ptr %255, ptr %19, align 8, !tbaa !5
  %256 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 18
  %257 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %256)
  %258 = call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %257)
  store ptr %258, ptr %20, align 8, !tbaa !5
  %259 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %22)
  %260 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %259)
  %261 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %260)
  call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %261)
  %262 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 5
  %263 = load i32, ptr %262, align 8, !tbaa !33
  store i32 %263, ptr %21, align 4, !tbaa !32
  br label %264

264:                                              ; preds = %249, %240
  br label %265

265:                                              ; preds = %264, %229
  %266 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 10
  %267 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %266)
  %268 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 3
  %269 = load i32, ptr %268, align 8, !tbaa !27
  %270 = load i32, ptr %21, align 4, !tbaa !32
  %271 = load ptr, ptr %19, align 8, !tbaa !5
  %272 = load ptr, ptr %20, align 8, !tbaa !5
  %273 = load ptr, ptr %267, align 8, !tbaa !34
  %274 = getelementptr inbounds ptr, ptr %273, i64 3
  %275 = load ptr, ptr %274, align 8
  %276 = call noundef i32 %275(ptr noundef nonnull align 8 dereferenceable(49) %267, i32 noundef %269, i32 noundef %270, ptr noundef %271, ptr noundef %272)
  store i32 %276, ptr %6, align 4, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %277

277:                                              ; preds = %265, %181
  %278 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %22, i32 0, i32 8
  store i8 1, ptr %278, align 2, !tbaa !39
  %279 = load i32, ptr %6, align 4, !tbaa !36
  store i32 %279, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %280

280:                                              ; preds = %277, %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %281 = load i32, ptr %3, align 4
  ret i32 %281

282:                                              ; preds = %224
  %283 = load ptr, ptr %13, align 8
  %284 = load i32, ptr %14, align 4
  %285 = insertvalue { ptr, i32 } poison, ptr %283, 0
  %286 = insertvalue { ptr, i32 } %285, i32 %284, 1
  resume { ptr, i32 } %286

287:                                              ; preds = %197
  unreachable
}

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK10SimTKIpopt9SymMatrix3DimEv(ptr noundef nonnull align 8 dereferenceable(80)) #6 align 2

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

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

declare noundef i32 @_ZN10SimTKIpopt23TripletToDenseConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, ptr noundef, ptr noundef) #7

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

declare noundef i32 @_ZN10SimTKIpopt21TripletToCSRConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, ptr noundef, ptr noundef) #7

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { inlinehint 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 #7 = { "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 nounwind }
attributes #10 = { builtin allocsize(0) }
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, !19, i64 68}
!10 = !{!"_ZTSN10SimTKIpopt16TSymLinearSolverE", !11, i64 0, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !19, i64 68, !19, i64 69, !19, i64 70, !20, i64 72, !21, i64 80, !6, i64 88, !19, i64 96, !19, i64 97, !6, i64 104, !6, i64 112, !22, i64 120, !23, i64 128, !24, i64 136, !19, i64 140}
!11 = !{!"_ZTSN10SimTKIpopt15SymLinearSolverE", !12, i64 0}
!12 = !{!"_ZTSN10SimTKIpopt23AlgorithmStrategyObjectE", !13, i64 0, !15, i64 16, !16, i64 24, !17, i64 32, !18, i64 40, !19, i64 48}
!13 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !14, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !6, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !6, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !6, i64 0}
!18 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_25IpoptCalculatedQuantitiesEEE", !6, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEE", !6, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_17TSymScalingMethodEEE", !6, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEE", !6, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEE", !6, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt30SparseSymLinearSolverInterface13EMatrixFormatE", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!10, !14, i64 56}
!28 = !{!10, !14, i64 60}
!29 = !{!10, !6, i64 104}
!30 = !{!10, !6, i64 112}
!31 = !{!10, !24, i64 136}
!32 = !{!14, !14, i64 0}
!33 = !{!10, !14, i64 64}
!34 = !{!35, !35, i64 0}
!35 = !{!"vtable pointer", !8, i64 0}
!36 = !{!37, !37, i64 0}
!37 = !{!"_ZTSN10SimTKIpopt16ESymSolverStatusE", !7, i64 0}
!38 = !{!10, !6, i64 88}
!39 = !{!10, !19, i64 70}


; 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::__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.15" = type { i8 }

@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [103 x i8], align 1
@_ZTIN10SimTKIpopt17INVALID_WARMSTARTE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [102 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: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #3 align 2

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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 nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt16TSymLinearSolver19InitializeStructureERKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.15", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.15", align 1
  %8 = getelementptr inbounds i8, ptr %0, i64 68
  %9 = load i8, ptr %8, align 4, !tbaa !5, !range !24, !noundef !25
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %106, label %11

11:                                               ; preds = %2
  %12 = tail call noundef i32 @_ZNK10SimTKIpopt9SymMatrix3DimEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %12, ptr %13, align 8, !tbaa !26
  %14 = tail call noundef i32 @_ZN10SimTKIpopt13TripletHelper16GetNumberEntriesERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(69) %1)
  %15 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %14, ptr %15, align 4, !tbaa !27
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  %17 = load ptr, ptr %16, align 8, !tbaa !28
  %18 = icmp eq ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %11
  tail call void @_ZdaPv(ptr noundef nonnull %17) #7
  br label %20

20:                                               ; preds = %19, %11
  %21 = getelementptr inbounds i8, ptr %0, i64 112
  %22 = load ptr, ptr %21, align 8, !tbaa !29
  %23 = icmp eq ptr %22, null
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  tail call void @_ZdaPv(ptr noundef nonnull %22) #7
  br label %25

25:                                               ; preds = %24, %20
  %26 = load i32, ptr %15, align 4, !tbaa !27
  %27 = sext i32 %26 to i64
  %28 = icmp slt i32 %26, 0
  %29 = shl nsw i64 %27, 2
  %30 = select i1 %28, i64 -1, i64 %29
  %31 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %30) #8
  store ptr %31, ptr %16, align 8, !tbaa !28
  %32 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %30) #8
  store ptr %32, ptr %21, align 8, !tbaa !29
  tail call void @_ZN10SimTKIpopt13TripletHelper10FillRowColEiRKNS_6MatrixEPiS4_ii(i32 noundef %26, ptr noundef nonnull align 8 dereferenceable(69) %1, ptr noundef nonnull %31, ptr noundef nonnull %32, i32 noundef 0, i32 noundef 0)
  %33 = getelementptr inbounds i8, ptr %0, i64 136
  %34 = load i32, ptr %33, align 8, !tbaa !30
  switch i32 %34, label %51 [
    i32 0, label %35
    i32 3, label %38
  ]

35:                                               ; preds = %25
  %36 = load ptr, ptr %16, align 8, !tbaa !28
  %37 = load ptr, ptr %21, align 8, !tbaa !29
  br label %76

38:                                               ; preds = %25
  %39 = getelementptr inbounds i8, ptr %0, i64 128
  %40 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39)
  %41 = load i32, ptr %13, align 8, !tbaa !26
  %42 = load i32, ptr %15, align 4, !tbaa !27
  %43 = load ptr, ptr %16, align 8, !tbaa !28
  %44 = load ptr, ptr %21, align 8, !tbaa !29
  %45 = tail call noundef i32 @_ZN10SimTKIpopt23TripletToDenseConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72) %40, i32 noundef %41, i32 noundef %42, ptr noundef %43, ptr noundef %44)
  %46 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %45, ptr %46, align 8, !tbaa !31
  %47 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39)
  %48 = tail call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %47)
  %49 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39)
  %50 = tail call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %49)
  br label %76

51:                                               ; preds = %25
  %52 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %53 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %52)
  %54 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %53)
  tail call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %54)
  %55 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %56 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %55)
  %57 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics34LinearSystemStructureConverterInitEv(ptr noundef nonnull align 8 dereferenceable(664) %56)
  tail call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %57)
  %58 = getelementptr inbounds i8, ptr %0, i64 120
  %59 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %58)
  %60 = load i32, ptr %13, align 8, !tbaa !26
  %61 = load i32, ptr %15, align 4, !tbaa !27
  %62 = load ptr, ptr %16, align 8, !tbaa !28
  %63 = load ptr, ptr %21, align 8, !tbaa !29
  %64 = tail call noundef i32 @_ZN10SimTKIpopt21TripletToCSRConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72) %59, i32 noundef %60, i32 noundef %61, ptr noundef %62, ptr noundef %63)
  %65 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %64, ptr %65, align 8, !tbaa !31
  %66 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %67 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %66)
  %68 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics34LinearSystemStructureConverterInitEv(ptr noundef nonnull align 8 dereferenceable(664) %67)
  tail call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %68)
  %69 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %58)
  %70 = tail call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %69)
  %71 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %58)
  %72 = tail call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %71)
  %73 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %74 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %73)
  %75 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %74)
  tail call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %75)
  br label %76

76:                                               ; preds = %38, %51, %35
  %.031 = phi ptr [ %36, %35 ], [ %48, %38 ], [ %70, %51 ]
  %.030 = phi ptr [ %37, %35 ], [ %50, %38 ], [ %72, %51 ]
  %.029.in = phi ptr [ %15, %35 ], [ %46, %38 ], [ %65, %51 ]
  %.029 = load i32, ptr %.029.in, align 4, !tbaa !32
  %77 = getelementptr inbounds i8, ptr %0, i64 72
  %78 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %77)
  %79 = load i32, ptr %13, align 8, !tbaa !26
  %80 = load ptr, ptr %78, align 8, !tbaa !33
  %81 = getelementptr inbounds i8, ptr %80, i64 24
  %82 = load ptr, ptr %81, align 8
  %83 = tail call noundef i32 %82(ptr noundef nonnull align 8 dereferenceable(49) %78, i32 noundef %79, i32 noundef %.029, ptr noundef %.031, ptr noundef %.030)
  %.not = icmp eq i32 %83, 0
  br i1 %.not, label %84, label %.critedge

84:                                               ; preds = %76
  %85 = getelementptr inbounds i8, ptr %0, i64 88
  %86 = load ptr, ptr %85, align 8, !tbaa !35
  %87 = icmp eq ptr %86, null
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  tail call void @_ZdaPv(ptr noundef nonnull %86) #7
  br label %89

89:                                               ; preds = %88, %84
  %90 = getelementptr inbounds i8, ptr %0, i64 80
  %91 = tail call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17TSymScalingMethodEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %90)
  br i1 %91, label %92, label %105

92:                                               ; preds = %89
  %93 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %94 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %93)
  %95 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %94)
  tail call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %95)
  %96 = load i32, ptr %13, align 8, !tbaa !26
  %97 = sext i32 %96 to i64
  %98 = icmp slt i32 %96, 0
  %99 = shl nsw i64 %97, 3
  %100 = select i1 %98, i64 -1, i64 %99
  %101 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %100) #8
  store ptr %101, ptr %85, align 8, !tbaa !35
  %102 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %103 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %102)
  %104 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %103)
  tail call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %104)
  br label %105

105:                                              ; preds = %92, %89
  store i8 1, ptr %8, align 4, !tbaa !5
  br label %169

106:                                              ; preds = %2
  %107 = getelementptr inbounds i8, ptr %0, i64 56
  %108 = load i32, ptr %107, align 8, !tbaa !26
  %109 = tail call noundef i32 @_ZNK10SimTKIpopt9SymMatrix3DimEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %110 = icmp eq i32 %108, %109
  br i1 %110, label %134, label %111

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %112 unwind label %121

112:                                              ; preds = %111
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  %113 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.9)
          to label %114 unwind label %123

114:                                              ; preds = %112
  %115 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.13)
          to label %116 unwind label %123

116:                                              ; preds = %114
  %117 = call ptr @__cxa_allocate_exception(i64 112) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %118 unwind label %.thread

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

119:                                              ; preds = %118
  invoke void @_ZN10SimTKIpopt17INVALID_WARMSTARTC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i(ptr noundef nonnull align 8 dereferenceable(112) %117, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 316)
          to label %120 unwind label %128

120:                                              ; preds = %119
  invoke void @__cxa_throw(ptr nonnull %117, ptr nonnull @_ZTIN10SimTKIpopt17INVALID_WARMSTARTE, ptr nonnull @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #10
          to label %171 unwind label %128

121:                                              ; preds = %111
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  br label %133

123:                                              ; preds = %114, %112
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %132

.thread:                                          ; preds = %116
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %131

126:                                              ; preds = %118
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %130

128:                                              ; preds = %120, %119
  %.020 = phi i1 [ false, %120 ], [ true, %119 ]
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  br label %130

130:                                              ; preds = %126, %128
  %.pn = phi { ptr, i32 } [ %129, %128 ], [ %127, %126 ]
  %.1 = phi i1 [ %.020, %128 ], [ true, %126 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  br i1 %.1, label %131, label %132

131:                                              ; preds = %.thread, %130
  %.pn.pn46 = phi { ptr, i32 } [ %125, %.thread ], [ %.pn, %130 ]
  call void @__cxa_free_exception(ptr %117) #9
  br label %132

132:                                              ; preds = %130, %131, %123
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn46, %131 ], [ %.pn, %130 ], [ %124, %123 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  br label %133

133:                                              ; preds = %132, %121
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %132 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn.pn.pn.pn

134:                                              ; preds = %106
  %135 = getelementptr inbounds i8, ptr %0, i64 136
  %136 = load i32, ptr %135, align 8, !tbaa !30
  switch i32 %136, label %148 [
    i32 0, label %137
    i32 3, label %142
  ]

137:                                              ; preds = %134
  %138 = getelementptr inbounds i8, ptr %0, i64 104
  %139 = load ptr, ptr %138, align 8, !tbaa !28
  %140 = getelementptr inbounds i8, ptr %0, i64 112
  %141 = load ptr, ptr %140, align 8, !tbaa !29
  br label %160

142:                                              ; preds = %134
  %143 = getelementptr inbounds i8, ptr %0, i64 128
  %144 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %143)
  %145 = tail call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %144)
  %146 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %143)
  %147 = tail call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %146)
  br label %160

148:                                              ; preds = %134
  %149 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %150 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %149)
  %151 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %150)
  tail call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %151)
  %152 = getelementptr inbounds i8, ptr %0, i64 120
  %153 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %152)
  %154 = tail call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %153)
  %155 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %152)
  %156 = tail call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %155)
  %157 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %158 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %157)
  %159 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %158)
  tail call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %159)
  br label %160

160:                                              ; preds = %142, %148, %137
  %.sink = phi i64 [ 64, %142 ], [ 64, %148 ], [ 60, %137 ]
  %.019 = phi ptr [ %145, %142 ], [ %154, %148 ], [ %139, %137 ]
  %.018 = phi ptr [ %147, %142 ], [ %156, %148 ], [ %141, %137 ]
  %161 = getelementptr inbounds i8, ptr %0, i64 %.sink
  %.0 = load i32, ptr %161, align 4, !tbaa !32
  %162 = getelementptr inbounds i8, ptr %0, i64 72
  %163 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %162)
  %164 = load i32, ptr %107, align 8, !tbaa !26
  %165 = load ptr, ptr %163, align 8, !tbaa !33
  %166 = getelementptr inbounds i8, ptr %165, i64 24
  %167 = load ptr, ptr %166, align 8
  %168 = tail call noundef i32 %167(ptr noundef nonnull align 8 dereferenceable(49) %163, i32 noundef %164, i32 noundef %.0, ptr noundef %.019, ptr noundef %.018)
  br label %169

169:                                              ; preds = %105, %160
  %.032 = phi i32 [ %168, %160 ], [ 0, %105 ]
  %170 = getelementptr inbounds i8, ptr %0, i64 70
  store i8 1, ptr %170, align 2, !tbaa !36
  br label %.critedge

.critedge:                                        ; preds = %76, %169
  %.134 = phi i32 [ %.032, %169 ], [ %83, %76 ]
  ret i32 %.134

171:                                              ; preds = %120
  unreachable
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK10SimTKIpopt9SymMatrix3DimEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5 align 2

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

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 #6

declare noundef i32 @_ZN10SimTKIpopt23TripletToDenseConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

declare noundef i32 @_ZN10SimTKIpopt21TripletToCSRConverter19InitializeConverterEiiPKiS2_(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { inlinehint 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 #6 = { "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 = { builtin nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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, !18, i64 68}
!6 = !{!"_ZTSN10SimTKIpopt16TSymLinearSolverE", !7, i64 0, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !18, i64 68, !18, i64 69, !18, i64 70, !19, i64 72, !20, i64 80, !14, i64 88, !18, i64 96, !18, i64 97, !14, i64 104, !14, i64 112, !21, i64 120, !22, i64 128, !23, i64 136, !18, i64 140}
!7 = !{!"_ZTSN10SimTKIpopt15SymLinearSolverE", !8, i64 0}
!8 = !{!"_ZTSN10SimTKIpopt23AlgorithmStrategyObjectE", !9, i64 0, !13, i64 16, !15, i64 24, !16, i64 32, !17, i64 40, !18, i64 48}
!9 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !10, i64 8}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !14, i64 0}
!14 = !{!"any pointer", !11, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !14, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !14, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_25IpoptCalculatedQuantitiesEEE", !14, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEE", !14, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_17TSymScalingMethodEEE", !14, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEE", !14, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEE", !14, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt30SparseSymLinearSolverInterface13EMatrixFormatE", !11, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!6, !10, i64 56}
!27 = !{!6, !10, i64 60}
!28 = !{!6, !14, i64 104}
!29 = !{!6, !14, i64 112}
!30 = !{!6, !23, i64 136}
!31 = !{!6, !10, i64 64}
!32 = !{!10, !10, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !12, i64 0}
!35 = !{!6, !14, i64 88}
!36 = !{!6, !18, i64 70}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass