; LLVM IR from jrouwe/JoltPhysics :: TestFramework/UI/UIManager.ll (ZN9UIManager6UpdateEf)

; 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.UIManager = type { %class.UIElement, ptr, ptr, %"class.JPH::Array.3", i8, %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::function", i32, float }
%class.UIElement = type { %class.UIEventListener, i32, ptr, %"class.JPH::Array", %"class.UIElement::Position", %"class.UIElement::Position", %"class.UIElement::Size", %"class.UIElement::Size", %"class.UIElement::Size", %"class.UIElement::Size", i8, i8, i8, i8, i8, i8, i8, %"class.JPH::Array.0", ptr }
%class.UIEventListener = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.UIElement::Position" = type { i32, %"class.UIElement::Size" }
%"class.UIElement::Size" = type { i32, i32 }
%"class.JPH::Array.0" = type { i64, i64, ptr }
%"class.JPH::Array.3" = type { i64, i64, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.7" }
%"struct.std::_Head_base.7" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

; 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: mustprogress uwtable
define dso_local void @_ZN9UIManager6UpdateEf(ptr noundef nonnull align 8 dereferenceable(248) %0, float noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %8 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %9 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 3
  %10 = call noundef i64 @_ZNK3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %11 = trunc i64 %10 to i32
  %12 = sub nsw i32 %11, 1
  store i32 %12, ptr %5, align 4, !tbaa !11
  br label %13

13:                                               ; preds = %53, %2
  %14 = load i32, ptr %5, align 4, !tbaa !11
  %15 = icmp sge i32 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %56

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %18

18:                                               ; preds = %49, %17
  %19 = load i32, ptr %5, align 4, !tbaa !11
  %20 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 3
  %21 = call noundef i64 @_ZNK3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = trunc i64 %21 to i32
  %23 = icmp slt i32 %19, %22
  br i1 %23, label %24, label %33

24:                                               ; preds = %18
  %25 = load i32, ptr %7, align 4, !tbaa !11
  %26 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 3
  %27 = load i32, ptr %5, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %28)
  %30 = call noundef i64 @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
  %31 = trunc i64 %30 to i32
  %32 = icmp slt i32 %25, %31
  br label %33

33:                                               ; preds = %24, %18
  %34 = phi i1 [ false, %18 ], [ %32, %24 ]
  br i1 %34, label %36, label %35

35:                                               ; preds = %33
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %52

36:                                               ; preds = %33
  %37 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 3
  %38 = load i32, ptr %5, align 4, !tbaa !11
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39)
  %41 = load i32, ptr %7, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42)
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = load float, ptr %4, align 4, !tbaa !9
  %46 = load ptr, ptr %44, align 8, !tbaa !13
  %47 = getelementptr inbounds ptr, ptr %46, i64 9
  %48 = load ptr, ptr %47, align 8
  call void %48(ptr noundef nonnull align 8 dereferenceable(144) %44, float noundef %45)
  br label %49

49:                                               ; preds = %36
  %50 = load i32, ptr %7, align 4, !tbaa !11
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %7, align 4, !tbaa !11
  br label %18, !llvm.loop !15

52:                                               ; preds = %35
  br label %53

53:                                               ; preds = %52
  %54 = load i32, ptr %5, align 4, !tbaa !11
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %5, align 4, !tbaa !11
  br label %13, !llvm.loop !17

56:                                               ; preds = %16
  %57 = load float, ptr %4, align 4, !tbaa !9
  call void @_ZN9UIElement6UpdateEf(ptr noundef nonnull align 8 dereferenceable(144) %8, float noundef %57)
  %58 = load float, ptr %4, align 4, !tbaa !9
  %59 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 9
  %60 = load float, ptr %59, align 4, !tbaa !18
  %61 = fadd float %60, %58
  store float %61, ptr %59, align 4, !tbaa !18
  %62 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 8
  %63 = load i32, ptr %62, align 8, !tbaa !40
  switch i32 %63, label %77 [
    i32 1, label %64
    i32 3, label %70
    i32 2, label %76
    i32 4, label %76
    i32 0, label %76
  ]

64:                                               ; preds = %56
  %65 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 9
  %66 = load float, ptr %65, align 4, !tbaa !18
  %67 = fcmp ogt float %66, 0x3FC99999A0000000
  br i1 %67, label %68, label %69

68:                                               ; preds = %64
  call void @_ZN9UIManager13SwitchToStateENS_6EStateE(ptr noundef nonnull align 8 dereferenceable(248) %8, i32 noundef 2)
  br label %69

69:                                               ; preds = %68, %64
  br label %78

70:                                               ; preds = %56
  %71 = getelementptr inbounds %class.UIManager, ptr %8, i32 0, i32 9
  %72 = load float, ptr %71, align 4, !tbaa !18
  %73 = fcmp ogt float %72, 0x3FC99999A0000000
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  call void @_ZN9UIManager13SwitchToStateENS_6EStateE(ptr noundef nonnull align 8 dereferenceable(248) %8, i32 noundef 4)
  br label %75

75:                                               ; preds = %74, %70
  br label %78

76:                                               ; preds = %56, %56, %56
  br label %77

77:                                               ; preds = %76, %56
  br label %78

78:                                               ; preds = %77, %75, %69
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

declare void @_ZN9UIElement6UpdateEf(ptr noundef nonnull align 8 dereferenceable(144), float noundef) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9UIManager13SwitchToStateENS_6EStateE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !10, i64 244}
!19 = !{!"_ZTS9UIManager", !20, i64 0, !6, i64 144, !6, i64 152, !30, i64 160, !28, i64 184, !31, i64 192, !31, i64 200, !37, i64 208, !39, i64 240, !10, i64 244}
!20 = !{!"_ZTS9UIElement", !21, i64 0, !12, i64 8, !6, i64 16, !22, i64 24, !24, i64 48, !24, i64 60, !26, i64 72, !26, i64 80, !26, i64 88, !26, i64 96, !28, i64 104, !28, i64 105, !28, i64 106, !28, i64 107, !28, i64 108, !28, i64 109, !28, i64 110, !29, i64 112, !6, i64 136}
!21 = !{!"_ZTS15UIEventListener"}
!22 = !{!"_ZTSN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN9UIElement8PositionE", !25, i64 0, !26, i64 4}
!25 = !{!"_ZTSN9UIElement10EAlignmentE", !7, i64 0}
!26 = !{!"_ZTSN9UIElement4SizeE", !12, i64 0, !27, i64 4}
!27 = !{!"_ZTSN9UIElement6EUnitsE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN3JPH5ArrayIP11UIAnimationNS_12STLAllocatorIS2_EEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!30 = !{!"_ZTSN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !35, i64 0}
!35 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !6, i64 0}
!37 = !{!"_ZTSSt8functionIFvvEE", !38, i64 0, !6, i64 24}
!38 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!39 = !{!"_ZTSN9UIManager6EStateE", !7, i64 0}
!40 = !{!19, !39, i64 240}


; 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 uwtable
define dso_local void @_ZN9UIManager6UpdateEf(ptr noundef nonnull align 8 dereferenceable(248) %0, float noundef %1) unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 160
  %4 = tail call noundef i64 @_ZNK3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %5 = trunc i64 %4 to i32
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %2
  %7 = and i64 %4, 2147483647
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.critedge
  %indvars.iv19 = phi i64 [ %7, %.preheader.preheader ], [ %indvars.iv.next20, %.critedge ]
  %indvars.iv.next20 = add nsw i64 %indvars.iv19, -1
  %8 = tail call noundef i64 @_ZNK3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %sext = shl i64 %8, 32
  %9 = ashr exact i64 %sext, 32
  %.not12 = icmp sgt i64 %indvars.iv19, %9
  br i1 %.not12, label %.critedge, label %.lr.ph

._crit_edge:                                      ; preds = %.critedge, %2
  tail call void @_ZN9UIElement6UpdateEf(ptr noundef nonnull align 8 dereferenceable(144) %0, float noundef %1)
  %10 = getelementptr inbounds i8, ptr %0, i64 244
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = fadd float %11, %1
  store float %12, ptr %10, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 240
  %14 = load i32, ptr %13, align 8, !tbaa !32
  switch i32 %14, label %33 [
    i32 1, label %29
    i32 3, label %31
  ]

.lr.ph:                                           ; preds = %.preheader, %20
  %indvars.iv = phi i64 [ %indvars.iv.next, %20 ], [ 0, %.preheader ]
  %15 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv.next20)
  %16 = tail call noundef i64 @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %sext22 = shl i64 %16, 32
  %17 = ashr exact i64 %sext22, 32
  %18 = icmp slt i64 %indvars.iv, %17
  br i1 %18, label %20, label %.critedge

.critedge:                                        ; preds = %.lr.ph, %20, %.preheader
  %19 = icmp sgt i64 %indvars.iv19, 1
  br i1 %19, label %.preheader, label %._crit_edge, !llvm.loop !33

20:                                               ; preds = %.lr.ph
  %21 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv.next20)
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %indvars.iv)
  %23 = load ptr, ptr %22, align 8, !tbaa !35
  %24 = load ptr, ptr %23, align 8, !tbaa !36
  %25 = getelementptr inbounds i8, ptr %24, i64 72
  %26 = load ptr, ptr %25, align 8
  tail call void %26(ptr noundef nonnull align 8 dereferenceable(144) %23, float noundef %1)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = tail call noundef i64 @_ZNK3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %sext23 = shl i64 %27, 32
  %28 = ashr exact i64 %sext23, 32
  %.not = icmp sgt i64 %indvars.iv19, %28
  br i1 %.not, label %.critedge, label %.lr.ph, !llvm.loop !38

29:                                               ; preds = %._crit_edge
  %30 = fcmp ogt float %12, 0x3FC99999A0000000
  br i1 %30, label %.sink.split, label %33

31:                                               ; preds = %._crit_edge
  %32 = fcmp ogt float %12, 0x3FC99999A0000000
  br i1 %32, label %.sink.split, label %33

.sink.split:                                      ; preds = %31, %29
  %.sink = phi i32 [ 2, %29 ], [ 4, %31 ]
  tail call void @_ZN9UIManager13SwitchToStateENS_6EStateE(ptr noundef nonnull align 8 dereferenceable(248) %0, i32 noundef %.sink)
  br label %33

33:                                               ; preds = %.sink.split, %._crit_edge, %31, %29
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

declare void @_ZN9UIElement6UpdateEf(ptr noundef nonnull align 8 dereferenceable(144), float noundef) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9UIManager13SwitchToStateENS_6EStateE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef) local_unnamed_addr #0 align 2

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

!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, !31, i64 244}
!6 = !{!"_ZTS9UIManager", !7, i64 0, !12, i64 144, !12, i64 152, !21, i64 160, !19, i64 184, !22, i64 192, !22, i64 200, !28, i64 208, !30, i64 240, !31, i64 244}
!7 = !{!"_ZTS9UIElement", !8, i64 0, !9, i64 8, !12, i64 16, !13, i64 24, !15, i64 48, !15, i64 60, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !19, i64 104, !19, i64 105, !19, i64 106, !19, i64 107, !19, i64 108, !19, i64 109, !19, i64 110, !20, i64 112, !12, i64 136}
!8 = !{!"_ZTS15UIEventListener"}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!"_ZTSN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEE", !14, i64 0, !14, i64 8, !12, i64 16}
!14 = !{!"long", !10, i64 0}
!15 = !{!"_ZTSN9UIElement8PositionE", !16, i64 0, !17, i64 4}
!16 = !{!"_ZTSN9UIElement10EAlignmentE", !10, i64 0}
!17 = !{!"_ZTSN9UIElement4SizeE", !9, i64 0, !18, i64 4}
!18 = !{!"_ZTSN9UIElement6EUnitsE", !10, i64 0}
!19 = !{!"bool", !10, i64 0}
!20 = !{!"_ZTSN3JPH5ArrayIP11UIAnimationNS_12STLAllocatorIS2_EEEE", !14, i64 0, !14, i64 8, !12, i64 16}
!21 = !{!"_ZTSN3JPH5ArrayINS0_IP9UIElementNS_12STLAllocatorIS2_EEEENS3_IS5_EEEE", !14, i64 0, !14, i64 8, !12, i64 16}
!22 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !26, i64 0}
!26 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !27, i64 0}
!27 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !12, i64 0}
!28 = !{!"_ZTSSt8functionIFvvEE", !29, i64 0, !12, i64 24}
!29 = !{!"_ZTSSt14_Function_base", !10, i64 0, !12, i64 16}
!30 = !{!"_ZTSN9UIManager6EStateE", !10, i64 0}
!31 = !{!"float", !10, i64 0}
!32 = !{!6, !30, i64 240}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!12, !12, i64 0}
!36 = !{!37, !37, i64 0}
!37 = !{!"vtable pointer", !11, i64 0}
!38 = distinct !{!38, !34}


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