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

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

@.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 [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.37 = 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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem15printPropertiesEv(ptr noundef nonnull align 8 dereferenceable(1064) %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 %139

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 [160 x i8], ptr %4, i64 0, i64 0
  %37 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %5)
  %38 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %36, i64 noundef 160, ptr noundef @.str.9, i32 noundef %37) #6
  %39 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
  %40 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef %39)
  %41 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
  %42 = call noundef i32 @_ZNK7qpOASES8QProblem6getNECEv(ptr noundef nonnull align 8 dereferenceable(1064) %5)
  %43 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %41, i64 noundef 160, ptr noundef @.str.10, i32 noundef %42) #6
  %44 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
  %45 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef %44)
  %46 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
  %47 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %5)
  %48 = call noundef i32 @_ZNK7qpOASES8QProblem6getNECEv(ptr noundef nonnull align 8 dereferenceable(1064) %5)
  %49 = sub nsw i32 %47, %48
  %50 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %46, i64 noundef 160, ptr noundef @.str.11, i32 noundef %49) #6
  %51 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
  %52 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef %51)
  %53 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %5)
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %55, label %72

55:                                               ; preds = %34
  %56 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %5, i32 0, i32 5
  %57 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoLowerEv(ptr noundef nonnull align 8 dereferenceable(40) %56)
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %61

59:                                               ; preds = %55
  %60 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.12)
  br label %63

61:                                               ; preds = %55
  %62 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.13)
  br label %63

63:                                               ; preds = %61, %59
  %64 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %5, i32 0, i32 5
  %65 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoUpperEv(ptr noundef nonnull align 8 dereferenceable(40) %64)
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %69

67:                                               ; preds = %63
  %68 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.14)
  br label %71

69:                                               ; preds = %63
  %70 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.15)
  br label %71

71:                                               ; preds = %69, %67
  br label %72

72:                                               ; preds = %71, %34
  %73 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.3)
  %74 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 15
  %75 = load i32, ptr %74, align 4, !tbaa !25
  switch i32 %75, label %88 [
    i32 0, label %76
    i32 1, label %78
    i32 2, label %80
    i32 3, label %82
    i32 4, label %84
    i32 5, label %86
  ]

76:                                               ; preds = %72
  %77 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.16)
  br label %90

78:                                               ; preds = %72
  %79 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.17)
  br label %90

80:                                               ; preds = %72
  %81 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.18)
  br label %90

82:                                               ; preds = %72
  %83 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.19)
  br label %90

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

86:                                               ; preds = %72
  %87 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.21)
  br label %90

88:                                               ; preds = %72
  %89 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.22)
  br label %90

90:                                               ; preds = %88, %86, %84, %82, %80, %78, %76
  %91 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 13
  %92 = load i32, ptr %91, align 4, !tbaa !26
  %93 = icmp eq i32 %92, 1
  br i1 %93, label %94, label %96

94:                                               ; preds = %90
  %95 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.23)
  br label %98

96:                                               ; preds = %90
  %97 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.24)
  br label %98

98:                                               ; preds = %96, %94
  %99 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 14
  %100 = load i32, ptr %99, align 8, !tbaa !27
  %101 = icmp eq i32 %100, 1
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.25)
  br label %106

104:                                              ; preds = %98
  %105 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.26)
  br label %106

106:                                              ; preds = %104, %102
  %107 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.3)
  %108 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 12
  %109 = load i32, ptr %108, align 8, !tbaa !28
  switch i32 %109, label %122 [
    i32 0, label %110
    i32 1, label %112
    i32 2, label %114
    i32 3, label %116
    i32 4, label %118
    i32 5, label %120
  ]

110:                                              ; preds = %106
  %111 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.27)
  br label %122

112:                                              ; preds = %106
  %113 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.28)
  br label %122

114:                                              ; preds = %106
  %115 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.29)
  br label %122

116:                                              ; preds = %106
  %117 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.30)
  br label %122

118:                                              ; preds = %106
  %119 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.31)
  br label %122

120:                                              ; preds = %106
  %121 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.32)
  br label %122

122:                                              ; preds = %120, %118, %116, %114, %112, %110, %106
  %123 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 23
  %124 = getelementptr inbounds %"class.qpOASES::Options", ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !9
  switch i32 %125, label %136 [
    i32 -2, label %126
    i32 -1, label %128
    i32 1, label %130
    i32 2, label %132
    i32 3, label %134
  ]

126:                                              ; preds = %122
  %127 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.33)
  br label %137

128:                                              ; preds = %122
  %129 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.34)
  br label %137

130:                                              ; preds = %122
  %131 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.35)
  br label %137

132:                                              ; preds = %122
  %133 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.36)
  br label %137

134:                                              ; preds = %122
  %135 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef @.str.37)
  br label %137

136:                                              ; preds = %122
  br label %137

137:                                              ; preds = %136, %134, %132, %130, %128, %126
  %138 = 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 %139

139:                                              ; preds = %137, %10
  %140 = load i32, ptr %2, align 4
  ret i32 %140
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem6getNECEv(ptr noundef nonnull align 8 dereferenceable(1064)) #1 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 [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [73 x i8], align 1
@switch.table._ZN7qpOASES8QProblem15printPropertiesEv = private unnamed_addr constant [6 x ptr] [ptr @.str.16, ptr @.str.17, ptr @.str.18, ptr @.str.19, ptr @.str.20, ptr @.str.21], align 8
@switch.table._ZN7qpOASES8QProblem15printPropertiesEv.1 = private unnamed_addr constant [6 x ptr] [ptr @.str.27, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr @.str.31, ptr @.str.32], align 8
@switch.table._ZN7qpOASES8QProblem15printPropertiesEv.2 = private unnamed_addr constant [6 x ptr] [ptr @.str.33, ptr @.str.34, ptr @.str.33, ptr @.str.35, ptr @.str.36, ptr @.str.37], 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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem15printPropertiesEv(ptr noundef nonnull align 8 dereferenceable(1064) %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 %69, 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 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %21 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 160, ptr noundef nonnull @.str.9, i32 noundef %20) #6
  %22 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %2)
  %23 = call noundef i32 @_ZNK7qpOASES8QProblem6getNECEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %24 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 160, ptr noundef nonnull @.str.10, i32 noundef %23) #6
  %25 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %2)
  %26 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %27 = call noundef i32 @_ZNK7qpOASES8QProblem6getNECEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %28 = sub nsw i32 %26, %27
  %29 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 160, ptr noundef nonnull @.str.11, i32 noundef %28) #6
  %30 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %2)
  %31 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.sink.split, label %40

.sink.split:                                      ; preds = %6
  %33 = getelementptr inbounds i8, ptr %0, i64 832
  %34 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoLowerEv(ptr noundef nonnull align 8 dereferenceable(40) %33)
  %35 = icmp eq i32 %34, 1
  %.str.12..str.13 = select i1 %35, ptr @.str.12, ptr @.str.13
  %36 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.12..str.13)
  %37 = call noundef i32 @_ZNK7qpOASES9SubjectTo10hasNoUpperEv(ptr noundef nonnull align 8 dereferenceable(40) %33)
  %38 = icmp eq i32 %37, 1
  %.str.14.sink = select i1 %38, ptr @.str.14, ptr @.str.15
  %39 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.14.sink)
  br label %40

40:                                               ; preds = %.sink.split, %6
  %41 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.3)
  %42 = getelementptr inbounds i8, ptr %0, i64 220
  %43 = load i32, ptr %42, align 4, !tbaa !24
  %44 = icmp ult i32 %43, 6
  br i1 %44, label %switch.lookup, label %46

switch.lookup:                                    ; preds = %40
  %45 = zext nneg i32 %43 to i64
  %switch.gep = getelementptr inbounds [6 x ptr], ptr @switch.table._ZN7qpOASES8QProblem15printPropertiesEv, i64 0, i64 %45
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %46

46:                                               ; preds = %40, %switch.lookup
  %.str.22.sink = phi ptr [ %switch.load, %switch.lookup ], [ @.str.22, %40 ]
  %47 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.22.sink)
  %48 = getelementptr inbounds i8, ptr %0, i64 212
  %49 = load i32, ptr %48, align 4, !tbaa !25
  %50 = icmp eq i32 %49, 1
  %.str.23..str.24 = select i1 %50, ptr @.str.23, ptr @.str.24
  %51 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.23..str.24)
  %52 = getelementptr inbounds i8, ptr %0, i64 216
  %53 = load i32, ptr %52, align 8, !tbaa !26
  %54 = icmp eq i32 %53, 1
  %.str.26.sink = select i1 %54, ptr @.str.25, ptr @.str.26
  %55 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %.str.26.sink)
  %56 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.3)
  %57 = getelementptr inbounds i8, ptr %0, i64 208
  %58 = load i32, ptr %57, align 8, !tbaa !27
  %59 = icmp ult i32 %58, 6
  br i1 %59, label %switch.lookup3, label %62

switch.lookup3:                                   ; preds = %46
  %60 = zext nneg i32 %58 to i64
  %switch.gep4 = getelementptr inbounds [6 x ptr], ptr @switch.table._ZN7qpOASES8QProblem15printPropertiesEv.1, i64 0, i64 %60
  %switch.load5 = load ptr, ptr %switch.gep4, align 8
  %61 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %switch.load5)
  br label %62

62:                                               ; preds = %46, %switch.lookup3
  %63 = load i32, ptr %3, align 8, !tbaa !5
  %switch.tableidx = add i32 %63, 2
  %64 = icmp ult i32 %switch.tableidx, 6
  br i1 %64, label %switch.hole_check, label %67

switch.hole_check:                                ; preds = %62
  %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.lookup7, label %67

switch.lookup7:                                   ; preds = %switch.hole_check
  %65 = zext nneg i32 %switch.tableidx to i64
  %switch.gep8 = getelementptr inbounds [6 x ptr], ptr @switch.table._ZN7qpOASES8QProblem15printPropertiesEv.2, i64 0, i64 %65
  %switch.load9 = load ptr, ptr %switch.gep8, align 8
  %66 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull %switch.load9)
  br label %67

67:                                               ; preds = %switch.hole_check, %62, %switch.lookup7
  %68 = call noundef i32 @_ZN7qpOASES8myPrintfEPKc(ptr noundef nonnull @.str.3)
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %2) #6
  br label %69

69:                                               ; preds = %1, %67
  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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem6getNECEv(ptr noundef nonnull align 8 dereferenceable(1064)) local_unnamed_addr #1 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