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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.qpOASES::QProblemB" = type { ptr, i32, ptr, ptr, ptr, ptr, %"class.qpOASES::Bounds", ptr, i32, ptr, ptr, double, i32, i32, i32, i32, double, i32, ptr, double, double, i32, [4 x i8], %"class.qpOASES::Options", %"class.qpOASES::Flipper", %"struct.qpOASES::TabularOutput" }
%"class.qpOASES::Bounds" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"class.qpOASES::SubjectTo" = type { ptr, i32, ptr, ptr, i32, i32 }
%"class.qpOASES::Indexlist" = type <{ ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::Options" = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, double, double, double, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::Flipper" = type { i32, i32, %"class.qpOASES::Bounds", %"class.qpOASES::Constraints", ptr, ptr, ptr }
%"class.qpOASES::Constraints" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"struct.qpOASES::TabularOutput" = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.qpOASES::QProblem" = type { %"class.qpOASES::QProblemB", i32, ptr, ptr, ptr, %"class.qpOASES::Constraints", ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7qpOASES6getAbsEd(double noundef) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem18determineDataShiftEPKdS2_S2_S2_S2_PdS3_S3_S3_S3_RNS_11BooleanTypeES5_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12) #4 align 2 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %34 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %33)
  store i32 %34, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %35 = call noundef i32 @_ZNK7qpOASES8QProblem6getNACEv(ptr noundef nonnull align 8 dereferenceable(1064) %33)
  store i32 %35, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %36 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %33, i32 0, i32 6
  %37 = call noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120) %36)
  %38 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %37, ptr noundef %31)
  %39 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %33, i32 0, i32 5
  %40 = call noundef ptr @_ZN7qpOASES11Constraints9getActiveEv(ptr noundef nonnull align 8 dereferenceable(120) %39)
  %41 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %40, ptr noundef %32)
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = load ptr, ptr %18, align 8, !tbaa !5
  %44 = load ptr, ptr %19, align 8, !tbaa !5
  %45 = load ptr, ptr %20, align 8, !tbaa !5
  %46 = load ptr, ptr %23, align 8, !tbaa !5
  %47 = load ptr, ptr %24, align 8, !tbaa !5
  %48 = load ptr, ptr %26, align 8, !tbaa !5
  %49 = call noundef i32 @_ZN7qpOASES9QProblemB18determineDataShiftEPKdS2_S2_PdS3_S3_RNS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800) %33, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef nonnull align 4 dereferenceable(4) %48)
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %87, %13
  %51 = load i32, ptr %27, align 4, !tbaa !9
  %52 = load i32, ptr %29, align 4, !tbaa !9
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %54, label %90

54:                                               ; preds = %50
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %74

57:                                               ; preds = %54
  %58 = load ptr, ptr %16, align 8, !tbaa !5
  %59 = load i32, ptr %27, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %58, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %33, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = load i32, ptr %27, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %64, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = fsub double %62, %68
  %70 = load ptr, ptr %21, align 8, !tbaa !5
  %71 = load i32, ptr %27, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %70, i64 %72
  store double %69, ptr %73, align 8, !tbaa !11
  br label %86

74:                                               ; preds = %54
  %75 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %33, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = load i32, ptr %27, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %76, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = fsub double -1.000000e+20, %80
  %82 = load ptr, ptr %21, align 8, !tbaa !5
  %83 = load i32, ptr %27, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  store double %81, ptr %85, align 8, !tbaa !11
  br label %86

86:                                               ; preds = %74, %57
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %27, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %27, align 4, !tbaa !9
  br label %50, !llvm.loop !28

90:                                               ; preds = %50
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %128, %90
  %92 = load i32, ptr %27, align 4, !tbaa !9
  %93 = load i32, ptr %29, align 4, !tbaa !9
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %95, label %131

95:                                               ; preds = %91
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %115

98:                                               ; preds = %95
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = load i32, ptr %27, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %33, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  %106 = load i32, ptr %27, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !11
  %110 = fsub double %103, %109
  %111 = load ptr, ptr %22, align 8, !tbaa !5
  %112 = load i32, ptr %27, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  store double %110, ptr %114, align 8, !tbaa !11
  br label %127

115:                                              ; preds = %95
  %116 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %33, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !30
  %118 = load i32, ptr %27, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = fsub double 1.000000e+20, %121
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  %124 = load i32, ptr %27, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  store double %122, ptr %126, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %115, %98
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %27, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %27, align 4, !tbaa !9
  br label %91, !llvm.loop !31

131:                                              ; preds = %91
  %132 = load ptr, ptr %25, align 8, !tbaa !5
  store i32 1, ptr %132, align 4, !tbaa !32
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %161, %131
  %134 = load i32, ptr %27, align 4, !tbaa !9
  %135 = load i32, ptr %30, align 4, !tbaa !9
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %137, label %164

137:                                              ; preds = %133
  %138 = load ptr, ptr %32, align 8, !tbaa !5
  %139 = load i32, ptr %27, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %138, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !9
  store i32 %142, ptr %28, align 4, !tbaa !9
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = load i32, ptr %28, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %143, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  %148 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %147)
  %149 = fcmp ogt double %148, 2.221000e-16
  br i1 %149, label %158, label %150

150:                                              ; preds = %137
  %151 = load ptr, ptr %22, align 8, !tbaa !5
  %152 = load i32, ptr %28, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %155)
  %157 = fcmp ogt double %156, 2.221000e-16
  br i1 %157, label %158, label %160

158:                                              ; preds = %150, %137
  %159 = load ptr, ptr %25, align 8, !tbaa !5
  store i32 0, ptr %159, align 4, !tbaa !32
  br label %164

160:                                              ; preds = %150
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %27, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %27, align 4, !tbaa !9
  br label %133, !llvm.loop !33

164:                                              ; preds = %158, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  ret i32 0
}

declare noundef i32 @_ZN7qpOASES9QProblemB18determineDataShiftEPKdS2_S2_PdS3_S3_RNS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 816}
!14 = !{!"_ZTSN7qpOASES8QProblemE", !15, i64 0, !16, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !26, i64 832, !6, i64 952, !6, i64 960, !10, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056}
!15 = !{!"_ZTSN7qpOASES9QProblemBE", !16, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !6, i64 168, !16, i64 176, !6, i64 184, !6, i64 192, !12, i64 200, !20, i64 208, !16, i64 212, !16, i64 216, !21, i64 220, !12, i64 224, !10, i64 232, !6, i64 240, !12, i64 248, !12, i64 256, !10, i64 264, !22, i64 272, !25, i64 496, !27, i64 768}
!16 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!17 = !{!"_ZTSN7qpOASES6BoundsE", !18, i64 0, !19, i64 40, !19, i64 80}
!18 = !{!"_ZTSN7qpOASES9SubjectToE", !10, i64 8, !6, i64 16, !6, i64 24, !16, i64 32, !16, i64 36}
!19 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!20 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!21 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!22 = !{!"_ZTSN7qpOASES7OptionsE", !23, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !10, i64 28, !10, i64 32, !16, i64 36, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !24, i64 128, !12, i64 136, !10, i64 144, !12, i64 152, !10, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !16, i64 200, !16, i64 204, !10, i64 208, !10, i64 212, !10, i64 216}
!23 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!24 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!25 = !{!"_ZTSN7qpOASES7FlipperE", !10, i64 0, !10, i64 4, !17, i64 8, !26, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!26 = !{!"_ZTSN7qpOASES11ConstraintsE", !18, i64 0, !19, i64 40, !19, i64 80}
!27 = !{!"_ZTSN7qpOASES13TabularOutputE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!14, !6, i64 824}
!31 = distinct !{!31, !29}
!32 = !{!16, !16, i64 0}
!33 = distinct !{!33, !29}


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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7qpOASES6getAbsEd(double noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem18determineDataShiftEPKdS2_S2_S2_S2_PdS3_S3_S3_S3_RNS_11BooleanTypeES5_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %1, ptr noundef readonly %2, ptr noundef readonly %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef %7, ptr nocapture noundef %8, ptr noundef %9, ptr noundef %10, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12) local_unnamed_addr #4 align 2 {
  %14 = ptrtoint ptr %8 to i64
  %15 = ptrtoint ptr %3 to i64
  %16 = ptrtoint ptr %8 to i64
  %17 = ptrtoint ptr %7 to i64
  %18 = ptrtoint ptr %2 to i64
  %19 = ptrtoint ptr %7 to i64
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = tail call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %23 = tail call noundef i32 @_ZNK7qpOASES8QProblem6getNACEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  %24 = getelementptr inbounds i8, ptr %0, i64 48
  %25 = tail call noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120) %24)
  %26 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %25, ptr noundef nonnull %20)
  %27 = getelementptr inbounds i8, ptr %0, i64 832
  %28 = call noundef ptr @_ZN7qpOASES11Constraints9getActiveEv(ptr noundef nonnull align 8 dereferenceable(120) %27)
  %29 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %28, ptr noundef nonnull %21)
  %30 = call noundef i32 @_ZN7qpOASES9QProblemB18determineDataShiftEPKdS2_S2_PdS3_S3_RNS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800) %0, ptr noundef %1, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %31 = icmp sgt i32 %22, 0
  br i1 %31, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %13
  %.not44 = icmp eq ptr %2, null
  %32 = getelementptr inbounds i8, ptr %0, i64 816
  %33 = load ptr, ptr %32, align 8
  %34 = ptrtoint ptr %33 to i64
  %wide.trip.count57 = zext nneg i32 %22 to i64
  br i1 %.not44, label %.lr.ph.split.us.preheader, label %.lr.ph.split.preheader

.lr.ph.split.preheader:                           ; preds = %.lr.ph
  %min.iters.check = icmp ult i32 %22, 8
  br i1 %min.iters.check, label %.lr.ph.split.preheader136, label %vector.memcheck

.lr.ph.split.preheader136:                        ; preds = %middle.block, %vector.memcheck, %.lr.ph.split.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.split.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count57, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.split.prol.loopexit, label %.lr.ph.split.prol

.lr.ph.split.prol:                                ; preds = %.lr.ph.split.preheader136, %.lr.ph.split.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.split.prol ], [ %indvars.iv.ph, %.lr.ph.split.preheader136 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.split.prol ], [ 0, %.lr.ph.split.preheader136 ]
  %35 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.prol
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.prol
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = fsub double %36, %38
  %40 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.prol
  store double %39, ptr %40, align 8, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.split.prol.loopexit, label %.lr.ph.split.prol, !llvm.loop !9

.lr.ph.split.prol.loopexit:                       ; preds = %.lr.ph.split.prol, %.lr.ph.split.preheader136
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.split.preheader136 ], [ %indvars.iv.next.prol, %.lr.ph.split.prol ]
  %41 = sub nsw i64 %indvars.iv.ph, %wide.trip.count57
  %42 = icmp ugt i64 %41, -4
  br i1 %42, label %.preheader, label %.lr.ph.split

vector.memcheck:                                  ; preds = %.lr.ph.split.preheader
  %43 = sub i64 %19, %18
  %diff.check = icmp ult i64 %43, 32
  %44 = sub i64 %19, %34
  %diff.check78 = icmp ult i64 %44, 32
  %conflict.rdx = or i1 %diff.check, %diff.check78
  br i1 %conflict.rdx, label %.lr.ph.split.preheader136, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count57, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %45 = getelementptr inbounds double, ptr %2, i64 %index
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load = load <2 x double>, ptr %45, align 8, !tbaa !5
  %wide.load79 = load <2 x double>, ptr %46, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %33, i64 %index
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %wide.load80 = load <2 x double>, ptr %47, align 8, !tbaa !5
  %wide.load81 = load <2 x double>, ptr %48, align 8, !tbaa !5
  %49 = fsub <2 x double> %wide.load, %wide.load80
  %50 = fsub <2 x double> %wide.load79, %wide.load81
  %51 = getelementptr inbounds double, ptr %7, i64 %index
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  store <2 x double> %49, ptr %51, align 8, !tbaa !5
  store <2 x double> %50, ptr %52, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %53 = icmp eq i64 %index.next, %n.vec
  br i1 %53, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count57
  br i1 %cmp.n, label %.preheader, label %.lr.ph.split.preheader136

.lr.ph.split.us.preheader:                        ; preds = %.lr.ph
  %min.iters.check86 = icmp ult i32 %22, 4
  %54 = sub i64 %17, %34
  %diff.check83 = icmp ult i64 %54, 32
  %or.cond = select i1 %min.iters.check86, i1 true, i1 %diff.check83
  br i1 %or.cond, label %.lr.ph.split.us.preheader135, label %vector.ph87

vector.ph87:                                      ; preds = %.lr.ph.split.us.preheader
  %n.vec89 = and i64 %wide.trip.count57, 2147483644
  br label %vector.body91

vector.body91:                                    ; preds = %vector.body91, %vector.ph87
  %index92 = phi i64 [ 0, %vector.ph87 ], [ %index.next95, %vector.body91 ]
  %55 = getelementptr inbounds double, ptr %33, i64 %index92
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load93 = load <2 x double>, ptr %55, align 8, !tbaa !5
  %wide.load94 = load <2 x double>, ptr %56, align 8, !tbaa !5
  %57 = fsub <2 x double> <double -1.000000e+20, double -1.000000e+20>, %wide.load93
  %58 = fsub <2 x double> <double -1.000000e+20, double -1.000000e+20>, %wide.load94
  %59 = getelementptr inbounds double, ptr %7, i64 %index92
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  store <2 x double> %57, ptr %59, align 8, !tbaa !5
  store <2 x double> %58, ptr %60, align 8, !tbaa !5
  %index.next95 = add nuw i64 %index92, 4
  %61 = icmp eq i64 %index.next95, %n.vec89
  br i1 %61, label %middle.block84, label %vector.body91, !llvm.loop !15

middle.block84:                                   ; preds = %vector.body91
  %cmp.n96 = icmp eq i64 %n.vec89, %wide.trip.count57
  br i1 %cmp.n96, label %.preheader, label %.lr.ph.split.us.preheader135

.lr.ph.split.us.preheader135:                     ; preds = %middle.block84, %.lr.ph.split.us.preheader
  %indvars.iv54.ph = phi i64 [ 0, %.lr.ph.split.us.preheader ], [ %n.vec89, %middle.block84 ]
  %xtraiter138 = and i64 %wide.trip.count57, 3
  %lcmp.mod139.not = icmp eq i64 %xtraiter138, 0
  br i1 %lcmp.mod139.not, label %.lr.ph.split.us.prol.loopexit, label %.lr.ph.split.us.prol

.lr.ph.split.us.prol:                             ; preds = %.lr.ph.split.us.preheader135, %.lr.ph.split.us.prol
  %indvars.iv54.prol = phi i64 [ %indvars.iv.next55.prol, %.lr.ph.split.us.prol ], [ %indvars.iv54.ph, %.lr.ph.split.us.preheader135 ]
  %prol.iter140 = phi i64 [ %prol.iter140.next, %.lr.ph.split.us.prol ], [ 0, %.lr.ph.split.us.preheader135 ]
  %62 = getelementptr inbounds double, ptr %33, i64 %indvars.iv54.prol
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = fsub double -1.000000e+20, %63
  %65 = getelementptr inbounds double, ptr %7, i64 %indvars.iv54.prol
  store double %64, ptr %65, align 8, !tbaa !5
  %indvars.iv.next55.prol = add nuw nsw i64 %indvars.iv54.prol, 1
  %prol.iter140.next = add i64 %prol.iter140, 1
  %prol.iter140.cmp.not = icmp eq i64 %prol.iter140.next, %xtraiter138
  br i1 %prol.iter140.cmp.not, label %.lr.ph.split.us.prol.loopexit, label %.lr.ph.split.us.prol, !llvm.loop !16

.lr.ph.split.us.prol.loopexit:                    ; preds = %.lr.ph.split.us.prol, %.lr.ph.split.us.preheader135
  %indvars.iv54.unr = phi i64 [ %indvars.iv54.ph, %.lr.ph.split.us.preheader135 ], [ %indvars.iv.next55.prol, %.lr.ph.split.us.prol ]
  %66 = sub nsw i64 %indvars.iv54.ph, %wide.trip.count57
  %67 = icmp ugt i64 %66, -4
  br i1 %67, label %.preheader, label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us.prol.loopexit, %.lr.ph.split.us
  %indvars.iv54 = phi i64 [ %indvars.iv.next55.3, %.lr.ph.split.us ], [ %indvars.iv54.unr, %.lr.ph.split.us.prol.loopexit ]
  %68 = getelementptr inbounds double, ptr %33, i64 %indvars.iv54
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = fsub double -1.000000e+20, %69
  %71 = getelementptr inbounds double, ptr %7, i64 %indvars.iv54
  store double %70, ptr %71, align 8, !tbaa !5
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %72 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next55
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fsub double -1.000000e+20, %73
  %75 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next55
  store double %74, ptr %75, align 8, !tbaa !5
  %indvars.iv.next55.1 = add nuw nsw i64 %indvars.iv54, 2
  %76 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next55.1
  %77 = load double, ptr %76, align 8, !tbaa !5
  %78 = fsub double -1.000000e+20, %77
  %79 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next55.1
  store double %78, ptr %79, align 8, !tbaa !5
  %indvars.iv.next55.2 = add nuw nsw i64 %indvars.iv54, 3
  %80 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next55.2
  %81 = load double, ptr %80, align 8, !tbaa !5
  %82 = fsub double -1.000000e+20, %81
  %83 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next55.2
  store double %82, ptr %83, align 8, !tbaa !5
  %indvars.iv.next55.3 = add nuw nsw i64 %indvars.iv54, 4
  %exitcond58.not.3 = icmp eq i64 %indvars.iv.next55.3, %wide.trip.count57
  br i1 %exitcond58.not.3, label %.preheader, label %.lr.ph.split.us, !llvm.loop !17

.preheader:                                       ; preds = %.lr.ph.split.prol.loopexit, %.lr.ph.split, %.lr.ph.split.us.prol.loopexit, %.lr.ph.split.us, %middle.block, %middle.block84
  br i1 %31, label %.lr.ph47, label %._crit_edge

.lr.ph47:                                         ; preds = %.preheader
  %.not = icmp eq ptr %3, null
  %84 = getelementptr inbounds i8, ptr %0, i64 824
  %85 = load ptr, ptr %84, align 8
  %86 = ptrtoint ptr %85 to i64
  %wide.trip.count67 = zext nneg i32 %22 to i64
  br i1 %.not, label %.lr.ph47.split.us.preheader, label %.lr.ph47.split.preheader

.lr.ph47.split.preheader:                         ; preds = %.lr.ph47
  %min.iters.check103 = icmp ult i32 %22, 8
  br i1 %min.iters.check103, label %.lr.ph47.split.preheader133, label %vector.memcheck97

.lr.ph47.split.preheader133:                      ; preds = %middle.block101, %vector.memcheck97, %.lr.ph47.split.preheader
  %indvars.iv59.ph = phi i64 [ 0, %vector.memcheck97 ], [ 0, %.lr.ph47.split.preheader ], [ %n.vec106, %middle.block101 ]
  %xtraiter141 = and i64 %wide.trip.count57, 3
  %lcmp.mod142.not = icmp eq i64 %xtraiter141, 0
  br i1 %lcmp.mod142.not, label %.lr.ph47.split.prol.loopexit, label %.lr.ph47.split.prol

.lr.ph47.split.prol:                              ; preds = %.lr.ph47.split.preheader133, %.lr.ph47.split.prol
  %indvars.iv59.prol = phi i64 [ %indvars.iv.next60.prol, %.lr.ph47.split.prol ], [ %indvars.iv59.ph, %.lr.ph47.split.preheader133 ]
  %prol.iter143 = phi i64 [ %prol.iter143.next, %.lr.ph47.split.prol ], [ 0, %.lr.ph47.split.preheader133 ]
  %87 = getelementptr inbounds double, ptr %3, i64 %indvars.iv59.prol
  %88 = load double, ptr %87, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %85, i64 %indvars.iv59.prol
  %90 = load double, ptr %89, align 8, !tbaa !5
  %91 = fsub double %88, %90
  %92 = getelementptr inbounds double, ptr %8, i64 %indvars.iv59.prol
  store double %91, ptr %92, align 8, !tbaa !5
  %indvars.iv.next60.prol = add nuw nsw i64 %indvars.iv59.prol, 1
  %prol.iter143.next = add i64 %prol.iter143, 1
  %prol.iter143.cmp.not = icmp eq i64 %prol.iter143.next, %xtraiter141
  br i1 %prol.iter143.cmp.not, label %.lr.ph47.split.prol.loopexit, label %.lr.ph47.split.prol, !llvm.loop !18

.lr.ph47.split.prol.loopexit:                     ; preds = %.lr.ph47.split.prol, %.lr.ph47.split.preheader133
  %indvars.iv59.unr = phi i64 [ %indvars.iv59.ph, %.lr.ph47.split.preheader133 ], [ %indvars.iv.next60.prol, %.lr.ph47.split.prol ]
  %93 = sub nsw i64 %indvars.iv59.ph, %wide.trip.count57
  %94 = icmp ugt i64 %93, -4
  br i1 %94, label %._crit_edge, label %.lr.ph47.split

vector.memcheck97:                                ; preds = %.lr.ph47.split.preheader
  %95 = sub i64 %16, %15
  %diff.check98 = icmp ult i64 %95, 32
  %96 = sub i64 %16, %86
  %diff.check99 = icmp ult i64 %96, 32
  %conflict.rdx100 = or i1 %diff.check98, %diff.check99
  br i1 %conflict.rdx100, label %.lr.ph47.split.preheader133, label %vector.ph104

vector.ph104:                                     ; preds = %vector.memcheck97
  %n.vec106 = and i64 %wide.trip.count57, 2147483644
  br label %vector.body108

vector.body108:                                   ; preds = %vector.body108, %vector.ph104
  %index109 = phi i64 [ 0, %vector.ph104 ], [ %index.next114, %vector.body108 ]
  %97 = getelementptr inbounds double, ptr %3, i64 %index109
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %wide.load110 = load <2 x double>, ptr %97, align 8, !tbaa !5
  %wide.load111 = load <2 x double>, ptr %98, align 8, !tbaa !5
  %99 = getelementptr inbounds double, ptr %85, i64 %index109
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  %wide.load112 = load <2 x double>, ptr %99, align 8, !tbaa !5
  %wide.load113 = load <2 x double>, ptr %100, align 8, !tbaa !5
  %101 = fsub <2 x double> %wide.load110, %wide.load112
  %102 = fsub <2 x double> %wide.load111, %wide.load113
  %103 = getelementptr inbounds double, ptr %8, i64 %index109
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  store <2 x double> %101, ptr %103, align 8, !tbaa !5
  store <2 x double> %102, ptr %104, align 8, !tbaa !5
  %index.next114 = add nuw i64 %index109, 4
  %105 = icmp eq i64 %index.next114, %n.vec106
  br i1 %105, label %middle.block101, label %vector.body108, !llvm.loop !19

middle.block101:                                  ; preds = %vector.body108
  %cmp.n115 = icmp eq i64 %n.vec106, %wide.trip.count57
  br i1 %cmp.n115, label %._crit_edge, label %.lr.ph47.split.preheader133

.lr.ph47.split.us.preheader:                      ; preds = %.lr.ph47
  %min.iters.check120 = icmp ult i32 %22, 4
  %106 = sub i64 %14, %86
  %diff.check117 = icmp ult i64 %106, 32
  %or.cond131 = select i1 %min.iters.check120, i1 true, i1 %diff.check117
  br i1 %or.cond131, label %.lr.ph47.split.us.preheader132, label %vector.ph121

vector.ph121:                                     ; preds = %.lr.ph47.split.us.preheader
  %n.vec123 = and i64 %wide.trip.count57, 2147483644
  br label %vector.body125

vector.body125:                                   ; preds = %vector.body125, %vector.ph121
  %index126 = phi i64 [ 0, %vector.ph121 ], [ %index.next129, %vector.body125 ]
  %107 = getelementptr inbounds double, ptr %85, i64 %index126
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  %wide.load127 = load <2 x double>, ptr %107, align 8, !tbaa !5
  %wide.load128 = load <2 x double>, ptr %108, align 8, !tbaa !5
  %109 = fsub <2 x double> <double 1.000000e+20, double 1.000000e+20>, %wide.load127
  %110 = fsub <2 x double> <double 1.000000e+20, double 1.000000e+20>, %wide.load128
  %111 = getelementptr inbounds double, ptr %8, i64 %index126
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  store <2 x double> %109, ptr %111, align 8, !tbaa !5
  store <2 x double> %110, ptr %112, align 8, !tbaa !5
  %index.next129 = add nuw i64 %index126, 4
  %113 = icmp eq i64 %index.next129, %n.vec123
  br i1 %113, label %middle.block118, label %vector.body125, !llvm.loop !20

middle.block118:                                  ; preds = %vector.body125
  %cmp.n130 = icmp eq i64 %n.vec123, %wide.trip.count57
  br i1 %cmp.n130, label %._crit_edge, label %.lr.ph47.split.us.preheader132

.lr.ph47.split.us.preheader132:                   ; preds = %middle.block118, %.lr.ph47.split.us.preheader
  %indvars.iv64.ph = phi i64 [ 0, %.lr.ph47.split.us.preheader ], [ %n.vec123, %middle.block118 ]
  %xtraiter144 = and i64 %wide.trip.count57, 3
  %lcmp.mod145.not = icmp eq i64 %xtraiter144, 0
  br i1 %lcmp.mod145.not, label %.lr.ph47.split.us.prol.loopexit, label %.lr.ph47.split.us.prol

.lr.ph47.split.us.prol:                           ; preds = %.lr.ph47.split.us.preheader132, %.lr.ph47.split.us.prol
  %indvars.iv64.prol = phi i64 [ %indvars.iv.next65.prol, %.lr.ph47.split.us.prol ], [ %indvars.iv64.ph, %.lr.ph47.split.us.preheader132 ]
  %prol.iter146 = phi i64 [ %prol.iter146.next, %.lr.ph47.split.us.prol ], [ 0, %.lr.ph47.split.us.preheader132 ]
  %114 = getelementptr inbounds double, ptr %85, i64 %indvars.iv64.prol
  %115 = load double, ptr %114, align 8, !tbaa !5
  %116 = fsub double 1.000000e+20, %115
  %117 = getelementptr inbounds double, ptr %8, i64 %indvars.iv64.prol
  store double %116, ptr %117, align 8, !tbaa !5
  %indvars.iv.next65.prol = add nuw nsw i64 %indvars.iv64.prol, 1
  %prol.iter146.next = add i64 %prol.iter146, 1
  %prol.iter146.cmp.not = icmp eq i64 %prol.iter146.next, %xtraiter144
  br i1 %prol.iter146.cmp.not, label %.lr.ph47.split.us.prol.loopexit, label %.lr.ph47.split.us.prol, !llvm.loop !21

.lr.ph47.split.us.prol.loopexit:                  ; preds = %.lr.ph47.split.us.prol, %.lr.ph47.split.us.preheader132
  %indvars.iv64.unr = phi i64 [ %indvars.iv64.ph, %.lr.ph47.split.us.preheader132 ], [ %indvars.iv.next65.prol, %.lr.ph47.split.us.prol ]
  %118 = sub nsw i64 %indvars.iv64.ph, %wide.trip.count57
  %119 = icmp ugt i64 %118, -4
  br i1 %119, label %._crit_edge, label %.lr.ph47.split.us

.lr.ph47.split.us:                                ; preds = %.lr.ph47.split.us.prol.loopexit, %.lr.ph47.split.us
  %indvars.iv64 = phi i64 [ %indvars.iv.next65.3, %.lr.ph47.split.us ], [ %indvars.iv64.unr, %.lr.ph47.split.us.prol.loopexit ]
  %120 = getelementptr inbounds double, ptr %85, i64 %indvars.iv64
  %121 = load double, ptr %120, align 8, !tbaa !5
  %122 = fsub double 1.000000e+20, %121
  %123 = getelementptr inbounds double, ptr %8, i64 %indvars.iv64
  store double %122, ptr %123, align 8, !tbaa !5
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %124 = getelementptr inbounds double, ptr %85, i64 %indvars.iv.next65
  %125 = load double, ptr %124, align 8, !tbaa !5
  %126 = fsub double 1.000000e+20, %125
  %127 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next65
  store double %126, ptr %127, align 8, !tbaa !5
  %indvars.iv.next65.1 = add nuw nsw i64 %indvars.iv64, 2
  %128 = getelementptr inbounds double, ptr %85, i64 %indvars.iv.next65.1
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = fsub double 1.000000e+20, %129
  %131 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next65.1
  store double %130, ptr %131, align 8, !tbaa !5
  %indvars.iv.next65.2 = add nuw nsw i64 %indvars.iv64, 3
  %132 = getelementptr inbounds double, ptr %85, i64 %indvars.iv.next65.2
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = fsub double 1.000000e+20, %133
  %135 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next65.2
  store double %134, ptr %135, align 8, !tbaa !5
  %indvars.iv.next65.3 = add nuw nsw i64 %indvars.iv64, 4
  %exitcond68.not.3 = icmp eq i64 %indvars.iv.next65.3, %wide.trip.count67
  br i1 %exitcond68.not.3, label %._crit_edge, label %.lr.ph47.split.us, !llvm.loop !22

.lr.ph.split:                                     ; preds = %.lr.ph.split.prol.loopexit, %.lr.ph.split
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph.split ], [ %indvars.iv.unr, %.lr.ph.split.prol.loopexit ]
  %136 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %137 = load double, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds double, ptr %33, i64 %indvars.iv
  %139 = load double, ptr %138, align 8, !tbaa !5
  %140 = fsub double %137, %139
  %141 = getelementptr inbounds double, ptr %7, i64 %indvars.iv
  store double %140, ptr %141, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %142 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next
  %145 = load double, ptr %144, align 8, !tbaa !5
  %146 = fsub double %143, %145
  %147 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next
  store double %146, ptr %147, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %148 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.1
  %149 = load double, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next.1
  %151 = load double, ptr %150, align 8, !tbaa !5
  %152 = fsub double %149, %151
  %153 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next.1
  store double %152, ptr %153, align 8, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %154 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.2
  %155 = load double, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next.2
  %157 = load double, ptr %156, align 8, !tbaa !5
  %158 = fsub double %155, %157
  %159 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next.2
  store double %158, ptr %159, align 8, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count57
  br i1 %exitcond.not.3, label %.preheader, label %.lr.ph.split, !llvm.loop !23

.lr.ph47.split:                                   ; preds = %.lr.ph47.split.prol.loopexit, %.lr.ph47.split
  %indvars.iv59 = phi i64 [ %indvars.iv.next60.3, %.lr.ph47.split ], [ %indvars.iv59.unr, %.lr.ph47.split.prol.loopexit ]
  %160 = getelementptr inbounds double, ptr %3, i64 %indvars.iv59
  %161 = load double, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %85, i64 %indvars.iv59
  %163 = load double, ptr %162, align 8, !tbaa !5
  %164 = fsub double %161, %163
  %165 = getelementptr inbounds double, ptr %8, i64 %indvars.iv59
  store double %164, ptr %165, align 8, !tbaa !5
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %166 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next60
  %167 = load double, ptr %166, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %85, i64 %indvars.iv.next60
  %169 = load double, ptr %168, align 8, !tbaa !5
  %170 = fsub double %167, %169
  %171 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next60
  store double %170, ptr %171, align 8, !tbaa !5
  %indvars.iv.next60.1 = add nuw nsw i64 %indvars.iv59, 2
  %172 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next60.1
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = getelementptr inbounds double, ptr %85, i64 %indvars.iv.next60.1
  %175 = load double, ptr %174, align 8, !tbaa !5
  %176 = fsub double %173, %175
  %177 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next60.1
  store double %176, ptr %177, align 8, !tbaa !5
  %indvars.iv.next60.2 = add nuw nsw i64 %indvars.iv59, 3
  %178 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next60.2
  %179 = load double, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds double, ptr %85, i64 %indvars.iv.next60.2
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = fsub double %179, %181
  %183 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next60.2
  store double %182, ptr %183, align 8, !tbaa !5
  %indvars.iv.next60.3 = add nuw nsw i64 %indvars.iv59, 4
  %exitcond63.not.3 = icmp eq i64 %indvars.iv.next60.3, %wide.trip.count67
  br i1 %exitcond63.not.3, label %._crit_edge, label %.lr.ph47.split, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph47.split.prol.loopexit, %.lr.ph47.split, %.lr.ph47.split.us.prol.loopexit, %.lr.ph47.split.us, %middle.block101, %middle.block118, %13, %.preheader
  store i32 1, ptr %11, align 4, !tbaa !25
  %184 = icmp sgt i32 %23, 0
  br i1 %184, label %.lr.ph50.preheader, label %.loopexit

.lr.ph50.preheader:                               ; preds = %._crit_edge
  %wide.trip.count72 = zext nneg i32 %23 to i64
  br label %.lr.ph50

185:                                              ; preds = %194
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  br i1 %exitcond73.not, label %.loopexit, label %.lr.ph50, !llvm.loop !27

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %185
  %indvars.iv69 = phi i64 [ 0, %.lr.ph50.preheader ], [ %indvars.iv.next70, %185 ]
  %186 = load ptr, ptr %21, align 8, !tbaa !28
  %187 = getelementptr inbounds i32, ptr %186, i64 %indvars.iv69
  %188 = load i32, ptr %187, align 4, !tbaa !30
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %7, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !5
  %192 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %191)
  %193 = fcmp ogt double %192, 2.221000e-16
  br i1 %193, label %199, label %194

194:                                              ; preds = %.lr.ph50
  %195 = getelementptr inbounds double, ptr %8, i64 %189
  %196 = load double, ptr %195, align 8, !tbaa !5
  %197 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %196)
  %198 = fcmp ogt double %197, 2.221000e-16
  br i1 %198, label %199, label %185

199:                                              ; preds = %194, %.lr.ph50
  store i32 0, ptr %11, align 4, !tbaa !25
  br label %.loopexit

.loopexit:                                        ; preds = %185, %._crit_edge, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  ret i32 0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !13, !14}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !12, !13}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !12, !13, !14}
!20 = distinct !{!20, !12, !13, !14}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !12, !13}
!23 = distinct !{!23, !12, !13}
!24 = distinct !{!24, !12, !13}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!27 = distinct !{!27, !12}
!28 = !{!29, !29, i64 0}
!29 = !{!"any pointer", !7, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass