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

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

@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [107 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7qpOASES12SymSparseMatC1EiiiPKd(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, i32 noundef, ptr noundef) unnamed_addr #6 align 2

declare i32 @__gxx_personality_v0(...)

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

declare noundef ptr @_ZN7qpOASES12SparseMatrix14createDiagInfoEv(ptr noundef nonnull align 8 dereferenceable(48)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7qpOASES11SymDenseMatC1EiiiPd(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, i32 noundef, ptr noundef) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7qpOASES6Matrix12doFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(12)) #7 align 2

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

declare noundef i32 @_ZNK7qpOASES9QProblemB17getPrimalSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES17solveOqpBenchmarkEiiPKdS1_S1_S1_NS_11BooleanTypeES2_RKNS_7OptionsEiRdS6_S6_S6_S6_S6_S6_(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef nonnull align 8 dereferenceable(220) %8, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6 personality ptr @__gxx_personality_v0 {
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %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
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca i32, align 4
  %53 = alloca %"class.qpOASES::QProblemB", align 8
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  store i32 %0, ptr %19, align 4, !tbaa !5
  store i32 %1, ptr %20, align 4, !tbaa !5
  store ptr %2, ptr %21, align 8, !tbaa !9
  store ptr %3, ptr %22, align 8, !tbaa !9
  store ptr %4, ptr %23, align 8, !tbaa !9
  store ptr %5, ptr %24, align 8, !tbaa !9
  store i32 %6, ptr %25, align 4, !tbaa !11
  store i32 %7, ptr %26, align 4, !tbaa !11
  store ptr %8, ptr %27, align 8, !tbaa !9
  store i32 %9, ptr %28, align 4, !tbaa !5
  store ptr %10, ptr %29, align 8, !tbaa !9
  store ptr %11, ptr %30, align 8, !tbaa !9
  store ptr %12, ptr %31, align 8, !tbaa !9
  store ptr %13, ptr %32, align 8, !tbaa !9
  store ptr %14, ptr %33, align 8, !tbaa !9
  store ptr %15, ptr %34, align 8, !tbaa !9
  store ptr %16, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  %56 = load ptr, ptr %31, align 8, !tbaa !9
  %57 = load double, ptr %56, align 8, !tbaa !13
  store double %57, ptr %38, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  %58 = load double, ptr %38, align 8, !tbaa !13
  store double %58, ptr %39, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  %59 = load ptr, ptr %29, align 8, !tbaa !9
  store double 0.000000e+00, ptr %59, align 8, !tbaa !13
  %60 = load ptr, ptr %30, align 8, !tbaa !9
  store double 0.000000e+00, ptr %60, align 8, !tbaa !13
  %61 = load ptr, ptr %31, align 8, !tbaa !9
  store double 0.000000e+00, ptr %61, align 8, !tbaa !13
  %62 = load ptr, ptr %32, align 8, !tbaa !9
  store double 0.000000e+00, ptr %62, align 8, !tbaa !13
  %63 = load ptr, ptr %33, align 8, !tbaa !9
  store double 0.000000e+00, ptr %63, align 8, !tbaa !13
  %64 = load ptr, ptr %34, align 8, !tbaa !9
  store double 0.000000e+00, ptr %64, align 8, !tbaa !13
  %65 = load ptr, ptr %35, align 8, !tbaa !9
  store double 0.000000e+00, ptr %65, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #10
  %66 = load i32, ptr %20, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %67, i64 8)
  %69 = extractvalue { i64, i1 } %68, 1
  %70 = extractvalue { i64, i1 } %68, 0
  %71 = select i1 %69, i64 -1, i64 %70
  %72 = call noalias noundef nonnull ptr @_Znam(i64 noundef %71) #11
  store ptr %72, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %73 = load i32, ptr %20, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %74, i64 8)
  %76 = extractvalue { i64, i1 } %75, 1
  %77 = extractvalue { i64, i1 } %75, 0
  %78 = select i1 %76, i64 -1, i64 %77
  %79 = call noalias noundef nonnull ptr @_Znam(i64 noundef %78) #11
  store ptr %79, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #10
  %80 = load i32, ptr %20, align 4, !tbaa !5
  %81 = load i32, ptr %20, align 4, !tbaa !5
  %82 = mul nsw i32 %80, %81
  %83 = sext i32 %82 to i64
  %84 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %83, i64 8)
  %85 = extractvalue { i64, i1 } %84, 1
  %86 = extractvalue { i64, i1 } %84, 0
  %87 = select i1 %85, i64 -1, i64 %86
  %88 = call noalias noundef nonnull ptr @_Znam(i64 noundef %87) #11
  store ptr %88, ptr %49, align 8, !tbaa !9
  %89 = load ptr, ptr %49, align 8, !tbaa !9
  %90 = load ptr, ptr %21, align 8, !tbaa !9
  %91 = load i32, ptr %20, align 4, !tbaa !5
  %92 = load i32, ptr %20, align 4, !tbaa !5
  %93 = mul nsw i32 %91, %92
  %94 = zext i32 %93 to i64
  %95 = mul i64 %94, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %89, ptr align 8 %90, i64 %95, i1 false)
  %96 = load i32, ptr %25, align 4, !tbaa !11
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %98, label %116

98:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #10
  %99 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 72) #11
  %100 = load i32, ptr %20, align 4, !tbaa !5
  %101 = load i32, ptr %20, align 4, !tbaa !5
  %102 = load i32, ptr %20, align 4, !tbaa !5
  %103 = load ptr, ptr %49, align 8, !tbaa !9
  invoke void @_ZN7qpOASES12SymSparseMatC1EiiiPKd(ptr noundef nonnull align 8 dereferenceable(56) %99, i32 noundef %100, i32 noundef %101, i32 noundef %102, ptr noundef %103)
          to label %104 unwind label %112

104:                                              ; preds = %98
  store ptr %99, ptr %50, align 8, !tbaa !9
  store ptr %99, ptr %48, align 8, !tbaa !9
  %105 = load ptr, ptr %50, align 8, !tbaa !9
  %106 = getelementptr inbounds i8, ptr %105, i64 8
  %107 = call noundef ptr @_ZN7qpOASES12SparseMatrix14createDiagInfoEv(ptr noundef nonnull align 8 dereferenceable(48) %106)
  %108 = load ptr, ptr %49, align 8, !tbaa !9
  %109 = icmp eq ptr %108, null
  br i1 %109, label %111, label %110

110:                                              ; preds = %104
  call void @_ZdaPv(ptr noundef %108) #12
  br label %111

111:                                              ; preds = %110, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #10
  br label %132

112:                                              ; preds = %98
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %51, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %52, align 4
  call void @_ZdlPvm(ptr noundef %99, i64 noundef 72) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #10
  br label %346

116:                                              ; preds = %17
  %117 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
  %118 = load i32, ptr %20, align 4, !tbaa !5
  %119 = load i32, ptr %20, align 4, !tbaa !5
  %120 = load i32, ptr %20, align 4, !tbaa !5
  %121 = load ptr, ptr %49, align 8, !tbaa !9
  invoke void @_ZN7qpOASES11SymDenseMatC1EiiiPd(ptr noundef nonnull align 8 dereferenceable(40) %117, i32 noundef %118, i32 noundef %119, i32 noundef %120, ptr noundef %121)
          to label %122 unwind label %128

122:                                              ; preds = %116
  %123 = icmp eq ptr %117, null
  br i1 %123, label %126, label %124

124:                                              ; preds = %122
  %125 = getelementptr inbounds i8, ptr %117, i64 32
  br label %126

126:                                              ; preds = %124, %122
  %127 = phi ptr [ %125, %124 ], [ null, %122 ]
  store ptr %127, ptr %48, align 8, !tbaa !9
  br label %132

128:                                              ; preds = %116
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %51, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %52, align 4
  call void @_ZdlPvm(ptr noundef %117, i64 noundef 56) #12
  br label %346

132:                                              ; preds = %126, %111
  %133 = load ptr, ptr %48, align 8, !tbaa !9
  %134 = load ptr, ptr %133, align 8, !tbaa !15
  %135 = getelementptr i8, ptr %134, i64 -24
  %136 = load i64, ptr %135, align 8
  %137 = getelementptr inbounds i8, ptr %133, i64 %136
  call void @_ZN7qpOASES6Matrix12doFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(12) %137)
  call void @llvm.lifetime.start.p0(i64 800, ptr %53) #10
  %138 = load i32, ptr %20, align 4, !tbaa !5
  call void @_ZN7qpOASES9QProblemBC1EiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800) %53, i32 noundef %138, i32 noundef 6, i32 noundef 1)
  %139 = load ptr, ptr %27, align 8, !tbaa !9
  %140 = invoke noundef i32 @_ZN7qpOASES9QProblemB10setOptionsERKNS_7OptionsE(ptr noundef nonnull align 8 dereferenceable(800) %53, ptr noundef nonnull align 8 dereferenceable(220) %139)
          to label %141 unwind label %205

141:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #10
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %314, %141
  %143 = load i32, ptr %36, align 4, !tbaa !5
  %144 = load i32, ptr %19, align 4, !tbaa !5
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %146, label %317

146:                                              ; preds = %142
  %147 = load ptr, ptr %22, align 8, !tbaa !9
  %148 = load i32, ptr %36, align 4, !tbaa !5
  %149 = load i32, ptr %20, align 4, !tbaa !5
  %150 = mul nsw i32 %148, %149
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %147, i64 %151
  store ptr %152, ptr %43, align 8, !tbaa !9
  %153 = load ptr, ptr %23, align 8, !tbaa !9
  %154 = load i32, ptr %36, align 4, !tbaa !5
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = mul nsw i32 %154, %155
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %153, i64 %157
  store ptr %158, ptr %44, align 8, !tbaa !9
  %159 = load ptr, ptr %24, align 8, !tbaa !9
  %160 = load i32, ptr %36, align 4, !tbaa !5
  %161 = load i32, ptr %20, align 4, !tbaa !5
  %162 = mul nsw i32 %160, %161
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %159, i64 %163
  store ptr %164, ptr %45, align 8, !tbaa !9
  %165 = load i32, ptr %28, align 4, !tbaa !5
  store i32 %165, ptr %37, align 4, !tbaa !5
  %166 = load double, ptr %38, align 8, !tbaa !13
  store double %166, ptr %39, align 8, !tbaa !13
  %167 = load i32, ptr %36, align 4, !tbaa !5
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %172, label %169

169:                                              ; preds = %146
  %170 = load i32, ptr %26, align 4, !tbaa !11
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %214

172:                                              ; preds = %169, %146
  %173 = load ptr, ptr %48, align 8, !tbaa !9
  %174 = load ptr, ptr %43, align 8, !tbaa !9
  %175 = load ptr, ptr %44, align 8, !tbaa !9
  %176 = load ptr, ptr %45, align 8, !tbaa !9
  %177 = invoke noundef i32 @_ZN7qpOASES9QProblemB4initEPNS_15SymmetricMatrixEPKdS4_S4_RiPdS4_S4_PKNS_6BoundsES4_(ptr noundef nonnull align 8 dereferenceable(800) %53, ptr noundef %173, ptr noundef %174, ptr noundef %175, ptr noundef %176, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef %39, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %178 unwind label %209

178:                                              ; preds = %172
  store i32 %177, ptr %54, align 4, !tbaa !17
  %179 = load i32, ptr %54, align 4, !tbaa !17
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %213

181:                                              ; preds = %178
  %182 = load i32, ptr %54, align 4, !tbaa !17
  %183 = icmp ne i32 %182, 64
  br i1 %183, label %184, label %213

184:                                              ; preds = %181
  %185 = load ptr, ptr %48, align 8, !tbaa !9
  %186 = icmp eq ptr %185, null
  br i1 %186, label %191, label %187

187:                                              ; preds = %184
  %188 = load ptr, ptr %185, align 8, !tbaa !15
  %189 = getelementptr inbounds ptr, ptr %188, i64 1
  %190 = load ptr, ptr %189, align 8
  call void %190(ptr noundef nonnull align 8 dereferenceable(8) %185) #10
  br label %191

191:                                              ; preds = %187, %184
  %192 = load ptr, ptr %47, align 8, !tbaa !9
  %193 = icmp eq ptr %192, null
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  call void @_ZdaPv(ptr noundef %192) #12
  br label %195

195:                                              ; preds = %194, %191
  %196 = load ptr, ptr %46, align 8, !tbaa !9
  %197 = icmp eq ptr %196, null
  br i1 %197, label %199, label %198

198:                                              ; preds = %195
  call void @_ZdaPv(ptr noundef %196) #12
  br label %199

199:                                              ; preds = %198, %195
  %200 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %201 unwind label %209

201:                                              ; preds = %199
  %202 = load i32, ptr %54, align 4, !tbaa !17
  %203 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %200, i32 noundef %202, ptr noundef null, ptr noundef @.str.1, ptr noundef @.str.2, i64 noundef 522, i32 noundef 1)
          to label %204 unwind label %209

204:                                              ; preds = %201
  store i32 %203, ptr %18, align 4
  store i32 1, ptr %55, align 4
  br label %343

205:                                              ; preds = %132
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %51, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %52, align 4
  br label %345

209:                                              ; preds = %253, %250, %247, %242, %240, %214, %201, %199, %172
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %51, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %52, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  br label %345

213:                                              ; preds = %181, %178
  br label %247

214:                                              ; preds = %169
  %215 = load ptr, ptr %43, align 8, !tbaa !9
  %216 = load ptr, ptr %44, align 8, !tbaa !9
  %217 = load ptr, ptr %45, align 8, !tbaa !9
  %218 = invoke noundef i32 @_ZN7qpOASES9QProblemB8hotstartEPKdS2_S2_RiPdPKNS_6BoundsE(ptr noundef nonnull align 8 dereferenceable(800) %53, ptr noundef %215, ptr noundef %216, ptr noundef %217, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef %39, ptr noundef null)
          to label %219 unwind label %209

219:                                              ; preds = %214
  store i32 %218, ptr %54, align 4, !tbaa !17
  %220 = load i32, ptr %54, align 4, !tbaa !17
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %246

222:                                              ; preds = %219
  %223 = load i32, ptr %54, align 4, !tbaa !17
  %224 = icmp ne i32 %223, 64
  br i1 %224, label %225, label %246

225:                                              ; preds = %222
  %226 = load ptr, ptr %48, align 8, !tbaa !9
  %227 = icmp eq ptr %226, null
  br i1 %227, label %232, label %228

228:                                              ; preds = %225
  %229 = load ptr, ptr %226, align 8, !tbaa !15
  %230 = getelementptr inbounds ptr, ptr %229, i64 1
  %231 = load ptr, ptr %230, align 8
  call void %231(ptr noundef nonnull align 8 dereferenceable(8) %226) #10
  br label %232

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

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

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

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

240:                                              ; preds = %239, %236
  %241 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %242 unwind label %209

242:                                              ; preds = %240
  %243 = load i32, ptr %54, align 4, !tbaa !17
  %244 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %241, i32 noundef %243, ptr noundef null, ptr noundef @.str.1, ptr noundef @.str.2, i64 noundef 532, i32 noundef 1)
          to label %245 unwind label %209

245:                                              ; preds = %242
  store i32 %244, ptr %18, align 4
  store i32 1, ptr %55, align 4
  br label %343

246:                                              ; preds = %222, %219
  br label %247

247:                                              ; preds = %246, %213
  %248 = load ptr, ptr %46, align 8, !tbaa !9
  %249 = invoke noundef i32 @_ZNK7qpOASES9QProblemB17getPrimalSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800) %53, ptr noundef %248)
          to label %250 unwind label %209

250:                                              ; preds = %247
  %251 = load ptr, ptr %47, align 8, !tbaa !9
  %252 = invoke noundef i32 @_ZNK7qpOASES9QProblemB15getDualSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800) %53, ptr noundef %251)
          to label %253 unwind label %209

253:                                              ; preds = %250
  %254 = load i32, ptr %20, align 4, !tbaa !5
  %255 = load ptr, ptr %21, align 8, !tbaa !9
  %256 = load ptr, ptr %43, align 8, !tbaa !9
  %257 = load ptr, ptr %44, align 8, !tbaa !9
  %258 = load ptr, ptr %45, align 8, !tbaa !9
  %259 = load ptr, ptr %46, align 8, !tbaa !9
  %260 = load ptr, ptr %47, align 8, !tbaa !9
  %261 = invoke noundef i32 @_ZN7qpOASES15getKktViolationEiPKdS1_S1_S1_S1_S1_RdS2_S2_S1_NS_11BooleanTypeE(i32 noundef %254, ptr noundef %255, ptr noundef %256, ptr noundef %257, ptr noundef %258, ptr noundef %259, ptr noundef %260, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef null, i32 noundef 0)
          to label %262 unwind label %209

262:                                              ; preds = %253
  %263 = load i32, ptr %37, align 4, !tbaa !5
  %264 = sitofp i32 %263 to double
  %265 = load ptr, ptr %29, align 8, !tbaa !9
  %266 = load double, ptr %265, align 8, !tbaa !13
  %267 = fcmp ogt double %264, %266
  br i1 %267, label %268, label %272

268:                                              ; preds = %262
  %269 = load i32, ptr %37, align 4, !tbaa !5
  %270 = sitofp i32 %269 to double
  %271 = load ptr, ptr %29, align 8, !tbaa !9
  store double %270, ptr %271, align 8, !tbaa !13
  br label %272

272:                                              ; preds = %268, %262
  %273 = load double, ptr %40, align 8, !tbaa !13
  %274 = load ptr, ptr %33, align 8, !tbaa !9
  %275 = load double, ptr %274, align 8, !tbaa !13
  %276 = fcmp ogt double %273, %275
  br i1 %276, label %277, label %280

277:                                              ; preds = %272
  %278 = load double, ptr %40, align 8, !tbaa !13
  %279 = load ptr, ptr %33, align 8, !tbaa !9
  store double %278, ptr %279, align 8, !tbaa !13
  br label %280

280:                                              ; preds = %277, %272
  %281 = load double, ptr %41, align 8, !tbaa !13
  %282 = load ptr, ptr %34, align 8, !tbaa !9
  %283 = load double, ptr %282, align 8, !tbaa !13
  %284 = fcmp ogt double %281, %283
  br i1 %284, label %285, label %288

285:                                              ; preds = %280
  %286 = load double, ptr %41, align 8, !tbaa !13
  %287 = load ptr, ptr %34, align 8, !tbaa !9
  store double %286, ptr %287, align 8, !tbaa !13
  br label %288

288:                                              ; preds = %285, %280
  %289 = load double, ptr %42, align 8, !tbaa !13
  %290 = load ptr, ptr %35, align 8, !tbaa !9
  %291 = load double, ptr %290, align 8, !tbaa !13
  %292 = fcmp ogt double %289, %291
  br i1 %292, label %293, label %296

293:                                              ; preds = %288
  %294 = load double, ptr %42, align 8, !tbaa !13
  %295 = load ptr, ptr %35, align 8, !tbaa !9
  store double %294, ptr %295, align 8, !tbaa !13
  br label %296

296:                                              ; preds = %293, %288
  %297 = load double, ptr %39, align 8, !tbaa !13
  %298 = load ptr, ptr %31, align 8, !tbaa !9
  %299 = load double, ptr %298, align 8, !tbaa !13
  %300 = fcmp ogt double %297, %299
  br i1 %300, label %301, label %304

301:                                              ; preds = %296
  %302 = load double, ptr %39, align 8, !tbaa !13
  %303 = load ptr, ptr %31, align 8, !tbaa !9
  store double %302, ptr %303, align 8, !tbaa !13
  br label %304

304:                                              ; preds = %301, %296
  %305 = load i32, ptr %37, align 4, !tbaa !5
  %306 = sitofp i32 %305 to double
  %307 = load ptr, ptr %30, align 8, !tbaa !9
  %308 = load double, ptr %307, align 8, !tbaa !13
  %309 = fadd double %308, %306
  store double %309, ptr %307, align 8, !tbaa !13
  %310 = load double, ptr %39, align 8, !tbaa !13
  %311 = load ptr, ptr %32, align 8, !tbaa !9
  %312 = load double, ptr %311, align 8, !tbaa !13
  %313 = fadd double %312, %310
  store double %313, ptr %311, align 8, !tbaa !13
  br label %314

314:                                              ; preds = %304
  %315 = load i32, ptr %36, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %36, align 4, !tbaa !5
  br label %142, !llvm.loop !19

317:                                              ; preds = %142
  %318 = load i32, ptr %19, align 4, !tbaa !5
  %319 = sitofp i32 %318 to double
  %320 = load ptr, ptr %30, align 8, !tbaa !9
  %321 = load double, ptr %320, align 8, !tbaa !13
  %322 = fdiv double %321, %319
  store double %322, ptr %320, align 8, !tbaa !13
  %323 = load i32, ptr %19, align 4, !tbaa !5
  %324 = sitofp i32 %323 to double
  %325 = load ptr, ptr %32, align 8, !tbaa !9
  %326 = load double, ptr %325, align 8, !tbaa !13
  %327 = fdiv double %326, %324
  store double %327, ptr %325, align 8, !tbaa !13
  %328 = load ptr, ptr %48, align 8, !tbaa !9
  %329 = icmp eq ptr %328, null
  br i1 %329, label %334, label %330

330:                                              ; preds = %317
  %331 = load ptr, ptr %328, align 8, !tbaa !15
  %332 = getelementptr inbounds ptr, ptr %331, i64 1
  %333 = load ptr, ptr %332, align 8
  call void %333(ptr noundef nonnull align 8 dereferenceable(8) %328) #10
  br label %334

334:                                              ; preds = %330, %317
  %335 = load ptr, ptr %47, align 8, !tbaa !9
  %336 = icmp eq ptr %335, null
  br i1 %336, label %338, label %337

337:                                              ; preds = %334
  call void @_ZdaPv(ptr noundef %335) #12
  br label %338

338:                                              ; preds = %337, %334
  %339 = load ptr, ptr %46, align 8, !tbaa !9
  %340 = icmp eq ptr %339, null
  br i1 %340, label %342, label %341

341:                                              ; preds = %338
  call void @_ZdaPv(ptr noundef %339) #12
  br label %342

342:                                              ; preds = %341, %338
  store i32 0, ptr %18, align 4
  store i32 1, ptr %55, align 4
  br label %343

343:                                              ; preds = %342, %245, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  call void @_ZN7qpOASES9QProblemBD1Ev(ptr noundef nonnull align 8 dereferenceable(800) %53) #10
  call void @llvm.lifetime.end.p0(i64 800, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  %344 = load i32, ptr %18, align 4
  ret i32 %344

345:                                              ; preds = %209, %205
  call void @_ZN7qpOASES9QProblemBD1Ev(ptr noundef nonnull align 8 dereferenceable(800) %53) #10
  call void @llvm.lifetime.end.p0(i64 800, ptr %53) #10
  br label %346

346:                                              ; preds = %345, %128, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %347

347:                                              ; preds = %346
  %348 = load ptr, ptr %51, align 8
  %349 = load i32, ptr %52, align 4
  %350 = insertvalue { ptr, i32 } poison, ptr %348, 0
  %351 = insertvalue { ptr, i32 } %350, i32 %349, 1
  resume { ptr, i32 } %351
}

declare void @_ZN7qpOASES9QProblemBC1EiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1

declare noundef i32 @_ZN7qpOASES9QProblemB4initEPNS_15SymmetricMatrixEPKdS4_S4_RiPdS4_S4_PKNS_6BoundsES4_(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare noundef i32 @_ZN7qpOASES9QProblemB8hotstartEPKdS2_S2_RiPdPKNS_6BoundsE(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef) #1

declare noundef i32 @_ZNK7qpOASES9QProblemB15getDualSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN7qpOASES9QProblemBD1Ev(ptr noundef nonnull align 8 dereferenceable(800)) unnamed_addr #9

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


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

%"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 }

@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [107 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7qpOASES12SymSparseMatC1EiiiPKd(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, i32 noundef, ptr noundef) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

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

declare noundef ptr @_ZN7qpOASES12SparseMatrix14createDiagInfoEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7qpOASES11SymDenseMatC1EiiiPd(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, i32 noundef, ptr noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7qpOASES6Matrix12doFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #6 align 2

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

declare noundef i32 @_ZNK7qpOASES9QProblemB17getPrimalSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES17solveOqpBenchmarkEiiPKdS1_S1_S1_NS_11BooleanTypeES2_RKNS_7OptionsEiRdS6_S6_S6_S6_S6_S6_(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef nonnull align 8 dereferenceable(220) %8, i32 noundef %9, ptr nocapture noundef nonnull align 8 dereferenceable(8) %10, ptr nocapture noundef nonnull align 8 dereferenceable(8) %11, ptr nocapture noundef nonnull align 8 dereferenceable(8) %12, ptr nocapture noundef nonnull align 8 dereferenceable(8) %13, ptr nocapture noundef nonnull align 8 dereferenceable(8) %14, ptr nocapture noundef nonnull align 8 dereferenceable(8) %15, ptr nocapture noundef nonnull align 8 dereferenceable(8) %16) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca %"class.qpOASES::QProblemB", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  %24 = load double, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  store double %24, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %11, align 8, !tbaa !5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !5
  %25 = zext nneg i32 %1 to i64
  %26 = icmp slt i32 %1, 0
  %27 = shl nuw nsw i64 %25, 3
  %28 = select i1 %26, i64 -1, i64 %27
  %29 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %28) #10
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %28) #10
  %31 = mul nsw i32 %1, %1
  %32 = zext nneg i32 %31 to i64
  %33 = shl nuw nsw i64 %32, 3
  %34 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %33) #10
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %34, ptr align 8 %2, i64 %33, i1 false)
  %35 = icmp eq i32 %6, 1
  br i1 %35, label %36, label %43

36:                                               ; preds = %17
  %37 = tail call noalias noundef nonnull dereferenceable(72) ptr @_Znwm(i64 noundef 72) #10
  invoke void @_ZN7qpOASES12SymSparseMatC1EiiiPKd(ptr noundef nonnull align 8 dereferenceable(56) %37, i32 noundef %1, i32 noundef %1, i32 noundef %1, ptr noundef nonnull %34)
          to label %38 unwind label %41

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %37, i64 8
  %40 = tail call noundef ptr @_ZN7qpOASES12SparseMatrix14createDiagInfoEv(ptr noundef nonnull align 8 dereferenceable(48) %39)
  tail call void @_ZdaPv(ptr noundef nonnull %34) #11
  br label %49

41:                                               ; preds = %36
  %42 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %37, i64 noundef 72) #11
  br label %168

43:                                               ; preds = %17
  %44 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #10
  invoke void @_ZN7qpOASES11SymDenseMatC1EiiiPd(ptr noundef nonnull align 8 dereferenceable(40) %44, i32 noundef %1, i32 noundef %1, i32 noundef %1, ptr noundef nonnull %34)
          to label %45 unwind label %47

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %44, i64 32
  br label %49

47:                                               ; preds = %43
  %48 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %44, i64 noundef 56) #11
  br label %168

49:                                               ; preds = %45, %38
  %.0105 = phi ptr [ %37, %38 ], [ %46, %45 ]
  %50 = load ptr, ptr %.0105, align 8, !tbaa !9
  %51 = getelementptr i8, ptr %50, i64 -24
  %52 = load i64, ptr %51, align 8
  %53 = getelementptr inbounds i8, ptr %.0105, i64 %52
  tail call void @_ZN7qpOASES6Matrix12doFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(12) %53)
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %23) #9
  call void @_ZN7qpOASES9QProblemBC1EiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800) %23, i32 noundef %1, i32 noundef 6, i32 noundef 1)
  %54 = invoke noundef i32 @_ZN7qpOASES9QProblemB10setOptionsERKNS_7OptionsE(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef nonnull align 8 dereferenceable(220) %8)
          to label %.preheader unwind label %115

.preheader:                                       ; preds = %49
  %55 = icmp sgt i32 %0, 0
  br i1 %55, label %56, label %._crit_edge

56:                                               ; preds = %.preheader
  %57 = icmp eq i32 %7, 0
  %58 = sext i32 %1 to i64
  %wide.trip.count = zext nneg i32 %0 to i64
  store i32 %9, ptr %18, align 4, !tbaa !11
  store double %24, ptr %19, align 8, !tbaa !5
  %59 = invoke noundef i32 @_ZN7qpOASES9QProblemB4initEPNS_15SymmetricMatrixEPKdS4_S4_RiPdS4_S4_PKNS_6BoundsES4_(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef nonnull %.0105, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull %19, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %60 unwind label %.loopexit.loopexit.split-lp

60:                                               ; preds = %56
  %61 = and i32 %59, -65
  %or.cond3.not.peel = icmp eq i32 %61, 0
  br i1 %or.cond3.not.peel, label %62, label %.loopexit124

62:                                               ; preds = %60
  %63 = invoke noundef i32 @_ZNK7qpOASES9QProblemB17getPrimalSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef nonnull %29)
          to label %64 unwind label %.loopexit.loopexit.split-lp

64:                                               ; preds = %62
  %65 = invoke noundef i32 @_ZNK7qpOASES9QProblemB15getDualSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef nonnull %30)
          to label %66 unwind label %.loopexit.loopexit.split-lp

66:                                               ; preds = %64
  %67 = invoke noundef i32 @_ZN7qpOASES15getKktViolationEiPKdS1_S1_S1_S1_S1_RdS2_S2_S1_NS_11BooleanTypeE(i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef null, i32 noundef 0)
          to label %68 unwind label %.loopexit.loopexit.split-lp

68:                                               ; preds = %66
  %69 = load i32, ptr %18, align 4, !tbaa !11
  %70 = sitofp i32 %69 to double
  %71 = load double, ptr %10, align 8, !tbaa !5
  %72 = fcmp olt double %71, %70
  br i1 %72, label %73, label %74

73:                                               ; preds = %68
  store double %70, ptr %10, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %73, %68
  %75 = load double, ptr %20, align 8, !tbaa !5
  %76 = load double, ptr %14, align 8, !tbaa !5
  %77 = fcmp ogt double %75, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %74
  store double %75, ptr %14, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %78, %74
  %80 = load double, ptr %21, align 8, !tbaa !5
  %81 = load double, ptr %15, align 8, !tbaa !5
  %82 = fcmp ogt double %80, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  store double %80, ptr %15, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %83, %79
  %85 = load double, ptr %22, align 8, !tbaa !5
  %86 = load double, ptr %16, align 8, !tbaa !5
  %87 = fcmp ogt double %85, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %84
  store double %85, ptr %16, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %88, %84
  %90 = load double, ptr %19, align 8, !tbaa !5
  %91 = load double, ptr %12, align 8, !tbaa !5
  %92 = fcmp ogt double %90, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %89
  store double %90, ptr %12, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %93, %89
  %95 = load double, ptr %11, align 8, !tbaa !5
  %96 = fadd double %95, %70
  store double %96, ptr %11, align 8, !tbaa !5
  %97 = load double, ptr %13, align 8, !tbaa !5
  %98 = fadd double %90, %97
  store double %98, ptr %13, align 8, !tbaa !5
  %exitcond.peel.not = icmp eq i32 %0, 1
  br i1 %exitcond.peel.not, label %._crit_edge, label %.peel.next

.peel.next:                                       ; preds = %94, %154
  %indvars.iv = phi i64 [ %indvars.iv.next, %154 ], [ 1, %94 ]
  %99 = mul nsw i64 %indvars.iv, %58
  %100 = getelementptr inbounds double, ptr %3, i64 %99
  %101 = getelementptr inbounds double, ptr %4, i64 %99
  %102 = getelementptr inbounds double, ptr %5, i64 %99
  store i32 %9, ptr %18, align 4, !tbaa !11
  store double %24, ptr %19, align 8, !tbaa !5
  br i1 %57, label %103, label %117

103:                                              ; preds = %.peel.next
  %104 = invoke noundef i32 @_ZN7qpOASES9QProblemB4initEPNS_15SymmetricMatrixEPKdS4_S4_RiPdS4_S4_PKNS_6BoundsES4_(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef nonnull %.0105, ptr noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull %19, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %105 unwind label %.loopexit.loopexit

105:                                              ; preds = %103
  %106 = and i32 %104, -65
  %or.cond3.not = icmp eq i32 %106, 0
  br i1 %or.cond3.not, label %122, label %.loopexit124

.loopexit124:                                     ; preds = %105, %60
  %.lcssa118 = phi i32 [ %59, %60 ], [ %104, %105 ]
  %107 = load ptr, ptr %.0105, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %107, i64 8
  %109 = load ptr, ptr %108, align 8
  call void %109(ptr noundef nonnull align 8 dereferenceable(8) %.0105) #9
  call void @_ZdaPv(ptr noundef nonnull %30) #11
  call void @_ZdaPv(ptr noundef nonnull %29) #11
  %110 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %.invoke unwind label %.loopexit.split-lp

.invoke:                                          ; preds = %.loopexit124, %.loopexit123
  %111 = phi ptr [ %121, %.loopexit123 ], [ %110, %.loopexit124 ]
  %112 = phi i32 [ %118, %.loopexit123 ], [ %.lcssa118, %.loopexit124 ]
  %113 = phi i64 [ 532, %.loopexit123 ], [ 522, %.loopexit124 ]
  %114 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %111, i32 noundef %112, ptr noundef null, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i64 noundef %113, i32 noundef 1)
          to label %167 unwind label %.loopexit.split-lp

115:                                              ; preds = %49
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %126, %124, %122, %117, %103
  %lpad.loopexit121 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit.split-lp:                      ; preds = %56, %62, %64, %66
  %lpad.loopexit.split-lp122 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp:                               ; preds = %.invoke, %.loopexit124, %.loopexit123
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

117:                                              ; preds = %.peel.next
  %118 = invoke noundef i32 @_ZN7qpOASES9QProblemB8hotstartEPKdS2_S2_RiPdPKNS_6BoundsE(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull %19, ptr noundef null)
          to label %119 unwind label %.loopexit.loopexit

119:                                              ; preds = %117
  %120 = and i32 %118, -65
  %or.cond5.not = icmp eq i32 %120, 0
  br i1 %or.cond5.not, label %122, label %.loopexit123

.loopexit123:                                     ; preds = %119
  %.pre = load ptr, ptr %.0105, align 8, !tbaa !9
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 8
  %.pre127 = load ptr, ptr %.phi.trans.insert, align 8
  call void %.pre127(ptr noundef nonnull align 8 dereferenceable(8) %.0105) #9
  call void @_ZdaPv(ptr noundef nonnull %30) #11
  call void @_ZdaPv(ptr noundef nonnull %29) #11
  %121 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %.invoke unwind label %.loopexit.split-lp

122:                                              ; preds = %119, %105
  %123 = invoke noundef i32 @_ZNK7qpOASES9QProblemB17getPrimalSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef nonnull %29)
          to label %124 unwind label %.loopexit.loopexit

124:                                              ; preds = %122
  %125 = invoke noundef i32 @_ZNK7qpOASES9QProblemB15getDualSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800) %23, ptr noundef nonnull %30)
          to label %126 unwind label %.loopexit.loopexit

126:                                              ; preds = %124
  %127 = invoke noundef i32 @_ZN7qpOASES15getKktViolationEiPKdS1_S1_S1_S1_S1_RdS2_S2_S1_NS_11BooleanTypeE(i32 noundef %1, ptr noundef %2, ptr noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef null, i32 noundef 0)
          to label %128 unwind label %.loopexit.loopexit

128:                                              ; preds = %126
  %129 = load i32, ptr %18, align 4, !tbaa !11
  %130 = sitofp i32 %129 to double
  %131 = load double, ptr %10, align 8, !tbaa !5
  %132 = fcmp olt double %131, %130
  br i1 %132, label %133, label %134

133:                                              ; preds = %128
  store double %130, ptr %10, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %133, %128
  %135 = load double, ptr %20, align 8, !tbaa !5
  %136 = load double, ptr %14, align 8, !tbaa !5
  %137 = fcmp ogt double %135, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %134
  store double %135, ptr %14, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %138, %134
  %140 = load double, ptr %21, align 8, !tbaa !5
  %141 = load double, ptr %15, align 8, !tbaa !5
  %142 = fcmp ogt double %140, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %139
  store double %140, ptr %15, align 8, !tbaa !5
  br label %144

144:                                              ; preds = %143, %139
  %145 = load double, ptr %22, align 8, !tbaa !5
  %146 = load double, ptr %16, align 8, !tbaa !5
  %147 = fcmp ogt double %145, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %144
  store double %145, ptr %16, align 8, !tbaa !5
  br label %149

149:                                              ; preds = %148, %144
  %150 = load double, ptr %19, align 8, !tbaa !5
  %151 = load double, ptr %12, align 8, !tbaa !5
  %152 = fcmp ogt double %150, %151
  br i1 %152, label %153, label %154

153:                                              ; preds = %149
  store double %150, ptr %12, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %153, %149
  %155 = load double, ptr %11, align 8, !tbaa !5
  %156 = fadd double %155, %130
  store double %156, ptr %11, align 8, !tbaa !5
  %157 = load double, ptr %13, align 8, !tbaa !5
  %158 = fadd double %150, %157
  store double %158, ptr %13, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.peel.next, !llvm.loop !13

._crit_edge:                                      ; preds = %154, %94, %.preheader
  %159 = sitofp i32 %0 to double
  %160 = load double, ptr %11, align 8, !tbaa !5
  %161 = fdiv double %160, %159
  store double %161, ptr %11, align 8, !tbaa !5
  %162 = load double, ptr %13, align 8, !tbaa !5
  %163 = fdiv double %162, %159
  store double %163, ptr %13, align 8, !tbaa !5
  %164 = load ptr, ptr %.0105, align 8, !tbaa !9
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  %166 = load ptr, ptr %165, align 8
  call void %166(ptr noundef nonnull align 8 dereferenceable(8) %.0105) #9
  call void @_ZdaPv(ptr noundef nonnull %30) #11
  call void @_ZdaPv(ptr noundef nonnull %29) #11
  br label %167

167:                                              ; preds = %.invoke, %._crit_edge
  %.0103 = phi i32 [ 0, %._crit_edge ], [ %114, %.invoke ]
  call void @_ZN7qpOASES9QProblemBD1Ev(ptr noundef nonnull align 8 dereferenceable(800) %23) #9
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  ret i32 %.0103

.loopexit:                                        ; preds = %.loopexit.loopexit, %.loopexit.loopexit.split-lp, %.loopexit.split-lp, %115
  %.pn = phi { ptr, i32 } [ %116, %115 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit121, %.loopexit.loopexit ], [ %lpad.loopexit.split-lp122, %.loopexit.loopexit.split-lp ]
  call void @_ZN7qpOASES9QProblemBD1Ev(ptr noundef nonnull align 8 dereferenceable(800) %23) #9
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %23) #9
  br label %168

168:                                              ; preds = %.loopexit, %47, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit ], [ %42, %41 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN7qpOASES9QProblemBC1EiNS_11HessianTypeENS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1

declare noundef i32 @_ZN7qpOASES9QProblemB4initEPNS_15SymmetricMatrixEPKdS4_S4_RiPdS4_S4_PKNS_6BoundsES4_(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i32 @_ZN7qpOASES9QProblemB8hotstartEPKdS2_S2_RiPdPKNS_6BoundsE(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i32 @_ZNK7qpOASES9QProblemB15getDualSolutionEPd(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN7qpOASES9QProblemBD1Ev(ptr noundef nonnull align 8 dereferenceable(800)) unnamed_addr #8

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.peeled.count", i32 1}


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