; 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::collections::EnumerableForEachIterator.334" = type { %"class.vl::collections::ForEachIterator.335", %"class.vl::Ptr.336" }
%"class.vl::collections::ForEachIterator.335" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.336" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.337" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::analyzing::ValidateRuleStructureVisitor" = type { %"class.vl::Object", %"class.vl::parsing::definitions::ParsingDefinitionGrammar::IVisitor", %"class.vl::Ptr.211", ptr, ptr, ptr, i64 }
%"class.vl::parsing::definitions::ParsingDefinitionGrammar::IVisitor" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.211" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::definitions::ParsingDefinitionRuleDefinition" = type { %"class.vl::parsing::definitions::ParsingDefinitionBase.base", %"class.vl::ObjectString", %"class.vl::Ptr.280", %"class.vl::collections::List.326", %"class.vl::reflection::DescriptableObject" }
%"class.vl::parsing::definitions::ParsingDefinitionBase.base" = type { %"class.vl::parsing::ParsingTreeCustomBase.base", %"class.vl::collections::List.272" }
%"class.vl::parsing::ParsingTreeCustomBase.base" = type { %"class.vl::Object", %"class.vl::reflection::Description.base", %"struct.vl::parsing::ParsingTextRange", %"class.vl::collections::List" }
%"class.vl::reflection::Description.base" = type { ptr }
%"struct.vl::parsing::ParsingTextRange" = type { %"struct.vl::parsing::ParsingTextPos", %"struct.vl::parsing::ParsingTextPos", i64 }
%"struct.vl::parsing::ParsingTextPos" = type { i64, i64, i64 }
%"class.vl::collections::List" = type { %"class.vl::collections::ListBase.base", %"class.vl::collections::IEnumerable.2" }
%"class.vl::collections::ListBase.base" = type <{ %"class.vl::collections::ArrayBase.base.3", i64, i8 }>
%"class.vl::collections::ArrayBase.base.3" = type { %"class.vl::collections::ListStore.1", ptr, i64 }
%"class.vl::collections::ListStore.1" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.2" = type { %"class.vl::Interface" }
%"class.vl::collections::List.272" = type { %"class.vl::collections::ListBase.base.278", %"class.vl::collections::IEnumerable.276" }
%"class.vl::collections::ListBase.base.278" = type <{ %"class.vl::collections::ArrayBase.base.277", i64, i8 }>
%"class.vl::collections::ArrayBase.base.277" = type { %"class.vl::collections::ListStore.275", ptr, i64 }
%"class.vl::collections::ListStore.275" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.276" = type { %"class.vl::Interface" }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Ptr.280" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::List.326" = type { %"class.vl::collections::ListBase.base.332", %"class.vl::collections::IEnumerable.330" }
%"class.vl::collections::ListBase.base.332" = type <{ %"class.vl::collections::ArrayBase.base.331", i64, i8 }>
%"class.vl::collections::ArrayBase.base.331" = type { %"class.vl::collections::ListStore.329", ptr, i64 }
%"class.vl::collections::ListStore.329" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.330" = type { %"class.vl::Interface" }
%"class.vl::reflection::DescriptableObject" = type { ptr, i64, ptr, i64, ptr, %"class.vl::Ptr.12" }
%"class.vl::Ptr.12" = type { ptr, ptr, ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing9analyzing21ValidateRuleStructureENS_3PtrINS0_11definitions17ParsingDefinitionEEENS2_INS3_31ParsingDefinitionRuleDefinitionEEEPNS1_20ParsingSymbolManagerERNS_11collections4ListINS2_INS0_12ParsingErrorEEEPSC_EE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(33) %3) #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca %"class.vl::collections::EnumerableForEachIterator.334", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.vl::Ptr.337", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.vl::parsing::analyzing::ValidateRuleStructureVisitor", align 8
  %17 = alloca %"class.vl::Ptr.211", align 8
  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
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  store i8 1, ptr %9, align 1, !tbaa !9
  %18 = load i8, ptr %9, align 1, !tbaa !9, !range !11, !noundef !12
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %85

20:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #4
  %21 = call noundef ptr @_ZNK2vl3PtrINS_7parsing11definitions31ParsingDefinitionRuleDefinitionEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %22 = getelementptr inbounds %"class.vl::parsing::definitions::ParsingDefinitionRuleDefinition", ptr %21, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %22, i64 %25
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.334") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %26)
  store ptr %11, ptr %10, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %83, %20
  %28 = load i8, ptr %9, align 1, !tbaa !9, !range !11, !noundef !12
  %29 = trunc i8 %28 to i1
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 2, ptr %12, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %84

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  invoke void @_ZN2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %32 unwind label %41

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %66, %32
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = getelementptr inbounds ptr, ptr %35, i64 2
  %37 = load ptr, ptr %36, align 8
  %38 = invoke noundef zeroext i1 %37(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %39 unwind label %45

39:                                               ; preds = %33
  br i1 %38, label %49, label %40

40:                                               ; preds = %39
  store i32 5, ptr %12, align 4
  call void @_ZN2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  br label %82

41:                                               ; preds = %31
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %14, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %15, align 4
  br label %81

45:                                               ; preds = %33
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %14, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %15, align 4
  br label %80

49:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #4
  invoke void @_ZN2vl3PtrINS_7parsing11definitions17ParsingDefinitionEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %50 unwind label %67

50:                                               ; preds = %49
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing11definitions31ParsingDefinitionRuleDefinitionEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %53 unwind label %71

53:                                               ; preds = %50
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorC2ENS_3PtrINS0_11definitions17ParsingDefinitionEEEPNS1_20ParsingSymbolManagerEPNS4_31ParsingDefinitionRuleDefinitionERNS_11collections4ListINS3_INS0_12ParsingErrorEEEPSD_EE(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef %17, ptr noundef %51, ptr noundef %52, ptr noundef nonnull align 8 dereferenceable(33) %54)
          to label %55 unwind label %71

55:                                               ; preds = %53
  call void @_ZN2vl3PtrINS_7parsing11definitions17ParsingDefinitionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  %56 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %57 unwind label %75

57:                                               ; preds = %55
  %58 = icmp eq ptr %16, null
  br i1 %58, label %61, label %59

59:                                               ; preds = %57
  %60 = getelementptr inbounds i8, ptr %16, i64 8
  br label %61

61:                                               ; preds = %59, %57
  %62 = phi ptr [ %60, %59 ], [ null, %57 ]
  %63 = load ptr, ptr %56, align 8, !tbaa !13
  %64 = getelementptr inbounds ptr, ptr %63, i64 2
  %65 = load ptr, ptr %64, align 8
  invoke void %65(ptr noundef nonnull align 8 dereferenceable(120) %56, ptr noundef %62)
          to label %66 unwind label %75

66:                                               ; preds = %61
  call void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #4
  br label %33, !llvm.loop !15

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %14, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %15, align 4
  br label %79

71:                                               ; preds = %53, %50
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %14, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %15, align 4
  call void @_ZN2vl3PtrINS_7parsing11definitions17ParsingDefinitionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  br label %79

75:                                               ; preds = %61, %55
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %14, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %15, align 4
  call void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #4
  br label %79

79:                                               ; preds = %75, %71, %67
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #4
  br label %80

80:                                               ; preds = %79, %45
  call void @_ZN2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %81

81:                                               ; preds = %80, %41
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %86

82:                                               ; preds = %40
  br label %83

83:                                               ; preds = %82
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %27, !llvm.loop !17

84:                                               ; preds = %30
  br label %85

85:                                               ; preds = %84, %4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  ret void

86:                                               ; preds = %81
  %87 = load ptr, ptr %14, align 8
  %88 = load i32, ptr %15, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::EnumerableForEachIterator.334") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorC2ENS_3PtrINS0_11definitions17ParsingDefinitionEEEPNS1_20ParsingSymbolManagerEPNS4_31ParsingDefinitionRuleDefinitionERNS_11collections4ListINS3_INS0_12ParsingErrorEEEPSD_EE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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::collections::EnumerableForEachIterator.334" = type { %"class.vl::collections::ForEachIterator.335", %"class.vl::Ptr.336" }
%"class.vl::collections::ForEachIterator.335" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.336" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.337" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::analyzing::ValidateRuleStructureVisitor" = type { %"class.vl::Object", %"class.vl::parsing::definitions::ParsingDefinitionGrammar::IVisitor", %"class.vl::Ptr.211", ptr, ptr, ptr, i64 }
%"class.vl::parsing::definitions::ParsingDefinitionGrammar::IVisitor" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.211" = type { ptr, ptr, ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing9analyzing21ValidateRuleStructureENS_3PtrINS0_11definitions17ParsingDefinitionEEENS2_INS3_31ParsingDefinitionRuleDefinitionEEEPNS1_20ParsingSymbolManagerERNS_11collections4ListINS2_INS0_12ParsingErrorEEEPSC_EE(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(33) %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
.critedge:
  %4 = alloca %"class.vl::collections::EnumerableForEachIterator.334", align 8
  %5 = alloca %"class.vl::Ptr.337", align 8
  %6 = alloca %"class.vl::parsing::analyzing::ValidateRuleStructureVisitor", align 8
  %7 = alloca %"class.vl::Ptr.211", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #4
  %8 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing11definitions31ParsingDefinitionRuleDefinitionEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %9 = getelementptr inbounds i8, ptr %8, i64 248
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr %9, i64 %12
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.334") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %14 = getelementptr inbounds i8, ptr %6, i64 8
  br label %15

15:                                               ; preds = %32, %.critedge
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load ptr, ptr %17, align 8
  %19 = invoke noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %20 unwind label %22

20:                                               ; preds = %15
  br i1 %19, label %24, label %21

21:                                               ; preds = %20
  call void @_ZN2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  ret void

22:                                               ; preds = %15
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %40

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #4
  invoke void @_ZN2vl3PtrINS_7parsing11definitions17ParsingDefinitionEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %25 unwind label %33

25:                                               ; preds = %24
  %26 = call noundef ptr @_ZNK2vl3PtrINS_7parsing11definitions31ParsingDefinitionRuleDefinitionEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  invoke void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorC2ENS_3PtrINS0_11definitions17ParsingDefinitionEEEPNS1_20ParsingSymbolManagerEPNS4_31ParsingDefinitionRuleDefinitionERNS_11collections4ListINS3_INS0_12ParsingErrorEEEPSD_EE(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull %7, ptr noundef %2, ptr noundef %26, ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %27 unwind label %35

27:                                               ; preds = %25
  call void @_ZN2vl3PtrINS_7parsing11definitions17ParsingDefinitionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  %28 = call noundef ptr @_ZNK2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %31 = load ptr, ptr %30, align 8
  invoke void %31(ptr noundef nonnull align 8 dereferenceable(120) %28, ptr noundef nonnull %14)
          to label %32 unwind label %37

32:                                               ; preds = %27
  call void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  br label %15, !llvm.loop !8

33:                                               ; preds = %24
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %39

35:                                               ; preds = %25
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing11definitions17ParsingDefinitionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  br label %39

37:                                               ; preds = %27
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  br label %39

39:                                               ; preds = %37, %35, %33
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  br label %40

40:                                               ; preds = %39, %22
  %.pn.pn = phi { ptr, i32 } [ %.pn, %39 ], [ %23, %22 ]
  call void @_ZN2vl3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing11definitions24ParsingDefinitionGrammarEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::EnumerableForEachIterator.334") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing9analyzing28ValidateRuleStructureVisitorC2ENS_3PtrINS0_11definitions17ParsingDefinitionEEEPNS1_20ParsingSymbolManagerEPNS4_31ParsingDefinitionRuleDefinitionERNS_11collections4ListINS3_INS0_12ParsingErrorEEEPSD_EE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

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

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

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

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

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


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