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

; 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::ExpansionMatrixSpace" = type { %"class.SimTKIpopt::MatrixSpace.base", ptr, ptr }
%"class.SimTKIpopt::MatrixSpace.base" = type { %"class.SimTKIpopt::ReferencedObject.base", i32, i32 }
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>

@_ZTVN10SimTKIpopt20ExpansionMatrixSpaceE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt20ExpansionMatrixSpaceC2EiiPKii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN10SimTKIpopt11MatrixSpaceC2Eii(ptr noundef nonnull align 8 dereferenceable(20) %15, i32 noundef %16, i32 noundef %17)
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN10SimTKIpopt20ExpansionMatrixSpaceE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %18 = getelementptr inbounds %"class.SimTKIpopt::ExpansionMatrixSpace", ptr %15, i32 0, i32 1
  store ptr null, ptr %18, align 8, !tbaa !13
  %19 = getelementptr inbounds %"class.SimTKIpopt::ExpansionMatrixSpace", ptr %15, i32 0, i32 2
  store ptr null, ptr %19, align 8, !tbaa !17
  %20 = invoke noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
          to label %21 unwind label %34

21:                                               ; preds = %5
  %22 = icmp sgt i32 %20, 0
  br i1 %22, label %23, label %38

23:                                               ; preds = %21
  %24 = invoke noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
          to label %25 unwind label %34

25:                                               ; preds = %23
  %26 = sext i32 %24 to i64
  %27 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %26, i64 4)
  %28 = extractvalue { i64, i1 } %27, 1
  %29 = extractvalue { i64, i1 } %27, 0
  %30 = select i1 %28, i64 -1, i64 %29
  %31 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %30) #7
          to label %32 unwind label %34

32:                                               ; preds = %25
  %33 = getelementptr inbounds %"class.SimTKIpopt::ExpansionMatrixSpace", ptr %15, i32 0, i32 1
  store ptr %31, ptr %33, align 8, !tbaa !13
  br label %38

34:                                               ; preds = %44, %42, %38, %25, %23, %5
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %11, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %12, align 4
  br label %113

38:                                               ; preds = %32, %21
  %39 = invoke noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NRowsEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
          to label %40 unwind label %34

40:                                               ; preds = %38
  %41 = icmp sgt i32 %39, 0
  br i1 %41, label %42, label %53

42:                                               ; preds = %40
  %43 = invoke noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NRowsEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
          to label %44 unwind label %34

44:                                               ; preds = %42
  %45 = sext i32 %43 to i64
  %46 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %45, i64 4)
  %47 = extractvalue { i64, i1 } %46, 1
  %48 = extractvalue { i64, i1 } %46, 0
  %49 = select i1 %47, i64 -1, i64 %48
  %50 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %49) #7
          to label %51 unwind label %34

51:                                               ; preds = %44
  %52 = getelementptr inbounds %"class.SimTKIpopt::ExpansionMatrixSpace", ptr %15, i32 0, i32 2
  store ptr %50, ptr %52, align 8, !tbaa !17
  br label %53

53:                                               ; preds = %51, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %70, %53
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = invoke noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NRowsEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
          to label %57 unwind label %60

57:                                               ; preds = %54
  %58 = icmp slt i32 %55, %56
  br i1 %58, label %64, label %59

59:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %73

60:                                               ; preds = %54
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %11, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %113

64:                                               ; preds = %57
  %65 = getelementptr inbounds %"class.SimTKIpopt::ExpansionMatrixSpace", ptr %15, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  store i32 -1, ptr %69, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %64
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %13, align 4, !tbaa !9
  br label %54, !llvm.loop !18

73:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %109, %73
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = invoke noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
          to label %77 unwind label %80

77:                                               ; preds = %74
  %78 = icmp slt i32 %75, %76
  br i1 %78, label %84, label %79

79:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %112

80:                                               ; preds = %74
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %11, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %113

84:                                               ; preds = %77
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %85, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = sub nsw i32 %89, %90
  %92 = getelementptr inbounds %"class.SimTKIpopt::ExpansionMatrixSpace", ptr %15, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  store i32 %91, ptr %96, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = getelementptr inbounds %"class.SimTKIpopt::ExpansionMatrixSpace", ptr %15, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = sub nsw i32 %104, %105
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %99, i64 %107
  store i32 %97, ptr %108, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %84
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %14, align 4, !tbaa !9
  br label %74, !llvm.loop !20

112:                                              ; preds = %79
  ret void

113:                                              ; preds = %80, %60, %34
  call void @_ZN10SimTKIpopt11MatrixSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %15) #8
  br label %114

114:                                              ; preds = %113
  %115 = load ptr, ptr %11, align 8
  %116 = load i32, ptr %12, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

declare void @_ZN10SimTKIpopt11MatrixSpaceC2Eii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20)) #3 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

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

; Function Attrs: nounwind
declare void @_ZN10SimTKIpopt11MatrixSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 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 #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"_ZTSN10SimTKIpopt20ExpansionMatrixSpaceE", !15, i64 0, !6, i64 24, !6, i64 32}
!15 = !{!"_ZTSN10SimTKIpopt11MatrixSpaceE", !16, i64 0, !10, i64 12, !10, i64 16}
!16 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !10, i64 8}
!17 = !{!14, !6, i64 32}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


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

@_ZTVN10SimTKIpopt20ExpansionMatrixSpaceE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt20ExpansionMatrixSpaceC2EiiPKii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN10SimTKIpopt11MatrixSpaceC2Eii(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2)
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN10SimTKIpopt20ExpansionMatrixSpaceE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  %8 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %10, label %20

10:                                               ; preds = %5
  %11 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %12 = zext nneg i32 %11 to i64
  %13 = icmp slt i32 %11, 0
  %14 = shl nuw nsw i64 %12, 2
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %15) #6
          to label %17 unwind label %18

17:                                               ; preds = %10
  store ptr %16, ptr %6, align 8, !tbaa !8
  br label %20

18:                                               ; preds = %23, %10
  %19 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN10SimTKIpopt11MatrixSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #7
  resume { ptr, i32 } %19

20:                                               ; preds = %17, %5
  %21 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NRowsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %23, label %31

23:                                               ; preds = %20
  %24 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NRowsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %25 = zext nneg i32 %24 to i64
  %26 = icmp slt i32 %24, 0
  %27 = shl nuw nsw i64 %25, 2
  %28 = select i1 %26, i64 -1, i64 %27
  %29 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %28) #6
          to label %30 unwind label %18

30:                                               ; preds = %23
  store ptr %29, ptr %7, align 8, !tbaa !15
  br label %31

31:                                               ; preds = %30, %20
  %32 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NRowsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %31
  %34 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph20, label %._crit_edge

.lr.ph:                                           ; preds = %31, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %31 ]
  %36 = load ptr, ptr %7, align 8, !tbaa !15
  %37 = getelementptr inbounds i32, ptr %36, i64 %indvars.iv
  store i32 -1, ptr %37, align 4, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NRowsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %.preheader, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph20, %.preheader
  ret void

.lr.ph20:                                         ; preds = %.preheader, %.lr.ph20
  %indvars.iv22 = phi i64 [ %indvars.iv.next23, %.lr.ph20 ], [ 0, %.preheader ]
  %41 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv22
  %42 = load i32, ptr %41, align 4, !tbaa !16
  %43 = sub nsw i32 %42, %4
  %44 = load ptr, ptr %6, align 8, !tbaa !8
  %45 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv22
  store i32 %43, ptr %45, align 4, !tbaa !16
  %46 = load ptr, ptr %7, align 8, !tbaa !15
  %47 = load i32, ptr %41, align 4, !tbaa !16
  %48 = sub nsw i32 %47, %4
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %46, i64 %49
  %51 = trunc nuw nsw i64 %indvars.iv22 to i32
  store i32 %51, ptr %50, align 4, !tbaa !16
  %indvars.iv.next23 = add nuw nsw i64 %indvars.iv22, 1
  %52 = tail call noundef i32 @_ZNK10SimTKIpopt11MatrixSpace5NColsEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next23, %53
  br i1 %54, label %.lr.ph20, label %._crit_edge, !llvm.loop !19
}

declare void @_ZN10SimTKIpopt11MatrixSpaceC2Eii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) unnamed_addr #1

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

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

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

; Function Attrs: nounwind
declare void @_ZN10SimTKIpopt11MatrixSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 #1 = { "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 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 24}
!9 = !{!"_ZTSN10SimTKIpopt20ExpansionMatrixSpaceE", !10, i64 0, !14, i64 24, !14, i64 32}
!10 = !{!"_ZTSN10SimTKIpopt11MatrixSpaceE", !11, i64 0, !12, i64 12, !12, i64 16}
!11 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !12, i64 8}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"any pointer", !13, i64 0}
!15 = !{!9, !14, i64 32}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass