; LLVM IR from Tencent-RoboticsX/jbdl :: src/jbdl/experimental/qpoases/src/QProblem.ll (ZN7qpOASES8QProblem4copyERKS0_)

; 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::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::Indexlist" = type <{ ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>
%"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" }

; 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 speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

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

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

; 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 noundef i32 @_ZN7qpOASES8QProblem4copyERKS0_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef nonnull align 8 dereferenceable(1064) %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %8)
  store i32 %9, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %10)
  store i32 %11, ptr %6, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %12, i32 0, i32 5
  %14 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 5
  %15 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7qpOASES11ConstraintsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %14, ptr noundef nonnull align 8 dereferenceable(120) %13)
  %16 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 1
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %33

19:                                               ; preds = %2
  %20 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !27
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %33

23:                                               ; preds = %19
  %24 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !27
  %26 = icmp eq ptr %25, null
  br i1 %26, label %31, label %27

27:                                               ; preds = %23
  %28 = load ptr, ptr %25, align 8, !tbaa !28
  %29 = getelementptr inbounds ptr, ptr %28, i64 1
  %30 = load ptr, ptr %29, align 8
  call void %30(ptr noundef nonnull align 8 dereferenceable(12) %25) #8
  br label %31

31:                                               ; preds = %27, %23
  %32 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 2
  store ptr null, ptr %32, align 8, !tbaa !27
  br label %33

33:                                               ; preds = %31, %19, %2
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 1
  store i32 %36, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %50

41:                                               ; preds = %33
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !27
  %45 = load ptr, ptr %44, align 8, !tbaa !28
  %46 = getelementptr inbounds ptr, ptr %45, i64 3
  %47 = load ptr, ptr %46, align 8
  %48 = call noundef ptr %47(ptr noundef nonnull align 8 dereferenceable(12) %44)
  %49 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 2
  store ptr %48, ptr %49, align 8, !tbaa !27
  br label %55

50:                                               ; preds = %33
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !27
  %54 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 2
  store ptr %53, ptr %54, align 8, !tbaa !27
  br label %55

55:                                               ; preds = %50, %41
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %56, i32 0, i32 3
  %58 = load ptr, ptr %57, align 8, !tbaa !30
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %73

60:                                               ; preds = %55
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %62, i64 8)
  %64 = extractvalue { i64, i1 } %63, 1
  %65 = extractvalue { i64, i1 } %63, 0
  %66 = select i1 %64, i64 -1, i64 %65
  %67 = call noalias noundef nonnull ptr @_Znam(i64 noundef %66) #9
  %68 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 3
  store ptr %67, ptr %68, align 8, !tbaa !30
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !30
  %72 = call noundef i32 @_ZN7qpOASES8QProblem6setLBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064) %7, ptr noundef %71)
  br label %75

73:                                               ; preds = %55
  %74 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 3
  store ptr null, ptr %74, align 8, !tbaa !30
  br label %75

75:                                               ; preds = %73, %60
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !31
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %93

80:                                               ; preds = %75
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %82, i64 8)
  %84 = extractvalue { i64, i1 } %83, 1
  %85 = extractvalue { i64, i1 } %83, 0
  %86 = select i1 %84, i64 -1, i64 %85
  %87 = call noalias noundef nonnull ptr @_Znam(i64 noundef %86) #9
  %88 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 4
  store ptr %87, ptr %88, align 8, !tbaa !31
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !31
  %92 = call noundef i32 @_ZN7qpOASES8QProblem6setUBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064) %7, ptr noundef %91)
  br label %95

93:                                               ; preds = %75
  %94 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 4
  store ptr null, ptr %94, align 8, !tbaa !31
  br label %95

95:                                               ; preds = %93, %80
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %96, i32 0, i32 10
  %98 = load ptr, ptr %97, align 8, !tbaa !32
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %126

100:                                              ; preds = %95
  %101 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %7, i32 0, i32 10
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %103 = icmp eq ptr %102, null
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  call void @_ZdaPv(ptr noundef %102) #10
  br label %105

