; LLVM IR from ThePhysicsGuys/Physics3D :: graphics/shader/propertiesParser.ll (ZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenE)

; 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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [3 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property::Type>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property::Type>::_Storage" = type { i32 }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.std::pair" = type <{ %"class.std::basic_string_view", i32, [4 x i8] }>
%"struct.std::hash" = type { i8 }
%"struct.std::equal_to" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::nullopt_t" = type { i8 }
%"class.P3D::Graphics::Lexer" = type { i64, ptr }

@__dso_handle = external hidden global i8
@_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map = external hidden global %"class.std::unordered_map", align 8
@_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map = external hidden global i64, align 8
@constinit = external hidden constant [11 x { %"class.std::basic_string_view", i32 }], align 8

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::optional", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::basic_string_view", align 8
  %7 = alloca %"class.std::initializer_list", align 8
  %8 = alloca [11 x %"struct.std::pair"], align 8
  %9 = alloca %"struct.std::hash", align 1
  %10 = alloca %"struct.std::equal_to", align 1
  %11 = alloca %"class.std::allocator.2", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::nullopt_t", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #0
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.P3D::Graphics::Lexer", ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef %21)
  %23 = getelementptr inbounds { i64, ptr }, ptr %6, i32 0, i32 0
  %24 = extractvalue { i64, ptr } %22, 0
  store i64 %24, ptr %23, align 8
  %25 = getelementptr inbounds { i64, ptr }, ptr %6, i32 0, i32 1
  %26 = extractvalue { i64, ptr } %22, 1
  store ptr %26, ptr %25, align 8
  %27 = load atomic i8, ptr @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map acquire, align 8
  %28 = icmp eq i8 %27, 0
  br i1 %28, label %29, label %41, !prof !12

29:                                               ; preds = %2
  %30 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #0
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %41

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 264, ptr %8) #0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @constinit, i64 264, i1 false), !tbaa.struct !13
  %33 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 0
  store ptr %8, ptr %33, align 8, !tbaa !15
  %34 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 1
  store i64 11, ptr %34, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #0
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #0
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #0
  call void @_ZNSaISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #0
  %35 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8
  %37 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %38 = load i64, ptr %37, align 8
  invoke void @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEEC2ESt16initializer_listISE_EmRKS9_RKSB_RKSF_(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map, ptr %36, i64 %38, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %39 unwind label %55

39:                                               ; preds = %32
  call void @_ZNSt15__new_allocatorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #0
  call void @llvm.lifetime.end.p0(i64 264, ptr %8) #0
  %40 = call i32 @__cxa_atexit(ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEED2Ev, ptr @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #0
  br label %41

41:                                               ; preds = %39, %29, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #0
  %42 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %43 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %14, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %43, i32 0, i32 0
  store ptr %42, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #0
  %45 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #0
  %46 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %15, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %46, i32 0, i32 0
  store ptr %45, ptr %47, align 8
  %48 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #0
  br i1 %48, label %49, label %59

49:                                               ; preds = %41
  %50 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #0
  %51 = getelementptr inbounds %"struct.std::pair", ptr %50, i32 0, i32 1
  %52 = call i64 @_ZSt13make_optionalIRN3P3D8Graphics8Property4TypeEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES7_EESt8optionalIS9_EE4typeEOS7_(ptr noundef nonnull align 4 dereferenceable(4) %51) #0
  %53 = getelementptr inbounds %"class.std::optional", ptr %3, i32 0, i32 0
  %54 = getelementptr inbounds %"struct.std::_Optional_base", ptr %53, i32 0, i32 0
  store i64 %52, ptr %54, align 4
  store i32 1, ptr %16, align 4
  br label %60

55:                                               ; preds = %32
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %12, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %13, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #0
  call void @llvm.lifetime.end.p0(i64 264, ptr %8) #0
  call void @__cxa_guard_abort(ptr @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #0
  br label %64

59:                                               ; preds = %41
  call void @_ZNSt8optionalIN3P3D8Graphics8Property4TypeEEC2ESt9nullopt_t(ptr noundef nonnull align 4 dereferenceable(8) %3) #0
  store i32 1, ptr %16, align 4
  br label %60

60:                                               ; preds = %59, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #0
  %61 = getelementptr inbounds %"class.std::optional", ptr %3, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.std::_Optional_base", ptr %61, i32 0, i32 0
  %63 = load i64, ptr %62, align 4
  ret i64 %63

64:                                               ; preds = %55
  %65 = load ptr, ptr %12, align 8
  %66 = load i32, ptr %13, align 4
  %67 = insertvalue { ptr, i32 } poison, ptr %65, 0
  %68 = insertvalue { ptr, i32 } %67, i32 %66, 1
  resume { ptr, i32 } %68
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #1 align 2

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

; 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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEEC2ESt16initializer_listISE_EmRKS9_RKSB_RKSF_(ptr noundef nonnull align 8 dereferenceable(56), ptr, i64, i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZSt13make_optionalIRN3P3D8Graphics8Property4TypeEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES7_EESt8optionalIS9_EE4typeEOS7_(ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

!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, !6, i64 8}
!10 = !{!"_ZTSN3P3D8Graphics5LexerE", !11, i64 0, !6, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"branch_weights", i32 1, i32 1048575}
!13 = !{i64 0, i64 264, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt16initializer_listISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEE", !6, i64 0, !11, i64 8}
!17 = !{!16, !11, i64 8}


; 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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [3 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property::Type>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property::Type>::_Storage" = type { i32 }
%"struct.std::pair" = type <{ %"class.std::basic_string_view", i32, [4 x i8] }>
%"struct.std::hash" = type { i8 }
%"struct.std::equal_to" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@__dso_handle = external hidden global i8
@_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map = external hidden global %"class.std::unordered_map", align 8
@_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map = external hidden global i64, align 8
@constinit = external hidden local_unnamed_addr constant [11 x { %"class.std::basic_string_view", i32 }], align 8

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::optional", align 8
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca [11 x %"struct.std::pair"], align 8
  %6 = alloca %"struct.std::hash", align 1
  %7 = alloca %"struct.std::equal_to", align 1
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = tail call { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %12)
  %14 = extractvalue { i64, ptr } %13, 0
  store i64 %14, ptr %4, align 8
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = extractvalue { i64, ptr } %13, 1
  store ptr %16, ptr %15, align 8
  %17 = load atomic i8, ptr @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map acquire, align 8
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %19, label %24, !prof !11

19:                                               ; preds = %2
  %20 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #6
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %24, label %21

21:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 264, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(264) %5, ptr noundef nonnull align 8 dereferenceable(264) @constinit, i64 264, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEEC2ESt16initializer_listISE_EmRKS9_RKSB_RKSF_(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map, ptr nonnull %5, i64 11, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %22 unwind label %32

22:                                               ; preds = %21
  call void @_ZNSt15__new_allocatorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %5) #6
  %23 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEED2Ev, ptr nonnull @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map, ptr nonnull @__dso_handle) #6
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #6
  br label %24

24:                                               ; preds = %22, %19, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %25 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map, ptr noundef nonnull align 8 dereferenceable(16) %4)
  store ptr %25, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %26 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #6
  store ptr %26, ptr %10, align 8
  %27 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br i1 %27, label %28, label %34

28:                                               ; preds = %24
  %29 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %31 = call i64 @_ZSt13make_optionalIRN3P3D8Graphics8Property4TypeEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES7_EESt8optionalIS9_EE4typeEOS7_(ptr noundef nonnull align 4 dereferenceable(4) %30) #6
  br label %35

32:                                               ; preds = %21
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %5) #6
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenEE3map) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  resume { ptr, i32 } %33

34:                                               ; preds = %24
  call void @_ZNSt8optionalIN3P3D8Graphics8Property4TypeEEC2ESt9nullopt_t(ptr noundef nonnull align 4 dereferenceable(8) %3) #6
  %.pre = load i64, ptr %3, align 8
  br label %35

35:                                               ; preds = %34, %28
  %36 = phi i64 [ %.pre, %34 ], [ %31, %28 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret i64 %36
}

; 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 uwtable
declare dso_local { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

; Function Attrs: mustprogress 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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEEC2ESt16initializer_listISE_EmRKS9_RKSB_RKSF_(ptr noundef nonnull align 8 dereferenceable(56), ptr, i64, i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZSt13make_optionalIRN3P3D8Graphics8Property4TypeEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES7_EESt8optionalIS9_EE4typeEOS7_(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEN3P3D8Graphics8Property4TypeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

!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, !10, i64 8}
!6 = !{!"_ZTSN3P3D8Graphics5LexerE", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"branch_weights", i32 1, i32 1048575}
!12 = !{i64 0, i64 264, !13}
!13 = !{!8, !8, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass