; LLVM IR from Whittler23/A-star-algorithm-SFML :: src/Gui/button.ll (ZN6Button4initEN2sf7Vector2IfEES2_NS_10ButtonTypeE)

; 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.sf::Color" = type { i8, i8, i8, i8 }
%"class.sf::Vector2" = type { float, float }
%"class.std::__cxx11::basic_string.4" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.8 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.8 = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%class.Button = type { %"class.sf::Drawable", i32, %"class.sf::RectangleShape", %"class.sf::Text", %"class.sf::Font", %"class.sf::Vector2" }
%"class.sf::Drawable" = type { ptr }
%"class.sf::RectangleShape" = type { %"class.sf::Shape", %"class.sf::Vector2" }
%"class.sf::Shape" = type { %"class.sf::Drawable", %"class.sf::Transformable.base", ptr, %"class.sf::Rect", %"class.sf::Color", %"class.sf::Color", float, [4 x i8], %"class.sf::VertexArray", %"class.sf::VertexArray", %"class.sf::Rect.0", %"class.sf::Rect.0" }
%"class.sf::Transformable.base" = type <{ ptr, %"class.sf::Vector2", %"class.sf::Vector2", float, %"class.sf::Vector2", %"class.sf::Transform", i8, [3 x i8], %"class.sf::Transform", i8 }>
%"class.sf::Transform" = type { [16 x float] }
%"class.sf::Rect" = type { i32, i32, i32, i32 }
%"class.sf::VertexArray" = type <{ %"class.sf::Drawable", %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sf::Vertex, std::allocator<sf::Vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<sf::Vertex, std::allocator<sf::Vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<sf::Vertex, std::allocator<sf::Vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sf::Vertex, std::allocator<sf::Vertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sf::Rect.0" = type { float, float, float, float }
%"class.sf::Text" = type { %"class.sf::Drawable", %"class.sf::Transformable.base", %"class.sf::String", ptr, i32, float, float, i32, %"class.sf::Color", %"class.sf::Color", float, [4 x i8], %"class.sf::VertexArray", %"class.sf::VertexArray", %"class.sf::Rect.0", i8, i64 }
%"class.sf::String" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<unsigned int>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<unsigned int>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.sf::Font" = type { ptr, ptr, ptr, ptr, ptr, %"struct.sf::Font::Info", %"class.std::map", %"class.std::vector.12" }
%"struct.sf::Font::Info" = type { %"class.std::__cxx11::basic_string.4" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, sf::Font::Page>, std::_Select1st<std::pair<const unsigned int, sf::Font::Page>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, sf::Font::Page>, std::_Select1st<std::pair<const unsigned int, sf::Font::Page>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@_ZN2sf5Color5BlackE = external global %"class.sf::Color", align 1

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN6Button4initEN2sf7Vector2IfEES2_NS_10ButtonTypeE(ptr noundef nonnull align 8 dereferenceable(880) %0, <2 x float> %1, <2 x float> %2, i32 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.sf::Vector2", align 4
  %6 = alloca %"class.sf::Vector2", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string.4", align 8
  %10 = alloca %"class.std::allocator.5", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.sf::Vector2", align 4
  %14 = alloca %"class.sf::Vector2", align 4
  %15 = alloca %"class.sf::Vector2", align 4
  %16 = alloca %"class.sf::Vector2", align 4
  %17 = alloca %"class.sf::Vector2", align 4
  store <2 x float> %1, ptr %5, align 4
  store <2 x float> %2, ptr %6, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %18 = load ptr, ptr %7, align 8
  %19 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %20 unwind label %26

20:                                               ; preds = %4
  %21 = invoke noundef zeroext i1 @_ZN2sf4Font12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %19, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %22 unwind label %30

22:                                               ; preds = %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  %23 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 3
  %24 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 4
  call void @_ZN2sf4Text7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(368) %23, ptr noundef nonnull align 8 dereferenceable(144) %24)
  %25 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %25, label %71 [
    i32 0, label %35
    i32 1, label %53
  ]

26:                                               ; preds = %4
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %11, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %12, align 4
  br label %34

30:                                               ; preds = %20
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %11, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %34

34:                                               ; preds = %30, %26
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  br label %75

35:                                               ; preds = %22
  %36 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %38 = getelementptr inbounds %"class.sf::Vector2", ptr %5, i32 0, i32 0
  %39 = load float, ptr %38, align 4, !tbaa !11
  %40 = getelementptr inbounds %"class.sf::Vector2", ptr %5, i32 0, i32 1
  %41 = load float, ptr %40, align 4, !tbaa !14
  %42 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %18, float noundef %39, float noundef %41, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %42, ptr %13, align 4
  call void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169) %37, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %43 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %44 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %18, float noundef 2.000000e+01, float noundef 1.500000e+01, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %44, ptr %14, align 4
  call void @_ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(344) %43, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %45 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  %46 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2sf14RectangleShape7getSizeEv(ptr noundef nonnull align 8 dereferenceable(344) %46)
  %48 = getelementptr inbounds %"class.sf::Vector2", ptr %47, i32 0, i32 0
  %49 = load float, ptr %48, align 4, !tbaa !11
  %50 = fdiv float %49, 4.000000e+01
  call void @_ZN2sf5Shape19setOutlineThicknessEf(ptr noundef nonnull align 8 dereferenceable(336) %45, float noundef %50)
  %51 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  call void @_ZN2sf5Shape15setOutlineColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336) %51, ptr noundef nonnull align 1 dereferenceable(4) @_ZN2sf5Color5BlackE)
  %52 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 3
  call void @_ZN2sf4Text16setCharacterSizeEj(ptr noundef nonnull align 8 dereferenceable(368) %52, i32 noundef 45)
  br label %71

53:                                               ; preds = %22
  %54 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %56 = getelementptr inbounds %"class.sf::Vector2", ptr %5, i32 0, i32 0
  %57 = load float, ptr %56, align 4, !tbaa !11
  %58 = getelementptr inbounds %"class.sf::Vector2", ptr %5, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !14
  %60 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %18, float noundef %57, float noundef %59, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %60, ptr %15, align 4
  call void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169) %55, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %61 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %62 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %18, float noundef 1.000000e+01, float noundef 7.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %62, ptr %16, align 4
  call void @_ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(344) %61, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %63 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  %64 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2sf14RectangleShape7getSizeEv(ptr noundef nonnull align 8 dereferenceable(344) %64)
  %66 = getelementptr inbounds %"class.sf::Vector2", ptr %65, i32 0, i32 0
  %67 = load float, ptr %66, align 4, !tbaa !11
  %68 = fdiv float %67, 4.000000e+01
  call void @_ZN2sf5Shape19setOutlineThicknessEf(ptr noundef nonnull align 8 dereferenceable(336) %63, float noundef %68)
  %69 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 2
  call void @_ZN2sf5Shape15setOutlineColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336) %69, ptr noundef nonnull align 1 dereferenceable(4) @_ZN2sf5Color5BlackE)
  %70 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 3
  call void @_ZN2sf4Text16setCharacterSizeEj(ptr noundef nonnull align 8 dereferenceable(368) %70, i32 noundef 30)
  br label %71

71:                                               ; preds = %53, %35, %22
  %72 = getelementptr inbounds %class.Button, ptr %18, i32 0, i32 3
  %73 = getelementptr inbounds i8, ptr %72, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %74 = call <2 x float> @_ZN6Button15getTextPositionEv(ptr noundef nonnull align 8 dereferenceable(880) %18)
  store <2 x float> %74, ptr %17, align 4
  call void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169) %73, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  ret void

75:                                               ; preds = %34
  %76 = load ptr, ptr %11, align 8
  %77 = load i32, ptr %12, align 4
  %78 = insertvalue { ptr, i32 } poison, ptr %76, 0
  %79 = insertvalue { ptr, i32 } %78, i32 %77, 1
  resume { ptr, i32 } %79
}

declare noundef zeroext i1 @_ZN2sf4Font12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare void @_ZN2sf4Text7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef nonnull align 8 dereferenceable(144)) #2

declare void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880), float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

declare void @_ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 4 dereferenceable(8)) #2

declare void @_ZN2sf5Shape19setOutlineThicknessEf(ptr noundef nonnull align 8 dereferenceable(336), float noundef) #2

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2sf14RectangleShape7getSizeEv(ptr noundef nonnull align 8 dereferenceable(344)) #2

declare void @_ZN2sf5Shape15setOutlineColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336), ptr noundef nonnull align 1 dereferenceable(4)) #2

declare void @_ZN2sf4Text16setCharacterSizeEj(ptr noundef nonnull align 8 dereferenceable(368), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN6Button15getTextPositionEv(ptr noundef nonnull align 8 dereferenceable(880)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN6Button10ButtonTypeE", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN2sf7Vector2IfEE", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}


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

%"class.sf::Color" = type { i8, i8, i8, i8 }
%"class.sf::Vector2" = type { float, float }
%"class.std::__cxx11::basic_string.4" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.8 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.8 = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@_ZN2sf5Color5BlackE = external global %"class.sf::Color", align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress 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 @_ZN6Button4initEN2sf7Vector2IfEES2_NS_10ButtonTypeE(ptr noundef nonnull align 8 dereferenceable(880) %0, <2 x float> %1, <2 x float> %2, i32 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.sf::Vector2", align 8
  %6 = alloca %"class.std::__cxx11::basic_string.4", align 8
  %7 = alloca %"class.std::allocator.5", align 1
  %8 = alloca %"class.sf::Vector2", align 8
  %9 = alloca %"class.sf::Vector2", align 8
  %10 = alloca %"class.sf::Vector2", align 8
  %11 = alloca %"class.sf::Vector2", align 8
  %12 = alloca %"class.sf::Vector2", align 8
  store <2 x float> %2, ptr %5, align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 728
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %14 unwind label %18

14:                                               ; preds = %4
  %15 = invoke noundef zeroext i1 @_ZN2sf4Font12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %13, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %16 unwind label %20

16:                                               ; preds = %14
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 360
  call void @_ZN2sf4Text7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(368) %17, ptr noundef nonnull align 8 dereferenceable(144) %13)
  switch i32 %3, label %36 [
    i32 0, label %23
    i32 1, label %28
  ]

18:                                               ; preds = %4
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %22

20:                                               ; preds = %14
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %22

22:                                               ; preds = %20, %18
  %.pn = phi { ptr, i32 } [ %21, %20 ], [ %19, %18 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn

23:                                               ; preds = %16
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %.sroa.0.0.vec.extract = extractelement <2 x float> %1, i64 0
  %.sroa.0.4.vec.extract = extractelement <2 x float> %1, i64 1
  %26 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %0, float noundef %.sroa.0.0.vec.extract, float noundef %.sroa.0.4.vec.extract, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %26, ptr %8, align 8
  call void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169) %25, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %27 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %0, float noundef 2.000000e+01, float noundef 1.500000e+01, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %27, ptr %9, align 8
  call void @_ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(344) %24, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %.sink.split

28:                                               ; preds = %16
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %.sroa.0.0.vec.extract4 = extractelement <2 x float> %1, i64 0
  %.sroa.0.4.vec.extract6 = extractelement <2 x float> %1, i64 1
  %31 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %0, float noundef %.sroa.0.0.vec.extract4, float noundef %.sroa.0.4.vec.extract6, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %31, ptr %10, align 8
  call void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169) %30, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %32 = call <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880) %0, float noundef 1.000000e+01, float noundef 7.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %32, ptr %11, align 8
  call void @_ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(344) %29, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %.sink.split

.sink.split:                                      ; preds = %23, %28
  %.sink14 = phi ptr [ %29, %28 ], [ %24, %23 ]
  %.sink = phi i32 [ 30, %28 ], [ 45, %23 ]
  %33 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2sf14RectangleShape7getSizeEv(ptr noundef nonnull align 8 dereferenceable(344) %.sink14)
  %34 = load float, ptr %33, align 4, !tbaa !5
  %35 = fdiv float %34, 4.000000e+01
  call void @_ZN2sf5Shape19setOutlineThicknessEf(ptr noundef nonnull align 8 dereferenceable(336) %.sink14, float noundef %35)
  call void @_ZN2sf5Shape15setOutlineColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336) %.sink14, ptr noundef nonnull align 1 dereferenceable(4) @_ZN2sf5Color5BlackE)
  call void @_ZN2sf4Text16setCharacterSizeEj(ptr noundef nonnull align 8 dereferenceable(368) %17, i32 noundef %.sink)
  br label %36

36:                                               ; preds = %.sink.split, %16
  %37 = getelementptr inbounds i8, ptr %0, i64 368
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %38 = call <2 x float> @_ZN6Button15getTextPositionEv(ptr noundef nonnull align 8 dereferenceable(880) %0)
  store <2 x float> %38, ptr %12, align 8
  call void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169) %37, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  ret void
}

declare noundef zeroext i1 @_ZN2sf4Font12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare void @_ZN2sf4Text7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare void @_ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(169), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN6Button7getPofVEffRKN2sf7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(880), float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

declare void @_ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

declare void @_ZN2sf5Shape19setOutlineThicknessEf(ptr noundef nonnull align 8 dereferenceable(336), float noundef) local_unnamed_addr #2

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2sf14RectangleShape7getSizeEv(ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #2

declare void @_ZN2sf5Shape15setOutlineColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #2

declare void @_ZN2sf4Text16setCharacterSizeEj(ptr noundef nonnull align 8 dereferenceable(368), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN6Button15getTextPositionEv(ptr noundef nonnull align 8 dereferenceable(880)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN2sf7Vector2IfEE", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


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