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

@.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
declare dso_local noundef i32 @_ZN7qpOASES8QProblem8hotstartEPKdS2_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 nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef) #6 align 2

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

48:                                               ; preds = %10
  %49 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %50 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %49, i32 noundef 29, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 657, i32 noundef 1)
  store i32 %50, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %218

51:                                               ; preds = %10
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  %55 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %56 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %55, i32 noundef 3, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 661, i32 noundef 1)
  store i32 %56, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %218

57:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %58 = load i32, ptr %22, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %59, i64 8)
  %61 = extractvalue { i64, i1 } %60, 1
  %62 = extractvalue { i64, i1 } %60, 0
  %63 = select i1 %61, i64 -1, i64 %62
  %64 = call noalias noundef nonnull ptr @_Znam(i64 noundef %63) #8
  store ptr %64, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  store i1 false, ptr %29, align 1
  br i1 %66, label %67, label %75

67:                                               ; preds = %57
  %68 = load i32, ptr %22, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %69, i64 8)
  %71 = extractvalue { i64, i1 } %70, 1
  %72 = extractvalue { i64, i1 } %70, 0
  %73 = select i1 %71, i64 -1, i64 %72
  %74 = call noalias noundef nonnull ptr @_Znam(i64 noundef %73) #8
  store ptr %74, ptr %27, align 8
  store i64 %73, ptr %28, align 8
  store i1 true, ptr %29, align 1
  br label %76

75:                                               ; preds = %57
  br label %76

76:                                               ; preds = %75, %67
  %77 = phi ptr [ %74, %67 ], [ null, %75 ]
  store ptr %77, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  store i1 false, ptr %33, align 1
  br i1 %79, label %80, label %88

80:                                               ; preds = %76
  %81 = load i32, ptr %22, align 4, !tbaa !9
  %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
  store i64 %86, ptr %32, align 8
  store i1 true, ptr %33, align 1
  br label %89

88:                                               ; preds = %76
  br label %89

89:                                               ; preds = %88, %80
  %90 = phi ptr [ %87, %80 ], [ null, %88 ]
  store ptr %90, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  store i1 false, ptr %37, align 1
  br i1 %92, label %93, label %101

93:                                               ; preds = %89
  %94 = load i32, ptr %23, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %95, i64 8)
  %97 = extractvalue { i64, i1 } %96, 1
  %98 = extractvalue { i64, i1 } %96, 0
  %99 = select i1 %97, i64 -1, i64 %98
  %100 = call noalias noundef nonnull ptr @_Znam(i64 noundef %99) #8
  store ptr %100, ptr %35, align 8
  store i64 %99, ptr %36, align 8
  store i1 true, ptr %37, align 1
  br label %102

101:                                              ; preds = %89
  br label %102

102:                                              ; preds = %101, %93
  %103 = phi ptr [ %100, %93 ], [ null, %101 ]
  store ptr %103, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = icmp ne ptr %104, null
  store i1 false, ptr %41, align 1
  br i1 %105, label %106, label %114

106:                                              ; preds = %102
  %107 = load i32, ptr %23, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %108, i64 8)
  %110 = extractvalue { i64, i1 } %109, 1
  %111 = extractvalue { i64, i1 } %109, 0
  %112 = select i1 %110, i64 -1, i64 %111
  %113 = call noalias noundef nonnull ptr @_Znam(i64 noundef %112) #8
  store ptr %113, ptr %39, align 8
  store i64 %112, ptr %40, align 8
  store i1 true, ptr %41, align 1
  br label %115

114:                                              ; preds = %102
  br label %115

115:                                              ; preds = %114, %106
  %116 = phi ptr [ %113, %106 ], [ null, %114 ]
  store ptr %116, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = load ptr, ptr %25, align 8, !tbaa !5
  %123 = load ptr, ptr %26, align 8, !tbaa !5
  %124 = load ptr, ptr %30, align 8, !tbaa !5
  %125 = load ptr, ptr %34, align 8, !tbaa !5
  %126 = load ptr, ptr %38, align 8, !tbaa !5
  %127 = call noundef i32 @_ZNK7qpOASES8QProblem21loadQPvectorsFromFileEPKcS2_S2_S2_S2_PdS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(1064) %43, ptr noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126)
  store i32 %127, ptr %42, align 4, !tbaa !11
  %128 = load i32, ptr %42, align 4, !tbaa !11
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %169

130:                                              ; preds = %115
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %138

133:                                              ; preds = %130
  %134 = load ptr, ptr %38, align 8, !tbaa !5
  %135 = icmp eq ptr %134, null
  br i1 %135, label %137, label %136

136:                                              ; preds = %133
  call void @_ZdaPv(ptr noundef %134) #9
  br label %137

137:                                              ; preds = %136, %133
  br label %138

138:                                              ; preds = %137, %130
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  %140 = icmp ne ptr %139, null
  br i1 %140, label %141, label %146

141:                                              ; preds = %138
  %142 = load ptr, ptr %34, align 8, !tbaa !5
  %143 = icmp eq ptr %142, null
  br i1 %143, label %145, label %144

144:                                              ; preds = %141
  call void @_ZdaPv(ptr noundef %142) #9
  br label %145

145:                                              ; preds = %144, %141
  br label %146

146:                                              ; preds = %145, %138
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %154

149:                                              ; preds = %146
  %150 = load ptr, ptr %30, align 8, !tbaa !5
  %151 = icmp eq ptr %150, null
  br i1 %151, label %153, label %152

152:                                              ; preds = %149
  call void @_ZdaPv(ptr noundef %150) #9
  br label %153

153:                                              ; preds = %152, %149
  br label %154

154:                                              ; preds = %153, %146
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %162

157:                                              ; preds = %154
  %158 = load ptr, ptr %26, align 8, !tbaa !5
  %159 = icmp eq ptr %158, null
  br i1 %159, label %161, label %160

160:                                              ; preds = %157
  call void @_ZdaPv(ptr noundef %158) #9
  br label %161

161:                                              ; preds = %160, %157
  br label %162

162:                                              ; preds = %161, %154
  %163 = load ptr, ptr %25, align 8, !tbaa !5
  %164 = icmp eq ptr %163, null
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  call void @_ZdaPv(ptr noundef %163) #9
  br label %166

166:                                              ; preds = %165, %162
  %167 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %168 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %167, i32 noundef 129, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 689, i32 noundef 1)
  store i32 %168, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %217

169:                                              ; preds = %115
  %170 = load ptr, ptr %25, align 8, !tbaa !5
  %171 = load ptr, ptr %26, align 8, !tbaa !5
  %172 = load ptr, ptr %30, align 8, !tbaa !5
  %173 = load ptr, ptr %34, align 8, !tbaa !5
  %174 = load ptr, ptr %38, align 8, !tbaa !5
  %175 = load ptr, ptr %18, align 8, !tbaa !5
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = load ptr, ptr %20, align 8, !tbaa !5
  %178 = load ptr, ptr %21, align 8, !tbaa !5
  %179 = call noundef i32 @_ZN7qpOASES8QProblem8hotstartEPKdS2_S2_S2_S2_RiPdPKNS_6BoundsEPKNS_11ConstraintsE(ptr noundef nonnull align 8 dereferenceable(1064) %43, ptr noundef %170, ptr noundef %171, ptr noundef %172, ptr noundef %173, ptr noundef %174, ptr noundef nonnull align 4 dereferenceable(4) %175, ptr noundef %176, ptr noundef %177, ptr noundef %178)
  store i32 %179, ptr %42, align 4, !tbaa !11
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %187

182:                                              ; preds = %169
  %183 = load ptr, ptr %38, align 8, !tbaa !5
  %184 = icmp eq ptr %183, null
  br i1 %184, label %186, label %185

185:                                              ; preds = %182
  call void @_ZdaPv(ptr noundef %183) #9
  br label %186

186:                                              ; preds = %185, %182
  br label %187

187:                                              ; preds = %186, %169
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = icmp ne ptr %188, null
  br i1 %189, label %190, label %195

190:                                              ; preds = %187
  %191 = load ptr, ptr %34, align 8, !tbaa !5
  %192 = icmp eq ptr %191, null
  br i1 %192, label %194, label %193

193:                                              ; preds = %190
  call void @_ZdaPv(ptr noundef %191) #9
  br label %194

194:                                              ; preds = %193, %190
  br label %195

195:                                              ; preds = %194, %187
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = icmp ne ptr %196, null
  br i1 %197, label %198, label %203

198:                                              ; preds = %195
  %199 = load ptr, ptr %30, align 8, !tbaa !5
  %200 = icmp eq ptr %199, null
  br i1 %200, label %202, label %201

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

202:                                              ; preds = %201, %198
  br label %203

203:                                              ; preds = %202, %195
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %211

206:                                              ; preds = %203
  %207 = load ptr, ptr %26, align 8, !tbaa !5
  %208 = icmp eq ptr %207, null
  br i1 %208, label %210, label %209

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

210:                                              ; preds = %209, %206
  br label %211

211:                                              ; preds = %210, %203
  %212 = load ptr, ptr %25, align 8, !tbaa !5
  %213 = icmp eq ptr %212, null
  br i1 %213, label %215, label %214

214:                                              ; preds = %211
  call void @_ZdaPv(ptr noundef %212) #9
  br label %215

215:                                              ; preds = %214, %211
  %216 = load i32, ptr %42, align 4, !tbaa !11
  store i32 %216, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %217

217:                                              ; preds = %215, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %218

218:                                              ; preds = %217, %54, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %219 = load i32, ptr %11, align 4
  ret i32 %219
}

; Function Attrs: mustprogress uwtable
declare dso_local 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) #6 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 = { 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 [103 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7qpOASES8QProblem8hotstartEPKdS2_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 nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem8hotstartEPKcS2_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 nonnull align 4 dereferenceable(4) %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #4 align 2 {
  %11 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %12 = tail call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %13 = icmp eq i32 %11, 0
  br i1 %13, label %14, label %17

14:                                               ; preds = %10
  %15 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %16 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %15, i32 noundef 29, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 657, i32 noundef 1)
  br label %82

17:                                               ; preds = %10
  %18 = icmp eq ptr %1, null
  br i1 %18, label %19, label %22

19:                                               ; preds = %17
  %20 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %21 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %20, i32 noundef 3, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 661, i32 noundef 1)
  br label %82

22:                                               ; preds = %17
  %23 = zext nneg i32 %11 to i64
  %24 = icmp slt i32 %11, 0
  %25 = shl nuw nsw i64 %23, 3
  %26 = select i1 %24, i64 -1, i64 %25
  %27 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #5
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %30, label %28

28:                                               ; preds = %22
  %29 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #5
  br label %30

30:                                               ; preds = %22, %28
  %31 = phi ptr [ %29, %28 ], [ null, %22 ]
  %.not61 = icmp eq ptr %3, null
  br i1 %.not61, label %34, label %32

32:                                               ; preds = %30
  %33 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #5
  br label %34

34:                                               ; preds = %30, %32
  %35 = phi ptr [ %33, %32 ], [ null, %30 ]
  %.not62 = icmp eq ptr %4, null
  br i1 %.not62, label %42, label %36

36:                                               ; preds = %34
  %37 = zext nneg i32 %12 to i64
  %38 = icmp slt i32 %12, 0
  %39 = shl nuw nsw i64 %37, 3
  %40 = select i1 %38, i64 -1, i64 %39
  %41 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %40) #5
  br label %42

42:                                               ; preds = %34, %36
  %43 = phi ptr [ %41, %36 ], [ null, %34 ]
  %.not63 = icmp eq ptr %5, null
  br i1 %.not63, label %50, label %44

44:                                               ; preds = %42
  %45 = zext nneg i32 %12 to i64
  %46 = icmp slt i32 %12, 0
  %47 = shl nuw nsw i64 %45, 3
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #5
  br label %50

50:                                               ; preds = %42, %44
  %51 = phi ptr [ %49, %44 ], [ null, %42 ]
  %52 = tail call noundef i32 @_ZNK7qpOASES8QProblem21loadQPvectorsFromFileEPKcS2_S2_S2_S2_PdS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef nonnull %27, ptr noundef %31, ptr noundef %35, ptr noundef %43, ptr noundef %51)
  %.not64 = icmp eq i32 %52, 0
  br i1 %.not64, label %68, label %53

53:                                               ; preds = %50
  %54 = icmp eq ptr %51, null
  %or.cond = or i1 %.not63, %54
  br i1 %or.cond, label %56, label %55

55:                                               ; preds = %53
  tail call void @_ZdaPv(ptr noundef nonnull %51) #6
  br label %56

56:                                               ; preds = %55, %53
  %57 = icmp eq ptr %43, null
  %or.cond65 = or i1 %.not62, %57
  br i1 %or.cond65, label %59, label %58

58:                                               ; preds = %56
  tail call void @_ZdaPv(ptr noundef nonnull %43) #6
  br label %59

59:                                               ; preds = %58, %56
  %60 = icmp eq ptr %35, null
  %or.cond66 = or i1 %.not61, %60
  br i1 %or.cond66, label %62, label %61

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

62:                                               ; preds = %61, %59
  %63 = icmp eq ptr %31, null
  %or.cond67 = or i1 %.not, %63
  br i1 %or.cond67, label %65, label %64

64:                                               ; preds = %62
  tail call void @_ZdaPv(ptr noundef nonnull %31) #6
  br label %65

65:                                               ; preds = %62, %64
  tail call void @_ZdaPv(ptr noundef nonnull %27) #6
  %66 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %67 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %66, i32 noundef 129, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 689, i32 noundef 1)
  br label %82

68:                                               ; preds = %50
  %69 = tail call noundef i32 @_ZN7qpOASES8QProblem8hotstartEPKdS2_S2_S2_S2_RiPdPKNS_6BoundsEPKNS_11ConstraintsE(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef nonnull %27, ptr noundef %31, ptr noundef %35, ptr noundef %43, ptr noundef %51, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef %7, ptr noundef %8, ptr noundef %9)
  %70 = icmp eq ptr %51, null
  %or.cond68 = or i1 %.not63, %70
  br i1 %or.cond68, label %72, label %71

71:                                               ; preds = %68
  tail call void @_ZdaPv(ptr noundef nonnull %51) #6
  br label %72

72:                                               ; preds = %71, %68
  %73 = icmp eq ptr %43, null
  %or.cond69 = or i1 %.not62, %73
  br i1 %or.cond69, label %75, label %74

74:                                               ; preds = %72
  tail call void @_ZdaPv(ptr noundef nonnull %43) #6
  br label %75

75:                                               ; preds = %74, %72
  %76 = icmp eq ptr %35, null
  %or.cond70 = or i1 %.not61, %76
  br i1 %or.cond70, label %78, label %77

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

78:                                               ; preds = %77, %75
  %79 = icmp eq ptr %31, null
  %or.cond71 = or i1 %.not, %79
  br i1 %or.cond71, label %81, label %80

80:                                               ; preds = %78
  tail call void @_ZdaPv(ptr noundef nonnull %31) #6
  br label %81

81:                                               ; preds = %78, %80
  tail call void @_ZdaPv(ptr noundef nonnull %27) #6
  br label %82

82:                                               ; preds = %65, %81, %19, %14
  %.1 = phi i32 [ %16, %14 ], [ %21, %19 ], [ %67, %65 ], [ %69, %81 ]
  ret i32 %.1
}

; Function Attrs: mustprogress uwtable
declare dso_local 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 #4 align 2

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