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

; 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::Time" = type { i64 }
%"class.sf::Color" = type { i8, i8, i8, i8 }
%"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.std::locale" = type { ptr }
%class.SwitchButton = type <{ %class.Button, %"class.sf::Clock", i8, [7 x 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::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::__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::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 }
%"class.sf::Vector2" = type { float, float }
%"class.sf::Clock" = type { %"class.sf::Time" }

@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN2sf5ColorC1Ehhhh(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #0

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

declare void @_ZN2sf4Text9setStringERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: nounwind
declare void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

declare void @_ZN2sf6StringC1EPKcRKSt6locale(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

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

; Function Attrs: nounwind
declare void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12SwitchButton6updateEv(ptr noundef nonnull align 8 dereferenceable(889) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.sf::Time", align 8
  %4 = alloca %"class.sf::Time", align 8
  %5 = alloca %"class.sf::Color", align 1
  %6 = alloca %"class.sf::String", align 8
  %7 = alloca %"class.std::locale", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.sf::Color", align 1
  %11 = alloca %"class.sf::String", align 8
  %12 = alloca %"class.std::locale", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %14 = getelementptr inbounds %class.SwitchButton, ptr %13, i32 0, i32 1
  %15 = call i64 @_ZNK2sf5Clock14getElapsedTimeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %16 = getelementptr inbounds %"class.sf::Time", ptr %3, i32 0, i32 0
  store i64 %15, ptr %16, align 8
  %17 = call noundef i32 @_ZNK2sf4Time14asMillisecondsEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %18 = sitofp i32 %17 to float
  %19 = fcmp olt float %18, 3.500000e+02
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br i1 %19, label %20, label %21

20:                                               ; preds = %1
  br label %67

21:                                               ; preds = %1
  %22 = getelementptr inbounds %class.Button, ptr %13, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %25, label %35

25:                                               ; preds = %21
  %26 = getelementptr inbounds %class.SwitchButton, ptr %13, i32 0, i32 2
  %27 = load i8, ptr %26, align 8, !tbaa !52, !range !56, !noundef !57
  %28 = trunc i8 %27 to i1
  %29 = xor i1 %28, true
  %30 = getelementptr inbounds %class.SwitchButton, ptr %13, i32 0, i32 2
  %31 = zext i1 %29 to i8
  store i8 %31, ptr %30, align 8, !tbaa !52
  %32 = getelementptr inbounds %class.SwitchButton, ptr %13, i32 0, i32 1
  %33 = call i64 @_ZN2sf5Clock7restartEv(ptr noundef nonnull align 8 dereferenceable(8) %32)
  %34 = getelementptr inbounds %"class.sf::Time", ptr %4, i32 0, i32 0
  store i64 %33, ptr %34, align 8
  br label %35

35:                                               ; preds = %25, %21
  %36 = getelementptr inbounds %class.SwitchButton, ptr %13, i32 0, i32 2
  %37 = load i8, ptr %36, align 8, !tbaa !52, !range !56, !noundef !57
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %53

39:                                               ; preds = %35
  %40 = getelementptr inbounds %class.Button, ptr %13, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @_ZN2sf5ColorC1Ehhhh(ptr noundef nonnull align 1 dereferenceable(4) %5, i8 noundef zeroext 55, i8 noundef zeroext -128, i8 noundef zeroext 74, i8 noundef zeroext -66)
  call void @_ZN2sf5Shape12setFillColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336) %40, ptr noundef nonnull align 1 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %41 = getelementptr inbounds %class.Button, ptr %13, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  invoke void @_ZN2sf6StringC1EPKcRKSt6locale(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %42 unwind label %44

42:                                               ; preds = %39
  invoke void @_ZN2sf4Text9setStringERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(368) %41, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %43 unwind label %48

43:                                               ; preds = %42
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  br label %67

44:                                               ; preds = %39
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %8, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %9, align 4
  br label %52

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %8, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %9, align 4
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %52

52:                                               ; preds = %48, %44
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  br label %68

53:                                               ; preds = %35
  %54 = getelementptr inbounds %class.Button, ptr %13, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @_ZN2sf5ColorC1Ehhhh(ptr noundef nonnull align 1 dereferenceable(4) %10, i8 noundef zeroext 97, i8 noundef zeroext 0, i8 noundef zeroext 11, i8 noundef zeroext -66)
  call void @_ZN2sf5Shape12setFillColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336) %54, ptr noundef nonnull align 1 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %55 = getelementptr inbounds %class.Button, ptr %13, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  invoke void @_ZN2sf6StringC1EPKcRKSt6locale(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.2, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %56 unwind label %58

56:                                               ; preds = %53
  invoke void @_ZN2sf4Text9setStringERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(368) %55, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %57 unwind label %62

57:                                               ; preds = %56
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %67

58:                                               ; preds = %53
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %8, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %9, align 4
  br label %66

62:                                               ; preds = %56
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %8, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %9, align 4
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %66

66:                                               ; preds = %62, %58
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %68

67:                                               ; preds = %57, %43, %20
  ret void

68:                                               ; preds = %66, %52
  %69 = load ptr, ptr %8, align 8
  %70 = load i32, ptr %9, align 4
  %71 = insertvalue { ptr, i32 } poison, ptr %69, 0
  %72 = insertvalue { ptr, i32 } %71, i32 %70, 1
  resume { ptr, i32 } %72
}

declare i64 @_ZNK2sf5Clock14getElapsedTimeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

declare noundef i32 @_ZNK2sf4Time14asMillisecondsEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

declare i64 @_ZN2sf5Clock7restartEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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, !12, i64 8}
!10 = !{!"_ZTS6Button", !11, i64 0, !12, i64 8, !13, i64 16, !30, i64 360, !36, i64 728, !16, i64 872}
!11 = !{!"_ZTSN2sf8DrawableE"}
!12 = !{!"_ZTSN6Button11ButtonStateE", !7, i64 0}
!13 = !{!"_ZTSN2sf14RectangleShapeE", !14, i64 0, !16, i64 336}
!14 = !{!"_ZTSN2sf5ShapeE", !11, i64 0, !15, i64 8, !6, i64 184, !20, i64 192, !22, i64 208, !22, i64 212, !17, i64 216, !23, i64 224, !23, i64 264, !29, i64 304, !29, i64 320}
!15 = !{!"_ZTSN2sf13TransformableE", !16, i64 8, !16, i64 16, !17, i64 24, !16, i64 28, !18, i64 36, !19, i64 100, !18, i64 104, !19, i64 168}
!16 = !{!"_ZTSN2sf7Vector2IfEE", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSN2sf9TransformE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN2sf4RectIiEE", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN2sf5ColorE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!23 = !{!"_ZTSN2sf11VertexArrayE", !11, i64 0, !24, i64 8, !28, i64 32}
!24 = !{!"_ZTSSt6vectorIN2sf6VertexESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN2sf6VertexESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSN2sf13PrimitiveTypeE", !7, i64 0}
!29 = !{!"_ZTSN2sf4RectIfEE", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!30 = !{!"_ZTSN2sf4TextE", !11, i64 0, !15, i64 8, !31, i64 184, !6, i64 216, !21, i64 224, !17, i64 228, !17, i64 232, !21, i64 236, !22, i64 240, !22, i64 244, !17, i64 248, !23, i64 256, !23, i64 296, !29, i64 336, !19, i64 352, !35, i64 360}
!31 = !{!"_ZTSN2sf6StringE", !32, i64 0}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEEE", !33, i64 0, !34, i64 8, !7, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEE12_Alloc_hiderE", !6, i64 0}
!34 = !{!"long", !7, i64 0}
!35 = !{!"long long", !7, i64 0}
!36 = !{!"_ZTSN2sf4FontE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !37, i64 40, !40, i64 72, !48, i64 120}
!37 = !{!"_ZTSN2sf4Font4InfoE", !38, i64 0}
!38 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !39, i64 0, !34, i64 8, !7, i64 16}
!39 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!40 = !{!"_ZTSSt3mapIjN2sf4Font4PageESt4lessIjESaISt4pairIKjS2_EEE", !41, i64 0}
!41 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE", !42, i64 0}
!42 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !43, i64 0, !45, i64 8}
!43 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !44, i64 0}
!44 = !{!"_ZTSSt4lessIjE"}
!45 = !{!"_ZTSSt15_Rb_tree_header", !46, i64 0, !34, i64 32}
!46 = !{!"_ZTSSt18_Rb_tree_node_base", !47, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!47 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!48 = !{!"_ZTSSt6vectorIhSaIhEE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!52 = !{!53, !19, i64 888}
!53 = !{!"_ZTS12SwitchButton", !10, i64 0, !54, i64 880, !19, i64 888}
!54 = !{!"_ZTSN2sf5ClockE", !55, i64 0}
!55 = !{!"_ZTSN2sf4TimeE", !35, i64 0}
!56 = !{i8 0, i8 2}
!57 = !{}


; 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::Time" = type { i64 }
%"class.sf::Color" = type { i8, i8, i8, i8 }
%"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.std::locale" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN2sf5ColorC1Ehhhh(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #0

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

declare void @_ZN2sf4Text9setStringERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

declare void @_ZN2sf6StringC1EPKcRKSt6locale(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

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

; Function Attrs: nounwind
declare void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12SwitchButton6updateEv(ptr noundef nonnull align 8 dereferenceable(889) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.sf::Time", align 8
  %3 = alloca %"class.sf::Color", align 1
  %4 = alloca %"class.sf::String", align 8
  %5 = alloca %"class.std::locale", align 8
  %6 = alloca %"class.sf::Color", align 1
  %7 = alloca %"class.sf::String", align 8
  %8 = alloca %"class.std::locale", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 880
  %10 = tail call i64 @_ZNK2sf5Clock14getElapsedTimeEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  store i64 %10, ptr %2, align 8
  %11 = call noundef i32 @_ZNK2sf4Time14asMillisecondsEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %12 = icmp slt i32 %11, 350
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br i1 %12, label %45, label %13

13:                                               ; preds = %1
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = icmp eq i32 %15, 2
  br i1 %16, label %17, label %22

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 888
  %19 = load i8, ptr %18, align 8, !tbaa !51, !range !55, !noundef !56
  %20 = xor i8 %19, 1
  store i8 %20, ptr %18, align 8, !tbaa !51
  %21 = call i64 @_ZN2sf5Clock7restartEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  br label %22

22:                                               ; preds = %17, %13
  %23 = getelementptr inbounds i8, ptr %0, i64 888
  %24 = load i8, ptr %23, align 8, !tbaa !51, !range !55, !noundef !56
  %25 = trunc nuw i8 %24 to i1
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  br i1 %25, label %27, label %36

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @_ZN2sf5ColorC1Ehhhh(ptr noundef nonnull align 1 dereferenceable(4) %3, i8 noundef zeroext 55, i8 noundef zeroext -128, i8 noundef zeroext 74, i8 noundef zeroext -66)
  call void @_ZN2sf5Shape12setFillColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336) %26, ptr noundef nonnull align 1 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  invoke void @_ZN2sf6StringC1EPKcRKSt6locale(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %28 unwind label %31

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 360
  invoke void @_ZN2sf4Text9setStringERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(368) %29, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %30 unwind label %33

30:                                               ; preds = %28
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %45

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

33:                                               ; preds = %28
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %35

35:                                               ; preds = %33, %31
  %.pn6 = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %46

36:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN2sf5ColorC1Ehhhh(ptr noundef nonnull align 1 dereferenceable(4) %6, i8 noundef zeroext 97, i8 noundef zeroext 0, i8 noundef zeroext 11, i8 noundef zeroext -66)
  call void @_ZN2sf5Shape12setFillColorERKNS_5ColorE(ptr noundef nonnull align 8 dereferenceable(336) %26, ptr noundef nonnull align 1 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  invoke void @_ZN2sf6StringC1EPKcRKSt6locale(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.2, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %37 unwind label %40

37:                                               ; preds = %36
  %38 = getelementptr inbounds i8, ptr %0, i64 360
  invoke void @_ZN2sf4Text9setStringERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(368) %38, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %39 unwind label %42

39:                                               ; preds = %37
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  br label %45

40:                                               ; preds = %36
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %37
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2sf6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %44

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  br label %46

45:                                               ; preds = %1, %39, %30
  ret void

46:                                               ; preds = %44, %35
  %.pn6.pn = phi { ptr, i32 } [ %.pn6, %35 ], [ %.pn, %44 ]
  resume { ptr, i32 } %.pn6.pn
}

declare i64 @_ZNK2sf5Clock14getElapsedTimeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

declare noundef i32 @_ZNK2sf4Time14asMillisecondsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

declare i64 @_ZN2sf5Clock7restartEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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, !8, i64 8}
!6 = !{!"_ZTS6Button", !7, i64 0, !8, i64 8, !11, i64 16, !29, i64 360, !35, i64 728, !14, i64 872}
!7 = !{!"_ZTSN2sf8DrawableE"}
!8 = !{!"_ZTSN6Button11ButtonStateE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN2sf14RectangleShapeE", !12, i64 0, !14, i64 336}
!12 = !{!"_ZTSN2sf5ShapeE", !7, i64 0, !13, i64 8, !18, i64 184, !19, i64 192, !21, i64 208, !21, i64 212, !15, i64 216, !22, i64 224, !22, i64 264, !28, i64 304, !28, i64 320}
!13 = !{!"_ZTSN2sf13TransformableE", !14, i64 8, !14, i64 16, !15, i64 24, !14, i64 28, !16, i64 36, !17, i64 100, !16, i64 104, !17, i64 168}
!14 = !{!"_ZTSN2sf7Vector2IfEE", !15, i64 0, !15, i64 4}
!15 = !{!"float", !9, i64 0}
!16 = !{!"_ZTSN2sf9TransformE", !9, i64 0}
!17 = !{!"bool", !9, i64 0}
!18 = !{!"any pointer", !9, i64 0}
!19 = !{!"_ZTSN2sf4RectIiEE", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12}
!20 = !{!"int", !9, i64 0}
!21 = !{!"_ZTSN2sf5ColorE", !9, i64 0, !9, i64 1, !9, i64 2, !9, i64 3}
!22 = !{!"_ZTSN2sf11VertexArrayE", !7, i64 0, !23, i64 8, !27, i64 32}
!23 = !{!"_ZTSSt6vectorIN2sf6VertexESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN2sf6VertexESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN2sf6VertexESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!27 = !{!"_ZTSN2sf13PrimitiveTypeE", !9, i64 0}
!28 = !{!"_ZTSN2sf4RectIfEE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!29 = !{!"_ZTSN2sf4TextE", !7, i64 0, !13, i64 8, !30, i64 184, !18, i64 216, !20, i64 224, !15, i64 228, !15, i64 232, !20, i64 236, !21, i64 240, !21, i64 244, !15, i64 248, !22, i64 256, !22, i64 296, !28, i64 336, !17, i64 352, !34, i64 360}
!30 = !{!"_ZTSN2sf6StringE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEEE", !32, i64 0, !33, i64 8, !9, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIjSt11char_traitsIjESaIjEE12_Alloc_hiderE", !18, i64 0}
!33 = !{!"long", !9, i64 0}
!34 = !{!"long long", !9, i64 0}
!35 = !{!"_ZTSN2sf4FontE", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !36, i64 40, !39, i64 72, !47, i64 120}
!36 = !{!"_ZTSN2sf4Font4InfoE", !37, i64 0}
!37 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !38, i64 0, !33, i64 8, !9, i64 16}
!38 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !18, i64 0}
!39 = !{!"_ZTSSt3mapIjN2sf4Font4PageESt4lessIjESaISt4pairIKjS2_EEE", !40, i64 0}
!40 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE", !41, i64 0}
!41 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjN2sf4Font4PageEESt10_Select1stIS5_ESt4lessIjESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !42, i64 0, !44, i64 8}
!42 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !43, i64 0}
!43 = !{!"_ZTSSt4lessIjE"}
!44 = !{!"_ZTSSt15_Rb_tree_header", !45, i64 0, !33, i64 32}
!45 = !{!"_ZTSSt18_Rb_tree_node_base", !46, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!46 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!47 = !{!"_ZTSSt6vectorIhSaIhEE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!51 = !{!52, !17, i64 888}
!52 = !{!"_ZTS12SwitchButton", !6, i64 0, !53, i64 880, !17, i64 888}
!53 = !{!"_ZTSN2sf5ClockE", !54, i64 0}
!54 = !{!"_ZTSN2sf4TimeE", !34, i64 0}
!55 = !{i8 0, i8 2}
!56 = !{}


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