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

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

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

declare noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv() #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES9SQProblem8hotstartEPKcS2_S2_S2_S2_S2_S2_RiPdPKNS_6BoundsEPKNS_11ConstraintsE(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #2 align 2 {
  %13 = alloca i32, align 4
  %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 ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %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
  %35 = alloca i64, align 8
  %36 = alloca i1, align 1
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i64, align 8
  %40 = alloca i1, align 1
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i64, align 8
  %44 = alloca i1, align 1
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca i64, align 8
  %48 = alloca i1, align 1
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %50 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %49)
  store i32 %50, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %51 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %49)
  store i32 %51, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = icmp eq ptr %52, null
  br i1 %53, label %57, label %54

54:                                               ; preds = %12
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %60

57:                                               ; preds = %54, %12
  %58 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %59 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %58, i32 noundef 3, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 217, i32 noundef 1)
  store i32 %59, ptr %13, align 4
  store i32 1, ptr %29, align 4
  br label %303

60:                                               ; preds = %54
  %61 = load i32, ptr %27, align 4, !tbaa !9
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %63, label %69

63:                                               ; preds = %60
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %68 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %67, i32 noundef 3, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 220, i32 noundef 1)
  store i32 %68, ptr %13, align 4
  store i32 1, ptr %29, align 4
  br label %303

69:                                               ; preds = %63, %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %70 = load i32, ptr %26, align 4, !tbaa !9
  %71 = load i32, ptr %26, align 4, !tbaa !9
  %72 = mul nsw i32 %70, %71
  %73 = sext i32 %72 to i64
  %74 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %73, i64 8)
  %75 = extractvalue { i64, i1 } %74, 1
  %76 = extractvalue { i64, i1 } %74, 0
  %77 = select i1 %75, i64 -1, i64 %76
  %78 = call noalias noundef nonnull ptr @_Znam(i64 noundef %77) #8
  store ptr %78, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %79 = load i32, ptr %27, align 4, !tbaa !9
  %80 = load i32, ptr %26, align 4, !tbaa !9
  %81 = mul nsw i32 %79, %80
  %82 = sext 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) #8
  store ptr %87, ptr %31, align 8, !tbaa !5
  %88 = load ptr, ptr %30, align 8, !tbaa !5
  %89 = load i32, ptr %26, align 4, !tbaa !9
  %90 = load i32, ptr %26, align 4, !tbaa !9
  %91 = load ptr, ptr %15, align 8, !tbaa !5
  %92 = call noundef i32 @_ZN7qpOASES12readFromFileEPdiiPKc(ptr noundef %88, i32 noundef %89, i32 noundef %90, ptr noundef %91)
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %105

94:                                               ; preds = %69
  %95 = load ptr, ptr %31, align 8, !tbaa !5
  %96 = icmp eq ptr %95, null
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  call void @_ZdaPv(ptr noundef %95) #9
  br label %98

98:                                               ; preds = %97, %94
  %99 = load ptr, ptr %30, align 8, !tbaa !5
  %100 = icmp eq ptr %99, null
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  call void @_ZdaPv(ptr noundef %99) #9
  br label %102

102:                                              ; preds = %101, %98
  %103 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %104 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %103, i32 noundef 129, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 231, i32 noundef 1)
  store i32 %104, ptr %13, align 4
  store i32 1, ptr %29, align 4
  br label %302

105:                                              ; preds = %69
  %106 = load ptr, ptr %31, align 8, !tbaa !5
  %107 = load i32, ptr %27, align 4, !tbaa !9
  %108 = load i32, ptr %26, align 4, !tbaa !9
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = call noundef i32 @_ZN7qpOASES12readFromFileEPdiiPKc(ptr noundef %106, i32 noundef %107, i32 noundef %108, ptr noundef %109)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %123

112:                                              ; preds = %105
  %113 = load ptr, ptr %31, align 8, !tbaa !5
  %114 = icmp eq ptr %113, null
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  call void @_ZdaPv(ptr noundef %113) #9
  br label %116

116:                                              ; preds = %115, %112
  %117 = load ptr, ptr %30, align 8, !tbaa !5
  %118 = icmp eq ptr %117, null
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  call void @_ZdaPv(ptr noundef %117) #9
  br label %120

120:                                              ; preds = %119, %116
  %121 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %122 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %121, i32 noundef 129, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 238, i32 noundef 1)
  store i32 %122, ptr %13, align 4
  store i32 1, ptr %29, align 4
  br label %302

123:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %124 = load i32, ptr %26, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %125, i64 8)
  %127 = extractvalue { i64, i1 } %126, 1
  %128 = extractvalue { i64, i1 } %126, 0
  %129 = select i1 %127, i64 -1, i64 %128
  %130 = call noalias noundef nonnull ptr @_Znam(i64 noundef %129) #8
  store ptr %130, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %131 = load ptr, ptr %18, align 8, !tbaa !5
  %132 = icmp ne ptr %131, null
  store i1 false, ptr %36, align 1
  br i1 %132, label %133, label %141

133:                                              ; preds = %123
  %134 = load i32, ptr %26, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %135, i64 8)
  %137 = extractvalue { i64, i1 } %136, 1
  %138 = extractvalue { i64, i1 } %136, 0
  %139 = select i1 %137, i64 -1, i64 %138
  %140 = call noalias noundef nonnull ptr @_Znam(i64 noundef %139) #8
  store ptr %140, ptr %34, align 8
  store i64 %139, ptr %35, align 8
  store i1 true, ptr %36, align 1
  br label %142

141:                                              ; preds = %123
  br label %142

142:                                              ; preds = %141, %133
  %143 = phi ptr [ %140, %133 ], [ null, %141 ]
  store ptr %143, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = icmp ne ptr %144, null
  store i1 false, ptr %40, align 1
  br i1 %145, label %146, label %154

146:                                              ; preds = %142
  %147 = load i32, ptr %26, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %148, i64 8)
  %150 = extractvalue { i64, i1 } %149, 1
  %151 = extractvalue { i64, i1 } %149, 0
  %152 = select i1 %150, i64 -1, i64 %151
  %153 = call noalias noundef nonnull ptr @_Znam(i64 noundef %152) #8
  store ptr %153, ptr %38, align 8
  store i64 %152, ptr %39, align 8
  store i1 true, ptr %40, align 1
  br label %155

154:                                              ; preds = %142
  br label %155

155:                                              ; preds = %154, %146
  %156 = phi ptr [ %153, %146 ], [ null, %154 ]
  store ptr %156, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %157 = load ptr, ptr %20, align 8, !tbaa !5
  %158 = icmp ne ptr %157, null
  store i1 false, ptr %44, align 1
  br i1 %158, label %159, label %167

159:                                              ; preds = %155
  %160 = load i32, ptr %27, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %161, i64 8)
  %163 = extractvalue { i64, i1 } %162, 1
  %164 = extractvalue { i64, i1 } %162, 0
  %165 = select i1 %163, i64 -1, i64 %164
  %166 = call noalias noundef nonnull ptr @_Znam(i64 noundef %165) #8
  store ptr %166, ptr %42, align 8
  store i64 %165, ptr %43, align 8
  store i1 true, ptr %44, align 1
  br label %168

167:                                              ; preds = %155
  br label %168

168:                                              ; preds = %167, %159
  %169 = phi ptr [ %166, %159 ], [ null, %167 ]
  store ptr %169, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %170 = load ptr, ptr %21, align 8, !tbaa !5
  %171 = icmp ne ptr %170, null
  store i1 false, ptr %48, align 1
  br i1 %171, label %172, label %180

172:                                              ; preds = %168
  %173 = load i32, ptr %27, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %174, i64 8)
  %176 = extractvalue { i64, i1 } %175, 1
  %177 = extractvalue { i64, i1 } %175, 0
  %178 = select i1 %176, i64 -1, i64 %177
  %179 = call noalias noundef nonnull ptr @_Znam(i64 noundef %178) #8
  store ptr %179, ptr %46, align 8
  store i64 %178, ptr %47, align 8
  store i1 true, ptr %48, align 1
  br label %181

180:                                              ; preds = %168
  br label %181

181:                                              ; preds = %180, %172
  %182 = phi ptr [ %179, %172 ], [ null, %180 ]
  store ptr %182, ptr %45, align 8, !tbaa !5
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = load ptr, ptr %19, align 8, !tbaa !5
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = load ptr, ptr %21, align 8, !tbaa !5
  %188 = load ptr, ptr %32, align 8, !tbaa !5
  %189 = load ptr, ptr %33, align 8, !tbaa !5
  %190 = load ptr, ptr %37, align 8, !tbaa !5
  %191 = load ptr, ptr %41, align 8, !tbaa !5
  %192 = load ptr, ptr %45, align 8, !tbaa !5
  %193 = call noundef i32 @_ZNK7qpOASES8QProblem21loadQPvectorsFromFileEPKcS2_S2_S2_S2_PdS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(1064) %49, ptr noundef %183, ptr noundef %184, ptr noundef %185, ptr noundef %186, ptr noundef %187, ptr noundef %188, ptr noundef %189, ptr noundef %190, ptr noundef %191, ptr noundef %192)
  store i32 %193, ptr %28, align 4, !tbaa !11
  %194 = load i32, ptr %28, align 4, !tbaa !11
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %243

196:                                              ; preds = %181
  %197 = load ptr, ptr %21, align 8, !tbaa !5
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %204

199:                                              ; preds = %196
  %200 = load ptr, ptr %45, align 8, !tbaa !5
  %201 = icmp eq ptr %200, null
  br i1 %201, label %203, label %202

202:                                              ; preds = %199
  call void @_ZdaPv(ptr noundef %200) #9
  br label %203

203:                                              ; preds = %202, %199
  br label %204

204:                                              ; preds = %203, %196
  %205 = load ptr, ptr %20, align 8, !tbaa !5
  %206 = icmp ne ptr %205, null
  br i1 %206, label %207, label %212

207:                                              ; preds = %204
  %208 = load ptr, ptr %41, align 8, !tbaa !5
  %209 = icmp eq ptr %208, null
  br i1 %209, label %211, label %210

210:                                              ; preds = %207
  call void @_ZdaPv(ptr noundef %208) #9
  br label %211

211:                                              ; preds = %210, %207
  br label %212

212:                                              ; preds = %211, %204
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = icmp ne ptr %213, null
  br i1 %214, label %215, label %220

215:                                              ; preds = %212
  %216 = load ptr, ptr %37, align 8, !tbaa !5
  %217 = icmp eq ptr %216, null
  br i1 %217, label %219, label %218

218:                                              ; preds = %215
  call void @_ZdaPv(ptr noundef %216) #9
  br label %219

219:                                              ; preds = %218, %215
  br label %220

220:                                              ; preds = %219, %212
  %221 = load ptr, ptr %18, align 8, !tbaa !5
  %222 = icmp ne ptr %221, null
  br i1 %222, label %223, label %228

223:                                              ; preds = %220
  %224 = load ptr, ptr %33, align 8, !tbaa !5
  %225 = icmp eq ptr %224, null
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  call void @_ZdaPv(ptr noundef %224) #9
  br label %227

227:                                              ; preds = %226, %223
  br label %228

228:                                              ; preds = %227, %220
  %229 = load ptr, ptr %32, align 8, !tbaa !5
  %230 = icmp eq ptr %229, null
  br i1 %230, label %232, label %231

231:                                              ; preds = %228
  call void @_ZdaPv(ptr noundef %229) #9
  br label %232

232:                                              ; preds = %231, %228
  %233 = load ptr, ptr %31, align 8, !tbaa !5
  %234 = icmp eq ptr %233, null
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  call void @_ZdaPv(ptr noundef %233) #9
  br label %236

236:                                              ; preds = %235, %232
  %237 = load ptr, ptr %30, align 8, !tbaa !5
  %238 = icmp eq ptr %237, null
  br i1 %238, label %240, label %239

239:                                              ; preds = %236
  call void @_ZdaPv(ptr noundef %237) #9
  br label %240

240:                                              ; preds = %239, %236
  %241 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %242 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %241, i32 noundef 129, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 265, i32 noundef 1)
  store i32 %242, ptr %13, align 4
  store i32 1, ptr %29, align 4
  br label %301

243:                                              ; preds = %181
  %244 = load ptr, ptr %30, align 8, !tbaa !5
  %245 = load ptr, ptr %32, align 8, !tbaa !5
  %246 = load ptr, ptr %31, align 8, !tbaa !5
  %247 = load ptr, ptr %33, align 8, !tbaa !5
  %248 = load ptr, ptr %37, align 8, !tbaa !5
  %249 = load ptr, ptr %41, align 8, !tbaa !5
  %250 = load ptr, ptr %45, align 8, !tbaa !5
  %251 = load ptr, ptr %22, align 8, !tbaa !5
  %252 = load ptr, ptr %23, align 8, !tbaa !5
  %253 = load ptr, ptr %24, align 8, !tbaa !5
  %254 = load ptr, ptr %25, align 8, !tbaa !5
  %255 = call noundef i32 @_ZN7qpOASES9SQProblem8hotstartEPKdS2_S2_S2_S2_S2_S2_RiPdPKNS_6BoundsEPKNS_11ConstraintsE(ptr noundef nonnull align 8 dereferenceable(1064) %49, ptr noundef %244, ptr noundef %245, ptr noundef %246, ptr noundef %247, ptr noundef %248, ptr noundef %249, ptr noundef %250, ptr noundef nonnull align 4 dereferenceable(4) %251, ptr noundef %252, ptr noundef %253, ptr noundef %254)
  store i32 %255, ptr %28, align 4, !tbaa !11
  %256 = load ptr, ptr %21, align 8, !tbaa !5
  %257 = icmp ne ptr %256, null
  br i1 %257, label %258, label %263

258:                                              ; preds = %243
  %259 = load ptr, ptr %45, align 8, !tbaa !5
  %260 = icmp eq ptr %259, null
  br i1 %260, label %262, label %261

261:                                              ; preds = %258
  call void @_ZdaPv(ptr noundef %259) #9
  br label %262

262:                                              ; preds = %261, %258
  br label %263

263:                                              ; preds = %262, %243
  %264 = load ptr, ptr %20, align 8, !tbaa !5
  %265 = icmp ne ptr %264, null
  br i1 %265, label %266, label %271

266:                                              ; preds = %263
  %267 = load ptr, ptr %41, align 8, !tbaa !5
  %268 = icmp eq ptr %267, null
  br i1 %268, label %270, label %269

269:                                              ; preds = %266
  call void @_ZdaPv(ptr noundef %267) #9
  br label %270

270:                                              ; preds = %269, %266
  br label %271

271:                                              ; preds = %270, %263
  %272 = load ptr, ptr %19, align 8, !tbaa !5
  %273 = icmp ne ptr %272, null
  br i1 %273, label %274, label %279

274:                                              ; preds = %271
  %275 = load ptr, ptr %37, align 8, !tbaa !5
  %276 = icmp eq ptr %275, null
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  call void @_ZdaPv(ptr noundef %275) #9
  br label %278

278:                                              ; preds = %277, %274
  br label %279

279:                                              ; preds = %278, %271
  %280 = load ptr, ptr %18, align 8, !tbaa !5
  %281 = icmp ne ptr %280, null
  br i1 %281, label %282, label %287

282:                                              ; preds = %279
  %283 = load ptr, ptr %33, align 8, !tbaa !5
  %284 = icmp eq ptr %283, null
  br i1 %284, label %286, label %285

285:                                              ; preds = %282
  call void @_ZdaPv(ptr noundef %283) #9
  br label %286

286:                                              ; preds = %285, %282
  br label %287

287:                                              ; preds = %286, %279
  %288 = load ptr, ptr %32, align 8, !tbaa !5
  %289 = icmp eq ptr %288, null
  br i1 %289, label %291, label %290

290:                                              ; preds = %287
  call void @_ZdaPv(ptr noundef %288) #9
  br label %291

291:                                              ; preds = %290, %287
  %292 = load ptr, ptr %31, align 8, !tbaa !5
  %293 = icmp eq ptr %292, null
  br i1 %293, label %295, label %294

294:                                              ; preds = %291
  call void @_ZdaPv(ptr noundef %292) #9
  br label %295

295:                                              ; preds = %294, %291
  %296 = load ptr, ptr %30, align 8, !tbaa !5
  %297 = icmp eq ptr %296, null
  br i1 %297, label %299, label %298

298:                                              ; preds = %295
  call void @_ZdaPv(ptr noundef %296) #9
  br label %299

299:                                              ; preds = %298, %295
  %300 = load i32, ptr %28, align 4, !tbaa !11
  store i32 %300, ptr %13, align 4
  store i32 1, ptr %29, align 4
  br label %301

301:                                              ; preds = %299, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %302

302:                                              ; preds = %301, %120, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %303

303:                                              ; preds = %302, %66, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  %304 = load i32, ptr %13, align 4
  ret i32 %304
}

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

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

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

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

declare noundef i32 @_ZN7qpOASES12readFromFileEPdiiPKc(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #0

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

declare noundef i32 @_ZNK7qpOASES8QProblem21loadQPvectorsFromFileEPKcS2_S2_S2_S2_PdS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(1064), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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


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

declare noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES9SQProblem8hotstartEPKcS2_S2_S2_S2_S2_S2_RiPdPKNS_6BoundsEPKNS_11ConstraintsE(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #1 align 2 {
  %13 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %14 = tail call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %15 = icmp eq ptr %1, null
  %16 = icmp eq ptr %2, null
  %or.cond = or i1 %15, %16
  br i1 %or.cond, label %17, label %20

17:                                               ; preds = %12
  %18 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %19 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %18, i32 noundef 3, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 217, i32 noundef 1)
  br label %106

20:                                               ; preds = %12
  %21 = icmp sgt i32 %14, 0
  %22 = icmp eq ptr %3, null
  %or.cond3 = and i1 %22, %21
  br i1 %or.cond3, label %23, label %26

23:                                               ; preds = %20
  %24 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %25 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %24, i32 noundef 3, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 220, i32 noundef 1)
  br label %106

26:                                               ; preds = %20
  %27 = mul nsw i32 %13, %13
  %28 = zext nneg i32 %27 to i64
  %29 = shl nuw nsw i64 %28, 3
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #5
  %31 = mul nsw i32 %14, %13
  %32 = zext nneg i32 %31 to i64
  %33 = icmp slt i32 %31, 0
  %34 = shl nuw nsw i64 %32, 3
  %35 = select i1 %33, i64 -1, i64 %34
  %36 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %35) #5
  %37 = tail call noundef i32 @_ZN7qpOASES12readFromFileEPdiiPKc(ptr noundef nonnull %30, i32 noundef %13, i32 noundef %13, ptr noundef nonnull %1)
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %41, label %38

38:                                               ; preds = %26
  tail call void @_ZdaPv(ptr noundef nonnull %36) #6
  tail call void @_ZdaPv(ptr noundef nonnull %30) #6
  %39 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %40 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %39, i32 noundef 129, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 231, i32 noundef 1)
  br label %106

41:                                               ; preds = %26
  %42 = tail call noundef i32 @_ZN7qpOASES12readFromFileEPdiiPKc(ptr noundef nonnull %36, i32 noundef %14, i32 noundef %13, ptr noundef %3)
  %.not88 = icmp eq i32 %42, 0
  br i1 %.not88, label %46, label %43

43:                                               ; preds = %41
  tail call void @_ZdaPv(ptr noundef nonnull %36) #6
  tail call void @_ZdaPv(ptr noundef nonnull %30) #6
  %44 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %45 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %44, i32 noundef 129, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 238, i32 noundef 1)
  br label %106

46:                                               ; preds = %41
  %47 = zext nneg i32 %13 to i64
  %48 = icmp slt i32 %13, 0
  %49 = shl nuw nsw i64 %47, 3
  %50 = select i1 %48, i64 -1, i64 %49
  %51 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #5
  %.not89 = icmp eq ptr %4, null
  br i1 %.not89, label %54, label %52

52:                                               ; preds = %46
  %53 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #5
  br label %54

54:                                               ; preds = %46, %52
  %55 = phi ptr [ %53, %52 ], [ null, %46 ]
  %.not90 = icmp eq ptr %5, null
  br i1 %.not90, label %58, label %56

56:                                               ; preds = %54
  %57 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #5
  br label %58

58:                                               ; preds = %54, %56
  %59 = phi ptr [ %57, %56 ], [ null, %54 ]
  %.not91 = icmp eq ptr %6, null
  br i1 %.not91, label %66, label %60

60:                                               ; preds = %58
  %61 = zext nneg i32 %14 to i64
  %62 = icmp slt i32 %14, 0
  %63 = shl nuw nsw i64 %61, 3
  %64 = select i1 %62, i64 -1, i64 %63
  %65 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %64) #5
  br label %66

66:                                               ; preds = %58, %60
  %67 = phi ptr [ %65, %60 ], [ null, %58 ]
  %.not92 = icmp eq ptr %7, null
  br i1 %.not92, label %74, label %68

68:                                               ; preds = %66
  %69 = zext nneg i32 %14 to i64
  %70 = icmp slt i32 %14, 0
  %71 = shl nuw nsw i64 %69, 3
  %72 = select i1 %70, i64 -1, i64 %71
  %73 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %72) #5
  br label %74

74:                                               ; preds = %66, %68
  %75 = phi ptr [ %73, %68 ], [ null, %66 ]
  %76 = tail call noundef i32 @_ZNK7qpOASES8QProblem21loadQPvectorsFromFileEPKcS2_S2_S2_S2_PdS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %51, ptr noundef %55, ptr noundef %59, ptr noundef %67, ptr noundef %75)
  %.not93 = icmp eq i32 %76, 0
  br i1 %.not93, label %92, label %77

77:                                               ; preds = %74
  %78 = icmp eq ptr %75, null
  %or.cond94 = or i1 %.not92, %78
  br i1 %or.cond94, label %80, label %79

79:                                               ; preds = %77
  tail call void @_ZdaPv(ptr noundef nonnull %75) #6
  br label %80

80:                                               ; preds = %79, %77
  %81 = icmp eq ptr %67, null
  %or.cond95 = or i1 %.not91, %81
  br i1 %or.cond95, label %83, label %82

82:                                               ; preds = %80
  tail call void @_ZdaPv(ptr noundef nonnull %67) #6
  br label %83

83:                                               ; preds = %82, %80
  %84 = icmp eq ptr %59, null
  %or.cond96 = or i1 %.not90, %84
  br i1 %or.cond96, label %86, label %85

85:                                               ; preds = %83
  tail call void @_ZdaPv(ptr noundef nonnull %59) #6
  br label %86

86:                                               ; preds = %85, %83
  %87 = icmp eq ptr %55, null
  %or.cond97 = or i1 %.not89, %87
  br i1 %or.cond97, label %89, label %88

88:                                               ; preds = %86
  tail call void @_ZdaPv(ptr noundef nonnull %55) #6
  br label %89

89:                                               ; preds = %86, %88
  tail call void @_ZdaPv(ptr noundef nonnull %51) #6
  tail call void @_ZdaPv(ptr noundef nonnull %36) #6
  tail call void @_ZdaPv(ptr noundef nonnull %30) #6
  %90 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %91 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %90, i32 noundef 129, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 265, i32 noundef 1)
  br label %106

92:                                               ; preds = %74
  %93 = tail call noundef i32 @_ZN7qpOASES9SQProblem8hotstartEPKdS2_S2_S2_S2_S2_S2_RiPdPKNS_6BoundsEPKNS_11ConstraintsE(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef nonnull %30, ptr noundef nonnull %51, ptr noundef nonnull %36, ptr noundef %55, ptr noundef %59, ptr noundef %67, ptr noundef %75, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  %94 = icmp eq ptr %75, null
  %or.cond98 = or i1 %.not92, %94
  br i1 %or.cond98, label %96, label %95

95:                                               ; preds = %92
  tail call void @_ZdaPv(ptr noundef nonnull %75) #6
  br label %96

96:                                               ; preds = %95, %92
  %97 = icmp eq ptr %67, null
  %or.cond99 = or i1 %.not91, %97
  br i1 %or.cond99, label %99, label %98

98:                                               ; preds = %96
  tail call void @_ZdaPv(ptr noundef nonnull %67) #6
  br label %99

99:                                               ; preds = %98, %96
  %100 = icmp eq ptr %59, null
  %or.cond100 = or i1 %.not90, %100
  br i1 %or.cond100, label %102, label %101

101:                                              ; preds = %99
  tail call void @_ZdaPv(ptr noundef nonnull %59) #6
  br label %102

102:                                              ; preds = %101, %99
  %103 = icmp eq ptr %55, null
  %or.cond101 = or i1 %.not89, %103
  br i1 %or.cond101, label %105, label %104

104:                                              ; preds = %102
  tail call void @_ZdaPv(ptr noundef nonnull %55) #6
  br label %105

105:                                              ; preds = %102, %104
  tail call void @_ZdaPv(ptr noundef nonnull %51) #6
  tail call void @_ZdaPv(ptr noundef nonnull %36) #6
  tail call void @_ZdaPv(ptr noundef nonnull %30) #6
  br label %106

106:                                              ; preds = %38, %43, %105, %89, %23, %17
  %.2 = phi i32 [ %19, %17 ], [ %25, %23 ], [ %40, %38 ], [ %45, %43 ], [ %91, %89 ], [ %93, %105 ]
  ret i32 %.2
}

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

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

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

declare noundef i32 @_ZN7qpOASES12readFromFileEPdiiPKc(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

declare noundef i32 @_ZNK7qpOASES8QProblem21loadQPvectorsFromFileEPKcS2_S2_S2_S2_PdS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(1064), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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


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