; 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] }>

@_ZTVN7qpOASES14SQProblemSchurE = external dso_local unnamed_addr constant { [45 x ptr] }, align 8

declare void @_ZN7qpOASES9IndexlistC1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

; Function Attrs: nounwind
declare void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7qpOASES9SQProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(1064)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7qpOASES14SQProblemSchurC2EiiNS_11HessianTypeEi(ptr noundef nonnull align 8 dereferenceable(1256) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = 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 i32 %3, ptr %9, align 4, !tbaa !11
  store i32 %4, ptr %10, align 4, !tbaa !9
  %13 = load ptr, ptr %6, align 8
  %14 = load i32, ptr %7, align 4, !tbaa !9
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = load i32, ptr %9, align 4, !tbaa !11
  call void @_ZN7qpOASES9SQProblemC2EiiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(1064) %13, i32 noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef 0)
  store ptr getelementptr inbounds inrange(-16, 344) ({ [45 x ptr] }, ptr @_ZTVN7qpOASES14SQProblemSchurE, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !13
  %17 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 16
  invoke void @_ZN7qpOASES9IndexlistC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %17)
          to label %18 unwind label %128

18:                                               ; preds = %5
  %19 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 17
  invoke void @_ZN7qpOASES9IndexlistC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %19)
          to label %20 unwind label %132

20:                                               ; preds = %18
  %21 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #8
          to label %22 unwind label %136

22:                                               ; preds = %20
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 8, i1 false)
  invoke void @_ZN7qpOASES17DummySparseSolverC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %23 unwind label %140

23:                                               ; preds = %22
  %24 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 1
  store ptr %21, ptr %24, align 8, !tbaa !15
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  store i32 %25, ptr %26, align 4, !tbaa !32
  %27 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 3
  store i32 -1, ptr %27, align 8, !tbaa !33
  %28 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %29 = load i32, ptr %28, align 4, !tbaa !32
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %31, label %144

31:                                               ; preds = %23
  %32 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %33 = load i32, ptr %32, align 4, !tbaa !32
  %34 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %35 = load i32, ptr %34, align 4, !tbaa !32
  %36 = mul nsw i32 %33, %35
  %37 = sext i32 %36 to i64
  %38 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %37, i64 8)
  %39 = extractvalue { i64, i1 } %38, 1
  %40 = extractvalue { i64, i1 } %38, 0
  %41 = select i1 %39, i64 -1, i64 %40
  %42 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %41) #8
          to label %43 unwind label %136

43:                                               ; preds = %31
  %44 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 2
  store ptr %42, ptr %44, align 8, !tbaa !34
  %45 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %46 = load i32, ptr %45, align 4, !tbaa !32
  %47 = sext i32 %46 to i64
  %48 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %47, i64 4)
  %49 = extractvalue { i64, i1 } %48, 1
  %50 = extractvalue { i64, i1 } %48, 0
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #8
          to label %53 unwind label %136

53:                                               ; preds = %43
  %54 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 10
  store ptr %52, ptr %54, align 8, !tbaa !35
  %55 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %56 = load i32, ptr %55, align 4, !tbaa !32
  %57 = sext i32 %56 to i64
  %58 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %57, i64 4)
  %59 = extractvalue { i64, i1 } %58, 1
  %60 = extractvalue { i64, i1 } %58, 0
  %61 = select i1 %59, i64 -1, i64 %60
  %62 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %61) #8
          to label %63 unwind label %136

63:                                               ; preds = %53
  %64 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 11
  store ptr %62, ptr %64, align 8, !tbaa !36
  %65 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %66 = load i32, ptr %65, align 4, !tbaa !32
  %67 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %68 = load i32, ptr %67, align 4, !tbaa !32
  %69 = mul nsw i32 %66, %68
  %70 = sext i32 %69 to i64
  %71 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %70, i64 8)
  %72 = extractvalue { i64, i1 } %71, 1
  %73 = extractvalue { i64, i1 } %71, 0
  %74 = select i1 %72, i64 -1, i64 %73
  %75 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %74) #8
          to label %76 unwind label %136

76:                                               ; preds = %63
  %77 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 5
  store ptr %75, ptr %77, align 8, !tbaa !37
  %78 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %79 = load i32, ptr %78, align 4, !tbaa !32
  %80 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %81 = load i32, ptr %80, align 4, !tbaa !32
  %82 = mul nsw i32 %79, %81
  %83 = sext i32 %82 to i64
  %84 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %83, i64 8)
  %85 = extractvalue { i64, i1 } %84, 1
  %86 = extractvalue { i64, i1 } %84, 0
  %87 = select i1 %85, i64 -1, i64 %86
  %88 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %87) #8
          to label %89 unwind label %136

89:                                               ; preds = %76
  %90 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 6
  store ptr %88, ptr %90, align 8, !tbaa !38
  %91 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %92 = load i32, ptr %91, align 4, !tbaa !32
  %93 = mul nsw i32 10, %92
  %94 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 12
  store i32 %93, ptr %94, align 8, !tbaa !39
  %95 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 12
  %96 = load i32, ptr %95, align 8, !tbaa !39
  %97 = sext i32 %96 to i64
  %98 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %97, i64 8)
  %99 = extractvalue { i64, i1 } %98, 1
  %100 = extractvalue { i64, i1 } %98, 0
  %101 = select i1 %99, i64 -1, i64 %100
  %102 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %101) #8
          to label %103 unwind label %136

103:                                              ; preds = %89
  %104 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 13
  store ptr %102, ptr %104, align 8, !tbaa !40
  %105 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 12
  %106 = load i32, ptr %105, align 8, !tbaa !39
  %107 = sext i32 %106 to i64
  %108 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %107, i64 4)
  %109 = extractvalue { i64, i1 } %108, 1
  %110 = extractvalue { i64, i1 } %108, 0
  %111 = select i1 %109, i64 -1, i64 %110
  %112 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %111) #8
          to label %113 unwind label %136

113:                                              ; preds = %103
  %114 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 14
  store ptr %112, ptr %114, align 8, !tbaa !41
  %115 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 4
  %116 = load i32, ptr %115, align 4, !tbaa !32
  %117 = add nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %118, i64 4)
  %120 = extractvalue { i64, i1 } %119, 1
  %121 = extractvalue { i64, i1 } %119, 0
  %122 = select i1 %120, i64 -1, i64 %121
  %123 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %122) #8
          to label %124 unwind label %136

124:                                              ; preds = %113
  %125 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 15
  store ptr %123, ptr %125, align 8, !tbaa !42
  %126 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 7
  store double 1.000000e+00, ptr %126, align 8, !tbaa !43
  %127 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 8
  store double 1.000000e+00, ptr %127, align 8, !tbaa !44
  br label %156

128:                                              ; preds = %5
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %11, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %12, align 4
  br label %160

132:                                              ; preds = %18
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %11, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %12, align 4
  br label %159

136:                                              ; preds = %113, %103, %89, %76, %63, %53, %43, %31, %20
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %11, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %12, align 4
  br label %158

140:                                              ; preds = %22
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %11, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %21, i64 noundef 8) #9
  br label %158

144:                                              ; preds = %23
  %145 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 2
  store ptr null, ptr %145, align 8, !tbaa !34
  %146 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 5
  store ptr null, ptr %146, align 8, !tbaa !37
  %147 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 6
  store ptr null, ptr %147, align 8, !tbaa !38
  %148 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 7
  store double 0.000000e+00, ptr %148, align 8, !tbaa !43
  %149 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 8
  store double 0.000000e+00, ptr %149, align 8, !tbaa !44
  %150 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 10
  store ptr null, ptr %150, align 8, !tbaa !35
  %151 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 11
  store ptr null, ptr %151, align 8, !tbaa !36
  %152 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 12
  store i32 0, ptr %152, align 8, !tbaa !39
  %153 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 13
  store ptr null, ptr %153, align 8, !tbaa !40
  %154 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 14
  store ptr null, ptr %154, align 8, !tbaa !41
  %155 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 15
  store ptr null, ptr %155, align 8, !tbaa !42
  br label %156

156:                                              ; preds = %144, %124
  %157 = getelementptr inbounds %"class.qpOASES::SQProblemSchur", ptr %13, i32 0, i32 9
  store i32 0, ptr %157, align 8, !tbaa !45
  ret void

158:                                              ; preds = %140, %136
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #10
  br label %159

159:                                              ; preds = %158, %132
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #10
  br label %160

160:                                              ; preds = %159, %128
  call void @_ZN7qpOASES9SQProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(1064) %13) #10
  br label %161

161:                                              ; preds = %160
  %162 = load ptr, ptr %11, align 8
  %163 = load i32, ptr %12, align 4
  %164 = insertvalue { ptr, i32 } poison, ptr %162, 0
  %165 = insertvalue { ptr, i32 } %164, i32 %163, 1
  resume { ptr, i32 } %165
}

declare void @_ZN7qpOASES9SQProblemC2EiiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(1064), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0

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

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

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 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint 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 = { 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 #5 = { 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 #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { 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 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !6, i64 1064}
!16 = !{!"_ZTSN7qpOASES14SQProblemSchurE", !17, i64 0, !6, i64 1064, !6, i64 1072, !10, i64 1080, !10, i64 1084, !6, i64 1088, !6, i64 1096, !24, i64 1104, !24, i64 1112, !10, i64 1120, !6, i64 1128, !6, i64 1136, !10, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !23, i64 1176, !23, i64 1216}
!17 = !{!"_ZTSN7qpOASES9SQProblemE", !18, i64 0}
!18 = !{!"_ZTSN7qpOASES8QProblemE", !19, i64 0, !20, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !30, i64 832, !6, i64 952, !6, i64 960, !10, 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}
!19 = !{!"_ZTSN7qpOASES9QProblemBE", !20, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !21, i64 48, !6, i64 168, !20, i64 176, !6, i64 184, !6, i64 192, !24, i64 200, !25, i64 208, !20, i64 212, !20, i64 216, !12, i64 220, !24, i64 224, !10, i64 232, !6, i64 240, !24, i64 248, !24, i64 256, !10, i64 264, !26, i64 272, !29, i64 496, !31, i64 768}
!20 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!21 = !{!"_ZTSN7qpOASES6BoundsE", !22, i64 0, !23, i64 40, !23, i64 80}
!22 = !{!"_ZTSN7qpOASES9SubjectToE", !10, i64 8, !6, i64 16, !6, i64 24, !20, i64 32, !20, i64 36}
!23 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!26 = !{!"_ZTSN7qpOASES7OptionsE", !27, i64 0, !20, i64 4, !20, i64 8, !20, i64 12, !20, i64 16, !20, i64 20, !20, i64 24, !10, i64 28, !10, i64 32, !20, i64 36, !24, i64 40, !24, i64 48, !24, i64 56, !24, i64 64, !24, i64 72, !24, i64 80, !24, i64 88, !24, i64 96, !24, i64 104, !24, i64 112, !24, i64 120, !28, i64 128, !24, i64 136, !10, i64 144, !24, i64 152, !10, i64 160, !24, i64 168, !24, i64 176, !24, i64 184, !24, i64 192, !20, i64 200, !20, i64 204, !10, i64 208, !10, i64 212, !10, i64 216}
!27 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!28 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!29 = !{!"_ZTSN7qpOASES7FlipperE", !10, i64 0, !10, i64 4, !21, i64 8, !30, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!30 = !{!"_ZTSN7qpOASES11ConstraintsE", !22, i64 0, !23, i64 40, !23, i64 80}
!31 = !{!"_ZTSN7qpOASES13TabularOutputE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!32 = !{!16, !10, i64 1084}
!33 = !{!16, !10, i64 1080}
!34 = !{!16, !6, i64 1072}
!35 = !{!16, !6, i64 1128}
!36 = !{!16, !6, i64 1136}
!37 = !{!16, !6, i64 1088}
!38 = !{!16, !6, i64 1096}
!39 = !{!16, !10, i64 1144}
!40 = !{!16, !6, i64 1152}
!41 = !{!16, !6, i64 1160}
!42 = !{!16, !6, i64 1168}
!43 = !{!16, !24, i64 1104}
!44 = !{!16, !24, i64 1112}
!45 = !{!16, !10, i64 1120}


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

@_ZTVN7qpOASES14SQProblemSchurE = external dso_local unnamed_addr constant { [45 x ptr] }, align 8

declare void @_ZN7qpOASES9IndexlistC1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7qpOASES9SQProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(1064)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7qpOASES14SQProblemSchurC2EiiNS_11HessianTypeEi(ptr noundef nonnull align 8 dereferenceable(1256) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN7qpOASES9SQProblemC2EiiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(1064) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef 0)
  store ptr getelementptr inbounds inrange(-16, 344) (i8, ptr @_ZTVN7qpOASES14SQProblemSchurE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 1176
  invoke void @_ZN7qpOASES9IndexlistC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %7 unwind label %56

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 1216
  invoke void @_ZN7qpOASES9IndexlistC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %8)
          to label %9 unwind label %58

9:                                                ; preds = %7
  %10 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #7
          to label %11 unwind label %60

11:                                               ; preds = %9
  store i64 0, ptr %10, align 8
  invoke void @_ZN7qpOASES17DummySparseSolverC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %12 unwind label %62

12:                                               ; preds = %11
  %13 = getelementptr inbounds i8, ptr %0, i64 1064
  store ptr %10, ptr %13, align 8, !tbaa !8
  %14 = getelementptr inbounds i8, ptr %0, i64 1084
  store i32 %4, ptr %14, align 4, !tbaa !29
  %15 = getelementptr inbounds i8, ptr %0, i64 1080
  store i32 -1, ptr %15, align 8, !tbaa !30
  %16 = icmp sgt i32 %4, 0
  br i1 %16, label %17, label %64

17:                                               ; preds = %12
  %18 = mul nuw nsw i32 %4, %4
  %19 = zext nneg i32 %18 to i64
  %20 = shl nuw nsw i64 %19, 3
  %21 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %20) #7
          to label %22 unwind label %60

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %0, i64 1072
  store ptr %21, ptr %23, align 8, !tbaa !31
  %24 = zext nneg i32 %4 to i64
  %25 = shl nuw nsw i64 %24, 2
  %26 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %25) #7
          to label %27 unwind label %60

27:                                               ; preds = %22
  %28 = getelementptr inbounds i8, ptr %0, i64 1128
  store ptr %26, ptr %28, align 8, !tbaa !32
  %29 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %25) #7
          to label %30 unwind label %60

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %0, i64 1136
  store ptr %29, ptr %31, align 8, !tbaa !33
  %32 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %20) #7
          to label %33 unwind label %60

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 1088
  store ptr %32, ptr %34, align 8, !tbaa !34
  %35 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %20) #7
          to label %36 unwind label %60

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %0, i64 1096
  store ptr %35, ptr %37, align 8, !tbaa !35
  %38 = mul nuw nsw i32 %4, 10
  %39 = getelementptr inbounds i8, ptr %0, i64 1144
  store i32 %38, ptr %39, align 8, !tbaa !36
  %40 = zext nneg i32 %38 to i64
  %41 = shl nuw nsw i64 %40, 3
  %42 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %41) #7
          to label %43 unwind label %60

43:                                               ; preds = %36
  %44 = getelementptr inbounds i8, ptr %0, i64 1152
  store ptr %42, ptr %44, align 8, !tbaa !37
  %45 = shl nuw nsw i64 %40, 2
  %46 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %45) #7
          to label %47 unwind label %60

47:                                               ; preds = %43
  %48 = getelementptr inbounds i8, ptr %0, i64 1160
  store ptr %46, ptr %48, align 8, !tbaa !38
  %49 = add nuw nsw i32 %4, 1
  %50 = zext nneg i32 %49 to i64
  %51 = shl nuw nsw i64 %50, 2
  %52 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #7
          to label %53 unwind label %60

53:                                               ; preds = %47
  %54 = getelementptr inbounds i8, ptr %0, i64 1168
  store ptr %52, ptr %54, align 8, !tbaa !39
  %55 = getelementptr inbounds i8, ptr %0, i64 1104
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %55, align 8, !tbaa !40
  br label %69

56:                                               ; preds = %5
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %73

58:                                               ; preds = %7
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %72

60:                                               ; preds = %47, %43, %36, %33, %30, %27, %22, %17, %9
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %71

62:                                               ; preds = %11
  %63 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 8) #8
  br label %71

64:                                               ; preds = %12
  %65 = getelementptr inbounds i8, ptr %0, i64 1072
  store ptr null, ptr %65, align 8, !tbaa !31
  %66 = getelementptr inbounds i8, ptr %0, i64 1088
  %67 = getelementptr inbounds i8, ptr %0, i64 1128
  %68 = getelementptr inbounds i8, ptr %0, i64 1152
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %66, i8 0, i64 32, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %67, i8 0, i64 20, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %68, i8 0, i64 24, i1 false)
  br label %69

69:                                               ; preds = %64, %53
  %70 = getelementptr inbounds i8, ptr %0, i64 1120
  store i32 0, ptr %70, align 8, !tbaa !41
  ret void

71:                                               ; preds = %62, %60
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %63, %62 ]
  tail call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #9
  br label %72

72:                                               ; preds = %71, %58
  %.pn.pn = phi { ptr, i32 } [ %.pn, %71 ], [ %59, %58 ]
  tail call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #9
  br label %73

73:                                               ; preds = %72, %56
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %72 ], [ %57, %56 ]
  tail call void @_ZN7qpOASES9SQProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(1064) %0) #9
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZN7qpOASES9SQProblemC2EiiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(1064), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass