; LLVM IR from cieslarmichal/rpg :: src (Text)

; 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::Vector2" = type { float, float }
%"class.sf::Color" = type { i8, i8, i8, i8 }
%class.Text = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.sf::Vector2", %"class.sf::Text", %"class.sf::Font", %"class.sf::Color", i32, float, i32, i32, i8, i8, i8, i8, i8, [7 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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", i8, i64 }
%"class.sf::Drawable" = type { ptr }
%"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::String" = type { %"class.std::__cxx11::basic_string.0" }
%"class.std::__cxx11::basic_string.0" = type { %"struct.std::__cxx11::basic_string<unsigned int>::_Alloc_hider", i64, %union.anon.4 }
%"struct.std::__cxx11::basic_string<unsigned int>::_Alloc_hider" = type { ptr }
%union.anon.4 = type { i64, [8 x i8] }
%"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" = type { float, float, float, float }
%"class.sf::Font" = type { ptr, ptr, ptr, ptr, ptr, %"struct.sf::Font::Info", %"class.std::map", %"class.std::vector.11" }
%"struct.sf::Font::Info" = type { %"class.std::__cxx11::basic_string" }
%"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.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = 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 }

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN2sf4TextC1Ev(ptr noundef nonnull align 8 dereferenceable(368)) unnamed_addr #1

declare void @_ZN2sf4FontC1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2sf4TextD2Ev(ptr noundef nonnull align 8 dereferenceable(368)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TextC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2sf7Vector2IfEENS6_5ColorEbibb(ptr noundef nonnull align 8 dereferenceable(609) %0, ptr noundef %1, <2 x float> %2, i32 %3, i1 noundef zeroext %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.sf::Vector2", align 4
  %10 = alloca %"class.sf::Color", align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store <2 x float> %2, ptr %9, align 4
  store i32 %3, ptr %10, align 1
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  %19 = zext i1 %4 to i8
  store i8 %19, ptr %13, align 1, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !11
  %20 = zext i1 %6 to i8
  store i8 %20, ptr %15, align 1, !tbaa !9
  %21 = zext i1 %7 to i8
  store i8 %21, ptr %16, align 1, !tbaa !9
  %22 = load ptr, ptr %11, align 8
  %23 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %24 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  %25 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !13
  %26 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 3
  invoke void @_ZN2sf4TextC1Ev(ptr noundef nonnull align 8 dereferenceable(368) %26)
          to label %27 unwind label %51

27:                                               ; preds = %8
  %28 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 4
  invoke void @_ZN2sf4FontC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %28)
          to label %29 unwind label %55

29:                                               ; preds = %27
  %30 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 1 %10, i64 4, i1 false), !tbaa.struct !16
  %31 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 6
  %32 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %32, ptr %31, align 4, !tbaa !18
  %33 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 12
  %34 = load i8, ptr %15, align 1, !tbaa !9, !range !54, !noundef !55
  %35 = trunc i8 %34 to i1
  %36 = zext i1 %35 to i8
  store i8 %36, ptr %33, align 2, !tbaa !56
  %37 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 13
  %38 = load i8, ptr %16, align 1, !tbaa !9, !range !54, !noundef !55
  %39 = trunc i8 %38 to i1
  %40 = zext i1 %39 to i8
  store i8 %40, ptr %37, align 1, !tbaa !57
  %41 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 14
  %42 = load i8, ptr %13, align 1, !tbaa !9, !range !54, !noundef !55
  %43 = trunc i8 %42 to i1
  %44 = zext i1 %43 to i8
  store i8 %44, ptr %41, align 8, !tbaa !58
  %45 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 14
  %46 = load i8, ptr %45, align 8, !tbaa !58, !range !54, !noundef !55
  %47 = trunc i8 %46 to i1
  br i1 %47, label %48, label %59

48:                                               ; preds = %29
  %49 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 7
  store float 1.000000e+00, ptr %49, align 8, !tbaa !59
  %50 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 8
  store i32 40, ptr %50, align 4, !tbaa !60
  br label %62

51:                                               ; preds = %8
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %17, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %18, align 4
  br label %71

55:                                               ; preds = %27
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %17, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %18, align 4
  call void @_ZN2sf4TextD2Ev(ptr noundef nonnull align 8 dereferenceable(368) %26) #6
  br label %71

59:                                               ; preds = %29
  %60 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 7
  store float 0.000000e+00, ptr %60, align 8, !tbaa !59
  %61 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 8
  store i32 150, ptr %61, align 4, !tbaa !60
  br label %62

62:                                               ; preds = %59, %48
  %63 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 13
  %64 = load i8, ptr %63, align 1, !tbaa !57, !range !54, !noundef !55
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %68

66:                                               ; preds = %62
  %67 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 8
  store i32 1, ptr %67, align 4, !tbaa !60
  br label %68

68:                                               ; preds = %66, %62
  %69 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 9
  store i32 0, ptr %69, align 8, !tbaa !61
  %70 = getelementptr inbounds %class.Text, ptr %22, i32 0, i32 10
  store i8 0, ptr %70, align 4, !tbaa !62
  ret void

71:                                               ; preds = %55, %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %17, align 8
  %74 = load i32, ptr %18, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{i64 0, i64 1, !17, i64 1, i64 1, !17, i64 2, i64 1, !17, i64 3, i64 1, !17}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !12, i64 588}
!19 = !{!"_ZTS4Text", !20, i64 0, !20, i64 32, !23, i64 64, !24, i64 72, !40, i64 440, !31, i64 584, !12, i64 588, !15, i64 592, !12, i64 596, !12, i64 600, !10, i64 604, !10, i64 605, !10, i64 606, !10, i64 607, !10, i64 608}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSN2sf7Vector2IfEE", !15, i64 0, !15, i64 4}
!24 = !{!"_ZTSN2sf4TextE", !25, i64 0, !26, i64 8, !28, i64 184, !6, i64 216, !12, i64 224, !15, i64 228, !15, i64 232, !12, i64 236, !31, i64 240, !31, i64 244, !15, i64 248, !32, i64 256, !32, i64 296, !38, i64 336, !10, i64 352, !39, i64 360}
!25 = !{!"_ZTSN2sf8DrawableE"}
!26 = !{!"_ZTSN2sf13TransformableE", !23, i64 8, !23, i64 16, !15, i64 24, !23, i64 28, !27, i64 36, !10, i64 100, !27, i64 104, !10, i64 168}
!27 = !{!"_ZTSN2sf9TransformE", !7, i64 0}
!28 = !{!"_ZTSN2sf6StringE", !29, i64 0}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEEE", !30, i64 0, !22, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"_ZTSN2sf5ColorE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!32 = !{!"_ZTSN2sf11VertexArrayE", !25, i64 0, !33, i64 8, !37, i64 32}
!33 = !{!"_ZTSSt6vectorIN2sf6VertexESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN2sf6VertexESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSN2sf13PrimitiveTypeE", !7, i64 0}
!38 = !{!"_ZTSN2sf4RectIfEE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!39 = !{!"long long", !7, i64 0}
!40 = !{!"_ZTSN2sf4FontE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !41, i64 40, !42, i64 72, !50, i64 120}
!41 = !{!"_ZTSN2sf4Font4InfoE", !20, i64 0}
!42 = !{!"_ZTSSt3mapIjN2sf4Font4PageESt4lessIjESaISt4pairIKjS2_EEE", !43, i64 0}
!43 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE", !44, i64 0}
!44 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !45, i64 0, !47, i64 8}
!45 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !46, i64 0}
!46 = !{!"_ZTSSt4lessIjE"}
!47 = !{!"_ZTSSt15_Rb_tree_header", !48, i64 0, !22, i64 32}
!48 = !{!"_ZTSSt18_Rb_tree_node_base", !49, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!49 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!50 = !{!"_ZTSSt6vectorIhSaIhEE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{i8 0, i8 2}
!55 = !{}
!56 = !{!19, !10, i64 606}
!57 = !{!19, !10, i64 607}
!58 = !{!19, !10, i64 608}
!59 = !{!19, !15, i64 592}
!60 = !{!19, !12, i64 596}
!61 = !{!19, !12, i64 600}
!62 = !{!19, !10, i64 604}


; 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
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN2sf4TextC1Ev(ptr noundef nonnull align 8 dereferenceable(368)) unnamed_addr #1

declare void @_ZN2sf4FontC1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2sf4TextD2Ev(ptr noundef nonnull align 8 dereferenceable(368)) unnamed_addr #2 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TextC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2sf7Vector2IfEENS6_5ColorEbibb(ptr noundef nonnull align 8 dereferenceable(609) %0, ptr noundef nonnull %1, <2 x float> %2, i32 %3, i1 noundef zeroext %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  store <2 x float> %2, ptr %10, align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_ZN2sf4TextC1Ev(ptr noundef nonnull align 8 dereferenceable(368) %11)
          to label %12 unwind label %27

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 440
  invoke void @_ZN2sf4FontC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %14 unwind label %29

14:                                               ; preds = %12
  %15 = zext i1 %7 to i8
  %16 = zext i1 %6 to i8
  %17 = zext i1 %4 to i8
  %18 = getelementptr inbounds i8, ptr %0, i64 584
  store i32 %3, ptr %18, align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 588
  store i32 %5, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 606
  store i8 %16, ptr %20, align 2, !tbaa !47
  %21 = getelementptr inbounds i8, ptr %0, i64 607
  store i8 %15, ptr %21, align 1, !tbaa !48
  %22 = getelementptr inbounds i8, ptr %0, i64 608
  store i8 %17, ptr %22, align 8, !tbaa !49
  %.sink9 = select i1 %4, float 1.000000e+00, float 0.000000e+00
  %.sink = select i1 %4, i32 40, i32 150
  %23 = getelementptr inbounds i8, ptr %0, i64 592
  store float %.sink9, ptr %23, align 8
  %storemerge = select i1 %7, i32 1, i32 %.sink
  %24 = getelementptr inbounds i8, ptr %0, i64 596
  store i32 %storemerge, ptr %24, align 4
  %25 = getelementptr inbounds i8, ptr %0, i64 600
  store i32 0, ptr %25, align 8, !tbaa !50
  %26 = getelementptr inbounds i8, ptr %0, i64 604
  store i8 0, ptr %26, align 4, !tbaa !51
  ret void

27:                                               ; preds = %8
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %12
  %30 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN2sf4TextD2Ev(ptr noundef nonnull align 8 dereferenceable(368) %11) #5
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 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 = { "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 = { 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"="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 #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, !23, i64 588}
!6 = !{!"_ZTS4Text", !7, i64 0, !7, i64 32, !13, i64 64, !15, i64 72, !33, i64 440, !24, i64 584, !23, i64 588, !14, i64 592, !23, i64 596, !23, i64 600, !19, i64 604, !19, i64 605, !19, i64 606, !19, i64 607, !19, i64 608}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN2sf7Vector2IfEE", !14, i64 0, !14, i64 4}
!14 = !{!"float", !10, i64 0}
!15 = !{!"_ZTSN2sf4TextE", !16, i64 0, !17, i64 8, !20, i64 184, !9, i64 216, !23, i64 224, !14, i64 228, !14, i64 232, !23, i64 236, !24, i64 240, !24, i64 244, !14, i64 248, !25, i64 256, !25, i64 296, !31, i64 336, !19, i64 352, !32, i64 360}
!16 = !{!"_ZTSN2sf8DrawableE"}
!17 = !{!"_ZTSN2sf13TransformableE", !13, i64 8, !13, i64 16, !14, i64 24, !13, i64 28, !18, i64 36, !19, i64 100, !18, i64 104, !19, i64 168}
!18 = !{!"_ZTSN2sf9TransformE", !10, i64 0}
!19 = !{!"bool", !10, i64 0}
!20 = !{!"_ZTSN2sf6StringE", !21, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEEE", !22, i64 0, !12, i64 8, !10, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEE12_Alloc_hiderE", !9, i64 0}
!23 = !{!"int", !10, i64 0}
!24 = !{!"_ZTSN2sf5ColorE", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3}
!25 = !{!"_ZTSN2sf11VertexArrayE", !16, i64 0, !26, i64 8, !30, i64 32}
!26 = !{!"_ZTSSt6vectorIN2sf6VertexESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN2sf6VertexESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!30 = !{!"_ZTSN2sf13PrimitiveTypeE", !10, i64 0}
!31 = !{!"_ZTSN2sf4RectIfEE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!32 = !{!"long long", !10, i64 0}
!33 = !{!"_ZTSN2sf4FontE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !34, i64 40, !35, i64 72, !43, i64 120}
!34 = !{!"_ZTSN2sf4Font4InfoE", !7, i64 0}
!35 = !{!"_ZTSSt3mapIjN2sf4Font4PageESt4lessIjESaISt4pairIKjS2_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessIjE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !12, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!43 = !{!"_ZTSSt6vectorIhSaIhEE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!47 = !{!6, !19, i64 606}
!48 = !{!6, !19, i64 607}
!49 = !{!6, !19, i64 608}
!50 = !{!6, !23, i64 600}
!51 = !{!6, !19, i64 604}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass