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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN7qpOASES7Options12setToDefaultEv(ptr noundef nonnull align 8 dereferenceable(220) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 0
  store i32 2, ptr %4, align 8, !tbaa !9
  %5 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 1
  store i32 1, ptr %5, align 4, !tbaa !16
  %6 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 2
  store i32 1, ptr %6, align 8, !tbaa !17
  %7 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 3
  store i32 1, ptr %7, align 4, !tbaa !18
  %8 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 4
  store i32 0, ptr %8, align 8, !tbaa !19
  %9 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 5
  store i32 0, ptr %9, align 4, !tbaa !20
  %10 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 6
  store i32 1, ptr %10, align 8, !tbaa !21
  %11 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 7
  store i32 1, ptr %11, align 4, !tbaa !22
  %12 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 8
  store i32 0, ptr %12, align 8, !tbaa !23
  %13 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 9
  store i32 0, ptr %13, align 4, !tbaa !24
  %14 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 10
  store double 1.110500e-09, ptr %14, align 8, !tbaa !25
  %15 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 11
  store double 2.221000e-10, ptr %15, align 8, !tbaa !26
  %16 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 12
  store double 1.000000e+04, ptr %16, align 8, !tbaa !27
  %17 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 13
  store double -2.221000e-13, ptr %17, align 8, !tbaa !28
  %18 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 14
  store double 2.221000e-13, ptr %18, align 8, !tbaa !29
  %19 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 15
  store double 1.000000e+08, ptr %19, align 8, !tbaa !30
  %20 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 16
  store double 1.000000e+08, ptr %20, align 8, !tbaa !31
  %21 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 17
  store double 5.000000e-01, ptr %21, align 8, !tbaa !32
  %22 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 18
  store double 1.000000e+00, ptr %22, align 8, !tbaa !33
  %23 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 19
  store double 1.000000e+06, ptr %23, align 8, !tbaa !34
  %24 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 20
  store double 1.000000e+03, ptr %24, align 8, !tbaa !35
  %25 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 21
  store i32 -1, ptr %25, align 8, !tbaa !36
  %26 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 23
  store double 2.221000e-13, ptr %26, align 8, !tbaa !37
  %27 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 24
  store i32 0, ptr %27, align 8, !tbaa !38
  %28 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 26
  store double 2.221000e-13, ptr %28, align 8, !tbaa !39
  %29 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 27
  store i32 1, ptr %29, align 8, !tbaa !40
  %30 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 29
  store double 2.221000e-14, ptr %30, align 8, !tbaa !41
  %31 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 30
  store double 2.221000e-11, ptr %31, align 8, !tbaa !42
  %32 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 31
  store double 6.663000e-13, ptr %32, align 8, !tbaa !43
  %33 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 34
  store i32 0, ptr %33, align 4, !tbaa !44
  %34 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 35
  store i32 1, ptr %34, align 8, !tbaa !45
  %35 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 36
  store i32 1, ptr %35, align 4, !tbaa !46
  %36 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 37
  store i32 1, ptr %36, align 8, !tbaa !47
  %37 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 33
  store i32 1, ptr %37, align 8, !tbaa !48
  %38 = getelementptr inbounds %"class.qpOASES::Options", ptr %3, i32 0, i32 32
  store double 0x3D06849B86A12B9B, ptr %38, align 8, !tbaa !49
  ret i32 0
}

attributes #0 = { 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" }

!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, !11, i64 0}
!10 = !{!"_ZTSN7qpOASES7OptionsE", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !13, i64 28, !13, i64 32, !12, i64 36, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !15, i64 128, !14, i64 136, !13, i64 144, !14, i64 152, !13, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !12, i64 200, !12, i64 204, !13, i64 208, !13, i64 212, !13, i64 216}
!11 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!12 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!16 = !{!10, !12, i64 4}
!17 = !{!10, !12, i64 8}
!18 = !{!10, !12, i64 12}
!19 = !{!10, !12, i64 16}
!20 = !{!10, !12, i64 20}
!21 = !{!10, !12, i64 24}
!22 = !{!10, !13, i64 28}
!23 = !{!10, !13, i64 32}
!24 = !{!10, !12, i64 36}
!25 = !{!10, !14, i64 40}
!26 = !{!10, !14, i64 48}
!27 = !{!10, !14, i64 56}
!28 = !{!10, !14, i64 64}
!29 = !{!10, !14, i64 72}
!30 = !{!10, !14, i64 80}
!31 = !{!10, !14, i64 88}
!32 = !{!10, !14, i64 96}
!33 = !{!10, !14, i64 104}
!34 = !{!10, !14, i64 112}
!35 = !{!10, !14, i64 120}
!36 = !{!10, !15, i64 128}
!37 = !{!10, !14, i64 136}
!38 = !{!10, !13, i64 144}
!39 = !{!10, !14, i64 152}
!40 = !{!10, !13, i64 160}
!41 = !{!10, !14, i64 168}
!42 = !{!10, !14, i64 176}
!43 = !{!10, !14, i64 184}
!44 = !{!10, !12, i64 204}
!45 = !{!10, !13, i64 208}
!46 = !{!10, !13, i64 212}
!47 = !{!10, !13, i64 216}
!48 = !{!10, !12, i64 200}
!49 = !{!10, !14, i64 192}


; 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 nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local noundef i32 @_ZN7qpOASES7Options12setToDefaultEv(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(220) %0) local_unnamed_addr #0 align 2 {
  store <4 x i32> <i32 2, i32 1, i32 1, i32 1>, ptr %0, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  store <4 x i32> <i32 0, i32 0, i32 1, i32 1>, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %3, align 8, !tbaa !8
  %4 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 0, ptr %4, align 4, !tbaa !15
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  store <2 x double> <double 1.110500e-09, double 2.221000e-10>, ptr %5, align 8, !tbaa !16
  %6 = getelementptr inbounds i8, ptr %0, i64 56
  store <2 x double> <double 1.000000e+04, double -2.221000e-13>, ptr %6, align 8, !tbaa !16
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  store <2 x double> <double 2.221000e-13, double 1.000000e+08>, ptr %7, align 8, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  store <2 x double> <double 1.000000e+08, double 5.000000e-01>, ptr %8, align 8, !tbaa !16
  %9 = getelementptr inbounds i8, ptr %0, i64 104
  store <2 x double> <double 1.000000e+00, double 1.000000e+06>, ptr %9, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  store double 1.000000e+03, ptr %10, align 8, !tbaa !17
  %11 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 -1, ptr %11, align 8, !tbaa !18
  %12 = getelementptr inbounds i8, ptr %0, i64 136
  store double 2.221000e-13, ptr %12, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 0, ptr %13, align 8, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %0, i64 152
  store double 2.221000e-13, ptr %14, align 8, !tbaa !21
  %15 = getelementptr inbounds i8, ptr %0, i64 160
  store i32 1, ptr %15, align 8, !tbaa !22
  %16 = getelementptr inbounds i8, ptr %0, i64 168
  store <2 x double> <double 2.221000e-14, double 2.221000e-11>, ptr %16, align 8, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %0, i64 184
  %18 = getelementptr inbounds i8, ptr %0, i64 216
  store i32 1, ptr %18, align 8, !tbaa !23
  %19 = getelementptr inbounds i8, ptr %0, i64 200
  store <4 x i32> <i32 1, i32 0, i32 1, i32 1>, ptr %19, align 8, !tbaa !5
  store <2 x double> <double 6.663000e-13, double 0x3D06849B86A12B9B>, ptr %17, align 8, !tbaa !16
  ret i32 0
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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" }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 32}
!9 = !{!"_ZTSN7qpOASES7OptionsE", !10, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 28, !12, i64 32, !11, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !14, i64 128, !13, i64 136, !12, i64 144, !13, i64 152, !12, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !11, i64 200, !11, i64 204, !12, i64 208, !12, i64 212, !12, i64 216}
!10 = !{!"_ZTSN7qpOASES10PrintLevelE", !6, i64 0}
!11 = !{!"_ZTSN7qpOASES11BooleanTypeE", !6, i64 0}
!12 = !{!"int", !6, i64 0}
!13 = !{!"double", !6, i64 0}
!14 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !6, i64 0}
!15 = !{!9, !11, i64 36}
!16 = !{!13, !13, i64 0}
!17 = !{!9, !13, i64 120}
!18 = !{!9, !14, i64 128}
!19 = !{!9, !13, i64 136}
!20 = !{!9, !12, i64 144}
!21 = !{!9, !13, i64 152}
!22 = !{!9, !12, i64 160}
!23 = !{!9, !12, i64 216}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass