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

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

@_ZTIN10SimTKIpopt6MatrixE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt10GenTMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10SymTMatrixE = external constant ptr
@_ZTIN10SimTKIpopt12ScaledMatrixE = external constant ptr
@_ZTIN10SimTKIpopt15SymScaledMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10DiagMatrixE = external constant ptr
@_ZTIN10SimTKIpopt14IdentityMatrixE = external constant ptr
@_ZTIN10SimTKIpopt15ExpansionMatrixE = external constant ptr
@_ZTIN10SimTKIpopt9SumMatrixE = external constant ptr
@_ZTIN10SimTKIpopt12SumSymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10ZeroMatrixE = external constant ptr
@_ZTIN10SimTKIpopt14CompoundMatrixE = external constant ptr
@_ZTIN10SimTKIpopt17CompoundSymMatrixE = external constant ptr
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTIN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [56 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: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #1

declare ptr @__cxa_allocate_exception(i64)

; 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 uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_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)

; 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt13TripletHelper10FillValuesEiRKNS_6MatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(69) %1, ptr noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.38", align 1
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator.38", align 1
  %27 = alloca i1, align 1
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %28, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = icmp eq ptr %29, null
  br i1 %30, label %33, label %31

31:                                               ; preds = %3
  %32 = call ptr @__dynamic_cast(ptr %29, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt10GenTMatrixE, i64 0) #4
  br label %34

33:                                               ; preds = %3
  br label %34

34:                                               ; preds = %33, %31
  %35 = phi ptr [ %32, %31 ], [ null, %33 ]
  store ptr %35, ptr %8, align 8, !tbaa !9
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %42

38:                                               ; preds = %34
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = load ptr, ptr %8, align 8, !tbaa !9
  %41 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10GenTMatrixEPd(i32 noundef %39, ptr noundef nonnull align 8 dereferenceable(89) %40, ptr noundef %41)
  store i32 1, ptr %9, align 4
  br label %225

42:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %43 = load ptr, ptr %7, align 8, !tbaa !9
  %44 = icmp eq ptr %43, null
  br i1 %44, label %47, label %45

45:                                               ; preds = %42
  %46 = call ptr @__dynamic_cast(ptr %43, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt10SymTMatrixE, i64 0) #4
  br label %48

47:                                               ; preds = %42
  br label %48

48:                                               ; preds = %47, %45
  %49 = phi ptr [ %46, %45 ], [ null, %47 ]
  store ptr %49, ptr %10, align 8, !tbaa !9
  %50 = load ptr, ptr %10, align 8, !tbaa !9
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %56

52:                                               ; preds = %48
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !9
  %55 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10SymTMatrixEPd(i32 noundef %53, ptr noundef nonnull align 8 dereferenceable(97) %54, ptr noundef %55)
  store i32 1, ptr %9, align 4
  br label %224

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %57 = load ptr, ptr %7, align 8, !tbaa !9
  %58 = icmp eq ptr %57, null
  br i1 %58, label %61, label %59

59:                                               ; preds = %56
  %60 = call ptr @__dynamic_cast(ptr %57, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt12ScaledMatrixE, i64 0) #4
  br label %62

61:                                               ; preds = %56
  br label %62

62:                                               ; preds = %61, %59
  %63 = phi ptr [ %60, %59 ], [ null, %61 ]
  store ptr %63, ptr %11, align 8, !tbaa !9
  %64 = load ptr, ptr %11, align 8, !tbaa !9
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %70

66:                                               ; preds = %62
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = load ptr, ptr %11, align 8, !tbaa !9
  %69 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_12ScaledMatrixEPd(i32 noundef %67, ptr noundef nonnull align 8 dereferenceable(96) %68, ptr noundef %69)
  store i32 1, ptr %9, align 4
  br label %223

70:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = icmp eq ptr %71, null
  br i1 %72, label %75, label %73

73:                                               ; preds = %70
  %74 = call ptr @__dynamic_cast(ptr %71, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt15SymScaledMatrixE, i64 0) #4
  br label %76

75:                                               ; preds = %70
  br label %76

76:                                               ; preds = %75, %73
  %77 = phi ptr [ %74, %73 ], [ null, %75 ]
  store ptr %77, ptr %12, align 8, !tbaa !9
  %78 = load ptr, ptr %12, align 8, !tbaa !9
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %84

80:                                               ; preds = %76
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = load ptr, ptr %12, align 8, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_15SymScaledMatrixEPd(i32 noundef %81, ptr noundef nonnull align 8 dereferenceable(104) %82, ptr noundef %83)
  store i32 1, ptr %9, align 4
  br label %222

84:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = icmp eq ptr %85, null
  br i1 %86, label %89, label %87

87:                                               ; preds = %84
  %88 = call ptr @__dynamic_cast(ptr %85, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt10DiagMatrixE, i64 0) #4
  br label %90

89:                                               ; preds = %84
  br label %90

90:                                               ; preds = %89, %87
  %91 = phi ptr [ %88, %87 ], [ null, %89 ]
  store ptr %91, ptr %13, align 8, !tbaa !9
  %92 = load ptr, ptr %13, align 8, !tbaa !9
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %98

94:                                               ; preds = %90
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = load ptr, ptr %13, align 8, !tbaa !9
  %97 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10DiagMatrixEPd(i32 noundef %95, ptr noundef nonnull align 8 dereferenceable(88) %96, ptr noundef %97)
  store i32 1, ptr %9, align 4
  br label %221

98:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %99 = load ptr, ptr %7, align 8, !tbaa !9
  %100 = icmp eq ptr %99, null
  br i1 %100, label %103, label %101

101:                                              ; preds = %98
  %102 = call ptr @__dynamic_cast(ptr %99, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt14IdentityMatrixE, i64 0) #4
  br label %104

103:                                              ; preds = %98
  br label %104

104:                                              ; preds = %103, %101
  %105 = phi ptr [ %102, %101 ], [ null, %103 ]
  store ptr %105, ptr %14, align 8, !tbaa !9
  %106 = load ptr, ptr %14, align 8, !tbaa !9
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %112

108:                                              ; preds = %104
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = load ptr, ptr %14, align 8, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_14IdentityMatrixEPd(i32 noundef %109, ptr noundef nonnull align 8 dereferenceable(88) %110, ptr noundef %111)
  store i32 1, ptr %9, align 4
  br label %220

112:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %113 = load ptr, ptr %7, align 8, !tbaa !9
  %114 = icmp eq ptr %113, null
  br i1 %114, label %117, label %115

115:                                              ; preds = %112
  %116 = call ptr @__dynamic_cast(ptr %113, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #4
  br label %118

117:                                              ; preds = %112
  br label %118

118:                                              ; preds = %117, %115
  %119 = phi ptr [ %116, %115 ], [ null, %117 ]
  store ptr %119, ptr %15, align 8, !tbaa !9
  %120 = load ptr, ptr %15, align 8, !tbaa !9
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %126

122:                                              ; preds = %118
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = load ptr, ptr %15, align 8, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_15ExpansionMatrixEPd(i32 noundef %123, ptr noundef nonnull align 8 dereferenceable(80) %124, ptr noundef %125)
  store i32 1, ptr %9, align 4
  br label %219

126:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %127 = load ptr, ptr %7, align 8, !tbaa !9
  %128 = icmp eq ptr %127, null
  br i1 %128, label %131, label %129

129:                                              ; preds = %126
  %130 = call ptr @__dynamic_cast(ptr %127, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt9SumMatrixE, i64 0) #4
  br label %132

131:                                              ; preds = %126
  br label %132

132:                                              ; preds = %131, %129
  %133 = phi ptr [ %130, %129 ], [ null, %131 ]
  store ptr %133, ptr %16, align 8, !tbaa !9
  %134 = load ptr, ptr %16, align 8, !tbaa !9
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %140

136:                                              ; preds = %132
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = load ptr, ptr %16, align 8, !tbaa !9
  %139 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_9SumMatrixEPd(i32 noundef %137, ptr noundef nonnull align 8 dereferenceable(128) %138, ptr noundef %139)
  store i32 1, ptr %9, align 4
  br label %218

140:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %141 = load ptr, ptr %7, align 8, !tbaa !9
  %142 = icmp eq ptr %141, null
  br i1 %142, label %145, label %143

143:                                              ; preds = %140
  %144 = call ptr @__dynamic_cast(ptr %141, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt12SumSymMatrixE, i64 0) #4
  br label %146

145:                                              ; preds = %140
  br label %146

146:                                              ; preds = %145, %143
  %147 = phi ptr [ %144, %143 ], [ null, %145 ]
  store ptr %147, ptr %17, align 8, !tbaa !9
  %148 = load ptr, ptr %17, align 8, !tbaa !9
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %154

150:                                              ; preds = %146
  %151 = load i32, ptr %4, align 4, !tbaa !5
  %152 = load ptr, ptr %17, align 8, !tbaa !9
  %153 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_12SumSymMatrixEPd(i32 noundef %151, ptr noundef nonnull align 8 dereferenceable(136) %152, ptr noundef %153)
  store i32 1, ptr %9, align 4
  br label %217

154:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %155 = load ptr, ptr %7, align 8, !tbaa !9
  %156 = icmp eq ptr %155, null
  br i1 %156, label %159, label %157

157:                                              ; preds = %154
  %158 = call ptr @__dynamic_cast(ptr %155, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt10ZeroMatrixE, i64 0) #4
  br label %160

159:                                              ; preds = %154
  br label %160

160:                                              ; preds = %159, %157
  %161 = phi ptr [ %158, %157 ], [ null, %159 ]
  store ptr %161, ptr %18, align 8, !tbaa !9
  %162 = load ptr, ptr %18, align 8, !tbaa !9
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %165

164:                                              ; preds = %160
  store i32 1, ptr %9, align 4
  br label %216

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %166 = load ptr, ptr %7, align 8, !tbaa !9
  %167 = icmp eq ptr %166, null
  br i1 %167, label %170, label %168

168:                                              ; preds = %165
  %169 = call ptr @__dynamic_cast(ptr %166, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt14CompoundMatrixE, i64 0) #4
  br label %171

170:                                              ; preds = %165
  br label %171

171:                                              ; preds = %170, %168
  %172 = phi ptr [ %169, %168 ], [ null, %170 ]
  store ptr %172, ptr %19, align 8, !tbaa !9
  %173 = load ptr, ptr %19, align 8, !tbaa !9
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %179

175:                                              ; preds = %171
  %176 = load i32, ptr %4, align 4, !tbaa !5
  %177 = load ptr, ptr %19, align 8, !tbaa !9
  %178 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_14CompoundMatrixEPd(i32 noundef %176, ptr noundef nonnull align 8 dereferenceable(129) %177, ptr noundef %178)
  store i32 1, ptr %9, align 4
  br label %215

179:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %180 = load ptr, ptr %7, align 8, !tbaa !9
  %181 = icmp eq ptr %180, null
  br i1 %181, label %184, label %182

182:                                              ; preds = %179
  %183 = call ptr @__dynamic_cast(ptr %180, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt17CompoundSymMatrixE, i64 0) #4
  br label %185

184:                                              ; preds = %179
  br label %185

185:                                              ; preds = %184, %182
  %186 = phi ptr [ %183, %182 ], [ null, %184 ]
  store ptr %186, ptr %20, align 8, !tbaa !9
  %187 = load ptr, ptr %20, align 8, !tbaa !9
  %188 = icmp ne ptr %187, null
  br i1 %188, label %189, label %193

189:                                              ; preds = %185
  %190 = load i32, ptr %4, align 4, !tbaa !5
  %191 = load ptr, ptr %20, align 8, !tbaa !9
  %192 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_17CompoundSymMatrixEPd(i32 noundef %190, ptr noundef nonnull align 8 dereferenceable(137) %191, ptr noundef %192)
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %215

193:                                              ; preds = %185
  store i1 true, ptr %27, align 1
  %194 = call ptr @__cxa_allocate_exception(i64 112) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %195 unwind label %198

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

196:                                              ; preds = %195
  invoke void @_ZN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(112) %194, ptr noundef %21, ptr noundef %25, i32 noundef 251)
          to label %197 unwind label %206

197:                                              ; preds = %196
  store i1 false, ptr %27, align 1
  invoke void @__cxa_throw(ptr %194, ptr @_ZTIN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEE, ptr @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #5
          to label %231 unwind label %206

198:                                              ; preds = %193
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %23, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %24, align 4
  br label %211

202:                                              ; preds = %195
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %23, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %24, align 4
  br label %210

206:                                              ; preds = %197, %196
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %23, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %24, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #4
  br label %210

210:                                              ; preds = %206, %202
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #4
  br label %211

211:                                              ; preds = %210, %198
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  %212 = load i1, ptr %27, align 1
  br i1 %212, label %213, label %214

213:                                              ; preds = %211
  call void @__cxa_free_exception(ptr %194) #4
  br label %214

214:                                              ; preds = %213, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %226

215:                                              ; preds = %189, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %216

216:                                              ; preds = %215, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %217

217:                                              ; preds = %216, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %218

218:                                              ; preds = %217, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %219

219:                                              ; preds = %218, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %220

220:                                              ; preds = %219, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %221

221:                                              ; preds = %220, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %222

222:                                              ; preds = %221, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %223

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

224:                                              ; preds = %223, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %225

225:                                              ; preds = %224, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void

226:                                              ; preds = %214
  %227 = load ptr, ptr %23, align 8
  %228 = load i32, ptr %24, align 4
  %229 = insertvalue { ptr, i32 } poison, ptr %227, 0
  %230 = insertvalue { ptr, i32 } %229, i32 %228, 1
  resume { ptr, i32 } %230

231:                                              ; preds = %197
  unreachable
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_15ExpansionMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #2 align 2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(read) }
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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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

@_ZTIN10SimTKIpopt6MatrixE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt10GenTMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10SymTMatrixE = external constant ptr
@_ZTIN10SimTKIpopt12ScaledMatrixE = external constant ptr
@_ZTIN10SimTKIpopt15SymScaledMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10DiagMatrixE = external constant ptr
@_ZTIN10SimTKIpopt14IdentityMatrixE = external constant ptr
@_ZTIN10SimTKIpopt15ExpansionMatrixE = external constant ptr
@_ZTIN10SimTKIpopt9SumMatrixE = external constant ptr
@_ZTIN10SimTKIpopt12SumSymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10ZeroMatrixE = external constant ptr
@_ZTIN10SimTKIpopt14CompoundMatrixE = external constant ptr
@_ZTIN10SimTKIpopt17CompoundSymMatrixE = external constant ptr
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTIN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; 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 uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_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

; 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt13TripletHelper10FillValuesEiRKNS_6MatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(69) %1, ptr noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.38", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.38", align 1
  %8 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt10GenTMatrixE, i64 0) #4
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %10, label %9

9:                                                ; preds = %3
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10GenTMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(89) %8, ptr noundef %2)
  br label %55

10:                                               ; preds = %3
  %11 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt10SymTMatrixE, i64 0) #4
  %.not75 = icmp eq ptr %11, null
  br i1 %.not75, label %13, label %12

12:                                               ; preds = %10
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10SymTMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(97) %11, ptr noundef %2)
  br label %55

13:                                               ; preds = %10
  %14 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt12ScaledMatrixE, i64 0) #4
  %.not76 = icmp eq ptr %14, null
  br i1 %.not76, label %16, label %15

15:                                               ; preds = %13
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_12ScaledMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(96) %14, ptr noundef %2)
  br label %55

16:                                               ; preds = %13
  %17 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt15SymScaledMatrixE, i64 0) #4
  %.not77 = icmp eq ptr %17, null
  br i1 %.not77, label %19, label %18

18:                                               ; preds = %16
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_15SymScaledMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(104) %17, ptr noundef %2)
  br label %55

19:                                               ; preds = %16
  %20 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt10DiagMatrixE, i64 0) #4
  %.not78 = icmp eq ptr %20, null
  br i1 %.not78, label %22, label %21

21:                                               ; preds = %19
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10DiagMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(88) %20, ptr noundef %2)
  br label %55

22:                                               ; preds = %19
  %23 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt14IdentityMatrixE, i64 0) #4
  %.not79 = icmp eq ptr %23, null
  br i1 %.not79, label %25, label %24

24:                                               ; preds = %22
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_14IdentityMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(88) %23, ptr noundef %2)
  br label %55

25:                                               ; preds = %22
  %26 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #4
  %.not80 = icmp eq ptr %26, null
  br i1 %.not80, label %28, label %27

27:                                               ; preds = %25
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_15ExpansionMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(80) %26, ptr noundef %2)
  br label %55

28:                                               ; preds = %25
  %29 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt9SumMatrixE, i64 0) #4
  %.not81 = icmp eq ptr %29, null
  br i1 %.not81, label %31, label %30

30:                                               ; preds = %28
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_9SumMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(128) %29, ptr noundef %2)
  br label %55

31:                                               ; preds = %28
  %32 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt12SumSymMatrixE, i64 0) #4
  %.not82 = icmp eq ptr %32, null
  br i1 %.not82, label %34, label %33

33:                                               ; preds = %31
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_12SumSymMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(136) %32, ptr noundef %2)
  br label %55

34:                                               ; preds = %31
  %35 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt10ZeroMatrixE, i64 0) #4
  %.not83 = icmp eq ptr %35, null
  br i1 %.not83, label %36, label %55

36:                                               ; preds = %34
  %37 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt14CompoundMatrixE, i64 0) #4
  %.not84 = icmp eq ptr %37, null
  br i1 %.not84, label %39, label %38

38:                                               ; preds = %36
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_14CompoundMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(129) %37, ptr noundef %2)
  br label %55

39:                                               ; preds = %36
  %40 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt17CompoundSymMatrixE, i64 0) #4
  %.not85 = icmp eq ptr %40, null
  br i1 %.not85, label %42, label %41

41:                                               ; preds = %39
  tail call void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_17CompoundSymMatrixEPd(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(137) %40, ptr noundef %2)
  br label %55

42:                                               ; preds = %39
  %43 = tail call ptr @__cxa_allocate_exception(i64 112) #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.3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %44 unwind label %.thread

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

45:                                               ; preds = %44
  invoke void @_ZN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(112) %43, ptr noundef nonnull %4, ptr noundef nonnull %6, i32 noundef 251)
          to label %46 unwind label %50

46:                                               ; preds = %45
  invoke void @__cxa_throw(ptr nonnull %43, ptr nonnull @_ZTIN10SimTKIpopt13TripletHelper19UNKNOWN_MATRIX_TYPEE, ptr nonnull @_ZN10SimTKIpopt14IpoptExceptionD2Ev) #5
          to label %56 unwind label %50

.thread:                                          ; preds = %42
  %47 = 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 %53

48:                                               ; preds = %44
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

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

52:                                               ; preds = %48, %50
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  %.1 = phi i1 [ %.0, %50 ], [ true, %48 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  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 i1 %.1, label %53, label %54

53:                                               ; preds = %.thread, %52
  %.pn.pn91 = phi { ptr, i32 } [ %47, %.thread ], [ %.pn, %52 ]
  call void @__cxa_free_exception(ptr %43) #4
  br label %54

54:                                               ; preds = %53, %52
  %.pn.pn90 = phi { ptr, i32 } [ %.pn.pn91, %53 ], [ %.pn, %52 ]
  resume { ptr, i32 } %.pn.pn90

55:                                               ; preds = %12, %18, %24, %30, %34, %41, %38, %33, %27, %21, %15, %9
  ret void

56:                                               ; preds = %46
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10GenTMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(89), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10SymTMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(97), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_12ScaledMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_15SymScaledMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_10DiagMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_14IdentityMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_15ExpansionMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_9SumMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_12SumSymMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_14CompoundMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(129), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt13TripletHelper11FillValues_EiRKNS_17CompoundSymMatrixEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(137), ptr noundef) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(read) }
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 = { 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)"}


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