; LLVM IR from Tencent-RoboticsX/jbdl :: src/jbdl/experimental/qpoases/src (SQProblemSchur)

; 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.qpOASES::SQProblemSchur" = type { %"class.qpOASES::SQProblem", ptr, ptr, i32, i32, ptr, ptr, double, double, i32, ptr, ptr, i32, ptr, ptr, ptr, %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"class.qpOASES::SQProblem" = type { %"class.qpOASES::QProblem" }
%"class.qpOASES::QProblem" = type { %"class.qpOASES::QProblemB", i32, ptr, ptr, ptr, %"class.qpOASES::Constraints", ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.qpOASES::QProblemB" = type { ptr, i32, ptr, ptr, ptr, ptr, %"class.qpOASES::Bounds", ptr, i32, ptr, ptr, double, i32, i32, i32, i32, double, i32, ptr, double, double, i32, [4 x i8], %"class.qpOASES::Options", %"class.qpOASES::Flipper", %"struct.qpOASES::TabularOutput" }
%"class.qpOASES::Bounds" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"class.qpOASES::SubjectTo" = type { ptr, i32, ptr, ptr, i32, i32 }
%"class.qpOASES::Options" = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, double, double, double, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::Flipper" = type { i32, i32, %"class.qpOASES::Bounds", %"class.qpOASES::Constraints", ptr, ptr, ptr }
%"struct.qpOASES::TabularOutput" = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.qpOASES::Constraints" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"class.qpOASES::Indexlist" = type <{ ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [109 x i8], align 1

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

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

declare noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv() #1

declare noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES14SQProblemSchur13computeMTimesEdPKddPd(ptr noundef nonnull align 8 dereferenceable(1256) %0, double noundef %1, ptr noundef %2, double noundef %3, ptr noundef %4) #3 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %15 = load ptr, ptr %7, align 8
  %16 = load double, ptr %8, align 8, !tbaa !9
  %17 = call noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef %16, double noundef -1.000000e+00, double noundef 1.000000e-25)
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %23, label %19

19:                                               ; preds = %5
  %20 = load double, ptr %10, align 8, !tbaa !9
  %21 = call noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef %20, double noundef 1.000000e+00, double noundef 1.000000e-25)
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %26

23:                                               ; preds = %19, %5
  %24 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %25 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %24, i32 noundef 11, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 3120, i32 noundef 1)
  store i32 %25, ptr %6, align 4
  br label %82

26:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %27

27:                                               ; preds = %78, %26
  %28 = load i32, ptr %13, align 4, !tbaa !11
  %29 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %15, i32 0, i32 3
  %30 = load i32, ptr %29, align 8, !tbaa !13
  %31 = icmp slt i32 %28, %30
  br i1 %31, label %32, label %81

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i32, ptr %13, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !9
  store double %37, ptr %14, align 8, !tbaa !9
  %38 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %15, i32 0, i32 15
  %39 = load ptr, ptr %38, align 8, !tbaa !30
  %40 = load i32, ptr %13, align 4, !tbaa !11
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %39, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !11
  store i32 %43, ptr %12, align 4, !tbaa !11
  br label %44

44:                                               ; preds = %74, %32
  %45 = load i32, ptr %12, align 4, !tbaa !11
  %46 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %15, i32 0, i32 15
  %47 = load ptr, ptr %46, align 8, !tbaa !30
  %48 = load i32, ptr %13, align 4, !tbaa !11
  %49 = add nsw i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %47, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = icmp slt i32 %45, %52
  br i1 %53, label %54, label %77

54:                                               ; preds = %44
  %55 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %15, i32 0, i32 13
  %56 = load ptr, ptr %55, align 8, !tbaa !31
  %57 = load i32, ptr %12, align 4, !tbaa !11
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = load double, ptr %14, align 8, !tbaa !9
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %15, i32 0, i32 14
  %64 = load ptr, ptr %63, align 8, !tbaa !32
  %65 = load i32, ptr %12, align 4, !tbaa !11
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i32, ptr %64, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %62, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = fneg double %60
  %73 = call double @llvm.fmuladd.f64(double %72, double %61, double %71)
  store double %73, ptr %70, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %54
  %75 = load i32, ptr %12, align 4, !tbaa !11
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %12, align 4, !tbaa !11
  br label %44, !llvm.loop !33

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

78:                                               ; preds = %77
  %79 = load i32, ptr %13, align 4, !tbaa !11
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %13, align 4, !tbaa !11
  br label %27, !llvm.loop !35

81:                                               ; preds = %27
  store i32 0, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %82

82:                                               ; preds = %81, %23
  %83 = load i32, ptr %6, align 4
  ret i32 %83
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef, double noundef, double noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { inlinehint 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 #5 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 1080}
!14 = !{!"_ZTSN7qpOASES14SQProblemSchurE", !15, i64 0, !6, i64 1064, !6, i64 1072, !12, i64 1080, !12, i64 1084, !6, i64 1088, !6, i64 1096, !10, i64 1104, !10, i64 1112, !12, i64 1120, !6, i64 1128, !6, i64 1136, !12, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !21, i64 1176, !21, i64 1216}
!15 = !{!"_ZTSN7qpOASES9SQProblemE", !16, i64 0}
!16 = !{!"_ZTSN7qpOASES8QProblemE", !17, i64 0, !18, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !28, i64 832, !6, i64 952, !6, i64 960, !12, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056}
!17 = !{!"_ZTSN7qpOASES9QProblemBE", !18, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !19, i64 48, !6, i64 168, !18, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !22, i64 208, !18, i64 212, !18, i64 216, !23, i64 220, !10, i64 224, !12, i64 232, !6, i64 240, !10, i64 248, !10, i64 256, !12, i64 264, !24, i64 272, !27, i64 496, !29, i64 768}
!18 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!19 = !{!"_ZTSN7qpOASES6BoundsE", !20, i64 0, !21, i64 40, !21, i64 80}
!20 = !{!"_ZTSN7qpOASES9SubjectToE", !12, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !18, i64 36}
!21 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!22 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!23 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!24 = !{!"_ZTSN7qpOASES7OptionsE", !25, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !12, i64 28, !12, i64 32, !18, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !26, i64 128, !10, i64 136, !12, i64 144, !10, i64 152, !12, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !18, i64 200, !18, i64 204, !12, i64 208, !12, i64 212, !12, i64 216}
!25 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!26 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!27 = !{!"_ZTSN7qpOASES7FlipperE", !12, i64 0, !12, i64 4, !19, i64 8, !28, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!28 = !{!"_ZTSN7qpOASES11ConstraintsE", !20, i64 0, !21, i64 40, !21, i64 80}
!29 = !{!"_ZTSN7qpOASES13TabularOutputE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!30 = !{!14, !6, i64 1168}
!31 = !{!14, !6, i64 1152}
!32 = !{!14, !6, i64 1160}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


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

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [109 x i8], align 1

declare noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv() local_unnamed_addr #0

declare noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES14SQProblemSchur13computeMTimesEdPKddPd(ptr nocapture noundef nonnull readonly align 8 dereferenceable(1256) %0, double noundef %1, ptr nocapture noundef readonly %2, double noundef %3, ptr nocapture noundef %4) local_unnamed_addr #2 align 2 {
  %6 = tail call noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef %1, double noundef -1.000000e+00, double noundef 1.000000e-25)
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %20, label %8

8:                                                ; preds = %5
  %9 = tail call noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef %3, double noundef 1.000000e+00, double noundef 1.000000e-25)
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %20, label %.preheader

.preheader:                                       ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 1080
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph20, label %.loopexit17

.lr.ph20:                                         ; preds = %.preheader
  %14 = getelementptr inbounds i8, ptr %0, i64 1168
  %15 = load ptr, ptr %14, align 8, !tbaa !27
  %16 = getelementptr inbounds i8, ptr %0, i64 1152
  %17 = load ptr, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr %0, i64 1160
  %19 = load ptr, ptr %18, align 8
  %wide.trip.count25 = zext nneg i32 %12 to i64
  %.pre = load i32, ptr %15, align 4, !tbaa !28
  br label %23

20:                                               ; preds = %8, %5
  %21 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %22 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %21, i32 noundef 11, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 3120, i32 noundef 1)
  br label %.loopexit17

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %23
  %exitcond26.not = icmp eq i64 %indvars.iv.next23, %wide.trip.count25
  br i1 %exitcond26.not, label %.loopexit17, label %23, !llvm.loop !29

23:                                               ; preds = %.lr.ph20, %.loopexit
  %24 = phi i32 [ %.pre, %.lr.ph20 ], [ %28, %.loopexit ]
  %indvars.iv22 = phi i64 [ 0, %.lr.ph20 ], [ %indvars.iv.next23, %.loopexit ]
  %25 = getelementptr inbounds double, ptr %2, i64 %indvars.iv22
  %26 = load double, ptr %25, align 8, !tbaa !31
  %indvars.iv.next23 = add nuw nsw i64 %indvars.iv22, 1
  %27 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv.next23
  %28 = load i32, ptr %27, align 4, !tbaa !28
  %29 = icmp slt i32 %24, %28
  br i1 %29, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %23
  %30 = sext i32 %24 to i64
  %wide.trip.count = sext i32 %28 to i64
  %31 = sub nsw i64 %wide.trip.count, %30
  %xtraiter = and i64 %31, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %32 = getelementptr inbounds double, ptr %17, i64 %30
  %33 = load double, ptr %32, align 8, !tbaa !31
  %34 = getelementptr inbounds i32, ptr %19, i64 %30
  %35 = load i32, ptr %34, align 4, !tbaa !28
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %4, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !31
  %39 = fneg double %33
  %40 = tail call double @llvm.fmuladd.f64(double %39, double %26, double %38)
  store double %40, ptr %37, align 8, !tbaa !31
  %indvars.iv.next.prol = add nsw i64 %30, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %30, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %41 = add nsw i64 %wide.trip.count, -1
  %42 = icmp eq i64 %41, %30
  br i1 %42, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %43 = getelementptr inbounds double, ptr %17, i64 %indvars.iv
  %44 = load double, ptr %43, align 8, !tbaa !31
  %45 = getelementptr inbounds i32, ptr %19, i64 %indvars.iv
  %46 = load i32, ptr %45, align 4, !tbaa !28
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %4, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !31
  %50 = fneg double %44
  %51 = tail call double @llvm.fmuladd.f64(double %50, double %26, double %49)
  store double %51, ptr %48, align 8, !tbaa !31
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %52 = getelementptr inbounds double, ptr %17, i64 %indvars.iv.next
  %53 = load double, ptr %52, align 8, !tbaa !31
  %54 = getelementptr inbounds i32, ptr %19, i64 %indvars.iv.next
  %55 = load i32, ptr %54, align 4, !tbaa !28
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %4, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !31
  %59 = fneg double %53
  %60 = tail call double @llvm.fmuladd.f64(double %59, double %26, double %58)
  store double %60, ptr %57, align 8, !tbaa !31
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit, label %.lr.ph, !llvm.loop !32

.loopexit17:                                      ; preds = %.loopexit, %.preheader, %20
  %.0 = phi i32 [ %22, %20 ], [ 0, %.preheader ], [ 0, %.loopexit ]
  ret i32 %.0
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef, double noundef, double noundef) local_unnamed_addr #3

attributes #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { inlinehint 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" }

!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, !16, i64 1080}
!6 = !{!"_ZTSN7qpOASES14SQProblemSchurE", !7, i64 0, !13, i64 1064, !13, i64 1072, !16, i64 1080, !16, i64 1084, !13, i64 1088, !13, i64 1096, !18, i64 1104, !18, i64 1112, !16, i64 1120, !13, i64 1128, !13, i64 1136, !16, i64 1144, !13, i64 1152, !13, i64 1160, !13, i64 1168, !17, i64 1176, !17, i64 1216}
!7 = !{!"_ZTSN7qpOASES9SQProblemE", !8, i64 0}
!8 = !{!"_ZTSN7qpOASES8QProblemE", !9, i64 0, !10, i64 800, !13, i64 808, !13, i64 816, !13, i64 824, !25, i64 832, !13, i64 952, !13, i64 960, !16, i64 968, !13, i64 976, !13, i64 984, !13, i64 992, !13, i64 1000, !13, i64 1008, !13, i64 1016, !13, i64 1024, !13, i64 1032, !13, i64 1040, !13, i64 1048, !13, i64 1056}
!9 = !{!"_ZTSN7qpOASES9QProblemBE", !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !13, i64 168, !10, i64 176, !13, i64 184, !13, i64 192, !18, i64 200, !19, i64 208, !10, i64 212, !10, i64 216, !20, i64 220, !18, i64 224, !16, i64 232, !13, i64 240, !18, i64 248, !18, i64 256, !16, i64 264, !21, i64 272, !24, i64 496, !26, i64 768}
!10 = !{!"_ZTSN7qpOASES11BooleanTypeE", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"_ZTSN7qpOASES6BoundsE", !15, i64 0, !17, i64 40, !17, i64 80}
!15 = !{!"_ZTSN7qpOASES9SubjectToE", !16, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !10, i64 36}
!16 = !{!"int", !11, i64 0}
!17 = !{!"_ZTSN7qpOASES9IndexlistE", !13, i64 0, !13, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32}
!18 = !{!"double", !11, i64 0}
!19 = !{!"_ZTSN7qpOASES14QProblemStatusE", !11, i64 0}
!20 = !{!"_ZTSN7qpOASES11HessianTypeE", !11, i64 0}
!21 = !{!"_ZTSN7qpOASES7OptionsE", !22, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !16, i64 28, !16, i64 32, !10, i64 36, !18, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !18, i64 112, !18, i64 120, !23, i64 128, !18, i64 136, !16, i64 144, !18, i64 152, !16, i64 160, !18, i64 168, !18, i64 176, !18, i64 184, !18, i64 192, !10, i64 200, !10, i64 204, !16, i64 208, !16, i64 212, !16, i64 216}
!22 = !{!"_ZTSN7qpOASES10PrintLevelE", !11, i64 0}
!23 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !11, i64 0}
!24 = !{!"_ZTSN7qpOASES7FlipperE", !16, i64 0, !16, i64 4, !14, i64 8, !25, i64 128, !13, i64 248, !13, i64 256, !13, i64 264}
!25 = !{!"_ZTSN7qpOASES11ConstraintsE", !15, i64 0, !17, i64 40, !17, i64 80}
!26 = !{!"_ZTSN7qpOASES13TabularOutputE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28}
!27 = !{!6, !13, i64 1168}
!28 = !{!16, !16, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!18, !18, i64 0}
!32 = distinct !{!32, !30}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass