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

; 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::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 }
%"class.qpOASES::Constraints" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"struct.qpOASES::TabularOutput" = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%"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 }

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [103 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

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 { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem15solveCurrentEQPEiPKdS2_S2_S2_S2_PdS3_(ptr noundef nonnull align 8 dereferenceable(1064) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #6 align 2 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  %35 = load ptr, ptr %11, align 8
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %41, label %38

38:                                               ; preds = %9
  %39 = load ptr, ptr %19, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %38, %9
  %42 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %43 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %42, i32 noundef 3, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 729, i32 noundef 1)
  store i32 %43, ptr %10, align 4
  br label %263

44:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %45 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %35)
  store i32 %45, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %46 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %35)
  store i32 %46, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %47 = call noundef i32 @_ZNK7qpOASES9QProblemB6getNFREv(ptr noundef nonnull align 8 dereferenceable(800) %35)
  store i32 %47, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %48 = call noundef i32 @_ZNK7qpOASES9QProblemB6getNFXEv(ptr noundef nonnull align 8 dereferenceable(800) %35)
  store i32 %48, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %49 = call noundef i32 @_ZNK7qpOASES8QProblem6getNACEv(ptr noundef nonnull align 8 dereferenceable(1064) %35)
  store i32 %49, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %50 = load i32, ptr %26, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %51, i64 8)
  %53 = extractvalue { i64, i1 } %52, 1
  %54 = extractvalue { i64, i1 } %52, 0
  %55 = select i1 %53, i64 -1, i64 %54
  %56 = call noalias noundef nonnull ptr @_Znam(i64 noundef %55) #9
  store ptr %56, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %57 = load i32, ptr %25, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %58, i64 8)
  %60 = extractvalue { i64, i1 } %59, 1
  %61 = extractvalue { i64, i1 } %59, 0
  %62 = select i1 %60, i64 -1, i64 %61
  %63 = call noalias noundef nonnull ptr @_Znam(i64 noundef %62) #9
  store ptr %63, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %64 = load i32, ptr %27, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %65, i64 8)
  %67 = extractvalue { i64, i1 } %66, 1
  %68 = extractvalue { i64, i1 } %66, 0
  %69 = select i1 %67, i64 -1, i64 %68
  %70 = call noalias noundef nonnull ptr @_Znam(i64 noundef %69) #9
  store ptr %70, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %71 = load i32, ptr %26, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %72, i64 8)
  %74 = extractvalue { i64, i1 } %73, 1
  %75 = extractvalue { i64, i1 } %73, 0
  %76 = select i1 %74, i64 -1, i64 %75
  %77 = call noalias noundef nonnull ptr @_Znam(i64 noundef %76) #9
  store ptr %77, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %78 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %35, i32 0, i32 6
  %79 = call noundef ptr @_ZN7qpOASES6Bounds7getFreeEv(ptr noundef nonnull align 8 dereferenceable(120) %78)
  %80 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %79, ptr noundef %32)
  %81 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %35, i32 0, i32 6
  %82 = call noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120) %81)
  %83 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %82, ptr noundef %33)
  %84 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %35, i32 0, i32 5
  %85 = call noundef ptr @_ZN7qpOASES11Constraints9getActiveEv(ptr noundef nonnull align 8 dereferenceable(120) %84)
  %86 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %85, ptr noundef %34)
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %100, %44
  %88 = load i32, ptr %21, align 4, !tbaa !9
  %89 = load i32, ptr %23, align 4, !tbaa !9
  %90 = load i32, ptr %24, align 4, !tbaa !9
  %91 = add nsw i32 %89, %90
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = mul nsw i32 %91, %92
  %94 = icmp slt i32 %88, %93
  br i1 %94, label %95, label %103

95:                                               ; preds = %87
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = load i32, ptr %21, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  store double 0.000000e+00, ptr %99, align 8, !tbaa !13
  br label %100

100:                                              ; preds = %95
  %101 = load i32, ptr %21, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %21, align 4, !tbaa !9
  br label %87, !llvm.loop !15

103:                                              ; preds = %87
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %242, %103
  %105 = load i32, ptr %21, align 4, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %245

108:                                              ; preds = %104
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = load ptr, ptr %28, align 8, !tbaa !5
  %115 = load ptr, ptr %29, align 8, !tbaa !5
  %116 = load ptr, ptr %30, align 8, !tbaa !5
  %117 = load ptr, ptr %31, align 8, !tbaa !5
  %118 = load ptr, ptr %35, align 8, !tbaa !17
  %119 = getelementptr inbounds ptr, ptr %118, i64 34
  %120 = load ptr, ptr %119, align 8
  %121 = call noundef i32 %120(ptr noundef nonnull align 8 dereferenceable(1064) %35, ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113, i32 noundef 0, i32 noundef 0, ptr noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117)
  store i32 %121, ptr %20, align 4, !tbaa !11
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %140, %108
  %123 = load i32, ptr %22, align 4, !tbaa !9
  %124 = load i32, ptr %26, align 4, !tbaa !9
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %126, label %143

126:                                              ; preds = %122
  %127 = load ptr, ptr %28, align 8, !tbaa !5
  %128 = load i32, ptr %22, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %127, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !13
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = load ptr, ptr %33, align 8, !tbaa !5
  %134 = load i32, ptr %22, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds double, ptr %132, i64 %138
  store double %131, ptr %139, align 8, !tbaa !13
  br label %140

140:                                              ; preds = %126
  %141 = load i32, ptr %22, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %22, align 4, !tbaa !9
  br label %122, !llvm.loop !19

143:                                              ; preds = %122
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %162, %143
  %145 = load i32, ptr %22, align 4, !tbaa !9
  %146 = load i32, ptr %25, align 4, !tbaa !9
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %165

148:                                              ; preds = %144
  %149 = load ptr, ptr %29, align 8, !tbaa !5
  %150 = load i32, ptr %22, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %149, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !13
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = load ptr, ptr %32, align 8, !tbaa !5
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i32, ptr %155, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %154, i64 %160
  store double %153, ptr %161, align 8, !tbaa !13
  br label %162

162:                                              ; preds = %148
  %163 = load i32, ptr %22, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %22, align 4, !tbaa !9
  br label %144, !llvm.loop !20

165:                                              ; preds = %144
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %184, %165
  %167 = load i32, ptr %22, align 4, !tbaa !9
  %168 = load i32, ptr %26, align 4, !tbaa !9
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %170, label %187

170:                                              ; preds = %166
  %171 = load ptr, ptr %31, align 8, !tbaa !5
  %172 = load i32, ptr %22, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !13
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = load ptr, ptr %33, align 8, !tbaa !5
  %178 = load i32, ptr %22, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds double, ptr %176, i64 %182
  store double %175, ptr %183, align 8, !tbaa !13
  br label %184

184:                                              ; preds = %170
  %185 = load i32, ptr %22, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %22, align 4, !tbaa !9
  br label %166, !llvm.loop !21

187:                                              ; preds = %166
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %208, %187
  %189 = load i32, ptr %22, align 4, !tbaa !9
  %190 = load i32, ptr %27, align 4, !tbaa !9
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %192, label %211

192:                                              ; preds = %188
  %193 = load ptr, ptr %30, align 8, !tbaa !5
  %194 = load i32, ptr %22, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !13
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = load i32, ptr %23, align 4, !tbaa !9
  %200 = load ptr, ptr %34, align 8, !tbaa !5
  %201 = load i32, ptr %22, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i32, ptr %200, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !9
  %205 = add nsw i32 %199, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds double, ptr %198, i64 %206
  store double %197, ptr %207, align 8, !tbaa !13
  br label %208

208:                                              ; preds = %192
  %209 = load i32, ptr %22, align 4, !tbaa !9
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %22, align 4, !tbaa !9
  br label %188, !llvm.loop !22

211:                                              ; preds = %188
  %212 = load i32, ptr %23, align 4, !tbaa !9
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = sext i32 %212 to i64
  %215 = getelementptr inbounds double, ptr %213, i64 %214
  store ptr %215, ptr %13, align 8, !tbaa !5
  %216 = load i32, ptr %23, align 4, !tbaa !9
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  %218 = sext i32 %216 to i64
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  store ptr %219, ptr %14, align 8, !tbaa !5
  %220 = load i32, ptr %23, align 4, !tbaa !9
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  %222 = sext i32 %220 to i64
  %223 = getelementptr inbounds double, ptr %221, i64 %222
  store ptr %223, ptr %15, align 8, !tbaa !5
  %224 = load i32, ptr %24, align 4, !tbaa !9
  %225 = load ptr, ptr %16, align 8, !tbaa !5
  %226 = sext i32 %224 to i64
  %227 = getelementptr inbounds double, ptr %225, i64 %226
  store ptr %227, ptr %16, align 8, !tbaa !5
  %228 = load i32, ptr %24, align 4, !tbaa !9
  %229 = load ptr, ptr %17, align 8, !tbaa !5
  %230 = sext i32 %228 to i64
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  store ptr %231, ptr %17, align 8, !tbaa !5
  %232 = load i32, ptr %23, align 4, !tbaa !9
  %233 = load ptr, ptr %18, align 8, !tbaa !5
  %234 = sext i32 %232 to i64
  %235 = getelementptr inbounds double, ptr %233, i64 %234
  store ptr %235, ptr %18, align 8, !tbaa !5
  %236 = load i32, ptr %23, align 4, !tbaa !9
  %237 = load i32, ptr %24, align 4, !tbaa !9
  %238 = add nsw i32 %236, %237
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = sext i32 %238 to i64
  %241 = getelementptr inbounds double, ptr %239, i64 %240
  store ptr %241, ptr %19, align 8, !tbaa !5
  br label %242

242:                                              ; preds = %211
  %243 = load i32, ptr %21, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %21, align 4, !tbaa !9
  br label %104, !llvm.loop !23

245:                                              ; preds = %104
  %246 = load ptr, ptr %31, align 8, !tbaa !5
  %247 = icmp eq ptr %246, null
  br i1 %247, label %249, label %248

248:                                              ; preds = %245
  call void @_ZdaPv(ptr noundef %246) #10
  br label %249

249:                                              ; preds = %248, %245
  %250 = load ptr, ptr %30, align 8, !tbaa !5
  %251 = icmp eq ptr %250, null
  br i1 %251, label %253, label %252

252:                                              ; preds = %249
  call void @_ZdaPv(ptr noundef %250) #10
  br label %253

253:                                              ; preds = %252, %249
  %254 = load ptr, ptr %29, align 8, !tbaa !5
  %255 = icmp eq ptr %254, null
  br i1 %255, label %257, label %256

256:                                              ; preds = %253
  call void @_ZdaPv(ptr noundef %254) #10
  br label %257

257:                                              ; preds = %256, %253
  %258 = load ptr, ptr %28, align 8, !tbaa !5
  %259 = icmp eq ptr %258, null
  br i1 %259, label %261, label %260

260:                                              ; preds = %257
  call void @_ZdaPv(ptr noundef %258) #10
  br label %261

261:                                              ; preds = %260, %257
  %262 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %262, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %263

263:                                              ; preds = %261, %41
  %264 = load i32, ptr %10, align 4
  ret i32 %264
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7qpOASES6Bounds7getFreeEv(ptr noundef nonnull align 8 dereferenceable(120)) #7 align 2

declare noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7qpOASES11Constraints9getActiveEv(ptr noundef nonnull align 8 dereferenceable(120)) #7 align 2

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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = { 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 = { 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 #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, !12, i64 0}
!12 = !{!"_ZTSN7qpOASES11returnValueE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}


; 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 [103 x i8], align 1

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

declare noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv() local_unnamed_addr #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) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem15solveCurrentEQPEiPKdS2_S2_S2_S2_PdS3_(ptr noundef nonnull align 8 dereferenceable(1064) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef writeonly %7, ptr noundef writeonly %8) local_unnamed_addr #5 align 2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = icmp eq ptr %7, null
  %14 = icmp eq ptr %8, null
  %or.cond = or i1 %13, %14
  br i1 %or.cond, label %15, label %18

15:                                               ; preds = %9
  %16 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %17 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %16, i32 noundef 3, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 729, i32 noundef 1)
  br label %192

18:                                               ; preds = %9
  %19 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %20 = tail call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %21 = tail call noundef i32 @_ZNK7qpOASES9QProblemB6getNFREv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %22 = tail call noundef i32 @_ZNK7qpOASES9QProblemB6getNFXEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %23 = tail call noundef i32 @_ZNK7qpOASES8QProblem6getNACEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %24 = zext i32 %22 to i64
  %25 = icmp slt i32 %22, 0
  %26 = shl nuw nsw i64 %24, 3
  %27 = select i1 %25, i64 -1, i64 %26
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #8
  %29 = zext i32 %21 to i64
  %30 = icmp slt i32 %21, 0
  %31 = shl nuw nsw i64 %29, 3
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #8
  %34 = zext i32 %23 to i64
  %35 = icmp slt i32 %23, 0
  %36 = shl nuw nsw i64 %34, 3
  %37 = select i1 %35, i64 -1, i64 %36
  %38 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %37) #8
  %39 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %40 = getelementptr inbounds i8, ptr %0, i64 48
  %41 = tail call noundef ptr @_ZN7qpOASES6Bounds7getFreeEv(ptr noundef nonnull align 8 dereferenceable(120) %40)
  %42 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %41, ptr noundef nonnull %10)
  %43 = call noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120) %40)
  %44 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %43, ptr noundef nonnull %11)
  %45 = getelementptr inbounds i8, ptr %0, i64 832
  %46 = call noundef ptr @_ZN7qpOASES11Constraints9getActiveEv(ptr noundef nonnull align 8 dereferenceable(120) %45)
  %47 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %46, ptr noundef nonnull %12)
  %48 = add nsw i32 %20, %19
  %49 = mul nsw i32 %48, %1
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.lr.ph.preheader, label %.preheader92

.lr.ph.preheader:                                 ; preds = %18
  %51 = zext nneg i32 %49 to i64
  %52 = shl nuw nsw i64 %51, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %8, i8 0, i64 %52, i1 false), !tbaa !5
  br label %.preheader92

.preheader92:                                     ; preds = %.lr.ph.preheader, %18
  %53 = icmp sgt i32 %1, 0
  br i1 %53, label %.lr.ph110, label %._crit_edge111

.lr.ph110:                                        ; preds = %.preheader92
  %54 = icmp sgt i32 %22, 0
  %55 = icmp sgt i32 %21, 0
  %56 = icmp sgt i32 %23, 0
  %57 = sext i32 %19 to i64
  %58 = sext i32 %20 to i64
  %59 = sext i32 %48 to i64
  %xtraiter = and i64 %24, 3
  %60 = icmp ult i32 %22, 4
  %unroll_iter = and i64 %24, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter132 = and i64 %29, 3
  %61 = icmp ult i32 %21, 4
  %unroll_iter135 = and i64 %29, 2147483644
  %lcmp.mod134.not = icmp eq i64 %xtraiter132, 0
  %xtraiter138 = and i64 %24, 3
  %62 = icmp ult i32 %22, 4
  %unroll_iter141 = and i64 %24, 2147483644
  %lcmp.mod140.not = icmp eq i64 %xtraiter138, 0
  %xtraiter144 = and i64 %34, 1
  %63 = icmp eq i32 %23, 1
  %unroll_iter147 = and i64 %34, 2147483646
  %lcmp.mod146.not = icmp eq i64 %xtraiter144, 0
  br label %64

64:                                               ; preds = %.lr.ph110, %._crit_edge
  %.076109 = phi ptr [ %2, %.lr.ph110 ], [ %184, %._crit_edge ]
  %.077108 = phi ptr [ %3, %.lr.ph110 ], [ %185, %._crit_edge ]
  %.078107 = phi ptr [ %4, %.lr.ph110 ], [ %186, %._crit_edge ]
  %.079106 = phi ptr [ %5, %.lr.ph110 ], [ %187, %._crit_edge ]
  %.080105 = phi ptr [ %6, %.lr.ph110 ], [ %188, %._crit_edge ]
  %.081104 = phi ptr [ %7, %.lr.ph110 ], [ %189, %._crit_edge ]
  %.082103 = phi ptr [ %8, %.lr.ph110 ], [ %190, %._crit_edge ]
  %.186102 = phi i32 [ 0, %.lr.ph110 ], [ %191, %._crit_edge ]
  %65 = load ptr, ptr %0, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %65, i64 272
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef i32 %67(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %.076109, ptr noundef %.079106, ptr noundef %.080105, ptr noundef %.077108, ptr noundef %.078107, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %28, ptr noundef nonnull %33, ptr noundef nonnull %38, ptr noundef nonnull %39)
  br i1 %54, label %.lr.ph95, label %.preheader91

.lr.ph95:                                         ; preds = %64
  %69 = load ptr, ptr %11, align 8, !tbaa !11
  br i1 %60, label %.preheader91.loopexit.unr-lcssa, label %.lr.ph95.new

.preheader91.loopexit.unr-lcssa:                  ; preds = %.lr.ph95.new, %.lr.ph95
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph95 ], [ %indvars.iv.next.3, %.lr.ph95.new ]
  br i1 %lcmp.mod.not, label %.preheader91, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader91.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.preheader91.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader91.loopexit.unr-lcssa ]
  %70 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.epil
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv.epil
  %73 = load i32, ptr %72, align 4, !tbaa !13
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %.081104, i64 %74
  store double %71, ptr %75, align 8, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader91, label %.epil.preheader, !llvm.loop !15

.preheader91:                                     ; preds = %.preheader91.loopexit.unr-lcssa, %.epil.preheader, %64
  br i1 %55, label %.lr.ph97, label %.preheader90

.lr.ph97:                                         ; preds = %.preheader91
  %76 = load ptr, ptr %10, align 8, !tbaa !11
  br i1 %61, label %.preheader90.loopexit.unr-lcssa, label %.lr.ph97.new

.lr.ph95.new:                                     ; preds = %.lr.ph95, %.lr.ph95.new
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph95.new ], [ 0, %.lr.ph95 ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph95.new ], [ 0, %.lr.ph95 ]
  %77 = getelementptr inbounds double, ptr %28, i64 %indvars.iv
  %78 = load double, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv
  %80 = load i32, ptr %79, align 4, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %.081104, i64 %81
  store double %78, ptr %82, align 8, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %83 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.next
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv.next
  %86 = load i32, ptr %85, align 4, !tbaa !13
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %.081104, i64 %87
  store double %84, ptr %88, align 8, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %89 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.next.1
  %90 = load double, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv.next.1
  %92 = load i32, ptr %91, align 4, !tbaa !13
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %.081104, i64 %93
  store double %90, ptr %94, align 8, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %95 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.next.2
  %96 = load double, ptr %95, align 8, !tbaa !5
  %97 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv.next.2
  %98 = load i32, ptr %97, align 4, !tbaa !13
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %.081104, i64 %99
  store double %96, ptr %100, align 8, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader91.loopexit.unr-lcssa, label %.lr.ph95.new, !llvm.loop !17

.preheader90.loopexit.unr-lcssa:                  ; preds = %.lr.ph97.new, %.lr.ph97
  %indvars.iv115.unr = phi i64 [ 0, %.lr.ph97 ], [ %indvars.iv.next116.3, %.lr.ph97.new ]
  br i1 %lcmp.mod134.not, label %.preheader90, label %.epil.preheader131

.epil.preheader131:                               ; preds = %.preheader90.loopexit.unr-lcssa, %.epil.preheader131
  %indvars.iv115.epil = phi i64 [ %indvars.iv.next116.epil, %.epil.preheader131 ], [ %indvars.iv115.unr, %.preheader90.loopexit.unr-lcssa ]
  %epil.iter133 = phi i64 [ %epil.iter133.next, %.epil.preheader131 ], [ 0, %.preheader90.loopexit.unr-lcssa ]
  %101 = getelementptr inbounds double, ptr %33, i64 %indvars.iv115.epil
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv115.epil
  %104 = load i32, ptr %103, align 4, !tbaa !13
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %.081104, i64 %105
  store double %102, ptr %106, align 8, !tbaa !5
  %indvars.iv.next116.epil = add nuw nsw i64 %indvars.iv115.epil, 1
  %epil.iter133.next = add i64 %epil.iter133, 1
  %epil.iter133.cmp.not = icmp eq i64 %epil.iter133.next, %xtraiter132
  br i1 %epil.iter133.cmp.not, label %.preheader90, label %.epil.preheader131, !llvm.loop !19

.preheader90:                                     ; preds = %.preheader90.loopexit.unr-lcssa, %.epil.preheader131, %.preheader91
  br i1 %54, label %.lr.ph99, label %.preheader

.lr.ph99:                                         ; preds = %.preheader90
  %107 = load ptr, ptr %11, align 8, !tbaa !11
  br i1 %62, label %.preheader.loopexit.unr-lcssa, label %.lr.ph99.new

.lr.ph97.new:                                     ; preds = %.lr.ph97, %.lr.ph97.new
  %indvars.iv115 = phi i64 [ %indvars.iv.next116.3, %.lr.ph97.new ], [ 0, %.lr.ph97 ]
  %niter136 = phi i64 [ %niter136.next.3, %.lr.ph97.new ], [ 0, %.lr.ph97 ]
  %108 = getelementptr inbounds double, ptr %33, i64 %indvars.iv115
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv115
  %111 = load i32, ptr %110, align 4, !tbaa !13
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %.081104, i64 %112
  store double %109, ptr %113, align 8, !tbaa !5
  %indvars.iv.next116 = or disjoint i64 %indvars.iv115, 1
  %114 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next116
  %115 = load double, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv.next116
  %117 = load i32, ptr %116, align 4, !tbaa !13
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %.081104, i64 %118
  store double %115, ptr %119, align 8, !tbaa !5
  %indvars.iv.next116.1 = or disjoint i64 %indvars.iv115, 2
  %120 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next116.1
  %121 = load double, ptr %120, align 8, !tbaa !5
  %122 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv.next116.1
  %123 = load i32, ptr %122, align 4, !tbaa !13
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %.081104, i64 %124
  store double %121, ptr %125, align 8, !tbaa !5
  %indvars.iv.next116.2 = or disjoint i64 %indvars.iv115, 3
  %126 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next116.2
  %127 = load double, ptr %126, align 8, !tbaa !5
  %128 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv.next116.2
  %129 = load i32, ptr %128, align 4, !tbaa !13
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds double, ptr %.081104, i64 %130
  store double %127, ptr %131, align 8, !tbaa !5
  %indvars.iv.next116.3 = add nuw nsw i64 %indvars.iv115, 4
  %niter136.next.3 = add i64 %niter136, 4
  %niter136.ncmp.3 = icmp eq i64 %niter136.next.3, %unroll_iter135
  br i1 %niter136.ncmp.3, label %.preheader90.loopexit.unr-lcssa, label %.lr.ph97.new, !llvm.loop !20

.preheader.loopexit.unr-lcssa:                    ; preds = %.lr.ph99.new, %.lr.ph99
  %indvars.iv120.unr = phi i64 [ 0, %.lr.ph99 ], [ %indvars.iv.next121.3, %.lr.ph99.new ]
  br i1 %lcmp.mod140.not, label %.preheader, label %.epil.preheader137

.epil.preheader137:                               ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader137
  %indvars.iv120.epil = phi i64 [ %indvars.iv.next121.epil, %.epil.preheader137 ], [ %indvars.iv120.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter139 = phi i64 [ %epil.iter139.next, %.epil.preheader137 ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %132 = getelementptr inbounds double, ptr %39, i64 %indvars.iv120.epil
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv120.epil
  %135 = load i32, ptr %134, align 4, !tbaa !13
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %.082103, i64 %136
  store double %133, ptr %137, align 8, !tbaa !5
  %indvars.iv.next121.epil = add nuw nsw i64 %indvars.iv120.epil, 1
  %epil.iter139.next = add i64 %epil.iter139, 1
  %epil.iter139.cmp.not = icmp eq i64 %epil.iter139.next, %xtraiter138
  br i1 %epil.iter139.cmp.not, label %.preheader, label %.epil.preheader137, !llvm.loop !21

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader137, %.preheader90
  br i1 %56, label %.lr.ph101, label %._crit_edge

.lr.ph101:                                        ; preds = %.preheader
  %138 = load ptr, ptr %12, align 8, !tbaa !11
  br i1 %63, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph101.new

.lr.ph99.new:                                     ; preds = %.lr.ph99, %.lr.ph99.new
  %indvars.iv120 = phi i64 [ %indvars.iv.next121.3, %.lr.ph99.new ], [ 0, %.lr.ph99 ]
  %niter142 = phi i64 [ %niter142.next.3, %.lr.ph99.new ], [ 0, %.lr.ph99 ]
  %139 = getelementptr inbounds double, ptr %39, i64 %indvars.iv120
  %140 = load double, ptr %139, align 8, !tbaa !5
  %141 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv120
  %142 = load i32, ptr %141, align 4, !tbaa !13
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %.082103, i64 %143
  store double %140, ptr %144, align 8, !tbaa !5
  %indvars.iv.next121 = or disjoint i64 %indvars.iv120, 1
  %145 = getelementptr inbounds double, ptr %39, i64 %indvars.iv.next121
  %146 = load double, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv.next121
  %148 = load i32, ptr %147, align 4, !tbaa !13
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %.082103, i64 %149
  store double %146, ptr %150, align 8, !tbaa !5
  %indvars.iv.next121.1 = or disjoint i64 %indvars.iv120, 2
  %151 = getelementptr inbounds double, ptr %39, i64 %indvars.iv.next121.1
  %152 = load double, ptr %151, align 8, !tbaa !5
  %153 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv.next121.1
  %154 = load i32, ptr %153, align 4, !tbaa !13
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %.082103, i64 %155
  store double %152, ptr %156, align 8, !tbaa !5
  %indvars.iv.next121.2 = or disjoint i64 %indvars.iv120, 3
  %157 = getelementptr inbounds double, ptr %39, i64 %indvars.iv.next121.2
  %158 = load double, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv.next121.2
  %160 = load i32, ptr %159, align 4, !tbaa !13
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %.082103, i64 %161
  store double %158, ptr %162, align 8, !tbaa !5
  %indvars.iv.next121.3 = add nuw nsw i64 %indvars.iv120, 4
  %niter142.next.3 = add i64 %niter142, 4
  %niter142.ncmp.3 = icmp eq i64 %niter142.next.3, %unroll_iter141
  br i1 %niter142.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %.lr.ph99.new, !llvm.loop !22

.lr.ph101.new:                                    ; preds = %.lr.ph101, %.lr.ph101.new
  %indvars.iv125 = phi i64 [ %indvars.iv.next126.1, %.lr.ph101.new ], [ 0, %.lr.ph101 ]
  %niter148 = phi i64 [ %niter148.next.1, %.lr.ph101.new ], [ 0, %.lr.ph101 ]
  %163 = getelementptr inbounds double, ptr %38, i64 %indvars.iv125
  %164 = load double, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds i32, ptr %138, i64 %indvars.iv125
  %166 = load i32, ptr %165, align 4, !tbaa !13
  %167 = add nsw i32 %166, %19
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %.082103, i64 %168
  store double %164, ptr %169, align 8, !tbaa !5
  %indvars.iv.next126 = or disjoint i64 %indvars.iv125, 1
  %170 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next126
  %171 = load double, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds i32, ptr %138, i64 %indvars.iv.next126
  %173 = load i32, ptr %172, align 4, !tbaa !13
  %174 = add nsw i32 %173, %19
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %.082103, i64 %175
  store double %171, ptr %176, align 8, !tbaa !5
  %indvars.iv.next126.1 = add nuw nsw i64 %indvars.iv125, 2
  %niter148.next.1 = add i64 %niter148, 2
  %niter148.ncmp.1 = icmp eq i64 %niter148.next.1, %unroll_iter147
  br i1 %niter148.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph101.new, !llvm.loop !23

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph101.new, %.lr.ph101
  %indvars.iv125.unr = phi i64 [ 0, %.lr.ph101 ], [ %indvars.iv.next126.1, %.lr.ph101.new ]
  br i1 %lcmp.mod146.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %177 = getelementptr inbounds double, ptr %38, i64 %indvars.iv125.unr
  %178 = load double, ptr %177, align 8, !tbaa !5
  %179 = getelementptr inbounds i32, ptr %138, i64 %indvars.iv125.unr
  %180 = load i32, ptr %179, align 4, !tbaa !13
  %181 = add nsw i32 %180, %19
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds double, ptr %.082103, i64 %182
  store double %178, ptr %183, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %184 = getelementptr inbounds double, ptr %.076109, i64 %57
  %185 = getelementptr inbounds double, ptr %.077108, i64 %57
  %186 = getelementptr inbounds double, ptr %.078107, i64 %57
  %187 = getelementptr inbounds double, ptr %.079106, i64 %58
  %188 = getelementptr inbounds double, ptr %.080105, i64 %58
  %189 = getelementptr inbounds double, ptr %.081104, i64 %57
  %190 = getelementptr inbounds double, ptr %.082103, i64 %59
  %191 = add nuw nsw i32 %.186102, 1
  %exitcond130.not = icmp eq i32 %191, %1
  br i1 %exitcond130.not, label %._crit_edge111, label %64, !llvm.loop !24

._crit_edge111:                                   ; preds = %._crit_edge, %.preheader92
  %.083.lcssa = phi i32 [ 0, %.preheader92 ], [ %68, %._crit_edge ]
  call void @_ZdaPv(ptr noundef nonnull %39) #10
  call void @_ZdaPv(ptr noundef nonnull %38) #10
  call void @_ZdaPv(ptr noundef nonnull %33) #10
  call void @_ZdaPv(ptr noundef nonnull %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %192

192:                                              ; preds = %._crit_edge111, %15
  %.0 = phi i32 [ %17, %15 ], [ %.083.lcssa, %._crit_edge111 ]
  ret i32 %.0
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7qpOASES6Bounds7getFreeEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #6 align 2

declare noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7qpOASES11Constraints9getActiveEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #6 align 2

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

attributes #0 = { mustprogress 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 = { 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 = { 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 #5 = { 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 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass