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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #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.start.p0(i64 immarg, ptr nocapture) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9SubjectTo7getTypeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES6Bounds6rotateEi(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %1) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.qpOASES::Indexlist", align 8
  %11 = alloca %"class.qpOASES::Indexlist", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %26, label %17

17:                                               ; preds = %2
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp eq i32 %18, %20
  br i1 %21, label %26, label %22

22:                                               ; preds = %17
  %23 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = icmp sle i32 %24, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %22, %17, %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %217

27:                                               ; preds = %22
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = icmp slt i32 %28, 0
  br i1 %29, label %35, label %30

30:                                               ; preds = %27
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = icmp sgt i32 %31, %33
  br i1 %34, label %35, label %38

35:                                               ; preds = %30, %27
  %36 = call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %37 = call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %36, i32 noundef 2, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 334, i32 noundef 1)
  store i32 %37, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %217

38:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %40, i64 4)
  %42 = extractvalue { i64, i1 } %41, 1
  %43 = extractvalue { i64, i1 } %41, 0
  %44 = select i1 %42, i64 -1, i64 %43
  %45 = call noalias noundef nonnull ptr @_Znam(i64 noundef %44) #10
  store ptr %45, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %47, i64 4)
  %49 = extractvalue { i64, i1 } %48, 1
  %50 = extractvalue { i64, i1 } %48, 0
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = call noalias noundef nonnull ptr @_Znam(i64 noundef %51) #10
  store ptr %52, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %70, %38
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %73

57:                                               ; preds = %53
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = call noundef i32 @_ZNK7qpOASES9SubjectTo7getTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %58)
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %60, i64 %62
  store i32 %59, ptr %63, align 4, !tbaa !14
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = call noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %64)
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  store i32 %65, ptr %69, align 4, !tbaa !16
  br label %70

70:                                               ; preds = %57
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %6, align 4, !tbaa !9
  br label %53, !llvm.loop !18

73:                                               ; preds = %53
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %94, %73
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !11
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = sub nsw i32 %77, %78
  %80 = icmp slt i32 %75, %79
  br i1 %80, label %81, label %97

81:                                               ; preds = %74
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = add nsw i32 %83, %84
  %86 = call noundef i32 @_ZNK7qpOASES9SubjectTo7getTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %85)
  %87 = call noundef i32 @_ZN7qpOASES9SubjectTo7setTypeEiNS_13SubjectToTypeE(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %82, i32 noundef %86)
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = load i32, ptr %5, align 4, !tbaa !9
  %91 = add nsw i32 %89, %90
  %92 = call noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %91)
  %93 = call noundef i32 @_ZN7qpOASES9SubjectTo9setStatusEiNS_15SubjectToStatusE(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %88, i32 noundef %92)
  br label %94

94:                                               ; preds = %81
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %6, align 4, !tbaa !9
  br label %74, !llvm.loop !20

97:                                               ; preds = %74
  %98 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !11
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = sub nsw i32 %99, %100
  store i32 %101, ptr %6, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %132, %97
  %103 = load i32, ptr %6, align 4, !tbaa !9
  %104 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %105 = load i32, ptr %104, align 8, !tbaa !11
  %106 = icmp slt i32 %103, %105
  br i1 %106, label %107, label %135

107:                                              ; preds = %102
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %112 = load i32, ptr %111, align 8, !tbaa !11
  %113 = sub nsw i32 %110, %112
  %114 = load i32, ptr %5, align 4, !tbaa !9
  %115 = add nsw i32 %113, %114
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i32, ptr %109, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !14
  %119 = call noundef i32 @_ZN7qpOASES9SubjectTo7setTypeEiNS_13SubjectToTypeE(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %108, i32 noundef %118)
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load i32, ptr %6, align 4, !tbaa !9
  %123 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %124 = load i32, ptr %123, align 8, !tbaa !11
  %125 = sub nsw i32 %122, %124
  %126 = load i32, ptr %5, align 4, !tbaa !9
  %127 = add nsw i32 %125, %126
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %121, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !16
  %131 = call noundef i32 @_ZN7qpOASES9SubjectTo9setStatusEiNS_15SubjectToStatusE(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %120, i32 noundef %130)
  br label %132

132:                                              ; preds = %107
  %133 = load i32, ptr %6, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %6, align 4, !tbaa !9
  br label %102, !llvm.loop !21

135:                                              ; preds = %102
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = icmp eq ptr %136, null
  br i1 %137, label %139, label %138

138:                                              ; preds = %135
  call void @_ZdaPv(ptr noundef %136) #11
  br label %139

139:                                              ; preds = %138, %135
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = icmp eq ptr %140, null
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  call void @_ZdaPv(ptr noundef %140) #11
  br label %143

143:                                              ; preds = %142, %139
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #9
  %144 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %145 = load i32, ptr %144, align 8, !tbaa !11
  call void @_ZN7qpOASES9IndexlistC1Ei(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef %145)
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #9
  %146 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %147 = load i32, ptr %146, align 8, !tbaa !11
  invoke void @_ZN7qpOASES9IndexlistC1Ei(ptr noundef nonnull align 8 dereferenceable(36) %11, i32 noundef %147)
          to label %148 unwind label %158

148:                                              ; preds = %143
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %205, %148
  %150 = load i32, ptr %6, align 4, !tbaa !9
  %151 = getelementptr inbounds %"class.qpOASES::SubjectTo", ptr %14, i32 0, i32 1
  %152 = load i32, ptr %151, align 8, !tbaa !11
  %153 = icmp slt i32 %150, %152
  br i1 %153, label %154, label %208

154:                                              ; preds = %149
  %155 = load i32, ptr %6, align 4, !tbaa !9
  %156 = invoke noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40) %14, i32 noundef %155)
          to label %157 unwind label %162

157:                                              ; preds = %154
  switch i32 %156, label %199 [
    i32 0, label %166
    i32 -1, label %177
    i32 1, label %188
  ]

158:                                              ; preds = %143
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %12, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %13, align 4
  br label %216

162:                                              ; preds = %211, %208, %201, %199, %195, %193, %188, %184, %182, %177, %173, %171, %166, %154
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %12, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %13, align 4
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #9
  br label %216

166:                                              ; preds = %157
  %167 = load i32, ptr %6, align 4, !tbaa !9
  %168 = invoke noundef i32 @_ZN7qpOASES9Indexlist9addNumberEi(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef %167)
          to label %169 unwind label %162

169:                                              ; preds = %166
  %170 = icmp ne i32 %168, 0
  br i1 %170, label %171, label %176

171:                                              ; preds = %169
  %172 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %173 unwind label %162

173:                                              ; preds = %171
  %174 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %172, i32 noundef 28, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 371, i32 noundef 1)
          to label %175 unwind label %162

175:                                              ; preds = %173
  store i32 %174, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %215

176:                                              ; preds = %169
  br label %204

177:                                              ; preds = %157
  %178 = load i32, ptr %6, align 4, !tbaa !9
  %179 = invoke noundef i32 @_ZN7qpOASES9Indexlist9addNumberEi(ptr noundef nonnull align 8 dereferenceable(36) %11, i32 noundef %178)
          to label %180 unwind label %162

180:                                              ; preds = %177
  %181 = icmp ne i32 %179, 0
  br i1 %181, label %182, label %187

182:                                              ; preds = %180
  %183 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %184 unwind label %162

184:                                              ; preds = %182
  %185 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %183, i32 noundef 28, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 376, i32 noundef 1)
          to label %186 unwind label %162

186:                                              ; preds = %184
  store i32 %185, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %215

187:                                              ; preds = %180
  br label %204

188:                                              ; preds = %157
  %189 = load i32, ptr %6, align 4, !tbaa !9
  %190 = invoke noundef i32 @_ZN7qpOASES9Indexlist9addNumberEi(ptr noundef nonnull align 8 dereferenceable(36) %11, i32 noundef %189)
          to label %191 unwind label %162

191:                                              ; preds = %188
  %192 = icmp ne i32 %190, 0
  br i1 %192, label %193, label %198

193:                                              ; preds = %191
  %194 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %195 unwind label %162

195:                                              ; preds = %193
  %196 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %194, i32 noundef 28, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 381, i32 noundef 1)
          to label %197 unwind label %162

197:                                              ; preds = %195
  store i32 %196, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %215

198:                                              ; preds = %191
  br label %204

199:                                              ; preds = %157
  %200 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %201 unwind label %162

201:                                              ; preds = %199
  %202 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %200, i32 noundef 28, ptr noundef null, ptr noundef @.str, ptr noundef @.str.1, i64 noundef 385, i32 noundef 1)
          to label %203 unwind label %162

203:                                              ; preds = %201
  store i32 %202, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %215

204:                                              ; preds = %198, %187, %176
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %6, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %6, align 4, !tbaa !9
  br label %149, !llvm.loop !22

208:                                              ; preds = %149
  %209 = getelementptr inbounds %"class.qpOASES::Bounds", ptr %14, i32 0, i32 1
  %210 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN7qpOASES9IndexlistaSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %209, ptr noundef nonnull align 8 dereferenceable(36) %10)
          to label %211 unwind label %162

211:                                              ; preds = %208
  %212 = getelementptr inbounds %"class.qpOASES::Bounds", ptr %14, i32 0, i32 2
  %213 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN7qpOASES9IndexlistaSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %212, ptr noundef nonnull align 8 dereferenceable(36) %11)
          to label %214 unwind label %162

214:                                              ; preds = %211
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %215

215:                                              ; preds = %214, %203, %197, %186, %175
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #9
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %217

216:                                              ; preds = %162, %158
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #9
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %219

217:                                              ; preds = %215, %35, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %218 = load i32, ptr %3, align 4
  ret i32 %218

219:                                              ; preds = %216
  %220 = load ptr, ptr %12, align 8
  %221 = load i32, ptr %13, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

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

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

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

attributes #0 = { 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 #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 willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { 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 #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 = !{!"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, !10, i64 8}
!12 = !{!"_ZTSN7qpOASES9SubjectToE", !10, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36}
!13 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTSN7qpOASES13SubjectToTypeE", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #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.start.p0(i64 immarg, ptr nocapture) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9SubjectTo7getTypeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2

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

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

declare noundef nonnull align 8 dereferenceable(36) ptr @_ZN7qpOASES9IndexlistaSERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) 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) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES6Bounds6rotateEi(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %1) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.qpOASES::Indexlist", align 8
  %4 = alloca %"class.qpOASES::Indexlist", align 8
  %5 = icmp eq i32 %1, 0
  br i1 %5, label %92, label %6

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp eq i32 %8, %1
  %10 = icmp slt i32 %8, 2
  %or.cond = or i1 %9, %10
  br i1 %or.cond, label %92, label %11

11:                                               ; preds = %6
  %or.cond57 = icmp ult i32 %8, %1
  br i1 %or.cond57, label %12, label %.lr.ph.preheader

12:                                               ; preds = %11
  %13 = tail call noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
  %14 = tail call noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %13, i32 noundef 2, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 334, i32 noundef 1)
  br label %92

.lr.ph.preheader:                                 ; preds = %11
  %15 = zext nneg i32 %1 to i64
  %16 = shl nuw nsw i64 %15, 2
  %17 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #8
  %18 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #8
  br label %.lr.ph

.preheader60:                                     ; preds = %.lr.ph
  %.pre = load i32, ptr %7, align 8, !tbaa !5
  %19 = sub nsw i32 %.pre, %1
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph63, label %.preheader59

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %21 = trunc nuw nsw i64 %indvars.iv to i32
  %22 = tail call noundef i32 @_ZNK7qpOASES9SubjectTo7getTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %21)
  %23 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv
  store i32 %22, ptr %23, align 4, !tbaa !12
  %24 = tail call noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %21)
  %25 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv
  store i32 %24, ptr %25, align 4, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %15
  br i1 %exitcond.not, label %.preheader60, label %.lr.ph, !llvm.loop !16

.preheader59:                                     ; preds = %.lr.ph63, %.preheader60
  %26 = phi i32 [ %.pre, %.preheader60 ], [ %34, %.lr.ph63 ]
  %.lcssa = phi i32 [ %19, %.preheader60 ], [ %35, %.lr.ph63 ]
  %27 = icmp slt i32 %.lcssa, %26
  br i1 %27, label %.lr.ph65, label %._crit_edge

.lr.ph63:                                         ; preds = %.preheader60, %.lr.ph63
  %.14962 = phi i32 [ %33, %.lr.ph63 ], [ 0, %.preheader60 ]
  %28 = add nuw nsw i32 %.14962, %1
  %29 = tail call noundef i32 @_ZNK7qpOASES9SubjectTo7getTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %28)
  %30 = tail call noundef i32 @_ZN7qpOASES9SubjectTo7setTypeEiNS_13SubjectToTypeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.14962, i32 noundef %29)
  %31 = tail call noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %28)
  %32 = tail call noundef i32 @_ZN7qpOASES9SubjectTo9setStatusEiNS_15SubjectToStatusE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.14962, i32 noundef %31)
  %33 = add nuw nsw i32 %.14962, 1
  %34 = load i32, ptr %7, align 8, !tbaa !5
  %35 = sub nsw i32 %34, %1
  %36 = icmp slt i32 %33, %35
  br i1 %36, label %.lr.ph63, label %.preheader59, !llvm.loop !18

.lr.ph65:                                         ; preds = %.preheader59, %.lr.ph65
  %37 = phi i32 [ %51, %.lr.ph65 ], [ %26, %.preheader59 ]
  %.264 = phi i32 [ %50, %.lr.ph65 ], [ %.lcssa, %.preheader59 ]
  %38 = add i32 %.264, %1
  %39 = sub i32 %38, %37
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %17, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !12
  %43 = tail call noundef i32 @_ZN7qpOASES9SubjectTo7setTypeEiNS_13SubjectToTypeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.264, i32 noundef %42)
  %44 = load i32, ptr %7, align 8, !tbaa !5
  %45 = sub i32 %38, %44
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %18, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !14
  %49 = tail call noundef i32 @_ZN7qpOASES9SubjectTo9setStatusEiNS_15SubjectToStatusE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.264, i32 noundef %48)
  %50 = add nsw i32 %.264, 1
  %51 = load i32, ptr %7, align 8, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %.lr.ph65, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph65, %.preheader59
  tail call void @_ZdaPv(ptr noundef nonnull %18) #9
  tail call void @_ZdaPv(ptr noundef nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #10
  %53 = load i32, ptr %7, align 8, !tbaa !5
  call void @_ZN7qpOASES9IndexlistC1Ei(ptr noundef nonnull align 8 dereferenceable(36) %3, i32 noundef %53)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #10
  %54 = load i32, ptr %7, align 8, !tbaa !5
  invoke void @_ZN7qpOASES9IndexlistC1Ei(ptr noundef nonnull align 8 dereferenceable(36) %4, i32 noundef %54)
          to label %.preheader unwind label %58

.preheader:                                       ; preds = %._crit_edge
  %55 = load i32, ptr %7, align 8, !tbaa !5
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %.preheader, %81
  %.366 = phi i32 [ %82, %81 ], [ 0, %.preheader ]
  %57 = call noundef i32 @_ZNK7qpOASES9SubjectTo9getStatusEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.366)
  switch i32 %57, label %79 [
    i32 0, label %61
    i32 -1, label %69
    i32 1, label %74
  ]

58:                                               ; preds = %._crit_edge
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %91

.loopexit:                                        ; preds = %61, %69, %74
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %60

.loopexit.split-lp:                               ; preds = %.invoke, %64, %72, %77, %79, %._crit_edge68, %87
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %60

60:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #10
  br label %91

61:                                               ; preds = %.lr.ph67
  %62 = invoke noundef i32 @_ZN7qpOASES9Indexlist9addNumberEi(ptr noundef nonnull align 8 dereferenceable(36) %3, i32 noundef %.366)
          to label %63 unwind label %.loopexit

63:                                               ; preds = %61
  %.not55 = icmp eq i32 %62, 0
  br i1 %.not55, label %81, label %64

64:                                               ; preds = %63
  %65 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %.invoke unwind label %.loopexit.split-lp

.invoke:                                          ; preds = %79, %77, %72, %64
  %66 = phi ptr [ %65, %64 ], [ %73, %72 ], [ %78, %77 ], [ %80, %79 ]
  %67 = phi i64 [ 371, %64 ], [ 376, %72 ], [ 381, %77 ], [ 385, %79 ]
  %68 = invoke noundef i32 @_ZN7qpOASES15MessageHandling10throwErrorENS_11returnValueEPKcS3_S3_mNS_16VisibilityStatusE(ptr noundef nonnull align 8 dereferenceable(28) %66, i32 noundef 28, ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef %67, i32 noundef 1)
          to label %90 unwind label %.loopexit.split-lp

69:                                               ; preds = %.lr.ph67
  %70 = invoke noundef i32 @_ZN7qpOASES9Indexlist9addNumberEi(ptr noundef nonnull align 8 dereferenceable(36) %4, i32 noundef %.366)
          to label %71 unwind label %.loopexit

71:                                               ; preds = %69
  %.not54 = icmp eq i32 %70, 0
  br i1 %.not54, label %81, label %72

72:                                               ; preds = %71
  %73 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %.invoke unwind label %.loopexit.split-lp

74:                                               ; preds = %.lr.ph67
  %75 = invoke noundef i32 @_ZN7qpOASES9Indexlist9addNumberEi(ptr noundef nonnull align 8 dereferenceable(36) %4, i32 noundef %.366)
          to label %76 unwind label %.loopexit

76:                                               ; preds = %74
  %.not = icmp eq i32 %75, 0
  br i1 %.not, label %81, label %77

77:                                               ; preds = %76
  %78 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %.invoke unwind label %.loopexit.split-lp

79:                                               ; preds = %.lr.ph67
  %80 = invoke noundef ptr @_ZN7qpOASES23getGlobalMessageHandlerEv()
          to label %.invoke unwind label %.loopexit.split-lp

81:                                               ; preds = %63, %71, %76
  %82 = add nuw nsw i32 %.366, 1
  %83 = load i32, ptr %7, align 8, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %.lr.ph67, label %._crit_edge68, !llvm.loop !20

._crit_edge68:                                    ; preds = %81, %.preheader
  %85 = getelementptr inbounds i8, ptr %0, i64 40
  %86 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN7qpOASES9IndexlistaSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %85, ptr noundef nonnull align 8 dereferenceable(36) %3)
          to label %87 unwind label %.loopexit.split-lp

87:                                               ; preds = %._crit_edge68
  %88 = getelementptr inbounds i8, ptr %0, i64 80
  %89 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN7qpOASES9IndexlistaSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %88, ptr noundef nonnull align 8 dereferenceable(36) %4)
          to label %90 unwind label %.loopexit.split-lp

90:                                               ; preds = %.invoke, %87
  %.047 = phi i32 [ 0, %87 ], [ %68, %.invoke ]
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #10
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %3) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #10
  br label %92

91:                                               ; preds = %60, %58
  %.pn = phi { ptr, i32 } [ %lpad.phi, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #10
  call void @_ZN7qpOASES9IndexlistD1Ev(ptr noundef nonnull align 8 dereferenceable(36) %3) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn

92:                                               ; preds = %2, %6, %90, %12
  %.1 = phi i32 [ %14, %12 ], [ %.047, %90 ], [ 0, %6 ], [ 0, %2 ]
  ret i32 %.1
}

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

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

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { 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, !7, i64 8}
!6 = !{!"_ZTSN7qpOASES9SubjectToE", !7, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !11, i64 36}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSN7qpOASES11BooleanTypeE", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN7qpOASES13SubjectToTypeE", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


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