; LLVM IR from cieslarmichal/rpg :: src/Sprite.ll/ZN6SpriteC2ENSt7 (cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiii)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sf::Rect" = type { i32, i32, i32, i32 }
%class.Sprite = type { %"class.sf::Sprite", %"class.sf::Texture", %"class.std::__cxx11::basic_string", i32, i32, i32, i32 }
%"class.sf::Sprite" = type { %"class.sf::Drawable", %"class.sf::Transformable.base", [4 x %"class.sf::Vertex"], ptr, %"class.sf::Rect" }
%"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::Vector2" = type { float, float }
%"class.sf::Transform" = type { [16 x float] }
%"class.sf::Vertex" = type { %"class.sf::Vector2", %"class.sf::Color", %"class.sf::Vector2" }
%"class.sf::Color" = type { i8, i8, i8, i8 }
%"class.sf::Texture" = type { %"class.sf::Vector2.0", %"class.sf::Vector2.0", i32, i8, i8, i8, i8, i8, i8, i64 }
%"class.sf::Vector2.0" = type { i32, i32 }
%"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] }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SpriteC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiii(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.sf::Rect", align 4
  %16 = alloca %"class.sf::Rect", align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %17 = load ptr, ptr %7, align 8
  %18 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 0
  call void @_ZN2sf6SpriteC1Ev(ptr noundef nonnull align 8 dereferenceable(288) %18)
  %19 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 1
  invoke void @_ZN2sf7TextureC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %20 unwind label %38

20:                                               ; preds = %6
  %21 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 2
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %22 unwind label %42

22:                                               ; preds = %20
  %23 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 3
  %24 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %24, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 4
  %26 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %26, ptr %25, align 4, !tbaa !27
  %27 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 6
  store i32 0, ptr %27, align 4, !tbaa !28
  %28 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 5
  store i32 0, ptr %28, align 8, !tbaa !29
  %29 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 1
  %30 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  invoke void @_ZN2sf4RectIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %31 unwind label %46

31:                                               ; preds = %22
  %32 = invoke noundef zeroext i1 @_ZN2sf7Texture12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %33 unwind label %46

33:                                               ; preds = %31
  %34 = xor i1 %32, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br i1 %34, label %35, label %54

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
          to label %37 unwind label %50

37:                                               ; preds = %35
  br label %54

38:                                               ; preds = %6
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %13, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %14, align 4
  br label %110

42:                                               ; preds = %20
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %13, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %14, align 4
  br label %109

46:                                               ; preds = %31, %22
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %13, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %108

50:                                               ; preds = %97, %91, %85, %79, %76, %66, %54, %35
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  br label %108

54:                                               ; preds = %37, %33
  %55 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 0
  %56 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 1
  invoke void @_ZN2sf6Sprite10setTextureERKNS_7TextureEb(ptr noundef nonnull align 8 dereferenceable(288) %55, ptr noundef nonnull align 8 dereferenceable(40) %56, i1 noundef zeroext false)
          to label %57 unwind label %50

57:                                               ; preds = %54
  %58 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 3
  %62 = load i32, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 4
  %64 = load i32, ptr %63, align 4, !tbaa !27
  invoke void @_ZN2sf4RectIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %16, i32 noundef %59, i32 noundef %60, i32 noundef %62, i32 noundef %64)
          to label %65 unwind label %72

65:                                               ; preds = %57
  invoke void @_ZN2sf6Sprite14setTextureRectERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(288) %58, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %66 unwind label %72

66:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  %67 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.1)
          to label %68 unwind label %50

68:                                               ; preds = %66
  br i1 %67, label %69, label %76

69:                                               ; preds = %68
  %70 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 5
  store i32 -11, ptr %70, align 8, !tbaa !29
  %71 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 6
  store i32 -20, ptr %71, align 4, !tbaa !28
  br label %107

72:                                               ; preds = %65, %57
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %108

76:                                               ; preds = %68
  %77 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.2)
          to label %78 unwind label %50

78:                                               ; preds = %76
  br i1 %77, label %82, label %79

79:                                               ; preds = %78
  %80 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.3)
          to label %81 unwind label %50

81:                                               ; preds = %79
  br i1 %80, label %82, label %85

82:                                               ; preds = %81, %78
  %83 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 5
  store i32 0, ptr %83, align 8, !tbaa !29
  %84 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 6
  store i32 -4, ptr %84, align 4, !tbaa !28
  br label %106

85:                                               ; preds = %81
  %86 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.4)
          to label %87 unwind label %50

87:                                               ; preds = %85
  br i1 %86, label %88, label %91

88:                                               ; preds = %87
  %89 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 5
  store i32 -30, ptr %89, align 8, !tbaa !29
  %90 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 6
  store i32 -34, ptr %90, align 4, !tbaa !28
  br label %105

91:                                               ; preds = %87
  %92 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.5)
          to label %93 unwind label %50

93:                                               ; preds = %91
  br i1 %92, label %94, label %97

94:                                               ; preds = %93
  %95 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 5
  store i32 -18, ptr %95, align 8, !tbaa !29
  %96 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 6
  store i32 -74, ptr %96, align 4, !tbaa !28
  br label %104

97:                                               ; preds = %93
  %98 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.6)
          to label %99 unwind label %50

99:                                               ; preds = %97
  br i1 %98, label %100, label %103

100:                                              ; preds = %99
  %101 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 5
  store i32 -4, ptr %101, align 8, !tbaa !29
  %102 = getelementptr inbounds %class.Sprite, ptr %17, i32 0, i32 6
  store i32 2, ptr %102, align 4, !tbaa !28
  br label %103

103:                                              ; preds = %100, %99
  br label %104

104:                                              ; preds = %103, %94
  br label %105

105:                                              ; preds = %104, %88
  br label %106

106:                                              ; preds = %105, %82
  br label %107

107:                                              ; preds = %106, %69
  ret void

108:                                              ; preds = %72, %50, %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %109

109:                                              ; preds = %108, %42
  call void @_ZN2sf7TextureD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #7
  br label %110

110:                                              ; preds = %109, %38
  call void @_ZN2sf6SpriteD2Ev(ptr noundef nonnull align 8 dereferenceable(288) %18) #7
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %13, align 8
  %113 = load i32, ptr %14, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

declare void @_ZN2sf6SpriteC1Ev(ptr noundef nonnull align 8 dereferenceable(288)) unnamed_addr #1

declare void @_ZN2sf7TextureC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; 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 noundef zeroext i1 @_ZN2sf7Texture12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(16)) #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

declare void @_ZN2sf6Sprite10setTextureERKNS_7TextureEb(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #1

declare void @_ZN2sf6Sprite14setTextureRectERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 4 dereferenceable(16)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2sf4RectIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

; 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: nounwind
declare void @_ZN2sf7TextureD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2sf6SpriteD2Ev(ptr noundef nonnull align 8 dereferenceable(288)) unnamed_addr #5 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 nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 360}
!12 = !{!"_ZTS6Sprite", !13, i64 0, !21, i64 288, !24, i64 328, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372}
!13 = !{!"_ZTSN2sf6SpriteE", !14, i64 0, !15, i64 8, !7, i64 180, !6, i64 264, !20, i64 272}
!14 = !{!"_ZTSN2sf8DrawableE"}
!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", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!21 = !{!"_ZTSN2sf7TextureE", !22, i64 0, !22, i64 8, !10, i64 16, !19, i64 20, !19, i64 21, !19, i64 22, !19, i64 23, !19, i64 24, !19, i64 25, !23, i64 32}
!22 = !{!"_ZTSN2sf7Vector2IjEE", !10, i64 0, !10, i64 4}
!23 = !{!"long long", !7, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!12, !10, i64 364}
!28 = !{!12, !10, i64 372}
!29 = !{!12, !10, i64 368}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sf::Rect" = type { i32, i32, i32, i32 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SpriteC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiii(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.sf::Rect", align 4
  %8 = alloca %"class.sf::Rect", align 4
  tail call void @_ZN2sf6SpriteC1Ev(ptr noundef nonnull align 8 dereferenceable(288) %0)
  %9 = getelementptr inbounds i8, ptr %0, i64 288
  invoke void @_ZN2sf7TextureC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %10 unwind label %21

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 328
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %12 unwind label %23

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  store i32 %2, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 364
  store i32 %3, ptr %14, align 4, !tbaa !25
  %15 = getelementptr inbounds i8, ptr %0, i64 372
  store i32 0, ptr %15, align 4, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %0, i64 368
  store i32 0, ptr %16, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN2sf4RectIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %17 = invoke noundef zeroext i1 @_ZN2sf7Texture12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %18 unwind label %25

18:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br i1 %17, label %29, label %19

19:                                               ; preds = %18
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
          to label %29 unwind label %27

21:                                               ; preds = %6
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %51

23:                                               ; preds = %10
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %50

25:                                               ; preds = %12
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %49

27:                                               ; preds = %29, %19
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %49

29:                                               ; preds = %19, %18
  invoke void @_ZN2sf6Sprite10setTextureERKNS_7TextureEb(ptr noundef nonnull align 8 dereferenceable(288) %0, ptr noundef nonnull align 8 dereferenceable(40) %9, i1 noundef zeroext false)
          to label %30 unwind label %27

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %31 = load i32, ptr %13, align 8, !tbaa !5
  %32 = load i32, ptr %14, align 4, !tbaa !25
  call void @_ZN2sf4RectIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef %4, i32 noundef %5, i32 noundef %31, i32 noundef %32)
  invoke void @_ZN2sf6Sprite14setTextureRectERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(288) %0, ptr noundef nonnull align 4 dereferenceable(16) %8)
          to label %33 unwind label %35

33:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %34 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.1)
  br i1 %34, label %.sink.split, label %37

35:                                               ; preds = %30
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %49

37:                                               ; preds = %33
  %38 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.2)
  br i1 %38, label %.sink.split, label %39

39:                                               ; preds = %37
  %40 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.3)
  br i1 %40, label %.sink.split, label %41

41:                                               ; preds = %39
  %42 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.4)
  br i1 %42, label %.sink.split, label %43

43:                                               ; preds = %41
  %44 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.5)
  br i1 %44, label %.sink.split, label %45

45:                                               ; preds = %43
  %46 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.6)
  br i1 %46, label %.sink.split, label %48

.sink.split:                                      ; preds = %45, %43, %41, %37, %39, %33
  %47 = phi <2 x i32> [ <i32 -11, i32 -20>, %33 ], [ <i32 0, i32 -4>, %39 ], [ <i32 0, i32 -4>, %37 ], [ <i32 -30, i32 -34>, %41 ], [ <i32 -18, i32 -74>, %43 ], [ <i32 -4, i32 2>, %45 ]
  store <2 x i32> %47, ptr %16, align 8, !tbaa !28
  br label %48

48:                                               ; preds = %.sink.split, %45
  ret void

49:                                               ; preds = %35, %27, %25
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %28, %27 ], [ %26, %25 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %50

50:                                               ; preds = %49, %23
  %.pn.pn = phi { ptr, i32 } [ %.pn, %49 ], [ %24, %23 ]
  call void @_ZN2sf7TextureD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %51

51:                                               ; preds = %50, %21
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %50 ], [ %22, %21 ]
  call void @_ZN2sf6SpriteD2Ev(ptr noundef nonnull align 8 dereferenceable(288) %0) #7
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZN2sf6SpriteC1Ev(ptr noundef nonnull align 8 dereferenceable(288)) unnamed_addr #1

declare void @_ZN2sf7TextureC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; 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 noundef zeroext i1 @_ZN2sf7Texture12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

declare void @_ZN2sf6Sprite10setTextureERKNS_7TextureEb(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN2sf6Sprite14setTextureRectERKNS_4RectIiEE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2sf4RectIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

; 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: nounwind
declare void @_ZN2sf7TextureD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2sf6SpriteD2Ev(ptr noundef nonnull align 8 dereferenceable(288)) unnamed_addr #5 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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, !18, i64 360}
!6 = !{!"_ZTS6Sprite", !7, i64 0, !19, i64 288, !22, i64 328, !18, i64 360, !18, i64 364, !18, i64 368, !18, i64 372}
!7 = !{!"_ZTSN2sf6SpriteE", !8, i64 0, !9, i64 8, !12, i64 180, !16, i64 264, !17, i64 272}
!8 = !{!"_ZTSN2sf8DrawableE"}
!9 = !{!"_ZTSN2sf13TransformableE", !10, i64 8, !10, i64 16, !11, i64 24, !10, i64 28, !14, i64 36, !15, i64 100, !14, i64 104, !15, i64 168}
!10 = !{!"_ZTSN2sf7Vector2IfEE", !11, i64 0, !11, i64 4}
!11 = !{!"float", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN2sf9TransformE", !12, i64 0}
!15 = !{!"bool", !12, i64 0}
!16 = !{!"any pointer", !12, i64 0}
!17 = !{!"_ZTSN2sf4RectIiEE", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!18 = !{!"int", !12, i64 0}
!19 = !{!"_ZTSN2sf7TextureE", !20, i64 0, !20, i64 8, !18, i64 16, !15, i64 20, !15, i64 21, !15, i64 22, !15, i64 23, !15, i64 24, !15, i64 25, !21, i64 32}
!20 = !{!"_ZTSN2sf7Vector2IjEE", !18, i64 0, !18, i64 4}
!21 = !{!"long long", !12, i64 0}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !24, i64 8, !12, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!24 = !{!"long", !12, i64 0}
!25 = !{!6, !18, i64 364}
!26 = !{!6, !18, i64 372}
!27 = !{!6, !18, i64 368}
!28 = !{!18, !18, i64 0}


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