105:                                              ; preds = %104, %100
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = load i32, ptr %6, align 4, !tbaa !9
  %108 = add i32 %106, %107
  %109 = zext i32 %108 to i64
  %110 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %109, i64 8)
  %111 = extractvalue { i64, i1 } %110, 1
  %112 = extractvalue { i64, i1 } %110, 0
  %113 = select i1 %111, i64 -1, i64 %112
  %114 = call noalias noundef nonnull ptr @_Znam(i64 noundef %113) #9
  %115 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %7, i32 0, i32 10
  store ptr %114, ptr %115, align 8, !tbaa !32
  %116 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %7, i32 0, i32 10
  %117 = load ptr, ptr %116, align 8, !tbaa !32
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %118, i32 0, i32 10
  %120 = load ptr, ptr %119, align 8, !tbaa !32
  %121 = load i32, ptr %5, align 4, !tbaa !9
  %122 = load i32, ptr %6, align 4, !tbaa !9
  %123 = add i32 %121, %122
  %124 = zext i32 %123 to i64
  %125 = mul i64 %124, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %117, ptr align 8 %120, i64 %125, i1 false)
  br label %128

126:                                              ; preds = %95
  %127 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %7, i32 0, i32 10
  store ptr null, ptr %127, align 8, !tbaa !32
  br label %128

128:                                              ; preds = %126, %105
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %129, i32 0, i32 8
  %131 = load i32, ptr %130, align 8, !tbaa !33
  %132 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 8
  store i32 %131, ptr %132, align 8, !tbaa !33
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !34
  %136 = icmp ne ptr %135, null
  br i1 %136, label %137, label %162

137:                                              ; preds = %128
  %138 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 8
  %139 = load i32, ptr %138, align 8, !tbaa !33
  %140 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 8
  %141 = load i32, ptr %140, align 8, !tbaa !33
  %142 = mul nsw i32 %139, %141
  %143 = sext i32 %142 to i64
  %144 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %143, i64 8)
  %145 = extractvalue { i64, i1 } %144, 1
  %146 = extractvalue { i64, i1 } %144, 0
  %147 = select i1 %145, i64 -1, i64 %146
  %148 = call noalias noundef nonnull ptr @_Znam(i64 noundef %147) #9
  %149 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 6
  store ptr %148, ptr %149, align 8, !tbaa !34
  %150 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !34
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %152, i32 0, i32 6
  %154 = load ptr, ptr %153, align 8, !tbaa !34
  %155 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 8
  %156 = load i32, ptr %155, align 8, !tbaa !33
  %157 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 8
  %158 = load i32, ptr %157, align 8, !tbaa !33
  %159 = mul nsw i32 %156, %158
  %160 = zext i32 %159 to i64
  %161 = mul i64 %160, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %151, ptr align 8 %154, i64 %161, i1 false)
  br label %164

162:                                              ; preds = %128
  %163 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 6
  store ptr null, ptr %163, align 8, !tbaa !34
  br label %164

164:                                              ; preds = %162, %137
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %165, i32 0, i32 7
  %167 = load ptr, ptr %166, align 8, !tbaa !35
  %168 = icmp ne ptr %167, null
  br i1 %168, label %169, label %190

169:                                              ; preds = %164
  %170 = load i32, ptr %5, align 4, !tbaa !9
  %171 = load i32, ptr %5, align 4, !tbaa !9
  %172 = mul i32 %170, %171
  %173 = zext i32 %172 to i64
  %174 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %173, i64 8)
  %175 = extractvalue { i64, i1 } %174, 1
  %176 = extractvalue { i64, i1 } %174, 0
  %177 = select i1 %175, i64 -1, i64 %176
  %178 = call noalias noundef nonnull ptr @_Znam(i64 noundef %177) #9
  %179 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 7
  store ptr %178, ptr %179, align 8, !tbaa !35
  %180 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 7
  %181 = load ptr, ptr %180, align 8, !tbaa !35
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %182, i32 0, i32 7
  %184 = load ptr, ptr %183, align 8, !tbaa !35
  %185 = load i32, ptr %5, align 4, !tbaa !9
  %186 = load i32, ptr %5, align 4, !tbaa !9
  %187 = mul i32 %185, %186
  %188 = zext i32 %187 to i64
  %189 = mul i64 %188, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %181, ptr align 8 %184, i64 %189, i1 false)
  br label %192

190:                                              ; preds = %164
  %191 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 7
  store ptr null, ptr %191, align 8, !tbaa !35
  br label %192

192:                                              ; preds = %190, %169
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %193, i32 0, i32 9
  %195 = load ptr, ptr %194, align 8, !tbaa !36
  %196 = icmp ne ptr %195, null
  br i1 %196, label %197, label %214

197:                                              ; preds = %192
  %198 = load i32, ptr %6, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %199, i64 8)
  %201 = extractvalue { i64, i1 } %200, 1
  %202 = extractvalue { i64, i1 } %200, 0
  %203 = select i1 %201, i64 -1, i64 %202
  %204 = call noalias noundef nonnull ptr @_Znam(i64 noundef %203) #9
  %205 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 9
  store ptr %204, ptr %205, align 8, !tbaa !36
  %206 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 9
  %207 = load ptr, ptr %206, align 8, !tbaa !36
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %208, i32 0, i32 9
  %210 = load ptr, ptr %209, align 8, !tbaa !36
  %211 = load i32, ptr %6, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = mul i64 %212, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %207, ptr align 8 %210, i64 %213, i1 false)
  br label %216

214:                                              ; preds = %192
  %215 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 9
  store ptr null, ptr %215, align 8, !tbaa !36
  br label %216

216:                                              ; preds = %214, %197
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %217, i32 0, i32 10
  %219 = load ptr, ptr %218, align 8, !tbaa !37
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %238

221:                                              ; preds = %216
  %222 = load i32, ptr %6, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %223, i64 8)
  %225 = extractvalue { i64, i1 } %224, 1
  %226 = extractvalue { i64, i1 } %224, 0
  %227 = select i1 %225, i64 -1, i64 %226
  %228 = call noalias noundef nonnull ptr @_Znam(i64 noundef %227) #9
  %229 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 10
  store ptr %228, ptr %229, align 8, !tbaa !37
  %230 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 10
  %231 = load ptr, ptr %230, align 8, !tbaa !37
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %232, i32 0, i32 10
  %234 = load ptr, ptr %233, align 8, !tbaa !37
  %235 = load i32, ptr %6, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = mul i64 %236, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %231, ptr align 8 %234, i64 %237, i1 false)
  br label %240

238:                                              ; preds = %216
  %239 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 10
  store ptr null, ptr %239, align 8, !tbaa !37
  br label %240

240:                                              ; preds = %238, %221
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %241, i32 0, i32 11
  %243 = load ptr, ptr %242, align 8, !tbaa !38
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %262

245:                                              ; preds = %240
  %246 = load i32, ptr %6, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %247, i64 8)
  %249 = extractvalue { i64, i1 } %248, 1
  %250 = extractvalue { i64, i1 } %248, 0
  %251 = select i1 %249, i64 -1, i64 %250
  %252 = call noalias noundef nonnull ptr @_Znam(i64 noundef %251) #9
  %253 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 11
  store ptr %252, ptr %253, align 8, !tbaa !38
  %254 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 11
  %255 = load ptr, ptr %254, align 8, !tbaa !38
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %256, i32 0, i32 11
  %258 = load ptr, ptr %257, align 8, !tbaa !38
  %259 = load i32, ptr %6, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = mul i64 %260, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %255, ptr align 8 %258, i64 %261, i1 false)
  br label %264

262:                                              ; preds = %240
  %263 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 11
  store ptr null, ptr %263, align 8, !tbaa !38
  br label %264

264:                                              ; preds = %262, %245
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %265, i32 0, i32 12
  %267 = load ptr, ptr %266, align 8, !tbaa !39
  %268 = icmp ne ptr %267, null
  br i1 %268, label %269, label %274

269:                                              ; preds = %264
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %270, i32 0, i32 12
  %272 = load ptr, ptr %271, align 8, !tbaa !39
  %273 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 12
  store ptr %272, ptr %273, align 8, !tbaa !39
  br label %276

274:                                              ; preds = %264
  %275 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 12
  store ptr null, ptr %275, align 8, !tbaa !39
  br label %276

276:                                              ; preds = %274, %269
  %277 = load i32, ptr %5, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %278, i64 8)
  %280 = extractvalue { i64, i1 } %279, 1
  %281 = extractvalue { i64, i1 } %279, 0
  %282 = select i1 %280, i64 -1, i64 %281
  %283 = call noalias noundef nonnull ptr @_Znam(i64 noundef %282) #9
  %284 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 13
  store ptr %283, ptr %284, align 8, !tbaa !40
  %285 = load i32, ptr %5, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %286, i64 8)
  %288 = extractvalue { i64, i1 } %287, 1
  %289 = extractvalue { i64, i1 } %287, 0
  %290 = select i1 %288, i64 -1, i64 %289
  %291 = call noalias noundef nonnull ptr @_Znam(i64 noundef %290) #9
  %292 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 15
  store ptr %291, ptr %292, align 8, !tbaa !41
  %293 = load i32, ptr %5, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %294, i64 8)
  %296 = extractvalue { i64, i1 } %295, 1
  %297 = extractvalue { i64, i1 } %295, 0
  %298 = select i1 %296, i64 -1, i64 %297
  %299 = call noalias noundef nonnull ptr @_Znam(i64 noundef %298) #9
  %300 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 17
  store ptr %299, ptr %300, align 8, !tbaa !42
  %301 = load i32, ptr %6, align 4, !tbaa !9
  %302 = icmp ugt i32 %301, 0
  br i1 %302, label %303, label %336

303:                                              ; preds = %276
  %304 = load i32, ptr %6, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %305, i64 8)
  %307 = extractvalue { i64, i1 } %306, 1
  %308 = extractvalue { i64, i1 } %306, 0
  %309 = select i1 %307, i64 -1, i64 %308
  %310 = call noalias noundef nonnull ptr @_Znam(i64 noundef %309) #9
  %311 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 16
  store ptr %310, ptr %311, align 8, !tbaa !43
  %312 = load i32, ptr %6, align 4, !tbaa !9
  %313 = zext i32 %312 to i64
  %314 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %313, i64 8)
  %315 = extractvalue { i64, i1 } %314, 1
  %316 = extractvalue { i64, i1 } %314, 0
  %317 = select i1 %315, i64 -1, i64 %316
  %318 = call noalias noundef nonnull ptr @_Znam(i64 noundef %317) #9
  %319 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 14
  store ptr %318, ptr %319, align 8, !tbaa !44
  %320 = load i32, ptr %6, align 4, !tbaa !9
  %321 = zext i32 %320 to i64
  %322 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %321, i64 8)
  %323 = extractvalue { i64, i1 } %322, 1
  %324 = extractvalue { i64, i1 } %322, 0
  %325 = select i1 %323, i64 -1, i64 %324
  %326 = call noalias noundef nonnull ptr @_Znam(i64 noundef %325) #9
  %327 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 18
  store ptr %326, ptr %327, align 8, !tbaa !45
  %328 = load i32, ptr %6, align 4, !tbaa !9
  %329 = zext i32 %328 to i64
  %330 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %329, i64 8)
  %331 = extractvalue { i64, i1 } %330, 1
  %332 = extractvalue { i64, i1 } %330, 0
  %333 = select i1 %331, i64 -1, i64 %332
  %334 = call noalias noundef nonnull ptr @_Znam(i64 noundef %333) #9
  %335 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 19
  store ptr %334, ptr %335, align 8, !tbaa !46
  br label %341

336:                                              ; preds = %276
  %337 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 16
  store ptr null, ptr %337, align 8, !tbaa !43
  %338 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 14
  store ptr null, ptr %338, align 8, !tbaa !44
  %339 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 18
  store ptr null, ptr %339, align 8, !tbaa !45
  %340 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %7, i32 0, i32 19
  store ptr null, ptr %340, align 8, !tbaa !46
  br label %341

341:                                              ; preds = %336, %303
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064)) #5 align 2

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN7qpOASES11ConstraintsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7qpOASES8QProblem6setLBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7qpOASES8QProblem6setUBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064), ptr noundef) #5 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !14, i64 800}
!12 = !{!"_ZTSN7qpOASES8QProblemE", !13, i64 0, !14, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !25, 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}
!13 = !{!"_ZTSN7qpOASES9QProblemBE", !14, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !6, i64 168, !14, i64 176, !6, i64 184, !6, i64 192, !18, i64 200, !19, i64 208, !14, i64 212, !14, i64 216, !20, i64 220, !18, i64 224, !10, i64 232, !6, i64 240, !18, i64 248, !18, i64 256, !10, i64 264, !21, i64 272, !24, i64 496, !26, i64 768}
!14 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!15 = !{!"_ZTSN7qpOASES6BoundsE", !16, i64 0, !17, i64 40, !17, i64 80}
!16 = !{!"_ZTSN7qpOASES9SubjectToE", !10, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 36}
!17 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!20 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!21 = !{!"_ZTSN7qpOASES7OptionsE", !22, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !10, i64 28, !10, i64 32, !14, 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, !10, i64 144, !18, i64 152, !10, i64 160, !18, i64 168, !18, i64 176, !18, i64 184, !18, i64 192, !14, i64 200, !14, i64 204, !10, i64 208, !10, i64 212, !10, i64 216}
!22 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!23 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!24 = !{!"_ZTSN7qpOASES7FlipperE", !10, i64 0, !10, i64 4, !15, i64 8, !25, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!25 = !{!"_ZTSN7qpOASES11ConstraintsE", !16, i64 0, !17, i64 40, !17, i64 80}
!26 = !{!"_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}
!27 = !{!12, !6, i64 808}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !8, i64 0}
!30 = !{!12, !6, i64 816}
!31 = !{!12, !6, i64 824}
!32 = !{!13, !6, i64 192}
!33 = !{!12, !10, i64 968}
!34 = !{!12, !6, i64 952}
!35 = !{!12, !6, i64 960}
!36 = !{!12, !6, i64 976}
!37 = !{!12, !6, i64 984}
!38 = !{!12, !6, i64 992}
!39 = !{!12, !6, i64 1000}
!40 = !{!12, !6, i64 1008}
!41 = !{!12, !6, i64 1024}
!42 = !{!12, !6, i64 1040}
!43 = !{!12, !6, i64 1032}
!44 = !{!12, !6, i64 1016}
!45 = !{!12, !6, i64 1048}
!46 = !{!12, !6, i64 1056}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem4copyERKS0_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef nonnull align 8 dereferenceable(1064) %1) local_unnamed_addr #2 align 2 {
  %3 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %1)
  %4 = tail call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %1)
  %5 = getelementptr inbounds i8, ptr %1, i64 832
  %6 = getelementptr inbounds i8, ptr %0, i64 832
  %7 = tail call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7qpOASES11ConstraintsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef nonnull align 8 dereferenceable(120) %5)
  %8 = getelementptr inbounds i8, ptr %0, i64 800
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i32 %9, 1
  br i1 %10, label %11, label %18

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 808
  %13 = load ptr, ptr %12, align 8, !tbaa !25
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %18, label %14

14:                                               ; preds = %11
  %15 = load ptr, ptr %13, align 8, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load ptr, ptr %16, align 8
  tail call void %17(ptr noundef nonnull align 8 dereferenceable(12) %13) #6
  store ptr null, ptr %12, align 8, !tbaa !25
  br label %18

18:                                               ; preds = %14, %11, %2
  %19 = getelementptr inbounds i8, ptr %1, i64 800
  %20 = load i32, ptr %19, align 8, !tbaa !5
  store i32 %20, ptr %8, align 8, !tbaa !5
  %21 = icmp eq i32 %20, 1
  %22 = getelementptr inbounds i8, ptr %1, i64 808
  %23 = load ptr, ptr %22, align 8, !tbaa !25
  br i1 %21, label %24, label %29

24:                                               ; preds = %18
  %25 = load ptr, ptr %23, align 8, !tbaa !26
  %26 = getelementptr inbounds i8, ptr %25, i64 24
  %27 = load ptr, ptr %26, align 8
  %28 = tail call noundef ptr %27(ptr noundef nonnull align 8 dereferenceable(12) %23)
  br label %29

29:                                               ; preds = %18, %24
  %.sink = phi ptr [ %28, %24 ], [ %23, %18 ]
  %30 = getelementptr inbounds i8, ptr %0, i64 808
  store ptr %.sink, ptr %30, align 8
  %31 = getelementptr inbounds i8, ptr %1, i64 816
  %32 = load ptr, ptr %31, align 8, !tbaa !28
  %.not52 = icmp eq ptr %32, null
  br i1 %.not52, label %40, label %33

33:                                               ; preds = %29
  %34 = zext i32 %4 to i64
  %35 = shl nuw nsw i64 %34, 3
  %36 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %35) #7
  %37 = getelementptr inbounds i8, ptr %0, i64 816
  store ptr %36, ptr %37, align 8, !tbaa !28
  %38 = load ptr, ptr %31, align 8, !tbaa !28
  %39 = tail call noundef i32 @_ZN7qpOASES8QProblem6setLBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %38)
  br label %42

40:                                               ; preds = %29
  %41 = getelementptr inbounds i8, ptr %0, i64 816
  store ptr null, ptr %41, align 8, !tbaa !28
  br label %42

42:                                               ; preds = %40, %33
  %43 = getelementptr inbounds i8, ptr %1, i64 824
  %44 = load ptr, ptr %43, align 8, !tbaa !29
  %.not53 = icmp eq ptr %44, null
  br i1 %.not53, label %52, label %45

45:                                               ; preds = %42
  %46 = zext i32 %4 to i64
  %47 = shl nuw nsw i64 %46, 3
  %48 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %47) #7
  %49 = getelementptr inbounds i8, ptr %0, i64 824
  store ptr %48, ptr %49, align 8, !tbaa !29
  %50 = load ptr, ptr %43, align 8, !tbaa !29
  %51 = tail call noundef i32 @_ZN7qpOASES8QProblem6setUBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %50)
  br label %54

52:                                               ; preds = %42
  %53 = getelementptr inbounds i8, ptr %0, i64 824
  store ptr null, ptr %53, align 8, !tbaa !29
  br label %54

54:                                               ; preds = %52, %45
  %55 = getelementptr inbounds i8, ptr %1, i64 192
  %56 = load ptr, ptr %55, align 8, !tbaa !30
  %.not54 = icmp eq ptr %56, null
  %57 = getelementptr inbounds i8, ptr %0, i64 192
  br i1 %.not54, label %68, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %57, align 8, !tbaa !30
  %60 = icmp eq ptr %59, null
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  tail call void @_ZdaPv(ptr noundef nonnull %59) #8
  br label %62

62:                                               ; preds = %61, %58
  %63 = add i32 %4, %3
  %64 = zext i32 %63 to i64
  %65 = shl nuw nsw i64 %64, 3
  %66 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %65) #7
  store ptr %66, ptr %57, align 8, !tbaa !30
  %67 = load ptr, ptr %55, align 8, !tbaa !30
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %66, ptr align 8 %67, i64 %65, i1 false)
  br label %69

68:                                               ; preds = %54
  store ptr null, ptr %57, align 8, !tbaa !30
  br label %69

69:                                               ; preds = %68, %62
  %70 = getelementptr inbounds i8, ptr %1, i64 968
  %71 = load i32, ptr %70, align 8, !tbaa !31
  %72 = getelementptr inbounds i8, ptr %0, i64 968
  store i32 %71, ptr %72, align 8, !tbaa !31
  %73 = getelementptr inbounds i8, ptr %1, i64 952
  %74 = load ptr, ptr %73, align 8, !tbaa !32
  %.not55 = icmp eq ptr %74, null
  br i1 %.not55, label %82, label %75

75:                                               ; preds = %69
  %76 = mul nsw i32 %71, %71
  %77 = zext nneg i32 %76 to i64
  %78 = shl nuw nsw i64 %77, 3
  %79 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %78) #7
  %80 = getelementptr inbounds i8, ptr %0, i64 952
  store ptr %79, ptr %80, align 8, !tbaa !32
  %81 = load ptr, ptr %73, align 8, !tbaa !32
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %79, ptr align 8 %81, i64 %78, i1 false)
  br label %84

82:                                               ; preds = %69
  %83 = getelementptr inbounds i8, ptr %0, i64 952
  store ptr null, ptr %83, align 8, !tbaa !32
  br label %84

84:                                               ; preds = %82, %75
  %85 = getelementptr inbounds i8, ptr %1, i64 960
  %86 = load ptr, ptr %85, align 8, !tbaa !33
  %.not56 = icmp eq ptr %86, null
  br i1 %.not56, label %94, label %87

87:                                               ; preds = %84
  %88 = mul i32 %3, %3
  %89 = zext i32 %88 to i64
  %90 = shl nuw nsw i64 %89, 3
  %91 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %90) #7
  %92 = getelementptr inbounds i8, ptr %0, i64 960
  store ptr %91, ptr %92, align 8, !tbaa !33
  %93 = load ptr, ptr %85, align 8, !tbaa !33
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %91, ptr align 8 %93, i64 %90, i1 false)
  br label %96

94:                                               ; preds = %84
  %95 = getelementptr inbounds i8, ptr %0, i64 960
  store ptr null, ptr %95, align 8, !tbaa !33
  br label %96

96:                                               ; preds = %94, %87
  %97 = getelementptr inbounds i8, ptr %1, i64 976
  %98 = load ptr, ptr %97, align 8, !tbaa !34
  %.not57 = icmp eq ptr %98, null
  br i1 %.not57, label %105, label %99

99:                                               ; preds = %96
  %100 = zext i32 %4 to i64
  %101 = shl nuw nsw i64 %100, 3
  %102 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %101) #7
  %103 = getelementptr inbounds i8, ptr %0, i64 976
  store ptr %102, ptr %103, align 8, !tbaa !34
  %104 = load ptr, ptr %97, align 8, !tbaa !34
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %102, ptr align 8 %104, i64 %101, i1 false)
  br label %107

105:                                              ; preds = %96
  %106 = getelementptr inbounds i8, ptr %0, i64 976
  store ptr null, ptr %106, align 8, !tbaa !34
  br label %107

107:                                              ; preds = %105, %99
  %108 = getelementptr inbounds i8, ptr %1, i64 984
  %109 = load ptr, ptr %108, align 8, !tbaa !35
  %.not58 = icmp eq ptr %109, null
  br i1 %.not58, label %116, label %110

110:                                              ; preds = %107
  %111 = zext i32 %4 to i64
  %112 = shl nuw nsw i64 %111, 3
  %113 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %112) #7
  %114 = getelementptr inbounds i8, ptr %0, i64 984
  store ptr %113, ptr %114, align 8, !tbaa !35
  %115 = load ptr, ptr %108, align 8, !tbaa !35
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %113, ptr align 8 %115, i64 %112, i1 false)
  br label %118

116:                                              ; preds = %107
  %117 = getelementptr inbounds i8, ptr %0, i64 984
  store ptr null, ptr %117, align 8, !tbaa !35
  br label %118

118:                                              ; preds = %116, %110
  %119 = getelementptr inbounds i8, ptr %1, i64 992
  %120 = load ptr, ptr %119, align 8, !tbaa !36
  %.not59 = icmp eq ptr %120, null
  br i1 %.not59, label %127, label %121

121:                                              ; preds = %118
  %122 = zext i32 %4 to i64
  %123 = shl nuw nsw i64 %122, 3
  %124 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %123) #7
  %125 = getelementptr inbounds i8, ptr %0, i64 992
  store ptr %124, ptr %125, align 8, !tbaa !36
  %126 = load ptr, ptr %119, align 8, !tbaa !36
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %124, ptr align 8 %126, i64 %123, i1 false)
  br label %129

127:                                              ; preds = %118
  %128 = getelementptr inbounds i8, ptr %0, i64 992
  store ptr null, ptr %128, align 8, !tbaa !36
  br label %129

129:                                              ; preds = %127, %121
  %130 = getelementptr inbounds i8, ptr %1, i64 1000
  %131 = load ptr, ptr %130, align 8, !tbaa !37
  %132 = getelementptr inbounds i8, ptr %0, i64 1000
  store ptr %131, ptr %132, align 8
  %133 = zext i32 %3 to i64
  %134 = shl nuw nsw i64 %133, 3
  %135 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %134) #7
  %136 = getelementptr inbounds i8, ptr %0, i64 1008
  store ptr %135, ptr %136, align 8, !tbaa !38
  %137 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %134) #7
  %138 = getelementptr inbounds i8, ptr %0, i64 1024
  store ptr %137, ptr %138, align 8, !tbaa !39
  %139 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %134) #7
  %140 = getelementptr inbounds i8, ptr %0, i64 1040
  store ptr %139, ptr %140, align 8, !tbaa !40
  %.not61 = icmp eq i32 %4, 0
  br i1 %.not61, label %151, label %141

141:                                              ; preds = %129
  %142 = zext i32 %4 to i64
  %143 = shl nuw nsw i64 %142, 3
  %144 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %143) #7
  %145 = getelementptr inbounds i8, ptr %0, i64 1032
  store ptr %144, ptr %145, align 8, !tbaa !41
  %146 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %143) #7
  %147 = getelementptr inbounds i8, ptr %0, i64 1016
  store ptr %146, ptr %147, align 8, !tbaa !42
  %148 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %143) #7
  %149 = getelementptr inbounds i8, ptr %0, i64 1048
  store ptr %148, ptr %149, align 8, !tbaa !43
  %150 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %143) #7
  br label %155

151:                                              ; preds = %129
  %152 = getelementptr inbounds i8, ptr %0, i64 1032
  store ptr null, ptr %152, align 8, !tbaa !41
  %153 = getelementptr inbounds i8, ptr %0, i64 1016
  store ptr null, ptr %153, align 8, !tbaa !42
  %154 = getelementptr inbounds i8, ptr %0, i64 1048
  store ptr null, ptr %154, align 8, !tbaa !43
  br label %155

155:                                              ; preds = %151, %141
  %.sink63 = phi ptr [ null, %151 ], [ %150, %141 ]
  %156 = getelementptr inbounds i8, ptr %0, i64 1056
  store ptr %.sink63, ptr %156, align 8
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064)) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN7qpOASES11ConstraintsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7qpOASES8QProblem6setLBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7qpOASES8QProblem6setUBAEPKd(ptr noundef nonnull align 8 dereferenceable(1064), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

attributes #0 = { 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 #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 800}
!6 = !{!"_ZTSN7qpOASES8QProblemE", !7, i64 0, !8, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !23, i64 832, !11, i64 952, !11, i64 960, !14, i64 968, !11, i64 976, !11, i64 984, !11, i64 992, !11, i64 1000, !11, i64 1008, !11, i64 1016, !11, i64 1024, !11, i64 1032, !11, i64 1040, !11, i64 1048, !11, i64 1056}
!7 = !{!"_ZTSN7qpOASES9QProblemBE", !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !11, i64 168, !8, i64 176, !11, i64 184, !11, i64 192, !16, i64 200, !17, i64 208, !8, i64 212, !8, i64 216, !18, i64 220, !16, i64 224, !14, i64 232, !11, i64 240, !16, i64 248, !16, i64 256, !14, i64 264, !19, i64 272, !22, i64 496, !24, i64 768}
!8 = !{!"_ZTSN7qpOASES11BooleanTypeE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSN7qpOASES6BoundsE", !13, i64 0, !15, i64 40, !15, i64 80}
!13 = !{!"_ZTSN7qpOASES9SubjectToE", !14, i64 8, !11, i64 16, !11, i64 24, !8, i64 32, !8, i64 36}
!14 = !{!"int", !9, i64 0}
!15 = !{!"_ZTSN7qpOASES9IndexlistE", !11, i64 0, !11, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN7qpOASES14QProblemStatusE", !9, i64 0}
!18 = !{!"_ZTSN7qpOASES11HessianTypeE", !9, i64 0}
!19 = !{!"_ZTSN7qpOASES7OptionsE", !20, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !14, i64 28, !14, i64 32, !8, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !21, i64 128, !16, i64 136, !14, i64 144, !16, i64 152, !14, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !8, i64 200, !8, i64 204, !14, i64 208, !14, i64 212, !14, i64 216}
!20 = !{!"_ZTSN7qpOASES10PrintLevelE", !9, i64 0}
!21 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !9, i64 0}
!22 = !{!"_ZTSN7qpOASES7FlipperE", !14, i64 0, !14, i64 4, !12, i64 8, !23, i64 128, !11, i64 248, !11, i64 256, !11, i64 264}
!23 = !{!"_ZTSN7qpOASES11ConstraintsE", !13, i64 0, !15, i64 40, !15, i64 80}
!24 = !{!"_ZTSN7qpOASES13TabularOutputE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28}
!25 = !{!6, !11, i64 808}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !10, i64 0}
!28 = !{!6, !11, i64 816}
!29 = !{!6, !11, i64 824}
!30 = !{!7, !11, i64 192}
!31 = !{!6, !14, i64 968}
!32 = !{!6, !11, i64 952}
!33 = !{!6, !11, i64 960}
!34 = !{!6, !11, i64 976}
!35 = !{!6, !11, i64 984}
!36 = !{!6, !11, i64 992}
!37 = !{!6, !11, i64 1000}
!38 = !{!6, !11, i64 1008}
!39 = !{!6, !11, i64 1024}
!40 = !{!6, !11, i64 1040}
!41 = !{!6, !11, i64 1032}
!42 = !{!6, !11, i64 1016}
!43 = !{!6, !11, i64 1048}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass