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

; 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.11" = type { i8 }
%"class.SimTKIpopt::TNLPAdapter" = type { %"class.SimTKIpopt::NLP.base", %"class.SimTKIpopt::SmartPtr.6", %"class.SimTKIpopt::SmartPtr.7", double, double, i32, i32, double, double, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr.8", ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", ptr, ptr, ptr }
%"class.SimTKIpopt::NLP.base" = type { %"class.SimTKIpopt::ReferencedObject.base" }
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.SimTKIpopt::SmartPtr.6" = type { ptr }
%"class.SimTKIpopt::SmartPtr.7" = type { ptr }
%"class.SimTKIpopt::SmartPtr" = type { ptr }
%"class.SimTKIpopt::SmartPtr.5" = type { ptr }
%"class.SimTKIpopt::SmartPtr.8" = type { ptr }
%"class.SimTKIpopt::SmartPtr.10" = type { ptr }
%"class.SimTKIpopt::SmartPtr.9" = type { ptr }

@_ZTVN10SimTKIpopt11TNLPAdapterE = external dso_local unnamed_addr constant { [20 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@_ZTIN10SimTKIpopt11TNLPAdapter12INVALID_TNLPE = external dso_local constant { ptr, ptr, ptr }, align 8

; 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 dso_local void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt11TNLPAdapterC2ENS_8SmartPtrINS_4TNLPEEENS1_IKNS_10JournalistEEE(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.11", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.11", align 1
  %14 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  call void @_ZN10SimTKIpopt3NLPC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15)
  store ptr getelementptr inbounds inrange(-16, 144) ({ [20 x ptr] }, ptr @_ZTVN10SimTKIpopt11TNLPAdapterE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 1
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_4TNLPEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %17 unwind label %102

17:                                               ; preds = %3
  %18 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 2
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_10JournalistEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %19 unwind label %106

19:                                               ; preds = %17
  %20 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 12
  store i32 -1, ptr %20, align 8, !tbaa !11
  %21 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 13
  store i32 -1, ptr %21, align 4, !tbaa !29
  %22 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 14
  store i32 -1, ptr %22, align 8, !tbaa !30
  %23 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 15
  store i32 -1, ptr %23, align 4, !tbaa !31
  %24 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 16
  store i32 -1, ptr %24, align 8, !tbaa !32
  %25 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 17
  store i32 -1, ptr %25, align 4, !tbaa !33
  %26 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 18
  store i32 -1, ptr %26, align 8, !tbaa !34
  %27 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 19
  store i32 -1, ptr %27, align 4, !tbaa !35
  %28 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 22
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %29 unwind label %110

29:                                               ; preds = %19
  %30 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 23
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %31 unwind label %114

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 24
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %33 unwind label %118

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 25
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %35 unwind label %122

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 26
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %37 unwind label %126

37:                                               ; preds = %35
  %38 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 27
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %39 unwind label %130

39:                                               ; preds = %37
  %40 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 28
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %41 unwind label %134

41:                                               ; preds = %39
  %42 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 29
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %43 unwind label %138

43:                                               ; preds = %41
  %44 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 30
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %45 unwind label %142

45:                                               ; preds = %43
  %46 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 31
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %47 unwind label %146

47:                                               ; preds = %45
  %48 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 32
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %49 unwind label %150

49:                                               ; preds = %47
  %50 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 33
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %51 unwind label %154

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 34
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %53 unwind label %158

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 35
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %55 unwind label %162

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 36
  store ptr null, ptr %56, align 8, !tbaa !36
  %57 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 37
  store ptr null, ptr %57, align 8, !tbaa !37
  %58 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 38
  store ptr null, ptr %58, align 8, !tbaa !38
  %59 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 39
  store ptr null, ptr %59, align 8, !tbaa !39
  %60 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 40
  store ptr null, ptr %60, align 8, !tbaa !40
  %61 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 41
  store i32 0, ptr %61, align 8, !tbaa !41
  %62 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 42
  store i32 0, ptr %62, align 4, !tbaa !42
  %63 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 43
  store i32 0, ptr %63, align 8, !tbaa !43
  %64 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 44
  store i32 0, ptr %64, align 4, !tbaa !44
  %65 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 45
  store i32 0, ptr %65, align 8, !tbaa !45
  %66 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 46
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %67 unwind label %166

67:                                               ; preds = %55
  %68 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 47
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %69 unwind label %170

69:                                               ; preds = %67
  %70 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 48
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %71 unwind label %174

71:                                               ; preds = %69
  %72 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 49
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %73 unwind label %178

73:                                               ; preds = %71
  %74 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 50
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %75 unwind label %182

75:                                               ; preds = %73
  %76 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 51
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %76)
          to label %77 unwind label %186

77:                                               ; preds = %75
  %78 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 52
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %78)
          to label %79 unwind label %190

79:                                               ; preds = %77
  %80 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 53
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %80)
          to label %81 unwind label %194

81:                                               ; preds = %79
  %82 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 54
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82)
          to label %83 unwind label %198

83:                                               ; preds = %81
  %84 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 55
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %84)
          to label %85 unwind label %202

85:                                               ; preds = %83
  %86 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 56
  store ptr null, ptr %86, align 8, !tbaa !46
  %87 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 57
  store ptr null, ptr %87, align 8, !tbaa !47
  %88 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 58
  store ptr null, ptr %88, align 8, !tbaa !48
  %89 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %15, i32 0, i32 1
  %90 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_4TNLPEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %89)
          to label %91 unwind label %206

91:                                               ; preds = %85
  br i1 %90, label %237, label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %93 unwind label %210

93:                                               ; preds = %92
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  %94 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.1)
          to label %95 unwind label %214

95:                                               ; preds = %93
  %96 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.2)
          to label %97 unwind label %214

97:                                               ; preds = %95
  store i1 true, ptr %14, align 1
  %98 = call ptr @__cxa_allocate_exception(i64 112) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %99 unwind label %218

99:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %100 unwind label %222

100:                                              ; preds = %99
  invoke void @_ZN10SimTKIpopt11TNLPAdapter12INVALID_TNLPC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(112) %98, ptr noundef %11, ptr noundef %12, i32 noundef 71)
          to label %101 unwind label %226

101:                                              ; preds = %100
  store i1 false, ptr %14, align 1
  invoke void @__cxa_throw(ptr %98, ptr @_ZTIN10SimTKIpopt11TNLPAdapter12INVALID_TNLPE, ptr @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #4
          to label %270 unwind label %226

102:                                              ; preds = %3
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %7, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %8, align 4
  br label %264

106:                                              ; preds = %17
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %7, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %8, align 4
  br label %263

110:                                              ; preds = %19
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %7, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %8, align 4
  br label %262

114:                                              ; preds = %29
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %7, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %8, align 4
  br label %261

118:                                              ; preds = %31
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %7, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %8, align 4
  br label %260

122:                                              ; preds = %33
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %7, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %8, align 4
  br label %259

126:                                              ; preds = %35
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  br label %258

130:                                              ; preds = %37
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %7, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %8, align 4
  br label %257

134:                                              ; preds = %39
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  br label %256

138:                                              ; preds = %41
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  br label %255

142:                                              ; preds = %43
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  br label %254

146:                                              ; preds = %45
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  br label %253

150:                                              ; preds = %47
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %7, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %8, align 4
  br label %252

154:                                              ; preds = %49
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %7, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %8, align 4
  br label %251

158:                                              ; preds = %51
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %7, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %8, align 4
  br label %250

162:                                              ; preds = %53
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %7, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %8, align 4
  br label %249

166:                                              ; preds = %55
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %7, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %8, align 4
  br label %248

170:                                              ; preds = %67
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %7, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %8, align 4
  br label %247

174:                                              ; preds = %69
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %7, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %8, align 4
  br label %246

178:                                              ; preds = %71
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %7, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %8, align 4
  br label %245

182:                                              ; preds = %73
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %7, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %8, align 4
  br label %244

186:                                              ; preds = %75
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %7, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %8, align 4
  br label %243

190:                                              ; preds = %77
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %7, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %8, align 4
  br label %242

194:                                              ; preds = %79
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %7, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %8, align 4
  br label %241

198:                                              ; preds = %81
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %7, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %8, align 4
  br label %240

202:                                              ; preds = %83
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %7, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %8, align 4
  br label %239

206:                                              ; preds = %85
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %7, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %8, align 4
  br label %238

210:                                              ; preds = %92
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %7, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  br label %236

214:                                              ; preds = %95, %93
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %7, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %8, align 4
  br label %235

218:                                              ; preds = %97
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %7, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %8, align 4
  br label %231

222:                                              ; preds = %99
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %7, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %8, align 4
  br label %230

226:                                              ; preds = %101, %100
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %7, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #3
  br label %230

230:                                              ; preds = %226, %222
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  br label %231

231:                                              ; preds = %230, %218
  %232 = load i1, ptr %14, align 1
  br i1 %232, label %233, label %234

233:                                              ; preds = %231
  call void @__cxa_free_exception(ptr %98) #3
  br label %234

234:                                              ; preds = %233, %231
  br label %235

235:                                              ; preds = %234, %214
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #3
  br label %236

236:                                              ; preds = %235, %210
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #3
  br label %238

237:                                              ; preds = %91
  ret void

238:                                              ; preds = %236, %206
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %84) #3
  br label %239

239:                                              ; preds = %238, %202
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #3
  br label %240

240:                                              ; preds = %239, %198
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %80) #3
  br label %241

241:                                              ; preds = %240, %194
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %78) #3
  br label %242

242:                                              ; preds = %241, %190
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %76) #3
  br label %243

243:                                              ; preds = %242, %186
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #3
  br label %244

244:                                              ; preds = %243, %182
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #3
  br label %245

245:                                              ; preds = %244, %178
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %70) #3
  br label %246

246:                                              ; preds = %245, %174
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #3
  br label %247

247:                                              ; preds = %246, %170
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #3
  br label %248

248:                                              ; preds = %247, %166
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #3
  br label %249

249:                                              ; preds = %248, %162
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #3
  br label %250

250:                                              ; preds = %249, %158
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #3
  br label %251

251:                                              ; preds = %250, %154
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #3
  br label %252

252:                                              ; preds = %251, %150
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #3
  br label %253

253:                                              ; preds = %252, %146
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44) #3
  br label %254

254:                                              ; preds = %253, %142
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #3
  br label %255

255:                                              ; preds = %254, %138
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #3
  br label %256

256:                                              ; preds = %255, %134
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #3
  br label %257

257:                                              ; preds = %256, %130
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #3
  br label %258

258:                                              ; preds = %257, %126
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #3
  br label %259

259:                                              ; preds = %258, %122
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #3
  br label %260

260:                                              ; preds = %259, %118
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #3
  br label %261

261:                                              ; preds = %260, %114
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #3
  br label %262

262:                                              ; preds = %261, %110
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_10JournalistEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #3
  br label %263

263:                                              ; preds = %262, %106
  call void @_ZN10SimTKIpopt8SmartPtrINS_4TNLPEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #3
  br label %264

264:                                              ; preds = %263, %102
  call void @_ZN10SimTKIpopt16ReferencedObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #3
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %7, align 8
  %267 = load i32, ptr %8, align 4
  %268 = insertvalue { ptr, i32 } poison, ptr %266, 0
  %269 = insertvalue { ptr, i32 } %268, i32 %267, 1
  resume { ptr, i32 } %269

270:                                              ; preds = %101
  unreachable
}

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

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

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

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

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

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

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

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

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

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2 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 #2 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrINS_4TNLPEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 @_ZN10SimTKIpopt16ReferencedObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !15, i64 80}
!12 = !{!"_ZTSN10SimTKIpopt11TNLPAdapterE", !13, i64 0, !16, i64 16, !17, i64 24, !18, i64 32, !18, i64 40, !19, i64 48, !20, i64 52, !18, i64 56, !18, i64 64, !21, i64 72, !21, i64 73, !22, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !23, i64 116, !24, i64 120, !24, i64 128, !24, i64 136, !24, i64 144, !25, i64 152, !24, i64 160, !25, i64 168, !24, i64 176, !25, i64 184, !24, i64 192, !25, i64 200, !25, i64 208, !25, i64 216, !26, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !15, i64 272, !15, i64 276, !15, i64 280, !15, i64 284, !15, i64 288, !27, i64 296, !28, i64 304, !27, i64 312, !28, i64 320, !27, i64 328, !28, i64 336, !28, i64 344, !27, i64 352, !28, i64 360, !27, i64 368, !6, i64 376, !6, i64 384, !6, i64 392}
!13 = !{!"_ZTSN10SimTKIpopt3NLPE", !14, i64 0}
!14 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !15, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_4TNLPEEE", !6, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !6, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt11TNLPAdapter26FixedVariableTreatmentEnumE", !7, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt11TNLPAdapter18DerivativeTestEnumE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt24HessianApproximationTypeE", !7, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt4TNLP14IndexStyleEnumE", !7, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEE", !6, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEE", !6, i64 0}
!26 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEEE", !6, i64 0}
!27 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEE", !6, i64 0}
!28 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEE", !6, i64 0}
!29 = !{!12, !15, i64 84}
!30 = !{!12, !15, i64 88}
!31 = !{!12, !15, i64 92}
!32 = !{!12, !15, i64 96}
!33 = !{!12, !15, i64 100}
!34 = !{!12, !15, i64 104}
!35 = !{!12, !15, i64 108}
!36 = !{!12, !6, i64 232}
!37 = !{!12, !6, i64 240}
!38 = !{!12, !6, i64 248}
!39 = !{!12, !6, i64 256}
!40 = !{!12, !6, i64 264}
!41 = !{!12, !15, i64 272}
!42 = !{!12, !15, i64 276}
!43 = !{!12, !15, i64 280}
!44 = !{!12, !15, i64 284}
!45 = !{!12, !15, i64 288}
!46 = !{!12, !6, i64 376}
!47 = !{!12, !6, i64 384}
!48 = !{!12, !6, i64 392}


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

@_ZTVN10SimTKIpopt11TNLPAdapterE = external dso_local unnamed_addr constant { [20 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@_ZTIN10SimTKIpopt11TNLPAdapter12INVALID_TNLPE = external dso_local constant { ptr, ptr, ptr }, align 8

; 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 dso_local void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt11TNLPAdapterC2ENS_8SmartPtrINS_4TNLPEEENS1_IKNS_10JournalistEEE(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.11", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.11", align 1
  tail call void @_ZN10SimTKIpopt3NLPC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %0)
  store ptr getelementptr inbounds inrange(-16, 144) (i8, ptr @_ZTVN10SimTKIpopt11TNLPAdapterE, i64 16), ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_4TNLPEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %10 unwind label %52

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_10JournalistEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %12 unwind label %54

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %13, i8 -1, i64 32, i1 false)
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %19 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
  %22 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %24 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 216
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %27 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27)
  %28 = getelementptr inbounds i8, ptr %0, i64 232
  %29 = getelementptr inbounds i8, ptr %0, i64 296
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(60) %28, i8 0, i64 60, i1 false)
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29)
  %30 = getelementptr inbounds i8, ptr %0, i64 304
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30)
  %31 = getelementptr inbounds i8, ptr %0, i64 312
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %32 = getelementptr inbounds i8, ptr %0, i64 320
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32)
  %33 = getelementptr inbounds i8, ptr %0, i64 328
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33)
  %34 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 344
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 352
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %37 = getelementptr inbounds i8, ptr %0, i64 360
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37)
  %38 = getelementptr inbounds i8, ptr %0, i64 368
  tail call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %39 = getelementptr inbounds i8, ptr %0, i64 376
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %39, i8 0, i64 24, i1 false)
  %40 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_4TNLPEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %41 unwind label %56

41:                                               ; preds = %12
  br i1 %40, label %71, label %42

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %43 unwind label %58

43:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  %44 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.1)
          to label %45 unwind label %60

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.2)
          to label %47 unwind label %60

47:                                               ; preds = %45
  %48 = call ptr @__cxa_allocate_exception(i64 112) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %49 unwind label %.thread

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

50:                                               ; preds = %49
  invoke void @_ZN10SimTKIpopt11TNLPAdapter12INVALID_TNLPC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(112) %48, ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef 71)
          to label %51 unwind label %65

51:                                               ; preds = %50
  invoke void @__cxa_throw(ptr nonnull %48, ptr nonnull @_ZTIN10SimTKIpopt11TNLPAdapter12INVALID_TNLPE, ptr nonnull @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #5
          to label %75 unwind label %65

52:                                               ; preds = %3
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %74

54:                                               ; preds = %10
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %73

56:                                               ; preds = %12
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %72

58:                                               ; preds = %42
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %70

60:                                               ; preds = %45, %43
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %69

.thread:                                          ; preds = %47
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %68

63:                                               ; preds = %49
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %51, %50
  %.0 = phi i1 [ false, %51 ], [ true, %50 ]
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  br label %67

67:                                               ; preds = %63, %65
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  %.1 = phi i1 [ %.0, %65 ], [ true, %63 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br i1 %.1, label %68, label %69

68:                                               ; preds = %.thread, %67
  %.pn.pn22 = phi { ptr, i32 } [ %62, %.thread ], [ %.pn, %67 ]
  call void @__cxa_free_exception(ptr %48) #4
  br label %69

69:                                               ; preds = %67, %68, %60
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn22, %68 ], [ %.pn, %67 ], [ %61, %60 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  br label %70

70:                                               ; preds = %69, %58
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %69 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %72

71:                                               ; preds = %41
  ret void

72:                                               ; preds = %70, %56
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %70 ], [ %57, %56 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #4
  call void @_ZN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_10JournalistEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br label %73

73:                                               ; preds = %72, %54
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %72 ], [ %55, %54 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_4TNLPEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br label %74

74:                                               ; preds = %73, %52
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %73 ], [ %53, %52 ]
  call void @_ZN10SimTKIpopt16ReferencedObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %0) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn

75:                                               ; preds = %51
  unreachable
}

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

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

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

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

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

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

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

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

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

; 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 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 #2 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 #2 align 2

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrINS_4TNLPEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 @_ZN10SimTKIpopt16ReferencedObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
attributes #5 = { 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"}


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