; 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 @_ZN7qpOASES14SQProblemSchur18computeMTransTimesEdPKddPd(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
  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
  %14 = load ptr, ptr %7, align 8
  %15 = load double, ptr %8, align 8, !tbaa !9
  %16 = call noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef %15, double noundef 1.000000e+00, double noundef 1.000000e-25)
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %26, label %18

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

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

26:                                               ; preds = %22, %5
  %27 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %28 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %27, i32 noundef 11, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 3137, i32 noundef 1)
  store i32 %28, ptr %6, align 4
  br label %156

29:                                               ; preds = %22, %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %30 = load double, ptr %10, align 8, !tbaa !9
  %31 = call noundef i32 @_ZN7qpOASES6isZeroEdd(double noundef %30, double noundef 1.000000e-25)
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %91

33:                                               ; preds = %29
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %87, %33
  %35 = load i32, ptr %13, align 4, !tbaa !11
  %36 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 3
  %37 = load i32, ptr %36, align 8, !tbaa !13
  %38 = icmp slt i32 %35, %37
  br i1 %38, label %39, label %90

39:                                               ; preds = %34
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load i32, ptr %13, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %40, i64 %42
  store double 0.000000e+00, ptr %43, align 8, !tbaa !9
  %44 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 15
  %45 = load ptr, ptr %44, align 8, !tbaa !30
  %46 = load i32, ptr %13, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %45, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !11
  store i32 %49, ptr %12, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %83, %39
  %51 = load i32, ptr %12, align 4, !tbaa !11
  %52 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 15
  %53 = load ptr, ptr %52, align 8, !tbaa !30
  %54 = load i32, ptr %13, align 4, !tbaa !11
  %55 = add nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr %53, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = icmp slt i32 %51, %58
  br i1 %59, label %60, label %86

60:                                               ; preds = %50
  %61 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 13
  %62 = load ptr, ptr %61, align 8, !tbaa !31
  %63 = load i32, ptr %12, align 4, !tbaa !11
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %62, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 14
  %69 = load ptr, ptr %68, align 8, !tbaa !32
  %70 = load i32, ptr %12, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i32, ptr %69, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %67, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = load i32, ptr %13, align 4, !tbaa !11
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = call double @llvm.fmuladd.f64(double %66, double %76, double %81)
  store double %82, ptr %80, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %60
  %84 = load i32, ptr %12, align 4, !tbaa !11
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %12, align 4, !tbaa !11
  br label %50, !llvm.loop !33

86:                                               ; preds = %50
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %13, align 4, !tbaa !11
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %13, align 4, !tbaa !11
  br label %34, !llvm.loop !35

90:                                               ; preds = %34
  br label %155

91:                                               ; preds = %29
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %92

92:                                               ; preds = %151, %91
  %93 = load i32, ptr %13, align 4, !tbaa !11
  %94 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 3
  %95 = load i32, ptr %94, align 8, !tbaa !13
  %96 = icmp slt i32 %93, %95
  br i1 %96, label %97, label %154

97:                                               ; preds = %92
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = load i32, ptr %13, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = fneg double %102
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load i32, ptr %13, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  store double %103, ptr %107, align 8, !tbaa !9
  %108 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 15
  %109 = load ptr, ptr %108, align 8, !tbaa !30
  %110 = load i32, ptr %13, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !11
  store i32 %113, ptr %12, align 4, !tbaa !11
  br label %114

114:                                              ; preds = %147, %97
  %115 = load i32, ptr %12, align 4, !tbaa !11
  %116 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 15
  %117 = load ptr, ptr %116, align 8, !tbaa !30
  %118 = load i32, ptr %13, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %117, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !11
  %123 = icmp slt i32 %115, %122
  br i1 %123, label %124, label %150

124:                                              ; preds = %114
  %125 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 13
  %126 = load ptr, ptr %125, align 8, !tbaa !31
  %127 = load i32, ptr %12, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %14, i32 0, i32 14
  %133 = load ptr, ptr %132, align 8, !tbaa !32
  %134 = load i32, ptr %12, align 4, !tbaa !11
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !11
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds double, ptr %131, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i32, ptr %13, align 4, !tbaa !11
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %141, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !9
  %146 = call double @llvm.fmuladd.f64(double %130, double %140, double %145)
  store double %146, ptr %144, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %124
  %148 = load i32, ptr %12, align 4, !tbaa !11
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %12, align 4, !tbaa !11
  br label %114, !llvm.loop !36

150:                                              ; preds = %114
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %13, align 4, !tbaa !11
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %13, align 4, !tbaa !11
  br label %92, !llvm.loop !37

154:                                              ; preds = %92
  br label %155

155:                                              ; preds = %154, %90
  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 %156

156:                                              ; preds = %155, %26
  %157 = load i32, ptr %6, align 4
  ret i32 %157
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7qpOASES6isZeroEdd(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}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !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 @_ZN7qpOASES14SQProblemSchur18computeMTransTimesEdPKddPd(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 %14, label %8

8:                                                ; preds = %5
  %9 = tail call noundef i32 @_ZN7qpOASES6isZeroEdd(double noundef %3, double noundef 1.000000e-25)
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %17

11:                                               ; preds = %8
  %12 = tail call noundef i32 @_ZN7qpOASES7isEqualEddd(double noundef %3, double noundef -1.000000e+00, double noundef 1.000000e-25)
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %17

14:                                               ; preds = %11, %5
  %15 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %16 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %15, i32 noundef 11, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 3137, i32 noundef 1)
  br label %.loopexit36

17:                                               ; preds = %11, %8
  %18 = tail call noundef i32 @_ZN7qpOASES6isZeroEdd(double noundef %3, double noundef 1.000000e-25)
  %19 = icmp eq i32 %18, 1
  %20 = getelementptr inbounds i8, ptr %0, i64 1080
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %22 = icmp sgt i32 %21, 0
  br i1 %19, label %.preheader, label %.preheader38

.preheader38:                                     ; preds = %17
  br i1 %22, label %.lr.ph43, label %.loopexit36

.lr.ph43:                                         ; preds = %.preheader38
  %23 = getelementptr inbounds i8, ptr %0, i64 1168
  %24 = load ptr, ptr %23, align 8, !tbaa !27
  %25 = getelementptr inbounds i8, ptr %0, i64 1152
  %26 = load ptr, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %0, i64 1160
  %28 = load ptr, ptr %27, align 8
  %wide.trip.count54 = zext nneg i32 %21 to i64
  %.pre = load i32, ptr %24, align 4, !tbaa !28
  br label %70

.preheader:                                       ; preds = %17
  br i1 %22, label %.lr.ph48, label %.loopexit36

.lr.ph48:                                         ; preds = %.preheader
  %29 = getelementptr inbounds i8, ptr %0, i64 1168
  %30 = load ptr, ptr %29, align 8, !tbaa !27
  %31 = getelementptr inbounds i8, ptr %0, i64 1152
  %32 = load ptr, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr %0, i64 1160
  %34 = load ptr, ptr %33, align 8
  %wide.trip.count64 = zext nneg i32 %21 to i64
  %.pre66 = load i32, ptr %30, align 4, !tbaa !28
  br label %35

.loopexit:                                        ; preds = %.prol.loopexit71, %.lr.ph45.new, %35
  %exitcond65.not = icmp eq i64 %indvars.iv.next62, %wide.trip.count64
  br i1 %exitcond65.not, label %.loopexit36, label %35, !llvm.loop !29

35:                                               ; preds = %.lr.ph48, %.loopexit
  %36 = phi i32 [ %.pre66, %.lr.ph48 ], [ %39, %.loopexit ]
  %indvars.iv61 = phi i64 [ 0, %.lr.ph48 ], [ %indvars.iv.next62, %.loopexit ]
  %37 = getelementptr inbounds double, ptr %4, i64 %indvars.iv61
  store double 0.000000e+00, ptr %37, align 8, !tbaa !31
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %38 = getelementptr inbounds i32, ptr %30, i64 %indvars.iv.next62
  %39 = load i32, ptr %38, align 4, !tbaa !28
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %.lr.ph45, label %.loopexit

.lr.ph45:                                         ; preds = %35
  %41 = sext i32 %36 to i64
  %wide.trip.count59 = sext i32 %39 to i64
  %42 = sub nsw i64 %wide.trip.count59, %41
  %xtraiter72 = and i64 %42, 1
  %lcmp.mod73.not = icmp eq i64 %xtraiter72, 0
  br i1 %lcmp.mod73.not, label %.prol.loopexit71, label %.prol.loopexit71.unr-lcssa

.prol.loopexit71.unr-lcssa:                       ; preds = %.lr.ph45
  %43 = getelementptr inbounds double, ptr %32, i64 %41
  %44 = load double, ptr %43, align 8, !tbaa !31
  %45 = getelementptr inbounds i32, ptr %34, i64 %41
  %46 = load i32, ptr %45, align 4, !tbaa !28
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %2, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !31
  %50 = tail call double @llvm.fmuladd.f64(double %44, double %49, double 0.000000e+00)
  store double %50, ptr %37, align 8, !tbaa !31
  %indvars.iv.next57.prol = add nsw i64 %41, 1
  br label %.prol.loopexit71

.prol.loopexit71:                                 ; preds = %.prol.loopexit71.unr-lcssa, %.lr.ph45
  %indvars.iv56.unr = phi i64 [ %41, %.lr.ph45 ], [ %indvars.iv.next57.prol, %.prol.loopexit71.unr-lcssa ]
  %.unr74 = phi double [ 0.000000e+00, %.lr.ph45 ], [ %50, %.prol.loopexit71.unr-lcssa ]
  %51 = add nsw i64 %wide.trip.count59, -1
  %52 = icmp eq i64 %51, %41
  br i1 %52, label %.loopexit, label %.lr.ph45.new

.lr.ph45.new:                                     ; preds = %.prol.loopexit71, %.lr.ph45.new
  %indvars.iv56 = phi i64 [ %indvars.iv.next57.1, %.lr.ph45.new ], [ %indvars.iv56.unr, %.prol.loopexit71 ]
  %53 = phi double [ %69, %.lr.ph45.new ], [ %.unr74, %.prol.loopexit71 ]
  %54 = getelementptr inbounds double, ptr %32, i64 %indvars.iv56
  %55 = load double, ptr %54, align 8, !tbaa !31
  %56 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv56
  %57 = load i32, ptr %56, align 4, !tbaa !28
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %2, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !31
  %61 = tail call double @llvm.fmuladd.f64(double %55, double %60, double %53)
  store double %61, ptr %37, align 8, !tbaa !31
  %indvars.iv.next57 = add nsw i64 %indvars.iv56, 1
  %62 = getelementptr inbounds double, ptr %32, i64 %indvars.iv.next57
  %63 = load double, ptr %62, align 8, !tbaa !31
  %64 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv.next57
  %65 = load i32, ptr %64, align 4, !tbaa !28
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %2, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !31
  %69 = tail call double @llvm.fmuladd.f64(double %63, double %68, double %61)
  store double %69, ptr %37, align 8, !tbaa !31
  %indvars.iv.next57.1 = add nsw i64 %indvars.iv56, 2
  %exitcond60.not.1 = icmp eq i64 %indvars.iv.next57.1, %wide.trip.count59
  br i1 %exitcond60.not.1, label %.loopexit, label %.lr.ph45.new, !llvm.loop !32

.loopexit37:                                      ; preds = %.prol.loopexit, %.lr.ph.new, %70
  %exitcond55.not = icmp eq i64 %indvars.iv.next52, %wide.trip.count54
  br i1 %exitcond55.not, label %.loopexit36, label %70, !llvm.loop !33

70:                                               ; preds = %.lr.ph43, %.loopexit37
  %71 = phi i32 [ %.pre, %.lr.ph43 ], [ %76, %.loopexit37 ]
  %indvars.iv51 = phi i64 [ 0, %.lr.ph43 ], [ %indvars.iv.next52, %.loopexit37 ]
  %72 = getelementptr inbounds double, ptr %4, i64 %indvars.iv51
  %73 = load double, ptr %72, align 8, !tbaa !31
  %74 = fneg double %73
  store double %74, ptr %72, align 8, !tbaa !31
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %75 = getelementptr inbounds i32, ptr %24, i64 %indvars.iv.next52
  %76 = load i32, ptr %75, align 4, !tbaa !28
  %77 = icmp slt i32 %71, %76
  br i1 %77, label %.lr.ph, label %.loopexit37

.lr.ph:                                           ; preds = %70
  %78 = sext i32 %71 to i64
  %wide.trip.count = sext i32 %76 to i64
  %79 = sub nsw i64 %wide.trip.count, %78
  %xtraiter = and i64 %79, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph
  %80 = getelementptr inbounds double, ptr %26, i64 %78
  %81 = load double, ptr %80, align 8, !tbaa !31
  %82 = getelementptr inbounds i32, ptr %28, i64 %78
  %83 = load i32, ptr %82, align 4, !tbaa !28
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %2, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !31
  %87 = tail call double @llvm.fmuladd.f64(double %81, double %86, double %74)
  store double %87, ptr %72, align 8, !tbaa !31
  %indvars.iv.next.prol = add nsw i64 %78, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph
  %indvars.iv.unr = phi i64 [ %78, %.lr.ph ], [ %indvars.iv.next.prol, %.prol.loopexit.unr-lcssa ]
  %.unr = phi double [ %74, %.lr.ph ], [ %87, %.prol.loopexit.unr-lcssa ]
  %88 = add nsw i64 %wide.trip.count, -1
  %89 = icmp eq i64 %88, %78
  br i1 %89, label %.loopexit37, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph.new ], [ %indvars.iv.unr, %.prol.loopexit ]
  %90 = phi double [ %106, %.lr.ph.new ], [ %.unr, %.prol.loopexit ]
  %91 = getelementptr inbounds double, ptr %26, i64 %indvars.iv
  %92 = load double, ptr %91, align 8, !tbaa !31
  %93 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv
  %94 = load i32, ptr %93, align 4, !tbaa !28
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %2, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !31
  %98 = tail call double @llvm.fmuladd.f64(double %92, double %97, double %90)
  store double %98, ptr %72, align 8, !tbaa !31
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %99 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next
  %100 = load double, ptr %99, align 8, !tbaa !31
  %101 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next
  %102 = load i32, ptr %101, align 4, !tbaa !28
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %2, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !31
  %106 = tail call double @llvm.fmuladd.f64(double %100, double %105, double %98)
  store double %106, ptr %72, 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 %.loopexit37, label %.lr.ph.new, !llvm.loop !34

.loopexit36:                                      ; preds = %.loopexit37, %.loopexit, %.preheader38, %.preheader, %14
  %.035 = phi i32 [ %16, %14 ], [ 0, %.preheader ], [ 0, %.preheader38 ], [ 0, %.loopexit ], [ 0, %.loopexit37 ]
  ret i32 %.035
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7qpOASES6isZeroEdd(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}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}


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