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

; 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.2 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [73 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES9QProblemB15printPropertiesEv(ptr noundef nonnull align 8 dereferenceable(800) %0) unnamed_addr #2 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca [160 x i8], align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8
  %6 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 23
  %7 = getelementptr inbounds %"class.qpOASES::Options", ptr %6, i32 0, i32 0
  %8 = load i32, ptr %7, align 8, !tbaa !9
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %1
  store i32 0, ptr %2, align 4
  br label %101

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 160, ptr %4) #6
  %12 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.2)
  %13 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.3)
  %14 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
  %15 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %5)
  %16 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %14, i64 noundef 160, ptr noundef @.str.4, i32 noundef %15) #6
  %17 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
  %18 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef %17)
  %19 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 6
  %20 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoLowerEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %24

22:                                               ; preds = %11
  %23 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.5)
  br label %26

24:                                               ; preds = %11
  %25 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.6)
  br label %26

26:                                               ; preds = %24, %22
  %27 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 6
  %28 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoUpperEv(ptr noundef nonnull align 8 dereferenceable(40) %27)
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %30, label %32

30:                                               ; preds = %26
  %31 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.7)
  br label %34

32:                                               ; preds = %26
  %33 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.8)
  br label %34

34:                                               ; preds = %32, %30
  %35 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.3)
  %36 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 15
  %37 = load i32, ptr %36, align 4, !tbaa !25
  switch i32 %37, label %50 [
    i32 0, label %38
    i32 1, label %40
    i32 2, label %42
    i32 3, label %44
    i32 4, label %46
    i32 5, label %48
  ]

38:                                               ; preds = %34
  %39 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.9)
  br label %52

40:                                               ; preds = %34
  %41 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.10)
  br label %52

42:                                               ; preds = %34
  %43 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.11)
  br label %52

44:                                               ; preds = %34
  %45 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.12)
  br label %52

46:                                               ; preds = %34
  %47 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.13)
  br label %52

48:                                               ; preds = %34
  %49 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.14)
  br label %52

50:                                               ; preds = %34
  %51 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.15)
  br label %52

52:                                               ; preds = %50, %48, %46, %44, %42, %40, %38
  %53 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 13
  %54 = load i32, ptr %53, align 4, !tbaa !26
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  %57 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.16)
  br label %60

58:                                               ; preds = %52
  %59 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.17)
  br label %60

60:                                               ; preds = %58, %56
  %61 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 14
  %62 = load i32, ptr %61, align 8, !tbaa !27
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.18)
  br label %68

66:                                               ; preds = %60
  %67 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.19)
  br label %68

68:                                               ; preds = %66, %64
  %69 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.3)
  %70 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 12
  %71 = load i32, ptr %70, align 8, !tbaa !28
  switch i32 %71, label %84 [
    i32 0, label %72
    i32 1, label %74
    i32 2, label %76
    i32 3, label %78
    i32 4, label %80
    i32 5, label %82
  ]

72:                                               ; preds = %68
  %73 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.20)
  br label %84

74:                                               ; preds = %68
  %75 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.21)
  br label %84

76:                                               ; preds = %68
  %77 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.22)
  br label %84

78:                                               ; preds = %68
  %79 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.23)
  br label %84

80:                                               ; preds = %68
  %81 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.24)
  br label %84

82:                                               ; preds = %68
  %83 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.25)
  br label %84

84:                                               ; preds = %82, %80, %78, %76, %74, %72, %68
  %85 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 23
  %86 = getelementptr inbounds %"class.qpOASES::Options", ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !9
  switch i32 %87, label %98 [
    i32 -2, label %88
    i32 -1, label %90
    i32 1, label %92
    i32 2, label %94
    i32 3, label %96
  ]

88:                                               ; preds = %84
  %89 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.26)
  br label %99

90:                                               ; preds = %84
  %91 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.27)
  br label %99

92:                                               ; preds = %84
  %93 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.28)
  br label %99

94:                                               ; preds = %84
  %95 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.29)
  br label %99

96:                                               ; preds = %84
  %97 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.30)
  br label %99

98:                                               ; preds = %84
  br label %99

99:                                               ; preds = %98, %96, %94, %92, %90, %88
  %100 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.3)
  store i32 0, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 160, ptr %4) #6
  br label %101

101:                                              ; preds = %99, %10
  %102 = load i32, ptr %2, align 4
  ret i32 %102
}

declare noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

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

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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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, !20, i64 272}
!10 = !{!"_ZTSN7qpOASES9QProblemBE", !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 168, !11, i64 176, !6, i64 184, !6, i64 192, !16, i64 200, !17, i64 208, !11, i64 212, !11, i64 216, !18, i64 220, !16, i64 224, !14, i64 232, !6, i64 240, !16, i64 248, !16, i64 256, !14, i64 264, !19, i64 272, !22, i64 496, !24, i64 768}
!11 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!12 = !{!"_ZTSN7qpOASES6BoundsE", !13, i64 0, !15, i64 40, !15, i64 80}
!13 = !{!"_ZTSN7qpOASES9SubjectToE", !14, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!18 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!19 = !{!"_ZTSN7qpOASES7OptionsE", !20, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !14, i64 28, !14, i64 32, !11, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !21, i64 128, !16, i64 136, !14, i64 144, !16, i64 152, !14, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !11, i64 200, !11, i64 204, !14, i64 208, !14, i64 212, !14, i64 216}
!20 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!21 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!22 = !{!"_ZTSN7qpOASES7FlipperE", !14, i64 0, !14, i64 4, !12, i64 8, !23, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!23 = !{!"_ZTSN7qpOASES11ConstraintsE", !13, i64 0, !15, i64 40, !15, i64 80}
!24 = !{!"_ZTSN7qpOASES13TabularOutputE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28}
!25 = !{!10, !18, i64 220}
!26 = !{!10, !11, i64 212}
!27 = !{!10, !11, i64 216}
!28 = !{!10, !17, i64 208}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.2 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [73 x i8], align 1
@switch.table._ZN7qpOASES9QProblemB15printPropertiesEv = private unnamed_addr constant [6 x ptr] [ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.13, ptr @.str.14], align 8
@switch.table._ZN7qpOASES9QProblemB15printPropertiesEv.1 = private unnamed_addr constant [6 x ptr] [ptr @.str.20, ptr @.str.21, ptr @.str.22, ptr @.str.23, ptr @.str.24, ptr @.str.25], align 8
@switch.table._ZN7qpOASES9QProblemB15printPropertiesEv.2 = private unnamed_addr constant [6 x ptr] [ptr @.str.26, ptr @.str.27, ptr @.str.26, ptr @.str.28, ptr @.str.29, ptr @.str.30], align 8

; 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 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES9QProblemB15printPropertiesEv(ptr noundef nonnull align 8 dereferenceable(800) %0) unnamed_addr #2 align 2 {
  %2 = alloca [160 x i8], align 16
  %3 = getelementptr inbounds i8, ptr %0, i64 272
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %47, label %6

6:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %2) #6
  %7 = tail call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.2)
  %8 = tail call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.3)
  %9 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %10 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 160, ptr noundef nonnull @.str.4, i32 noundef %9) #6
  %11 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %2)
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoLowerEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
  %14 = icmp eq i32 %13, 1
  %.str.5..str.6 = select i1 %14, ptr @.str.5, ptr @.str.6
  %15 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.5..str.6)
  %16 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoUpperEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
  %17 = icmp eq i32 %16, 1
  %.str.8.sink = select i1 %17, ptr @.str.7, ptr @.str.8
  %18 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.8.sink)
  %19 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.3)
  %20 = getelementptr inbounds i8, ptr %0, i64 220
  %21 = load i32, ptr %20, align 4, !tbaa !24
  %22 = icmp ult i32 %21, 6
  br i1 %22, label %switch.lookup, label %24

switch.lookup:                                    ; preds = %6
  %23 = zext nneg i32 %21 to i64
  %switch.gep = getelementptr inbounds [6 x ptr], ptr @switch.table._ZN7qpOASES9QProblemB15printPropertiesEv, i64 0, i64 %23
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %24

24:                                               ; preds = %6, %switch.lookup
  %.str.15.sink = phi ptr [ %switch.load, %switch.lookup ], [ @.str.15, %6 ]
  %25 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.15.sink)
  %26 = getelementptr inbounds i8, ptr %0, i64 212
  %27 = load i32, ptr %26, align 4, !tbaa !25
  %28 = icmp eq i32 %27, 1
  %.str.16..str.17 = select i1 %28, ptr @.str.16, ptr @.str.17
  %29 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.16..str.17)
  %30 = getelementptr inbounds i8, ptr %0, i64 216
  %31 = load i32, ptr %30, align 8, !tbaa !26
  %32 = icmp eq i32 %31, 1
  %.str.19.sink = select i1 %32, ptr @.str.18, ptr @.str.19
  %33 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.19.sink)
  %34 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.3)
  %35 = getelementptr inbounds i8, ptr %0, i64 208
  %36 = load i32, ptr %35, align 8, !tbaa !27
  %37 = icmp ult i32 %36, 6
  br i1 %37, label %switch.lookup2, label %40

switch.lookup2:                                   ; preds = %24
  %38 = zext nneg i32 %36 to i64
  %switch.gep3 = getelementptr inbounds [6 x ptr], ptr @switch.table._ZN7qpOASES9QProblemB15printPropertiesEv.1, i64 0, i64 %38
  %switch.load4 = load ptr, ptr %switch.gep3, align 8
  %39 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %switch.load4)
  br label %40

40:                                               ; preds = %24, %switch.lookup2
  %41 = load i32, ptr %3, align 8, !tbaa !5
  %switch.tableidx = add i32 %41, 2
  %42 = icmp ult i32 %switch.tableidx, 6
  br i1 %42, label %switch.hole_check, label %45

switch.hole_check:                                ; preds = %40
  %switch.maskindex = trunc nuw i32 %switch.tableidx to i8
  %switch.shifted = lshr i8 59, %switch.maskindex
  %switch.lobit = trunc i8 %switch.shifted to i1
  br i1 %switch.lobit, label %switch.lookup6, label %45

switch.lookup6:                                   ; preds = %switch.hole_check
  %43 = zext nneg i32 %switch.tableidx to i64
  %switch.gep7 = getelementptr inbounds [6 x ptr], ptr @switch.table._ZN7qpOASES9QProblemB15printPropertiesEv.2, i64 0, i64 %43
  %switch.load8 = load ptr, ptr %switch.gep7, align 8
  %44 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %switch.load8)
  br label %45

45:                                               ; preds = %switch.hole_check, %40, %switch.lookup6
  %46 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.3)
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %2) #6
  br label %47

47:                                               ; preds = %1, %45
  ret i32 0
}

declare noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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, !19, i64 272}
!6 = !{!"_ZTSN7qpOASES9QProblemBE", !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !10, i64 168, !7, i64 176, !10, i64 184, !10, i64 192, !15, i64 200, !16, i64 208, !7, i64 212, !7, i64 216, !17, i64 220, !15, i64 224, !13, i64 232, !10, i64 240, !15, i64 248, !15, i64 256, !13, i64 264, !18, i64 272, !21, i64 496, !23, i64 768}
!7 = !{!"_ZTSN7qpOASES11BooleanTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSN7qpOASES6BoundsE", !12, i64 0, !14, i64 40, !14, i64 80}
!12 = !{!"_ZTSN7qpOASES9SubjectToE", !13, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 36}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTSN7qpOASES9IndexlistE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN7qpOASES14QProblemStatusE", !8, i64 0}
!17 = !{!"_ZTSN7qpOASES11HessianTypeE", !8, i64 0}
!18 = !{!"_ZTSN7qpOASES7OptionsE", !19, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !13, i64 28, !13, i64 32, !7, i64 36, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !20, i64 128, !15, i64 136, !13, i64 144, !15, i64 152, !13, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !7, i64 200, !7, i64 204, !13, i64 208, !13, i64 212, !13, i64 216}
!19 = !{!"_ZTSN7qpOASES10PrintLevelE", !8, i64 0}
!20 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !8, i64 0}
!21 = !{!"_ZTSN7qpOASES7FlipperE", !13, i64 0, !13, i64 4, !11, i64 8, !22, i64 128, !10, i64 248, !10, i64 256, !10, i64 264}
!22 = !{!"_ZTSN7qpOASES11ConstraintsE", !12, i64 0, !14, i64 40, !14, i64 80}
!23 = !{!"_ZTSN7qpOASES13TabularOutputE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28}
!24 = !{!6, !17, i64 220}
!25 = !{!6, !7, i64 212}
!26 = !{!6, !7, i64 216}
!27 = !{!6, !16, i64 208}


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