; LLVM IR from vczh/herodb :: Kernel/Source (Vlpp)

; 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.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.223" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::analyzing::ParsingSymbolManager" = type { %"class.vl::Object", ptr, ptr, %"class.vl::collections::List.224", %"class.vl::collections::Dictionary.232", %"class.vl::collections::Dictionary.243", %"class.vl::collections::Dictionary.243", %"class.vl::collections::Dictionary.254", %"class.vl::collections::Dictionary.267" }
%"class.vl::collections::List.224" = type { %"class.vl::collections::ListBase.base.230", %"class.vl::collections::IEnumerable.228" }
%"class.vl::collections::ListBase.base.230" = type <{ %"class.vl::collections::ArrayBase.base.229", i64, i8 }>
%"class.vl::collections::ArrayBase.base.229" = type { %"class.vl::collections::ListStore.227", ptr, i64 }
%"class.vl::collections::ListStore.227" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.228" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::collections::Dictionary.232" = type { %"class.vl::Object", %"class.vl::collections::SortedList.233", %"class.vl::collections::List.212", %"class.vl::collections::IEnumerable.241" }
%"class.vl::collections::SortedList.233" = type { %"class.vl::collections::ListBase.base.239", %"class.vl::collections::IEnumerable.237" }
%"class.vl::collections::ListBase.base.239" = type <{ %"class.vl::collections::ArrayBase.base.238", i64, i8 }>
%"class.vl::collections::ArrayBase.base.238" = type { %"class.vl::collections::ListStore.236", ptr, i64 }
%"class.vl::collections::ListStore.236" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.237" = type { %"class.vl::Interface" }
%"class.vl::collections::List.212" = type { %"class.vl::collections::ListBase.base.218", %"class.vl::collections::IEnumerable.216" }
%"class.vl::collections::ListBase.base.218" = type <{ %"class.vl::collections::ArrayBase.base.217", i64, i8 }>
%"class.vl::collections::ArrayBase.base.217" = type { %"class.vl::collections::ListStore.215", ptr, i64 }
%"class.vl::collections::ListStore.215" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.216" = type { %"class.vl::Interface" }
%"class.vl::collections::IEnumerable.241" = type { %"class.vl::Interface" }
%"class.vl::collections::Dictionary.243" = type { %"class.vl::Object", %"class.vl::collections::SortedList.244", %"class.vl::collections::List.212", %"class.vl::collections::IEnumerable.252" }
%"class.vl::collections::SortedList.244" = type { %"class.vl::collections::ListBase.base.250", %"class.vl::collections::IEnumerable.248" }
%"class.vl::collections::ListBase.base.250" = type <{ %"class.vl::collections::ArrayBase.base.249", i64, i8 }>
%"class.vl::collections::ArrayBase.base.249" = type { %"class.vl::collections::ListStore.247", ptr, i64 }
%"class.vl::collections::ListStore.247" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.248" = type { %"class.vl::Interface" }
%"class.vl::collections::IEnumerable.252" = type { %"class.vl::Interface" }
%"class.vl::collections::Dictionary.254" = type { %"class.vl::Object", %"class.vl::collections::SortedList.255", %"class.vl::collections::List.257", %"class.vl::collections::IEnumerable.265" }
%"class.vl::collections::SortedList.255" = type { %"class.vl::collections::ListBase.base.218", %"class.vl::collections::IEnumerable.216" }
%"class.vl::collections::List.257" = type { %"class.vl::collections::ListBase.base.263", %"class.vl::collections::IEnumerable.261" }
%"class.vl::collections::ListBase.base.263" = type <{ %"class.vl::collections::ArrayBase.base.262", i64, i8 }>
%"class.vl::collections::ArrayBase.base.262" = type { %"class.vl::collections::ListStore.260", ptr, i64 }
%"class.vl::collections::ListStore.260" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.261" = type { %"class.vl::Interface" }
%"class.vl::collections::IEnumerable.265" = type { %"class.vl::Interface" }
%"class.vl::collections::Dictionary.267" = type { %"class.vl::Object", %"class.vl::collections::SortedList.268", %"class.vl::collections::List.212", %"class.vl::collections::IEnumerable.270" }
%"class.vl::collections::SortedList.268" = type { %"class.vl::collections::ListBase.base.263", %"class.vl::collections::IEnumerable.261" }
%"class.vl::collections::IEnumerable.270" = type { %"class.vl::Interface" }

@.str.2 = external hidden unnamed_addr constant [1 x i32], align 4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i1 noundef zeroext) unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing13ParsingSymbol6IsTypeEv(ptr noundef nonnull align 8 dereferenceable(304)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing20ParsingSymbolManager15TryAddSubSymbolENS_3PtrINS1_13ParsingSymbolEEEPS4_(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef, ptr noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2vl7parsing9analyzing20ParsingSymbolManager17AddRuleDefinitionERKNS_12ObjectStringIwEEPNS1_13ParsingSymbolE(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.vl::ObjectString", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca %"class.vl::Ptr.223", align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %55

18:                                               ; preds = %3
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZN2vl7parsing9analyzing13ParsingSymbol6IsTypeEv(ptr noundef nonnull align 8 dereferenceable(304) %19)
  br i1 %20, label %21, label %55

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %22 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 304) #6
  store i1 true, ptr %12, align 1
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #5
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef @.str.2, i1 noundef zeroext true)
          to label %25 unwind label %34

25:                                               ; preds = %21
  invoke void @_ZN2vl7parsing9analyzing13ParsingSymbolC1EPNS1_20ParsingSymbolManagerENS2_10SymbolTypeERKNS_12ObjectStringIwEEPS2_S9_(ptr noundef nonnull align 8 dereferenceable(304) %22, ptr noundef %15, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef %24, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %26 unwind label %38

26:                                               ; preds = %25
  store i1 false, ptr %12, align 1
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  store ptr %22, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN2vl3PtrINS_7parsing9analyzing13ParsingSymbolEEC2EPS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef %27)
  %28 = getelementptr inbounds %"class.vl::parsing::analyzing::ParsingSymbolManager", ptr %15, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing20ParsingSymbolManager15TryAddSubSymbolENS_3PtrINS1_13ParsingSymbolEEEPS4_(ptr noundef nonnull align 8 dereferenceable(632) %15, ptr noundef %13, ptr noundef %29)
          to label %31 unwind label %46

31:                                               ; preds = %26
  call void @_ZN2vl3PtrINS_7parsing9analyzing13ParsingSymbolEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br i1 %30, label %32, label %50

32:                                               ; preds = %31
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %33, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %51

34:                                               ; preds = %21
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %10, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %11, align 4
  br label %42

38:                                               ; preds = %25
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %10, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %11, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  br label %42

42:                                               ; preds = %38, %34
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  %43 = load i1, ptr %12, align 1
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  call void @_ZdlPvm(ptr noundef %22, i64 noundef 304) #7
  br label %45

45:                                               ; preds = %44, %42
  br label %54

46:                                               ; preds = %26
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %10, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing9analyzing13ParsingSymbolEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %54

50:                                               ; preds = %31
  store i32 0, ptr %14, align 4
  br label %51

51:                                               ; preds = %50, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %52 = load i32, ptr %14, align 4
  switch i32 %52, label %63 [
    i32 0, label %53
    i32 1, label %56
  ]

53:                                               ; preds = %51
  br label %55

54:                                               ; preds = %46, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %58

55:                                               ; preds = %53, %18, %3
  store ptr null, ptr %4, align 8
  br label %56

56:                                               ; preds = %55, %51
  %57 = load ptr, ptr %4, align 8
  ret ptr %57

58:                                               ; preds = %54
  %59 = load ptr, ptr %10, align 8
  %60 = load i32, ptr %11, align 4
  %61 = insertvalue { ptr, i32 } poison, ptr %59, 0
  %62 = insertvalue { ptr, i32 } %61, i32 %60, 1
  resume { ptr, i32 } %62

63:                                               ; preds = %51
  unreachable
}

declare void @_ZN2vl7parsing9analyzing13ParsingSymbolC1EPNS1_20ParsingSymbolManagerENS2_10SymbolTypeERKNS_12ObjectStringIwEEPS2_S9_(ptr, ptr, i32, ptr, ptr, ptr)

attributes #0 = { nobuiltin 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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, !6, i64 8}
!10 = !{!"_ZTSN2vl7parsing9analyzing20ParsingSymbolManagerE", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !18, i64 72, !27, i64 184, !27, i64 296, !32, i64 408, !38, i64 520}
!11 = !{!"_ZTSN2vl6ObjectE"}
!12 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEEPS5_EE", !13, i64 0}
!13 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEEPS5_EE", !14, i64 0, !16, i64 24, !17, i64 32}
!14 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEEEE", !15, i64 0, !6, i64 8, !16, i64 16}
!15 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEELb0EEE", !11, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN2vl11collections10DictionaryINS_7parsing9analyzing23DefinitionTypeScopePairEPNS3_13ParsingSymbolES4_S6_EE", !11, i64 0, !19, i64 8, !23, i64 56}
!19 = !{!"_ZTSN2vl11collections10SortedListINS_7parsing9analyzing23DefinitionTypeScopePairES4_EE", !20, i64 0}
!20 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing9analyzing23DefinitionTypeScopePairES4_EE", !21, i64 0, !16, i64 24, !17, i64 32}
!21 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing9analyzing23DefinitionTypeScopePairEEE", !22, i64 0, !6, i64 8, !16, i64 16}
!22 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing9analyzing23DefinitionTypeScopePairELb0EEE", !11, i64 0}
!23 = !{!"_ZTSN2vl11collections4ListIPNS_7parsing9analyzing13ParsingSymbolES5_EE", !24, i64 0}
!24 = !{!"_ZTSN2vl11collections8ListBaseIPNS_7parsing9analyzing13ParsingSymbolES5_EE", !25, i64 0, !16, i64 24, !17, i64 32}
!25 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_7parsing9analyzing13ParsingSymbolEEE", !26, i64 0, !6, i64 8, !16, i64 16}
!26 = !{!"_ZTSN2vl11collections9ListStoreIPNS_7parsing9analyzing13ParsingSymbolELb1EEE", !11, i64 0}
!27 = !{!"_ZTSN2vl11collections10DictionaryIPNS_7parsing11definitions24ParsingDefinitionGrammarEPNS2_9analyzing13ParsingSymbolES5_S8_EE", !11, i64 0, !28, i64 8, !23, i64 56}
!28 = !{!"_ZTSN2vl11collections10SortedListIPNS_7parsing11definitions24ParsingDefinitionGrammarES5_EE", !29, i64 0}
!29 = !{!"_ZTSN2vl11collections8ListBaseIPNS_7parsing11definitions24ParsingDefinitionGrammarES5_EE", !30, i64 0, !16, i64 24, !17, i64 32}
!30 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_7parsing11definitions24ParsingDefinitionGrammarEEE", !31, i64 0, !6, i64 8, !16, i64 16}
!31 = !{!"_ZTSN2vl11collections9ListStoreIPNS_7parsing11definitions24ParsingDefinitionGrammarELb1EEE", !11, i64 0}
!32 = !{!"_ZTSN2vl11collections10DictionaryIPNS_7parsing9analyzing13ParsingSymbolEPNS2_11definitions32ParsingDefinitionClassDefinitionES5_S8_EE", !11, i64 0, !33, i64 8, !34, i64 56}
!33 = !{!"_ZTSN2vl11collections10SortedListIPNS_7parsing9analyzing13ParsingSymbolES5_EE", !24, i64 0}
!34 = !{!"_ZTSN2vl11collections4ListIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionES5_EE", !35, i64 0}
!35 = !{!"_ZTSN2vl11collections8ListBaseIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionES5_EE", !36, i64 0, !16, i64 24, !17, i64 32}
!36 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionEEE", !37, i64 0, !6, i64 8, !16, i64 16}
!37 = !{!"_ZTSN2vl11collections9ListStoreIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionELb1EEE", !11, i64 0}
!38 = !{!"_ZTSN2vl11collections10DictionaryIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionEPNS2_9analyzing13ParsingSymbolES5_S8_EE", !11, i64 0, !39, i64 8, !23, i64 56}
!39 = !{!"_ZTSN2vl11collections10SortedListIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionES5_EE", !35, i64 0}


; 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.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.223" = type { ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i32], align 4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i1 noundef zeroext) unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing13ParsingSymbol6IsTypeEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing20ParsingSymbolManager15TryAddSubSymbolENS_3PtrINS1_13ParsingSymbolEEEPS4_(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2vl7parsing9analyzing20ParsingSymbolManager17AddRuleDefinitionERKNS_12ObjectStringIwEEPNS1_13ParsingSymbolE(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vl::ObjectString", align 8
  %5 = alloca %"class.vl::Ptr.223", align 8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %24, label %6

6:                                                ; preds = %3
  %7 = tail call noundef zeroext i1 @_ZN2vl7parsing9analyzing13ParsingSymbol6IsTypeEv(ptr noundef nonnull align 8 dereferenceable(304) %2)
  br i1 %7, label %8, label %24

8:                                                ; preds = %6
  %9 = tail call noalias noundef nonnull dereferenceable(304) ptr @_Znwm(i64 noundef 304) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull @.str.2, i1 noundef zeroext true)
          to label %10 unwind label %16

10:                                               ; preds = %8
  invoke void @_ZN2vl7parsing9analyzing13ParsingSymbolC1EPNS1_20ParsingSymbolManagerENS2_10SymbolTypeERKNS_12ObjectStringIwEEPS2_S9_(ptr noundef nonnull align 8 dereferenceable(304) %9, ptr noundef nonnull %0, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %11 unwind label %18

11:                                               ; preds = %10
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  call void @_ZN2vl3PtrINS_7parsing9analyzing13ParsingSymbolEEC2EPS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %9)
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing20ParsingSymbolManager15TryAddSubSymbolENS_3PtrINS1_13ParsingSymbolEEEPS4_(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull %5, ptr noundef %13)
          to label %15 unwind label %21

15:                                               ; preds = %11
  call void @_ZN2vl3PtrINS_7parsing9analyzing13ParsingSymbolEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br i1 %14, label %25, label %24

16:                                               ; preds = %8
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %20

18:                                               ; preds = %10
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  br label %20

20:                                               ; preds = %18, %16
  %.pn = phi { ptr, i32 } [ %19, %18 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 304) #7
  br label %23

21:                                               ; preds = %11
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing9analyzing13ParsingSymbolEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %23

23:                                               ; preds = %20, %21
  %.pn18 = phi { ptr, i32 } [ %22, %21 ], [ %.pn, %20 ]
  resume { ptr, i32 } %.pn18

24:                                               ; preds = %15, %6, %3
  br label %25

25:                                               ; preds = %15, %24
  %.115 = phi ptr [ %9, %15 ], [ null, %24 ]
  ret ptr %.115
}

declare void @_ZN2vl7parsing9analyzing13ParsingSymbolC1EPNS1_20ParsingSymbolManagerENS2_10SymbolTypeERKNS_12ObjectStringIwEEPS2_S9_(ptr, ptr, i32, ptr, ptr, ptr) local_unnamed_addr

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 8}
!6 = !{!"_ZTSN2vl7parsing9analyzing20ParsingSymbolManagerE", !7, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !17, i64 72, !26, i64 184, !26, i64 296, !31, i64 408, !37, i64 520}
!7 = !{!"_ZTSN2vl6ObjectE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEEPS5_EE", !12, i64 0}
!12 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEEPS5_EE", !13, i64 0, !15, i64 24, !16, i64 32}
!13 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEEEE", !14, i64 0, !8, i64 8, !15, i64 16}
!14 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_7parsing9analyzing13ParsingSymbolEEELb0EEE", !7, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{!"_ZTSN2vl11collections10DictionaryINS_7parsing9analyzing23DefinitionTypeScopePairEPNS3_13ParsingSymbolES4_S6_EE", !7, i64 0, !18, i64 8, !22, i64 56}
!18 = !{!"_ZTSN2vl11collections10SortedListINS_7parsing9analyzing23DefinitionTypeScopePairES4_EE", !19, i64 0}
!19 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing9analyzing23DefinitionTypeScopePairES4_EE", !20, i64 0, !15, i64 24, !16, i64 32}
!20 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing9analyzing23DefinitionTypeScopePairEEE", !21, i64 0, !8, i64 8, !15, i64 16}
!21 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing9analyzing23DefinitionTypeScopePairELb0EEE", !7, i64 0}
!22 = !{!"_ZTSN2vl11collections4ListIPNS_7parsing9analyzing13ParsingSymbolES5_EE", !23, i64 0}
!23 = !{!"_ZTSN2vl11collections8ListBaseIPNS_7parsing9analyzing13ParsingSymbolES5_EE", !24, i64 0, !15, i64 24, !16, i64 32}
!24 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_7parsing9analyzing13ParsingSymbolEEE", !25, i64 0, !8, i64 8, !15, i64 16}
!25 = !{!"_ZTSN2vl11collections9ListStoreIPNS_7parsing9analyzing13ParsingSymbolELb1EEE", !7, i64 0}
!26 = !{!"_ZTSN2vl11collections10DictionaryIPNS_7parsing11definitions24ParsingDefinitionGrammarEPNS2_9analyzing13ParsingSymbolES5_S8_EE", !7, i64 0, !27, i64 8, !22, i64 56}
!27 = !{!"_ZTSN2vl11collections10SortedListIPNS_7parsing11definitions24ParsingDefinitionGrammarES5_EE", !28, i64 0}
!28 = !{!"_ZTSN2vl11collections8ListBaseIPNS_7parsing11definitions24ParsingDefinitionGrammarES5_EE", !29, i64 0, !15, i64 24, !16, i64 32}
!29 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_7parsing11definitions24ParsingDefinitionGrammarEEE", !30, i64 0, !8, i64 8, !15, i64 16}
!30 = !{!"_ZTSN2vl11collections9ListStoreIPNS_7parsing11definitions24ParsingDefinitionGrammarELb1EEE", !7, i64 0}
!31 = !{!"_ZTSN2vl11collections10DictionaryIPNS_7parsing9analyzing13ParsingSymbolEPNS2_11definitions32ParsingDefinitionClassDefinitionES5_S8_EE", !7, i64 0, !32, i64 8, !33, i64 56}
!32 = !{!"_ZTSN2vl11collections10SortedListIPNS_7parsing9analyzing13ParsingSymbolES5_EE", !23, i64 0}
!33 = !{!"_ZTSN2vl11collections4ListIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionES5_EE", !34, i64 0}
!34 = !{!"_ZTSN2vl11collections8ListBaseIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionES5_EE", !35, i64 0, !15, i64 24, !16, i64 32}
!35 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionEEE", !36, i64 0, !8, i64 8, !15, i64 16}
!36 = !{!"_ZTSN2vl11collections9ListStoreIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionELb1EEE", !7, i64 0}
!37 = !{!"_ZTSN2vl11collections10DictionaryIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionEPNS2_9analyzing13ParsingSymbolES5_S8_EE", !7, i64 0, !38, i64 8, !22, i64 56}
!38 = !{!"_ZTSN2vl11collections10SortedListIPNS_7parsing11definitions32ParsingDefinitionClassDefinitionES5_EE", !34, i64 0}


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