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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt16TSymLinearSolver10MultiSolveERKNS_9SymMatrixERSt6vectorINS_8SmartPtrIKNS_6VectorEEESaIS8_EERS4_INS5_IS6_EESaISC_EEbi(ptr noundef nonnull align 8 dereferenceable(141) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i1 noundef zeroext %4, i32 noundef %5) unnamed_addr #3 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  %27 = zext i1 %4 to i8
  store i8 %27, ptr %12, align 1, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !11
  %28 = load ptr, ptr %8, align 8
  %29 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 8
  %30 = load i8, ptr %29, align 2, !tbaa !13, !range !27, !noundef !28
  %31 = trunc i8 %30 to i1
  br i1 %31, label %43, label %32

32:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call noundef i32 @_ZN10SimTKIpopt16TSymLinearSolver19InitializeStructureERKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %28, ptr noundef nonnull align 8 dereferenceable(80) %33)
  store i32 %34, ptr %14, align 4, !tbaa !29
  %35 = load i32, ptr %14, align 4, !tbaa !29
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %32
  %38 = load i32, ptr %14, align 4, !tbaa !29
  store i32 %38, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %40

39:                                               ; preds = %32
  store i32 0, ptr %15, align 4
  br label %40

40:                                               ; preds = %39, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %41 = load i32, ptr %15, align 4
  switch i32 %41, label %272 [
    i32 0, label %42
    i32 1, label %270
  ]

42:                                               ; preds = %40
  br label %43

43:                                               ; preds = %42, %6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !31
  %47 = call noundef zeroext i1 @_ZNK10SimTKIpopt12TaggedObject10HasChangedEj(ptr noundef nonnull align 8 dereferenceable(56) %44, i32 noundef %46)
  %48 = zext i1 %47 to i8
  store i8 %48, ptr %16, align 1, !tbaa !9
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call noundef i32 @_ZNK10SimTKIpopt12TaggedObject6GetTagEv(ptr noundef nonnull align 8 dereferenceable(56) %49)
  %51 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 2
  store i32 %50, ptr %51, align 4, !tbaa !31
  %52 = load i8, ptr %16, align 1, !tbaa !9, !range !27, !noundef !28
  %53 = trunc i8 %52 to i1
  br i1 %53, label %58, label %54

54:                                               ; preds = %43
  %55 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 14
  %56 = load i8, ptr %55, align 1, !tbaa !32, !range !27, !noundef !28
  %57 = trunc i8 %56 to i1
  br i1 %57, label %58, label %60

58:                                               ; preds = %54, %43
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN10SimTKIpopt16TSymLinearSolver18GiveMatrixToSolverEbRKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %28, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(80) %59)
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %60

60:                                               ; preds = %58, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = call noundef i64 @_ZNKSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %63 = trunc i64 %62 to i32
  store i32 %63, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %64 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %65 = load i32, ptr %64, align 8, !tbaa !33
  %66 = load i32, ptr %17, align 4, !tbaa !11
  %67 = mul nsw i32 %65, %66
  %68 = sext i32 %67 to i64
  %69 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %68, i64 8)
  %70 = extractvalue { i64, i1 } %69, 1
  %71 = extractvalue { i64, i1 } %69, 0
  %72 = select i1 %70, i64 -1, i64 %71
  %73 = call noalias noundef nonnull ptr @_Znam(i64 noundef %72) #8
  store ptr %73, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %74

74:                                               ; preds = %133, %60
  %75 = load i32, ptr %19, align 4, !tbaa !11
  %76 = load i32, ptr %17, align 4, !tbaa !11
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %136

79:                                               ; preds = %74
  %80 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %81 = load i32, ptr %80, align 8, !tbaa !33
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load i32, ptr %19, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #7
  %86 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %85)
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = load i32, ptr %19, align 4, !tbaa !11
  %89 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %90 = load i32, ptr %89, align 8, !tbaa !33
  %91 = mul nsw i32 %88, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %87, i64 %92
  call void @_ZN10SimTKIpopt13TripletHelper20FillValuesFromVectorEiRKNS_6VectorEPd(i32 noundef %81, ptr noundef nonnull align 8 dereferenceable(205) %86, ptr noundef %93)
  %94 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 13
  %95 = load i8, ptr %94, align 8, !tbaa !34, !range !27, !noundef !28
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %132

97:                                               ; preds = %79
  %98 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %28)
  %99 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %98)
  %100 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %99)
  call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %100)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %101

101:                                              ; preds = %125, %97
  %102 = load i32, ptr %20, align 4, !tbaa !11
  %103 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %104 = load i32, ptr %103, align 8, !tbaa !33
  %105 = icmp slt i32 %102, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %101
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %128

107:                                              ; preds = %101
  %108 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 12
  %109 = load ptr, ptr %108, align 8, !tbaa !35
  %110 = load i32, ptr %20, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %109, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !36
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = load i32, ptr %19, align 4, !tbaa !11
  %116 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %117 = load i32, ptr %116, align 8, !tbaa !33
  %118 = mul nsw i32 %115, %117
  %119 = load i32, ptr %20, align 4, !tbaa !11
  %120 = add nsw i32 %118, %119
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %114, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !36
  %124 = fmul double %123, %113
  store double %124, ptr %122, align 8, !tbaa !36
  br label %125

125:                                              ; preds = %107
  %126 = load i32, ptr %20, align 4, !tbaa !11
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %20, align 4, !tbaa !11
  br label %101, !llvm.loop !38

128:                                              ; preds = %106
  %129 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %28)
  %130 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %129)
  %131 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %130)
  call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %131)
  br label %132

132:                                              ; preds = %128, %79
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %19, align 4, !tbaa !11
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %19, align 4, !tbaa !11
  br label %74, !llvm.loop !40

136:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 0, ptr %21, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  br label %137

137:                                              ; preds = %196, %136
  %138 = load i8, ptr %21, align 1, !tbaa !9, !range !27, !noundef !28
  %139 = trunc i8 %138 to i1
  %140 = xor i1 %139, true
  br i1 %140, label %141, label %197

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %142 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 20
  %143 = load i32, ptr %142, align 8, !tbaa !41
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %150

145:                                              ; preds = %141
  %146 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 16
  %147 = load ptr, ptr %146, align 8, !tbaa !42
  store ptr %147, ptr %23, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 17
  %149 = load ptr, ptr %148, align 8, !tbaa !43
  store ptr %149, ptr %24, align 8, !tbaa !5
  br label %175

150:                                              ; preds = %141
  %151 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 20
  %152 = load i32, ptr %151, align 8, !tbaa !41
  %153 = icmp eq i32 %152, 3
  br i1 %153, label %154, label %161

154:                                              ; preds = %150
  %155 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 19
  %156 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %155)
  %157 = call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %156)
  store ptr %157, ptr %23, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 19
  %159 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %158)
  %160 = call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %159)
  store ptr %160, ptr %24, align 8, !tbaa !5
  br label %174

161:                                              ; preds = %150
  %162 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %28)
  %163 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %162)
  %164 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %163)
  call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %164)
  %165 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 18
  %166 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %165)
  %167 = call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %166)
  store ptr %167, ptr %23, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 18
  %169 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %168)
  %170 = call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %169)
  store ptr %170, ptr %24, align 8, !tbaa !5
  %171 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %28)
  %172 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %171)
  %173 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %172)
  call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %173)
  br label %174

174:                                              ; preds = %161, %154
  br label %175

175:                                              ; preds = %174, %145
  %176 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 10
  %177 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %176)
  %178 = load i8, ptr %16, align 1, !tbaa !9, !range !27, !noundef !28
  %179 = trunc i8 %178 to i1
  %180 = load ptr, ptr %23, align 8, !tbaa !5
  %181 = load ptr, ptr %24, align 8, !tbaa !5
  %182 = load i32, ptr %17, align 4, !tbaa !11
  %183 = load ptr, ptr %18, align 8, !tbaa !5
  %184 = load i8, ptr %12, align 1, !tbaa !9, !range !27, !noundef !28
  %185 = trunc i8 %184 to i1
  %186 = load i32, ptr %13, align 4, !tbaa !11
  %187 = load ptr, ptr %177, align 8, !tbaa !44
  %188 = getelementptr inbounds ptr, ptr %187, i64 5
  %189 = load ptr, ptr %188, align 8
  %190 = call noundef i32 %189(ptr noundef nonnull align 8 dereferenceable(49) %177, i1 noundef zeroext %179, ptr noundef %180, ptr noundef %181, i32 noundef %182, ptr noundef %183, i1 noundef zeroext %185, i32 noundef %186)
  store i32 %190, ptr %22, align 4, !tbaa !29
  %191 = load i32, ptr %22, align 4, !tbaa !29
  %192 = icmp eq i32 %191, 3
  br i1 %192, label %193, label %195

193:                                              ; preds = %175
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN10SimTKIpopt16TSymLinearSolver18GiveMatrixToSolverEbRKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %28, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(80) %194)
  br label %196

195:                                              ; preds = %175
  store i8 1, ptr %21, align 1, !tbaa !9
  br label %196

196:                                              ; preds = %195, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %137, !llvm.loop !46

197:                                              ; preds = %137
  %198 = load i32, ptr %22, align 4, !tbaa !29
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %264

200:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %201

201:                                              ; preds = %260, %200
  %202 = load i32, ptr %25, align 4, !tbaa !11
  %203 = load i32, ptr %17, align 4, !tbaa !11
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  store i32 10, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %263

206:                                              ; preds = %201
  %207 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 13
  %208 = load i8, ptr %207, align 8, !tbaa !34, !range !27, !noundef !28
  %209 = trunc i8 %208 to i1
  br i1 %209, label %210, label %245

210:                                              ; preds = %206
  %211 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %28)
  %212 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %211)
  %213 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %212)
  call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %213)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %214

214:                                              ; preds = %238, %210
  %215 = load i32, ptr %26, align 4, !tbaa !11
  %216 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %217 = load i32, ptr %216, align 8, !tbaa !33
  %218 = icmp slt i32 %215, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %214
  store i32 13, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %241

220:                                              ; preds = %214
  %221 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 12
  %222 = load ptr, ptr %221, align 8, !tbaa !35
  %223 = load i32, ptr %26, align 4, !tbaa !11
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds double, ptr %222, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !36
  %227 = load ptr, ptr %18, align 8, !tbaa !5
  %228 = load i32, ptr %25, align 4, !tbaa !11
  %229 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %230 = load i32, ptr %229, align 8, !tbaa !33
  %231 = mul nsw i32 %228, %230
  %232 = load i32, ptr %26, align 4, !tbaa !11
  %233 = add nsw i32 %231, %232
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %227, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !36
  %237 = fmul double %236, %226
  store double %237, ptr %235, align 8, !tbaa !36
  br label %238

238:                                              ; preds = %220
  %239 = load i32, ptr %26, align 4, !tbaa !11
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %26, align 4, !tbaa !11
  br label %214, !llvm.loop !47

241:                                              ; preds = %219
  %242 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %28)
  %243 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %242)
  %244 = call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %243)
  call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %244)
  br label %245

245:                                              ; preds = %241, %206
  %246 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %247 = load i32, ptr %246, align 8, !tbaa !33
  %248 = load ptr, ptr %18, align 8, !tbaa !5
  %249 = load i32, ptr %25, align 4, !tbaa !11
  %250 = getelementptr inbounds %"class.SimTKIpopt::TSymLinearSolver", ptr %28, i32 0, i32 3
  %251 = load i32, ptr %250, align 8, !tbaa !33
  %252 = mul nsw i32 %249, %251
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds double, ptr %248, i64 %253
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = load i32, ptr %25, align 4, !tbaa !11
  %257 = sext i32 %256 to i64
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %257) #7
  %259 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %258)
  call void @_ZN10SimTKIpopt13TripletHelper17PutValuesInVectorEiPKdRNS_6VectorE(i32 noundef %247, ptr noundef %254, ptr noundef nonnull align 8 dereferenceable(205) %259)
  br label %260

260:                                              ; preds = %245
  %261 = load i32, ptr %25, align 4, !tbaa !11
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %25, align 4, !tbaa !11
  br label %201, !llvm.loop !48

263:                                              ; preds = %205
  br label %264

264:                                              ; preds = %263, %197
  %265 = load ptr, ptr %18, align 8, !tbaa !5
  %266 = icmp eq ptr %265, null
  br i1 %266, label %268, label %267

267:                                              ; preds = %264
  call void @_ZdaPv(ptr noundef %265) #9
  br label %268

268:                                              ; preds = %267, %264
  %269 = load i32, ptr %22, align 4, !tbaa !29
  store i32 %269, ptr %7, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %270

270:                                              ; preds = %268, %40
  %271 = load i32, ptr %7, align 4
  ret i32 %271

272:                                              ; preds = %40
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10SimTKIpopt16TSymLinearSolver19InitializeStructureERKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141), ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10SimTKIpopt12TaggedObject10HasChangedEj(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt16TSymLinearSolver18GiveMatrixToSolverEbRKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

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

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

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

declare void @_ZN10SimTKIpopt13TripletHelper20FillValuesFromVectorEiRKNS_6VectorEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(205), ptr noundef) #6

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

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

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

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

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

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

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

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

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

declare void @_ZN10SimTKIpopt13TripletHelper17PutValuesInVectorEiPKdRNS_6VectorE(i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(205)) #6

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

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

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

!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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 70}
!14 = !{!"_ZTSN10SimTKIpopt16TSymLinearSolverE", !15, i64 0, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !10, i64 68, !10, i64 69, !10, i64 70, !22, i64 72, !23, i64 80, !6, i64 88, !10, i64 96, !10, i64 97, !6, i64 104, !6, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !10, i64 140}
!15 = !{!"_ZTSN10SimTKIpopt15SymLinearSolverE", !16, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt23AlgorithmStrategyObjectE", !17, i64 0, !18, i64 16, !19, i64 24, !20, i64 32, !21, i64 40, !10, i64 48}
!17 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !12, i64 8}
!18 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !6, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !6, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !6, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_25IpoptCalculatedQuantitiesEEE", !6, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEE", !6, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_17TSymScalingMethodEEE", !6, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEE", !6, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEE", !6, i64 0}
!26 = !{!"_ZTSN10SimTKIpopt30SparseSymLinearSolverInterface13EMatrixFormatE", !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTSN10SimTKIpopt16ESymSolverStatusE", !7, i64 0}
!31 = !{!14, !12, i64 52}
!32 = !{!14, !10, i64 97}
!33 = !{!14, !12, i64 56}
!34 = !{!14, !10, i64 96}
!35 = !{!14, !6, i64 88}
!36 = !{!37, !37, i64 0}
!37 = !{!"double", !7, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = !{!14, !26, i64 136}
!42 = !{!14, !6, i64 104}
!43 = !{!14, !6, i64 112}
!44 = !{!45, !45, i64 0}
!45 = !{!"vtable pointer", !8, i64 0}
!46 = distinct !{!46, !39}
!47 = distinct !{!47, !39}
!48 = distinct !{!48, !39}


; 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"

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt16TSymLinearSolver10MultiSolveERKNS_9SymMatrixERSt6vectorINS_8SmartPtrIKNS_6VectorEEESaIS8_EERS4_INS5_IS6_EESaISC_EEbi(ptr noundef nonnull align 8 dereferenceable(141) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i1 noundef zeroext %4, i32 noundef %5) unnamed_addr #2 align 2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 70
  %8 = load i8, ptr %7, align 2, !tbaa !5, !range !24, !noundef !25
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %12, label %10

10:                                               ; preds = %6
  %11 = tail call noundef i32 @_ZN10SimTKIpopt16TSymLinearSolver19InitializeStructureERKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %0, ptr noundef nonnull align 8 dereferenceable(80) %1)
  %.not.not = icmp eq i32 %11, 0
  br i1 %.not.not, label %12, label %192

12:                                               ; preds = %10, %6
  %13 = getelementptr inbounds i8, ptr %0, i64 52
  %14 = load i32, ptr %13, align 4, !tbaa !26
  %15 = tail call noundef zeroext i1 @_ZNK10SimTKIpopt12TaggedObject10HasChangedEj(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %14)
  %16 = tail call noundef i32 @_ZNK10SimTKIpopt12TaggedObject6GetTagEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  store i32 %16, ptr %13, align 4, !tbaa !26
  br i1 %15, label %21, label %17

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %0, i64 97
  %19 = load i8, ptr %18, align 1, !tbaa !27, !range !24, !noundef !25
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %21, label %22

21:                                               ; preds = %17, %12
  tail call void @_ZN10SimTKIpopt16TSymLinearSolver18GiveMatrixToSolverEbRKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %0, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(80) %1)
  br label %22

22:                                               ; preds = %21, %17
  %.060 = phi i1 [ true, %21 ], [ false, %17 ]
  %23 = tail call noundef i64 @_ZNKSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %24 = trunc i64 %23 to i32
  %25 = getelementptr inbounds i8, ptr %0, i64 56
  %26 = load i32, ptr %25, align 8, !tbaa !28
  %27 = mul nsw i32 %26, %24
  %28 = sext i32 %27 to i64
  %29 = icmp slt i32 %27, 0
  %30 = shl nsw i64 %28, 3
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #6
  %33 = icmp sgt i32 %24, 0
  br i1 %33, label %.lr.ph70, label %.preheader65

.lr.ph70:                                         ; preds = %22
  %34 = getelementptr inbounds i8, ptr %0, i64 96
  %35 = getelementptr inbounds i8, ptr %0, i64 88
  %wide.trip.count82 = and i64 %23, 2147483647
  br label %42

.preheader65:                                     ; preds = %97, %22
  %36 = getelementptr inbounds i8, ptr %0, i64 136
  %37 = getelementptr inbounds i8, ptr %0, i64 128
  %38 = getelementptr inbounds i8, ptr %0, i64 104
  %39 = getelementptr inbounds i8, ptr %0, i64 112
  %40 = getelementptr inbounds i8, ptr %0, i64 120
  %41 = getelementptr inbounds i8, ptr %0, i64 72
  br label %98

42:                                               ; preds = %.lr.ph70, %97
  %indvars.iv79 = phi i64 [ 0, %.lr.ph70 ], [ %indvars.iv.next80, %97 ]
  %43 = load i32, ptr %25, align 8, !tbaa !28
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv79) #5
  %45 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
  %46 = load i32, ptr %25, align 8, !tbaa !28
  %47 = trunc nuw nsw i64 %indvars.iv79 to i32
  %48 = mul nsw i32 %46, %47
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %32, i64 %49
  tail call void @_ZN10SimTKIpopt13TripletHelper20FillValuesFromVectorEiRKNS_6VectorEPd(i32 noundef %43, ptr noundef nonnull align 8 dereferenceable(205) %45, ptr noundef nonnull %50)
  %51 = load i8, ptr %34, align 8, !tbaa !29, !range !24, !noundef !25
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %53, label %97

53:                                               ; preds = %42
  %54 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %55 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %54)
  %56 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %55)
  tail call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %56)
  %57 = load i32, ptr %25, align 8, !tbaa !28
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %53
  %59 = load ptr, ptr %35, align 8, !tbaa !30
  %60 = mul nsw i32 %57, %47
  %61 = sext i32 %60 to i64
  %wide.trip.count = zext nneg i32 %57 to i64
  %invariant.gep = getelementptr double, ptr %32, i64 %61
  %min.iters.check = icmp ult i32 %57, 6
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %62 = getelementptr inbounds double, ptr %59, i64 %indvars.iv.prol
  %63 = load double, ptr %62, align 8, !tbaa !31
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.prol
  %64 = load double, ptr %gep.prol, align 8, !tbaa !31
  %65 = fmul double %63, %64
  store double %65, ptr %gep.prol, align 8, !tbaa !31
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !33

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %66 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %67 = icmp ugt i64 %66, -4
  br i1 %67, label %._crit_edge, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %68 = shl nuw nsw i64 %wide.trip.count, 3
  %69 = add nsw i64 %61, %wide.trip.count
  %70 = shl nsw i64 %69, 3
  %scevgep = getelementptr i8, ptr %32, i64 %70
  %scevgep94 = getelementptr i8, ptr %59, i64 %68
  %bound0 = icmp ult ptr %invariant.gep, %scevgep94
  %bound1 = icmp ult ptr %59, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %71 = getelementptr inbounds double, ptr %59, i64 %index
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %wide.load = load <2 x double>, ptr %71, align 8, !tbaa !31, !alias.scope !35
  %wide.load95 = load <2 x double>, ptr %72, align 8, !tbaa !31, !alias.scope !35
  %73 = getelementptr double, ptr %invariant.gep, i64 %index
  %74 = getelementptr i8, ptr %73, i64 16
  %wide.load96 = load <2 x double>, ptr %73, align 8, !tbaa !31, !alias.scope !38, !noalias !35
  %wide.load97 = load <2 x double>, ptr %74, align 8, !tbaa !31, !alias.scope !38, !noalias !35
  %75 = fmul <2 x double> %wide.load, %wide.load96
  %76 = fmul <2 x double> %wide.load95, %wide.load97
  store <2 x double> %75, ptr %73, align 8, !tbaa !31, !alias.scope !38, !noalias !35
  store <2 x double> %76, ptr %74, align 8, !tbaa !31, !alias.scope !38, !noalias !35
  %index.next = add nuw i64 %index, 4
  %77 = icmp eq i64 %index.next, %n.vec
  br i1 %77, label %middle.block, label %vector.body, !llvm.loop !40

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %53
  %78 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %79 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %78)
  %80 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %79)
  tail call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %80)
  br label %97

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %81 = getelementptr inbounds double, ptr %59, i64 %indvars.iv
  %82 = load double, ptr %81, align 8, !tbaa !31
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  %83 = load double, ptr %gep, align 8, !tbaa !31
  %84 = fmul double %82, %83
  store double %84, ptr %gep, align 8, !tbaa !31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = getelementptr inbounds double, ptr %59, i64 %indvars.iv.next
  %86 = load double, ptr %85, align 8, !tbaa !31
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next
  %87 = load double, ptr %gep.1, align 8, !tbaa !31
  %88 = fmul double %86, %87
  store double %88, ptr %gep.1, align 8, !tbaa !31
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %89 = getelementptr inbounds double, ptr %59, i64 %indvars.iv.next.1
  %90 = load double, ptr %89, align 8, !tbaa !31
  %gep.2 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next.1
  %91 = load double, ptr %gep.2, align 8, !tbaa !31
  %92 = fmul double %90, %91
  store double %92, ptr %gep.2, align 8, !tbaa !31
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %93 = getelementptr inbounds double, ptr %59, i64 %indvars.iv.next.2
  %94 = load double, ptr %93, align 8, !tbaa !31
  %gep.3 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next.2
  %95 = load double, ptr %gep.3, align 8, !tbaa !31
  %96 = fmul double %94, %95
  store double %96, ptr %gep.3, align 8, !tbaa !31
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !44

97:                                               ; preds = %42, %._crit_edge
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %.preheader65, label %42, !llvm.loop !45

98:                                               ; preds = %125, %.preheader65
  %99 = load i32, ptr %36, align 8, !tbaa !46
  switch i32 %99, label %108 [
    i32 0, label %100
    i32 3, label %103
  ]

100:                                              ; preds = %98
  %101 = load ptr, ptr %38, align 8, !tbaa !47
  %102 = load ptr, ptr %39, align 8, !tbaa !48
  br label %119

103:                                              ; preds = %98
  %104 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %37)
  %105 = tail call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %104)
  %106 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %37)
  %107 = tail call noundef ptr @_ZNK10SimTKIpopt23TripletToDenseConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %106)
  br label %119

108:                                              ; preds = %98
  %109 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %110 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %109)
  %111 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %110)
  tail call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %111)
  %112 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40)
  %113 = tail call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2IAEv(ptr noundef nonnull align 8 dereferenceable(72) %112)
  %114 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40)
  %115 = tail call noundef ptr @_ZNK10SimTKIpopt21TripletToCSRConverter2JAEv(ptr noundef nonnull align 8 dereferenceable(72) %114)
  %116 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %117 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %116)
  %118 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics30LinearSystemStructureConverterEv(ptr noundef nonnull align 8 dereferenceable(664) %117)
  tail call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %118)
  br label %119

119:                                              ; preds = %103, %108, %100
  %.052 = phi ptr [ %101, %100 ], [ %105, %103 ], [ %113, %108 ]
  %.051 = phi ptr [ %102, %100 ], [ %107, %103 ], [ %115, %108 ]
  %120 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
  %121 = load ptr, ptr %120, align 8, !tbaa !49
  %122 = getelementptr inbounds i8, ptr %121, i64 40
  %123 = load ptr, ptr %122, align 8
  %124 = tail call noundef i32 %123(ptr noundef nonnull align 8 dereferenceable(49) %120, i1 noundef zeroext %.060, ptr noundef %.052, ptr noundef %.051, i32 noundef %24, ptr noundef nonnull %32, i1 noundef zeroext %4, i32 noundef %5)
  %.not = icmp eq i32 %124, 3
  br i1 %.not, label %125, label %126

125:                                              ; preds = %119
  tail call void @_ZN10SimTKIpopt16TSymLinearSolver18GiveMatrixToSolverEbRKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141) %0, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(80) %1)
  br label %98, !llvm.loop !51

126:                                              ; preds = %119
  %127 = icmp eq i32 %124, 0
  %or.cond = and i1 %127, %33
  br i1 %or.cond, label %.lr.ph77, label %.loopexit

.lr.ph77:                                         ; preds = %126
  %128 = getelementptr inbounds i8, ptr %0, i64 96
  %129 = getelementptr inbounds i8, ptr %0, i64 88
  %wide.trip.count92 = and i64 %23, 2147483647
  br label %130

130:                                              ; preds = %.lr.ph77, %184
  %indvars.iv89 = phi i64 [ 0, %.lr.ph77 ], [ %indvars.iv.next90, %184 ]
  %131 = shl i64 %indvars.iv89, 3
  %132 = add i64 %131, 8
  %133 = load i8, ptr %128, align 8, !tbaa !29, !range !24, !noundef !25
  %134 = trunc nuw i8 %133 to i1
  br i1 %134, label %135, label %184

135:                                              ; preds = %130
  %136 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %137 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %136)
  %138 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %137)
  tail call void @_ZN10SimTKIpopt9TimedTask5StartEv(ptr noundef nonnull align 8 dereferenceable(18) %138)
  %139 = load i32, ptr %25, align 8, !tbaa !28
  %140 = icmp sgt i32 %139, 0
  br i1 %140, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %135
  %141 = load ptr, ptr %129, align 8, !tbaa !30
  %142 = zext nneg i32 %139 to i64
  %143 = mul nuw nsw i64 %indvars.iv89, %142
  %144 = getelementptr inbounds double, ptr %32, i64 %143
  %min.iters.check106 = icmp ult i32 %139, 6
  br i1 %min.iters.check106, label %scalar.ph105.preheader, label %vector.memcheck98

scalar.ph105.preheader:                           ; preds = %middle.block104, %vector.memcheck98, %.lr.ph74
  %indvars.iv84.ph = phi i64 [ 0, %vector.memcheck98 ], [ 0, %.lr.ph74 ], [ %n.vec109, %middle.block104 ]
  %xtraiter119 = and i64 %142, 3
  %lcmp.mod120.not = icmp eq i64 %xtraiter119, 0
  br i1 %lcmp.mod120.not, label %scalar.ph105.prol.loopexit, label %scalar.ph105.prol

scalar.ph105.prol:                                ; preds = %scalar.ph105.preheader, %scalar.ph105.prol
  %indvars.iv84.prol = phi i64 [ %indvars.iv.next85.prol, %scalar.ph105.prol ], [ %indvars.iv84.ph, %scalar.ph105.preheader ]
  %prol.iter121 = phi i64 [ %prol.iter121.next, %scalar.ph105.prol ], [ 0, %scalar.ph105.preheader ]
  %145 = getelementptr inbounds double, ptr %141, i64 %indvars.iv84.prol
  %146 = load double, ptr %145, align 8, !tbaa !31
  %147 = getelementptr inbounds double, ptr %144, i64 %indvars.iv84.prol
  %148 = load double, ptr %147, align 8, !tbaa !31
  %149 = fmul double %146, %148
  store double %149, ptr %147, align 8, !tbaa !31
  %indvars.iv.next85.prol = add nuw nsw i64 %indvars.iv84.prol, 1
  %prol.iter121.next = add i64 %prol.iter121, 1
  %prol.iter121.cmp.not = icmp eq i64 %prol.iter121.next, %xtraiter119
  br i1 %prol.iter121.cmp.not, label %scalar.ph105.prol.loopexit, label %scalar.ph105.prol, !llvm.loop !52

scalar.ph105.prol.loopexit:                       ; preds = %scalar.ph105.prol, %scalar.ph105.preheader
  %indvars.iv84.unr = phi i64 [ %indvars.iv84.ph, %scalar.ph105.preheader ], [ %indvars.iv.next85.prol, %scalar.ph105.prol ]
  %150 = sub nsw i64 %indvars.iv84.ph, %142
  %151 = icmp ugt i64 %150, -4
  br i1 %151, label %._crit_edge75, label %scalar.ph105

vector.memcheck98:                                ; preds = %.lr.ph74
  %152 = mul i64 %132, %142
  %scevgep99 = getelementptr i8, ptr %32, i64 %152
  %153 = shl nuw nsw i64 %142, 3
  %scevgep100 = getelementptr i8, ptr %141, i64 %153
  %bound0101 = icmp ult ptr %144, %scevgep100
  %bound1102 = icmp ult ptr %141, %scevgep99
  %found.conflict103 = and i1 %bound0101, %bound1102
  br i1 %found.conflict103, label %scalar.ph105.preheader, label %vector.ph107

vector.ph107:                                     ; preds = %vector.memcheck98
  %n.vec109 = and i64 %142, 2147483644
  br label %vector.body111

vector.body111:                                   ; preds = %vector.body111, %vector.ph107
  %index112 = phi i64 [ 0, %vector.ph107 ], [ %index.next117, %vector.body111 ]
  %154 = getelementptr inbounds double, ptr %141, i64 %index112
  %155 = getelementptr inbounds i8, ptr %154, i64 16
  %wide.load113 = load <2 x double>, ptr %154, align 8, !tbaa !31, !alias.scope !53
  %wide.load114 = load <2 x double>, ptr %155, align 8, !tbaa !31, !alias.scope !53
  %156 = getelementptr inbounds double, ptr %144, i64 %index112
  %157 = getelementptr inbounds i8, ptr %156, i64 16
  %wide.load115 = load <2 x double>, ptr %156, align 8, !tbaa !31, !alias.scope !56, !noalias !53
  %wide.load116 = load <2 x double>, ptr %157, align 8, !tbaa !31, !alias.scope !56, !noalias !53
  %158 = fmul <2 x double> %wide.load113, %wide.load115
  %159 = fmul <2 x double> %wide.load114, %wide.load116
  store <2 x double> %158, ptr %156, align 8, !tbaa !31, !alias.scope !56, !noalias !53
  store <2 x double> %159, ptr %157, align 8, !tbaa !31, !alias.scope !56, !noalias !53
  %index.next117 = add nuw i64 %index112, 4
  %160 = icmp eq i64 %index.next117, %n.vec109
  br i1 %160, label %middle.block104, label %vector.body111, !llvm.loop !58

middle.block104:                                  ; preds = %vector.body111
  %cmp.n118 = icmp eq i64 %n.vec109, %142
  br i1 %cmp.n118, label %._crit_edge75, label %scalar.ph105.preheader

._crit_edge75:                                    ; preds = %scalar.ph105.prol.loopexit, %scalar.ph105, %middle.block104, %135
  %161 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  %162 = tail call noundef nonnull align 8 dereferenceable(664) ptr @_ZN10SimTKIpopt9IpoptData11TimingStatsEv(ptr noundef nonnull align 8 dereferenceable(864) %161)
  %163 = tail call noundef nonnull align 8 dereferenceable(18) ptr @_ZN10SimTKIpopt16TimingStatistics19LinearSystemScalingEv(ptr noundef nonnull align 8 dereferenceable(664) %162)
  tail call void @_ZN10SimTKIpopt9TimedTask3EndEv(ptr noundef nonnull align 8 dereferenceable(18) %163)
  br label %184

scalar.ph105:                                     ; preds = %scalar.ph105.prol.loopexit, %scalar.ph105
  %indvars.iv84 = phi i64 [ %indvars.iv.next85.3, %scalar.ph105 ], [ %indvars.iv84.unr, %scalar.ph105.prol.loopexit ]
  %164 = getelementptr inbounds double, ptr %141, i64 %indvars.iv84
  %165 = load double, ptr %164, align 8, !tbaa !31
  %166 = getelementptr inbounds double, ptr %144, i64 %indvars.iv84
  %167 = load double, ptr %166, align 8, !tbaa !31
  %168 = fmul double %165, %167
  store double %168, ptr %166, align 8, !tbaa !31
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %169 = getelementptr inbounds double, ptr %141, i64 %indvars.iv.next85
  %170 = load double, ptr %169, align 8, !tbaa !31
  %171 = getelementptr inbounds double, ptr %144, i64 %indvars.iv.next85
  %172 = load double, ptr %171, align 8, !tbaa !31
  %173 = fmul double %170, %172
  store double %173, ptr %171, align 8, !tbaa !31
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84, 2
  %174 = getelementptr inbounds double, ptr %141, i64 %indvars.iv.next85.1
  %175 = load double, ptr %174, align 8, !tbaa !31
  %176 = getelementptr inbounds double, ptr %144, i64 %indvars.iv.next85.1
  %177 = load double, ptr %176, align 8, !tbaa !31
  %178 = fmul double %175, %177
  store double %178, ptr %176, align 8, !tbaa !31
  %indvars.iv.next85.2 = add nuw nsw i64 %indvars.iv84, 3
  %179 = getelementptr inbounds double, ptr %141, i64 %indvars.iv.next85.2
  %180 = load double, ptr %179, align 8, !tbaa !31
  %181 = getelementptr inbounds double, ptr %144, i64 %indvars.iv.next85.2
  %182 = load double, ptr %181, align 8, !tbaa !31
  %183 = fmul double %180, %182
  store double %183, ptr %181, align 8, !tbaa !31
  %indvars.iv.next85.3 = add nuw nsw i64 %indvars.iv84, 4
  %exitcond88.not.3 = icmp eq i64 %indvars.iv.next85.3, %142
  br i1 %exitcond88.not.3, label %._crit_edge75, label %scalar.ph105, !llvm.loop !59

184:                                              ; preds = %._crit_edge75, %130
  %185 = load i32, ptr %25, align 8, !tbaa !28
  %186 = trunc nuw nsw i64 %indvars.iv89 to i32
  %187 = mul nsw i32 %185, %186
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %32, i64 %188
  %190 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv89) #5
  %191 = tail call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %190)
  tail call void @_ZN10SimTKIpopt13TripletHelper17PutValuesInVectorEiPKdRNS_6VectorE(i32 noundef %185, ptr noundef nonnull %189, ptr noundef nonnull align 8 dereferenceable(205) %191)
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92
  br i1 %exitcond93.not, label %.loopexit, label %130, !llvm.loop !60

.loopexit:                                        ; preds = %184, %126
  tail call void @_ZdaPv(ptr noundef nonnull %32) #7
  br label %192

192:                                              ; preds = %10, %.loopexit
  %.158 = phi i32 [ %124, %.loopexit ], [ %11, %10 ]
  ret i32 %.158
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10SimTKIpopt12TaggedObject10HasChangedEj(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt16TSymLinearSolver18GiveMatrixToSolverEbRKNS_9SymMatrixE(ptr noundef nonnull align 8 dereferenceable(141), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

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

declare void @_ZN10SimTKIpopt13TripletHelper20FillValuesFromVectorEiRKNS_6VectorEPd(i32 noundef, ptr noundef nonnull align 8 dereferenceable(205), ptr noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

declare void @_ZN10SimTKIpopt13TripletHelper17PutValuesInVectorEiPKdRNS_6VectorE(i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #4

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

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

attributes #0 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !18, i64 70}
!6 = !{!"_ZTSN10SimTKIpopt16TSymLinearSolverE", !7, i64 0, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !18, i64 68, !18, i64 69, !18, i64 70, !19, i64 72, !20, i64 80, !14, i64 88, !18, i64 96, !18, i64 97, !14, i64 104, !14, i64 112, !21, i64 120, !22, i64 128, !23, i64 136, !18, i64 140}
!7 = !{!"_ZTSN10SimTKIpopt15SymLinearSolverE", !8, i64 0}
!8 = !{!"_ZTSN10SimTKIpopt23AlgorithmStrategyObjectE", !9, i64 0, !13, i64 16, !15, i64 24, !16, i64 32, !17, i64 40, !18, i64 48}
!9 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !10, i64 8}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !14, i64 0}
!14 = !{!"any pointer", !11, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !14, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !14, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_25IpoptCalculatedQuantitiesEEE", !14, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_30SparseSymLinearSolverInterfaceEEE", !14, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_17TSymScalingMethodEEE", !14, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_21TripletToCSRConverterEEE", !14, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_23TripletToDenseConverterEEE", !14, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt30SparseSymLinearSolverInterface13EMatrixFormatE", !11, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!6, !10, i64 52}
!27 = !{!6, !18, i64 97}
!28 = !{!6, !10, i64 56}
!29 = !{!6, !18, i64 96}
!30 = !{!6, !14, i64 88}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !11, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.unroll.disable"}
!35 = !{!36}
!36 = distinct !{!36, !37}
!37 = distinct !{!37, !"LVerDomain"}
!38 = !{!39}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !41, !42, !43}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!"llvm.loop.isvectorized", i32 1}
!43 = !{!"llvm.loop.unroll.runtime.disable"}
!44 = distinct !{!44, !41, !42}
!45 = distinct !{!45, !41}
!46 = !{!6, !23, i64 136}
!47 = !{!6, !14, i64 104}
!48 = !{!6, !14, i64 112}
!49 = !{!50, !50, i64 0}
!50 = !{!"vtable pointer", !12, i64 0}
!51 = distinct !{!51, !41}
!52 = distinct !{!52, !34}
!53 = !{!54}
!54 = distinct !{!54, !55}
!55 = distinct !{!55, !"LVerDomain"}
!56 = !{!57}
!57 = distinct !{!57, !55}
!58 = distinct !{!58, !41, !42, !43}
!59 = distinct !{!59, !41, !42}
!60 = distinct !{!60, !41}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass