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

; 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::optional.31" = type { %"struct.std::_Optional_base.32" }
%"struct.std::_Optional_base.32" = type { %"struct.std::_Optional_payload.34" }
%"struct.std::_Optional_payload.34" = type { %"struct.std::_Optional_payload_base.base.52", [3 x i8] }
%"struct.std::_Optional_payload_base.base.52" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property::Default>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property::Default>::_Storage" = type { %"struct.P3D::Graphics::Property::Default" }
%"struct.P3D::Graphics::Property::Default" = type { float, %"class.std::optional.36", %"class.std::optional.44" }
%"class.std::optional.36" = type { %"struct.std::_Optional_base.37" }
%"struct.std::_Optional_base.37" = type { %"struct.std::_Optional_payload.39" }
%"struct.std::_Optional_payload.39" = type { %"struct.std::_Optional_payload_base.base.41", [3 x i8] }
%"struct.std::_Optional_payload_base.base.41" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property::Range>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property::Range>::_Storage" = type { %"struct.P3D::Graphics::Property::Range" }
%"struct.P3D::Graphics::Property::Range" = type { float, float }
%"class.std::optional.44" = type { %"struct.std::_Optional_base.45" }
%"struct.std::_Optional_base.45" = type { %"struct.std::_Optional_payload.47" }
%"struct.std::_Optional_payload.47" = type { %"struct.std::_Optional_payload_base.base.49", [3 x i8] }
%"struct.std::_Optional_payload_base.base.49" = type <{ %"union.std::_Optional_payload_base<float>::_Storage", i8 }>
%"union.std::_Optional_payload_base<float>::_Storage" = type { float }
%"struct.P3D::Graphics::Lexer::Token" = type { i8, %"struct.P3D::Graphics::Lexer::Range" }
%"struct.P3D::Graphics::Lexer::Range" = type { i64, i64 }
%"class.std::optional.58" = type { %"struct.std::_Optional_base.59" }
%"struct.std::_Optional_base.59" = type { %"struct.std::_Optional_payload.61" }
%"struct.std::_Optional_payload.61" = type { %"struct.std::_Optional_payload.base.68", [7 x i8] }
%"struct.std::_Optional_payload.base.68" = type { %"struct.std::_Optional_payload_base.base.67" }
%"struct.std::_Optional_payload_base.base.67" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property>::_Storage" = type { %"struct.P3D::Graphics::Property" }
%"struct.P3D::Graphics::Property" = type { %"class.std::basic_string_view", %"class.std::basic_string_view", i32, %"class.std::vector" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::nullopt_t" = type { i8 }
%"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.P3D::Graphics::Lexer" = type { i64, ptr }

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics12parseDefaultERNS0_5LexerERKNS1_5TokenE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.31") align 4, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: nounwind
declare void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics13parsePropertyERNS0_5LexerERKNS1_5TokenE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.58") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.P3D::Graphics::Property", align 8
  %8 = alloca %"struct.std::nullopt_t", align 1
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::optional", align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::nullopt_t", align 1
  %14 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %15 = alloca %"struct.std::nullopt_t", align 1
  %16 = alloca %"class.std::basic_string_view", align 8
  %17 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %18 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %19 = alloca %"struct.std::nullopt_t", align 1
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %22 = alloca %"struct.std::nullopt_t", align 1
  %23 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.P3D::Graphics::Property::Default", align 4
  %26 = alloca %"struct.std::nullopt_t", align 1
  %27 = alloca %"struct.std::nullopt_t", align 1
  %28 = alloca i64, align 8
  %29 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %30 = alloca %"struct.std::nullopt_t", align 1
  %31 = alloca %"class.std::optional.31", align 4
  %32 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %33 = alloca %"struct.std::nullopt_t", align 1
  %34 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %35 = alloca %"struct.std::nullopt_t", align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #6
  call void @_ZN3P3D8Graphics8PropertyC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7) #6
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %36, i32 0, i32 0
  %38 = load i8, ptr %37, align 8, !tbaa !9
  %39 = sext i8 %38 to i32
  %40 = icmp ne i32 %39, 15
  br i1 %40, label %41, label %42

41:                                               ; preds = %3
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %232

42:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = invoke i64 @_ZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenE(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(24) %44)
          to label %46 unwind label %51

46:                                               ; preds = %42
  %47 = getelementptr inbounds %"class.std::optional", ptr %10, i32 0, i32 0
  %48 = getelementptr inbounds %"struct.std::_Optional_base", ptr %47, i32 0, i32 0
  store i64 %45, ptr %48, align 4
  %49 = call noundef zeroext i1 @_ZNKSt8optionalIN3P3D8Graphics8Property4TypeEE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %10) #6
  br i1 %49, label %55, label %50

50:                                               ; preds = %46
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %230

51:                                               ; preds = %55, %42
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %11, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %12, align 4
  br label %231

55:                                               ; preds = %46
  %56 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIN3P3D8Graphics8Property4TypeEE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %57 unwind label %51

57:                                               ; preds = %55
  %58 = load i32, ptr %56, align 4, !tbaa !14
  %59 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 2
  store i32 %58, ptr %59, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %60) #6
  %61 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %14, i32 0, i32 0
  %62 = load i8, ptr %61, align 8, !tbaa !9
  %63 = sext i8 %62 to i32
  %64 = icmp ne i32 %63, 16
  br i1 %64, label %65, label %66

65:                                               ; preds = %57
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %228

66:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.P3D::Graphics::Lexer", ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !23
  %70 = invoke { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %69)
          to label %71 unwind label %89

71:                                               ; preds = %66
  %72 = getelementptr inbounds { i64, ptr }, ptr %16, i32 0, i32 0
  %73 = extractvalue { i64, ptr } %70, 0
  store i64 %73, ptr %72, align 8
  %74 = getelementptr inbounds { i64, ptr }, ptr %16, i32 0, i32 1
  %75 = extractvalue { i64, ptr } %70, 1
  store ptr %75, ptr %74, align 8
  %76 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %76, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %77) #6
  %78 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %17, i32 0, i32 0
  %79 = load i8, ptr %78, align 8, !tbaa !9
  %80 = sext i8 %79 to i32
  %81 = icmp eq i32 %80, 4
  br i1 %81, label %82, label %119

82:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %83) #6
  %84 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %18, i32 0, i32 0
  %85 = load i8, ptr %84, align 8, !tbaa !9
  %86 = sext i8 %85 to i32
  %87 = icmp ne i32 %86, 16
  br i1 %87, label %88, label %93

88:                                               ; preds = %82
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %116

89:                                               ; preds = %66
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %11, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %229

93:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.P3D::Graphics::Lexer", ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = invoke { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef %96)
          to label %98 unwind label %110

98:                                               ; preds = %93
  %99 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %100 = extractvalue { i64, ptr } %97, 0
  store i64 %100, ptr %99, align 8
  %101 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %102 = extractvalue { i64, ptr } %97, 1
  store ptr %102, ptr %101, align 8
  %103 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %103, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %104) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  %105 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %17, i32 0, i32 0
  %106 = load i8, ptr %105, align 8, !tbaa !9
  %107 = sext i8 %106 to i32
  %108 = icmp ne i32 %107, 5
  br i1 %108, label %109, label %114

109:                                              ; preds = %98
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %116

110:                                              ; preds = %93
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %11, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  br label %227

114:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %115) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %23, i64 24, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  store i32 0, ptr %9, align 4
  br label %116

116:                                              ; preds = %114, %109, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  %117 = load i32, ptr %9, align 4
  switch i32 %117, label %226 [
    i32 0, label %118
  ]

118:                                              ; preds = %116
  br label %122

119:                                              ; preds = %71
  %120 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 0
  %121 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %121, ptr align 8 %120, i64 16, i1 false), !tbaa.struct !25
  br label %122

122:                                              ; preds = %119, %118
  %123 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %17, i32 0, i32 0
  %124 = load i8, ptr %123, align 8, !tbaa !9
  %125 = sext i8 %124 to i32
  %126 = icmp eq i32 %125, 2
  br i1 %126, label %127, label %159

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i64 0, ptr %24, align 8, !tbaa !26
  br label %128

128:                                              ; preds = %145, %127
  %129 = load i64, ptr %24, align 8, !tbaa !26
  %130 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 2
  %131 = invoke noundef i64 @_ZN3P3D8Graphics5arityERKNS0_8Property4TypeE(ptr noundef nonnull align 4 dereferenceable(4) %130)
          to label %132 unwind label %135

132:                                              ; preds = %128
  %133 = icmp ult i64 %129, %131
  br i1 %133, label %139, label %134

134:                                              ; preds = %132
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %153

135:                                              ; preds = %128
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %11, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %12, align 4
  br label %152

139:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  %140 = getelementptr inbounds %"struct.P3D::Graphics::Property::Default", ptr %25, i32 0, i32 0
  store float 0.000000e+00, ptr %140, align 4, !tbaa !29
  %141 = getelementptr inbounds %"struct.P3D::Graphics::Property::Default", ptr %25, i32 0, i32 1
  call void @_ZNSt8optionalIN3P3D8Graphics8Property5RangeEEC2ESt9nullopt_t(ptr noundef nonnull align 4 dereferenceable(12) %141) #6
  %142 = getelementptr inbounds %"struct.P3D::Graphics::Property::Default", ptr %25, i32 0, i32 2
  call void @_ZNSt8optionalIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %142) #6
  %143 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 3
  invoke void @_ZNSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 4 dereferenceable(24) %25)
          to label %144 unwind label %148

144:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %24, align 8, !tbaa !26
  %147 = add i64 %146, 1
  store i64 %147, ptr %24, align 8, !tbaa !26
  br label %128, !llvm.loop !41

148:                                              ; preds = %139
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %11, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %152

152:                                              ; preds = %148, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %227

153:                                              ; preds = %134
  invoke void @_ZSt13make_optionalIRN3P3D8Graphics8PropertyEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES6_EESt8optionalIS8_EE4typeEOS6_(ptr dead_on_unwind writable sret(%"class.std::optional.58") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %7)
          to label %154 unwind label %155

154:                                              ; preds = %153
  store i32 1, ptr %9, align 4
  br label %226

155:                                              ; preds = %223, %153
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %11, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %12, align 4
  br label %227

159:                                              ; preds = %122
  %160 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %17, i32 0, i32 0
  %161 = load i8, ptr %160, align 8, !tbaa !9
  %162 = sext i8 %161 to i32
  %163 = icmp ne i32 %162, 6
  br i1 %163, label %164, label %165

164:                                              ; preds = %159
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %226

165:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store i64 0, ptr %28, align 8, !tbaa !26
  br label %166

166:                                              ; preds = %206, %165
  %167 = load i64, ptr %28, align 8, !tbaa !26
  %168 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 2
  %169 = invoke noundef i64 @_ZN3P3D8Graphics5arityERKNS0_8Property4TypeE(ptr noundef nonnull align 4 dereferenceable(4) %168)
          to label %170 unwind label %173

170:                                              ; preds = %166
  %171 = icmp ult i64 %167, %169
  br i1 %171, label %177, label %172

172:                                              ; preds = %170
  store i32 5, ptr %9, align 4
  br label %214

173:                                              ; preds = %166
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %11, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %12, align 4
  br label %216

177:                                              ; preds = %170
  %178 = load i64, ptr %28, align 8, !tbaa !26
  %179 = icmp ne i64 %178, 0
  br i1 %179, label %180, label %188

180:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %181) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %29, i64 24, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  %182 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %17, i32 0, i32 0
  %183 = load i8, ptr %182, align 8, !tbaa !9
  %184 = sext i8 %183 to i32
  %185 = icmp ne i32 %184, 1
  br i1 %185, label %186, label %187

186:                                              ; preds = %180
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %214

187:                                              ; preds = %180
  br label %188

188:                                              ; preds = %187, %177
  call void @llvm.lifetime.start.p0(i64 28, ptr %31) #6
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %190) #6
  invoke void @_ZN3P3D8Graphics12parseDefaultERNS0_5LexerERKNS1_5TokenE(ptr dead_on_unwind writable sret(%"class.std::optional.31") align 4 %31, ptr noundef nonnull align 8 dereferenceable(16) %189, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %191 unwind label %194

191:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  %192 = call noundef zeroext i1 @_ZNKSt8optionalIN3P3D8Graphics8Property7DefaultEE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(28) %31) #6
  br i1 %192, label %198, label %193

193:                                              ; preds = %191
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %203

194:                                              ; preds = %188
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %11, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  br label %213

198:                                              ; preds = %191
  %199 = getelementptr inbounds %"struct.P3D::Graphics::Property", ptr %7, i32 0, i32 3
  %200 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZNRSt8optionalIN3P3D8Graphics8Property7DefaultEE5valueEv(ptr noundef nonnull align 4 dereferenceable(28) %31)
          to label %201 unwind label %209

201:                                              ; preds = %198
  invoke void @_ZNSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %199, ptr noundef nonnull align 4 dereferenceable(24) %200)
          to label %202 unwind label %209

202:                                              ; preds = %201
  store i32 0, ptr %9, align 4
  br label %203

203:                                              ; preds = %202, %193
  call void @llvm.lifetime.end.p0(i64 28, ptr %31) #6
  %204 = load i32, ptr %9, align 4
  switch i32 %204, label %214 [
    i32 0, label %205
  ]

205:                                              ; preds = %203
  br label %206

206:                                              ; preds = %205
  %207 = load i64, ptr %28, align 8, !tbaa !26
  %208 = add i64 %207, 1
  store i64 %208, ptr %28, align 8, !tbaa !26
  br label %166, !llvm.loop !43

209:                                              ; preds = %201, %198
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %11, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %12, align 4
  br label %213

213:                                              ; preds = %209, %194
  call void @llvm.lifetime.end.p0(i64 28, ptr %31) #6
  br label %216

214:                                              ; preds = %203, %186, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %215 = load i32, ptr %9, align 4
  switch i32 %215, label %226 [
    i32 5, label %217
  ]

216:                                              ; preds = %213, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %227

217:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %34, ptr noundef nonnull align 8 dereferenceable(16) %218) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %34, i64 24, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  %219 = getelementptr inbounds %"struct.P3D::Graphics::Lexer::Token", ptr %17, i32 0, i32 0
  %220 = load i8, ptr %219, align 8, !tbaa !9
  %221 = sext i8 %220 to i32
  %222 = icmp eq i32 %221, 2
  br i1 %222, label %223, label %225

223:                                              ; preds = %217
  invoke void @_ZSt13make_optionalIRN3P3D8Graphics8PropertyEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES6_EESt8optionalIS8_EE4typeEOS6_(ptr dead_on_unwind writable sret(%"class.std::optional.58") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %7)
          to label %224 unwind label %155

224:                                              ; preds = %223
  store i32 1, ptr %9, align 4
  br label %226

225:                                              ; preds = %217
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store i32 1, ptr %9, align 4
  br label %226

226:                                              ; preds = %225, %224, %214, %164, %154, %116
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %228

227:                                              ; preds = %216, %155, %152, %110
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %229

228:                                              ; preds = %226, %65
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %230

229:                                              ; preds = %227, %89
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %231

230:                                              ; preds = %228, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %232

231:                                              ; preds = %229, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN3P3D8Graphics8PropertyD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #6
  br label %233

232:                                              ; preds = %230, %41
  call void @_ZN3P3D8Graphics8PropertyD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #6
  ret void

233:                                              ; preds = %231
  %234 = load ptr, ptr %11, align 8
  %235 = load i32, ptr %12, align 4
  %236 = insertvalue { ptr, i32 } poison, ptr %234, 0
  %237 = insertvalue { ptr, i32 } %236, i32 %235, 1
  resume { ptr, i32 } %237
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt13make_optionalIRN3P3D8Graphics8PropertyEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES6_EESt8optionalIS8_EE4typeEOS6_(ptr dead_on_unwind noalias writable sret(%"class.std::optional.58") align 8, ptr noundef nonnull align 8 dereferenceable(64)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN3P3D8Graphics8Property7DefaultEE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(28)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZNRSt8optionalIN3P3D8Graphics8Property7DefaultEE5valueEv(ptr noundef nonnull align 4 dereferenceable(28)) #0 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3P3D8Graphics5Lexer5TokenE", !11, i64 0, !12, i64 8}
!11 = !{!"_ZTSN3P3D8Graphics5Lexer5Token4TypeE", !7, i64 0}
!12 = !{!"_ZTSN3P3D8Graphics5Lexer5RangeE", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTSN3P3D8Graphics8Property4TypeE", !7, i64 0}
!16 = !{!17, !15, i64 32}
!17 = !{!"_ZTSN3P3D8Graphics8PropertyE", !18, i64 0, !18, i64 16, !15, i64 32, !19, i64 40}
!18 = !{!"_ZTSSt17basic_string_viewIcSt11char_traitsIcEE", !13, i64 0, !6, i64 8}
!19 = !{!"_ZTSSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3P3D8Graphics8Property7DefaultESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics8Property7DefaultESaIS3_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics8Property7DefaultESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!24, !6, i64 8}
!24 = !{!"_ZTSN3P3D8Graphics5LexerE", !13, i64 0, !6, i64 8}
!25 = !{i64 0, i64 8, !26, i64 8, i64 8, !5}
!26 = !{!13, !13, i64 0}
!27 = !{i64 0, i64 1, !28, i64 8, i64 8, !26, i64 16, i64 8, !26}
!28 = !{!11, !11, i64 0}
!29 = !{!30, !31, i64 0}
!30 = !{!"_ZTSN3P3D8Graphics8Property7DefaultE", !31, i64 0, !32, i64 4, !37, i64 16}
!31 = !{!"float", !7, i64 0}
!32 = !{!"_ZTSSt8optionalIN3P3D8Graphics8Property5RangeEE", !33, i64 0}
!33 = !{!"_ZTSSt14_Optional_baseIN3P3D8Graphics8Property5RangeELb1ELb1EE", !34, i64 0}
!34 = !{!"_ZTSSt17_Optional_payloadIN3P3D8Graphics8Property5RangeELb1ELb1ELb1EE", !35, i64 0}
!35 = !{!"_ZTSSt22_Optional_payload_baseIN3P3D8Graphics8Property5RangeEE", !7, i64 0, !36, i64 8}
!36 = !{!"bool", !7, i64 0}
!37 = !{!"_ZTSSt8optionalIfE", !38, i64 0}
!38 = !{!"_ZTSSt14_Optional_baseIfLb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt17_Optional_payloadIfLb1ELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt22_Optional_payload_baseIfE", !7, i64 0, !36, i64 4}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}


; 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::optional.31" = type { %"struct.std::_Optional_base.32" }
%"struct.std::_Optional_base.32" = type { %"struct.std::_Optional_payload.34" }
%"struct.std::_Optional_payload.34" = type { %"struct.std::_Optional_payload_base.base.52", [3 x i8] }
%"struct.std::_Optional_payload_base.base.52" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property::Default>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property::Default>::_Storage" = type { %"struct.P3D::Graphics::Property::Default" }
%"struct.P3D::Graphics::Property::Default" = type { float, %"class.std::optional.36", %"class.std::optional.44" }
%"class.std::optional.36" = type { %"struct.std::_Optional_base.37" }
%"struct.std::_Optional_base.37" = type { %"struct.std::_Optional_payload.39" }
%"struct.std::_Optional_payload.39" = type { %"struct.std::_Optional_payload_base.base.41", [3 x i8] }
%"struct.std::_Optional_payload_base.base.41" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property::Range>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property::Range>::_Storage" = type { %"struct.P3D::Graphics::Property::Range" }
%"struct.P3D::Graphics::Property::Range" = type { float, float }
%"class.std::optional.44" = type { %"struct.std::_Optional_base.45" }
%"struct.std::_Optional_base.45" = type { %"struct.std::_Optional_payload.47" }
%"struct.std::_Optional_payload.47" = type { %"struct.std::_Optional_payload_base.base.49", [3 x i8] }
%"struct.std::_Optional_payload_base.base.49" = type <{ %"union.std::_Optional_payload_base<float>::_Storage", i8 }>
%"union.std::_Optional_payload_base<float>::_Storage" = type { float }
%"struct.P3D::Graphics::Lexer::Token" = type { i8, %"struct.P3D::Graphics::Lexer::Range" }
%"struct.P3D::Graphics::Lexer::Range" = type { i64, i64 }
%"class.std::optional.58" = type { %"struct.std::_Optional_base.59" }
%"struct.std::_Optional_base.59" = type { %"struct.std::_Optional_payload.61" }
%"struct.std::_Optional_payload.61" = type { %"struct.std::_Optional_payload.base.68", [7 x i8] }
%"struct.std::_Optional_payload.base.68" = type { %"struct.std::_Optional_payload_base.base.67" }
%"struct.std::_Optional_payload_base.base.67" = type <{ %"union.std::_Optional_payload_base<P3D::Graphics::Property>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::Graphics::Property>::_Storage" = type { %"struct.P3D::Graphics::Property" }
%"struct.P3D::Graphics::Property" = type { %"class.std::basic_string_view", %"class.std::basic_string_view", i32, %"class.std::vector" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::Property::Default, std::allocator<P3D::Graphics::Property::Default>>::_Vector_impl_data" = type { ptr, ptr, 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 }

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) 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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics12parseDefaultERNS0_5LexerERKNS1_5TokenE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.31") align 4, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics13parsePropertyERNS0_5LexerERKNS1_5TokenE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.58") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.P3D::Graphics::Property", align 8
  %5 = alloca %"class.std::optional", align 8
  %6 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %7 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %8 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %9 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %10 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %11 = alloca %"struct.P3D::Graphics::Property::Default", align 4
  %12 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %13 = alloca %"class.std::optional.31", align 4
  %14 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  %15 = alloca %"struct.P3D::Graphics::Lexer::Token", align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @_ZN3P3D8Graphics8PropertyC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4) #6
  %16 = load i8, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i8 %16, 15
  br i1 %.not, label %18, label %17

17:                                               ; preds = %3
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %110

18:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %19 = invoke i64 @_ZN3P3D8Graphics9parseTypeERKNS0_5LexerERKNS1_5TokenE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %20 unwind label %23

20:                                               ; preds = %18
  store i64 %19, ptr %5, align 8
  %21 = call noundef zeroext i1 @_ZNKSt8optionalIN3P3D8Graphics8Property4TypeEE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %5) #6
  br i1 %21, label %25, label %22

22:                                               ; preds = %20
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %108

23:                                               ; preds = %25, %18
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %109

25:                                               ; preds = %20
  %26 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIN3P3D8Graphics8Property4TypeEE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %27 unwind label %23

27:                                               ; preds = %25
  %28 = load i32, ptr %26, align 4, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 %28, ptr %29, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  %30 = load i8, ptr %6, align 8, !tbaa !5
  %.not39 = icmp eq i8 %30, 16
  br i1 %.not39, label %32, label %31

31:                                               ; preds = %27
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %106

32:                                               ; preds = %27
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !22
  %35 = invoke { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef %34)
          to label %36 unwind label %43

36:                                               ; preds = %32
  %37 = extractvalue { i64, ptr } %35, 0
  %38 = extractvalue { i64, ptr } %35, 1
  store i64 %37, ptr %4, align 8, !tbaa !24
  %.sroa.58.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %38, ptr %.sroa.58.0..sroa_idx, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  %39 = load i8, ptr %7, align 8, !tbaa !5
  %40 = icmp eq i8 %39, 4
  br i1 %40, label %41, label %56

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  %42 = load i8, ptr %8, align 8, !tbaa !5
  %.not40 = icmp eq i8 %42, 16
  br i1 %.not40, label %45, label %.critedge

43:                                               ; preds = %32
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %107

45:                                               ; preds = %41
  %46 = load ptr, ptr %33, align 8, !tbaa !22
  %47 = invoke { i64, ptr } @_ZNK3P3D8Graphics5Lexer5Token4viewEPKc(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef %46)
          to label %48 unwind label %53

48:                                               ; preds = %45
  %49 = extractvalue { i64, ptr } %47, 0
  %50 = extractvalue { i64, ptr } %47, 1
  %51 = getelementptr inbounds i8, ptr %4, i64 16
  store i64 %49, ptr %51, align 8, !tbaa !24
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 24
  store ptr %50, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %9, i64 24, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  %52 = load i8, ptr %7, align 8, !tbaa !5
  %.not41 = icmp eq i8 %52, 5
  br i1 %.not41, label %55, label %.critedge

53:                                               ; preds = %45
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %105

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  %.pr = load i8, ptr %7, align 8, !tbaa !5
  br label %58

56:                                               ; preds = %36
  %57 = getelementptr inbounds i8, ptr %4, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !28
  br label %58

58:                                               ; preds = %55, %56
  %59 = phi i8 [ %.pr, %55 ], [ %39, %56 ]
  switch i8 %59, label %85 [
    i8 2, label %.preheader
    i8 6, label %.preheader55
  ]

.preheader55:                                     ; preds = %58
  %60 = getelementptr inbounds i8, ptr %4, i64 40
  %61 = invoke noundef i64 @_ZN3P3D8Graphics5arityERKNS0_8Property4TypeE(ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %62 unwind label %.loopexit.split-lp

62:                                               ; preds = %.preheader55
  %.not47.peel.not = icmp eq i64 %61, 0
  br i1 %.not47.peel.not, label %.critedge54, label %63

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  invoke void @_ZN3P3D8Graphics12parseDefaultERNS0_5LexerERKNS1_5TokenE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional.31") align 4 %13, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %64 unwind label %.loopexit.split-lp59

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  %65 = call noundef zeroext i1 @_ZNKSt8optionalIN3P3D8Graphics8Property7DefaultEE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(28) %13) #6
  br i1 %65, label %66, label %.loopexit63

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZNRSt8optionalIN3P3D8Graphics8Property7DefaultEE5valueEv(ptr noundef nonnull align 4 dereferenceable(28) %13)
          to label %68 unwind label %.loopexit.split-lp65

68:                                               ; preds = %66
  invoke void @_ZNSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(24) %67)
          to label %.peel.next unwind label %.loopexit.split-lp65

.peel.next:                                       ; preds = %68
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #6
  br label %86

.preheader:                                       ; preds = %58
  %69 = getelementptr inbounds i8, ptr %11, i64 4
  %70 = getelementptr inbounds i8, ptr %11, i64 16
  %71 = getelementptr inbounds i8, ptr %4, i64 40
  br label %72

72:                                               ; preds = %.preheader, %79
  %.027 = phi i64 [ %80, %79 ], [ 0, %.preheader ]
  %73 = invoke noundef i64 @_ZN3P3D8Graphics5arityERKNS0_8Property4TypeE(ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %74 unwind label %76

74:                                               ; preds = %72
  %75 = icmp ult i64 %.027, %73
  br i1 %75, label %78, label %.invoke

76:                                               ; preds = %72
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %105

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  store float 0.000000e+00, ptr %11, align 4, !tbaa !29
  call void @_ZNSt8optionalIN3P3D8Graphics8Property5RangeEEC2ESt9nullopt_t(ptr noundef nonnull align 4 dereferenceable(12) %69) #6
  call void @_ZNSt8optionalIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %70) #6
  invoke void @_ZNSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(24) %11)
          to label %79 unwind label %81

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  %80 = add nuw i64 %.027, 1
  br label %72, !llvm.loop !41

81:                                               ; preds = %78
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %105

83:                                               ; preds = %.invoke
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %105

85:                                               ; preds = %58
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %104

86:                                               ; preds = %.peel.next, %98
  %.0 = phi i64 [ %99, %98 ], [ 1, %.peel.next ]
  %87 = invoke noundef i64 @_ZN3P3D8Graphics5arityERKNS0_8Property4TypeE(ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %88 unwind label %.loopexit

88:                                               ; preds = %86
  %.not47 = icmp ult i64 %.0, %87
  br i1 %.not47, label %89, label %.critedge54

.loopexit:                                        ; preds = %86
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %105

.loopexit.split-lp:                               ; preds = %.preheader55
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %105

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %12, i64 24, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  %90 = load i8, ptr %7, align 8, !tbaa !5
  %.not44 = icmp eq i8 %90, 1
  br i1 %.not44, label %91, label %.loopexit57

.loopexit57:                                      ; preds = %89
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %104

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  invoke void @_ZN3P3D8Graphics12parseDefaultERNS0_5LexerERKNS1_5TokenE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional.31") align 4 %13, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %92 unwind label %.loopexit58

92:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  %93 = call noundef zeroext i1 @_ZNKSt8optionalIN3P3D8Graphics8Property7DefaultEE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(28) %13) #6
  br i1 %93, label %95, label %.loopexit63

.loopexit58:                                      ; preds = %91
  %lpad.loopexit60 = landingpad { ptr, i32 }
          cleanup
  br label %94

.loopexit.split-lp59:                             ; preds = %63
  %lpad.loopexit.split-lp61 = landingpad { ptr, i32 }
          cleanup
  br label %94

94:                                               ; preds = %.loopexit.split-lp59, %.loopexit58
  %lpad.phi62 = phi { ptr, i32 } [ %lpad.loopexit60, %.loopexit58 ], [ %lpad.loopexit.split-lp61, %.loopexit.split-lp59 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  br label %100

95:                                               ; preds = %92
  %96 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZNRSt8optionalIN3P3D8Graphics8Property7DefaultEE5valueEv(ptr noundef nonnull align 4 dereferenceable(28) %13)
          to label %97 unwind label %.loopexit64

97:                                               ; preds = %95
  invoke void @_ZNSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(24) %96)
          to label %98 unwind label %.loopexit64

.loopexit63:                                      ; preds = %92, %64
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #6
  br label %104

98:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #6
  %99 = add nuw i64 %.0, 1
  br label %86, !llvm.loop !43

.loopexit64:                                      ; preds = %95, %97
  %lpad.loopexit66 = landingpad { ptr, i32 }
          cleanup
  br label %100

.loopexit.split-lp65:                             ; preds = %66, %68
  %lpad.loopexit.split-lp67 = landingpad { ptr, i32 }
          cleanup
  br label %100

100:                                              ; preds = %.loopexit64, %.loopexit.split-lp65, %94
  %.pn = phi { ptr, i32 } [ %lpad.phi62, %94 ], [ %lpad.loopexit66, %.loopexit64 ], [ %lpad.loopexit.split-lp67, %.loopexit.split-lp65 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #6
  br label %105

.critedge54:                                      ; preds = %88, %62
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  call void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %15, i64 24, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  %101 = load i8, ptr %7, align 8, !tbaa !5
  %102 = icmp eq i8 %101, 2
  br i1 %102, label %.invoke, label %103

.invoke:                                          ; preds = %74, %.critedge54
  invoke void @_ZSt13make_optionalIRN3P3D8Graphics8PropertyEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES6_EESt8optionalIS8_EE4typeEOS6_(ptr dead_on_unwind writable sret(%"class.std::optional.58") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %4)
          to label %104 unwind label %83

103:                                              ; preds = %.critedge54
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %104

.critedge:                                        ; preds = %48, %41
  call void @_ZNSt8optionalIN3P3D8Graphics8PropertyEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %104

104:                                              ; preds = %.invoke, %.loopexit57, %.loopexit63, %.critedge, %103, %85
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %106

105:                                              ; preds = %.loopexit, %.loopexit.split-lp, %100, %76, %81, %83, %53
  %.pn48.pn = phi { ptr, i32 } [ %84, %83 ], [ %54, %53 ], [ %82, %81 ], [ %77, %76 ], [ %.pn, %100 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %107

106:                                              ; preds = %104, %31
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %108

107:                                              ; preds = %105, %43
  %.pn48.pn.pn = phi { ptr, i32 } [ %.pn48.pn, %105 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %109

108:                                              ; preds = %106, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %110

109:                                              ; preds = %107, %23
  %.pn48.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn, %107 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN3P3D8Graphics8PropertyD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn48.pn.pn.pn

110:                                              ; preds = %108, %17
  call void @_ZN3P3D8Graphics8PropertyD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  ret void
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt13make_optionalIRN3P3D8Graphics8PropertyEENSt9enable_ifIX18is_constructible_vINSt5decayIT_E4typeES6_EESt8optionalIS8_EE4typeEOS6_(ptr dead_on_unwind noalias writable sret(%"class.std::optional.58") align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN3P3D8Graphics8Property7DefaultEE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZNRSt8optionalIN3P3D8Graphics8Property7DefaultEE5valueEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #0 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3P3D8Graphics5Lexer5TokenE", !7, i64 0, !10, i64 8}
!7 = !{!"_ZTSN3P3D8Graphics5Lexer5Token4TypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3P3D8Graphics5Lexer5RangeE", !11, i64 0, !11, i64 8}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN3P3D8Graphics8Property4TypeE", !8, i64 0}
!14 = !{!15, !13, i64 32}
!15 = !{!"_ZTSN3P3D8Graphics8PropertyE", !16, i64 0, !16, i64 16, !13, i64 32, !18, i64 40}
!16 = !{!"_ZTSSt17basic_string_viewIcSt11char_traitsIcEE", !11, i64 0, !17, i64 8}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"_ZTSSt6vectorIN3P3D8Graphics8Property7DefaultESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN3P3D8Graphics8Property7DefaultESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics8Property7DefaultESaIS3_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics8Property7DefaultESaIS3_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!22 = !{!23, !17, i64 8}
!23 = !{!"_ZTSN3P3D8Graphics5LexerE", !11, i64 0, !17, i64 8}
!24 = !{!11, !11, i64 0}
!25 = !{!17, !17, i64 0}
!26 = !{i64 0, i64 1, !27, i64 8, i64 8, !24, i64 16, i64 8, !24}
!27 = !{!7, !7, i64 0}
!28 = !{i64 0, i64 8, !24, i64 8, i64 8, !25}
!29 = !{!30, !31, i64 0}
!30 = !{!"_ZTSN3P3D8Graphics8Property7DefaultE", !31, i64 0, !32, i64 4, !37, i64 16}
!31 = !{!"float", !8, i64 0}
!32 = !{!"_ZTSSt8optionalIN3P3D8Graphics8Property5RangeEE", !33, i64 0}
!33 = !{!"_ZTSSt14_Optional_baseIN3P3D8Graphics8Property5RangeELb1ELb1EE", !34, i64 0}
!34 = !{!"_ZTSSt17_Optional_payloadIN3P3D8Graphics8Property5RangeELb1ELb1ELb1EE", !35, i64 0}
!35 = !{!"_ZTSSt22_Optional_payload_baseIN3P3D8Graphics8Property5RangeEE", !8, i64 0, !36, i64 8}
!36 = !{!"bool", !8, i64 0}
!37 = !{!"_ZTSSt8optionalIfE", !38, i64 0}
!38 = !{!"_ZTSSt14_Optional_baseIfLb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt17_Optional_payloadIfLb1ELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt22_Optional_payload_baseIfE", !8, i64 0, !36, i64 4}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42, !44}
!44 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass