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

; 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::Ptr.991" = type { ptr, ptr, ptr, ptr }
%"class.vl::regex_internal::EpsilonNfa" = type { ptr, ptr }
%"class.vl::regex_internal::EpsilonNfaAlgorithm" = type { %"class.vl::regex_internal::RegexExpressionAlgorithm.1095" }
%"class.vl::regex_internal::RegexExpressionAlgorithm.1095" = type { %"class.vl::Object", %"class.vl::regex_internal::IRegexExpressionAlgorithm", %"class.vl::regex_internal::EpsilonNfa", ptr }
%"class.vl::Object" = type { ptr }
%"class.vl::regex_internal::IRegexExpressionAlgorithm" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::regex_internal::Automaton" = type { %"class.vl::collections::List.1054", %"class.vl::collections::List.1062", %"class.vl::collections::List", ptr }
%"class.vl::collections::List.1054" = type { %"class.vl::collections::ListBase.base.1060", %"class.vl::collections::IEnumerable.1058" }
%"class.vl::collections::ListBase.base.1060" = type <{ %"class.vl::collections::ArrayBase.base.1059", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1059" = type { %"class.vl::collections::ListStore.1057", ptr, i64 }
%"class.vl::collections::ListStore.1057" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1058" = type { %"class.vl::Interface" }
%"class.vl::collections::List.1062" = type { %"class.vl::collections::ListBase.base.1068", %"class.vl::collections::IEnumerable.1066" }
%"class.vl::collections::ListBase.base.1068" = type <{ %"class.vl::collections::ArrayBase.base.1067", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1067" = type { %"class.vl::collections::ListStore.1065", ptr, i64 }
%"class.vl::collections::ListStore.1065" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1066" = type { %"class.vl::Interface" }
%"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::regex_internal::State" = type { %"class.vl::collections::List.1071", %"class.vl::collections::List.1071", i8, ptr }
%"class.vl::collections::List.1071" = type { %"class.vl::collections::ListBase.base.1077", %"class.vl::collections::IEnumerable.1075" }
%"class.vl::collections::ListBase.base.1077" = type <{ %"class.vl::collections::ArrayBase.base.1076", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1076" = type { %"class.vl::collections::ListStore.1074", ptr, i64 }
%"class.vl::collections::ListStore.1074" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1075" = type { %"class.vl::Interface" }

; 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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl14regex_internal10Expression18GenerateEpsilonNfaEv(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.991") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.vl::regex_internal::EpsilonNfa", align 8
  %9 = alloca %"class.vl::regex_internal::EpsilonNfaAlgorithm", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  %11 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 152) #8
  invoke void @_ZN2vl14regex_internal9AutomatonC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %11)
          to label %12 unwind label %31

12:                                               ; preds = %2
  call void @_ZN2vl3PtrINS_14regex_internal9AutomatonEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #9
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 40, i1 false)
  invoke void @_ZN2vl14regex_internal19EpsilonNfaAlgorithmC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %13 unwind label %35

13:                                               ; preds = %12
  %14 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %15 unwind label %39

15:                                               ; preds = %13
  %16 = invoke { ptr, ptr } @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEE6InvokeEPNS0_10ExpressionES4_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef %10, ptr noundef %14)
          to label %17 unwind label %39

17:                                               ; preds = %15
  %18 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
  %19 = extractvalue { ptr, ptr } %16, 0
  store ptr %19, ptr %18, align 8
  %20 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
  %21 = extractvalue { ptr, ptr } %16, 1
  store ptr %21, ptr %20, align 8
  call void @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  %22 = getelementptr inbounds %"class.vl::regex_internal::EpsilonNfa", ptr %8, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %25 unwind label %44

25:                                               ; preds = %17
  %26 = getelementptr inbounds %"class.vl::regex_internal::Automaton", ptr %24, i32 0, i32 3
  store ptr %23, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.vl::regex_internal::EpsilonNfa", ptr %8, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !28
  %29 = getelementptr inbounds %"class.vl::regex_internal::State", ptr %28, i32 0, i32 2
  store i8 1, ptr %29, align 8, !tbaa !29
  store i1 true, ptr %5, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  %30 = load i1, ptr %5, align 1
  br i1 %30, label %50, label %49

31:                                               ; preds = %2
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %6, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %11, i64 noundef 152) #10
  br label %51

35:                                               ; preds = %12
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %6, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %7, align 4
  br label %43

39:                                               ; preds = %15, %13
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %6, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %7, align 4
  call void @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #9
  br label %43

43:                                               ; preds = %39, %35
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  br label %48

44:                                               ; preds = %17
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %6, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %7, align 4
  br label %48

48:                                               ; preds = %44, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @_ZN2vl3PtrINS_14regex_internal9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  br label %51

49:                                               ; preds = %25
  call void @_ZN2vl3PtrINS_14regex_internal9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  br label %50

50:                                               ; preds = %49, %25
  ret void

51:                                               ; preds = %48, %31
  %52 = load ptr, ptr %6, align 8
  %53 = load i32, ptr %7, align 4
  %54 = insertvalue { ptr, i32 } poison, ptr %52, 0
  %55 = insertvalue { ptr, i32 } %54, i32 %53, 1
  resume { ptr, i32 } %55
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEE6InvokeEPNS0_10ExpressionES4_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #4 align 2

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

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

declare void @_ZN2vl14regex_internal9AutomatonC1Ev(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { 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 0}
!10 = !{!"_ZTSN2vl14regex_internal10EpsilonNfaE", !6, i64 0, !6, i64 8}
!11 = !{!12, !6, i64 144}
!12 = !{!"_ZTSN2vl14regex_internal9AutomatonE", !13, i64 0, !20, i64 48, !24, i64 96, !6, i64 144}
!13 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_14regex_internal5StateEEEPS4_EE", !14, i64 0}
!14 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_14regex_internal5StateEEEPS4_EE", !15, i64 0, !18, i64 24, !19, i64 32}
!15 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEEE", !16, i64 0, !6, i64 8, !18, i64 16}
!16 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_14regex_internal5StateEEELb0EEE", !17, i64 0}
!17 = !{!"_ZTSN2vl6ObjectE"}
!18 = !{!"long", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_14regex_internal10TransitionEEEPS4_EE", !21, i64 0}
!21 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_14regex_internal10TransitionEEEPS4_EE", !22, i64 0, !18, i64 24, !19, i64 32}
!22 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal10TransitionEEEEE", !23, i64 0, !6, i64 8, !18, i64 16}
!23 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_14regex_internal10TransitionEEELb0EEE", !17, i64 0}
!24 = !{!"_ZTSN2vl11collections4ListINS_12ObjectStringIwEES3_EE", !25, i64 0}
!25 = !{!"_ZTSN2vl11collections8ListBaseINS_12ObjectStringIwEES3_EE", !26, i64 0, !18, i64 24, !19, i64 32}
!26 = !{!"_ZTSN2vl11collections9ArrayBaseINS_12ObjectStringIwEEEE", !27, i64 0, !6, i64 8, !18, i64 16}
!27 = !{!"_ZTSN2vl11collections9ListStoreINS_12ObjectStringIwEELb0EEE", !17, i64 0}
!28 = !{!10, !6, i64 8}
!29 = !{!30, !19, i64 96}
!30 = !{!"_ZTSN2vl14regex_internal5StateE", !31, i64 0, !31, i64 48, !19, i64 96, !6, i64 104}
!31 = !{!"_ZTSN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EE", !32, i64 0}
!32 = !{!"_ZTSN2vl11collections8ListBaseIPNS_14regex_internal10TransitionES4_EE", !33, i64 0, !18, i64 24, !19, i64 32}
!33 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEEE", !34, i64 0, !6, i64 8, !18, i64 16}
!34 = !{!"_ZTSN2vl11collections9ListStoreIPNS_14regex_internal10TransitionELb1EEE", !17, 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::Ptr.991" = type { ptr, ptr, ptr, ptr }
%"class.vl::regex_internal::EpsilonNfaAlgorithm" = type { %"class.vl::regex_internal::RegexExpressionAlgorithm.1095" }
%"class.vl::regex_internal::RegexExpressionAlgorithm.1095" = type { %"class.vl::Object", %"class.vl::regex_internal::IRegexExpressionAlgorithm", %"class.vl::regex_internal::EpsilonNfa", ptr }
%"class.vl::Object" = type { ptr }
%"class.vl::regex_internal::IRegexExpressionAlgorithm" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::regex_internal::EpsilonNfa" = type { ptr, ptr }

; 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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl14regex_internal10Expression18GenerateEpsilonNfaEv(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.991") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.vl::regex_internal::EpsilonNfaAlgorithm", align 8
  %4 = tail call noalias noundef nonnull dereferenceable(152) ptr @_Znwm(i64 noundef 152) #8
  invoke void @_ZN2vl14regex_internal9AutomatonC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %4)
          to label %5 unwind label %15

5:                                                ; preds = %2
  tail call void @_ZN2vl3PtrINS_14regex_internal9AutomatonEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, i8 0, i64 40, i1 false)
  invoke void @_ZN2vl14regex_internal19EpsilonNfaAlgorithmC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %6 unwind label %17

6:                                                ; preds = %5
  %7 = call noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %8 = invoke { ptr, ptr } @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEE6InvokeEPNS0_10ExpressionES4_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %1, ptr noundef %7)
          to label %9 unwind label %19

9:                                                ; preds = %6
  %10 = extractvalue { ptr, ptr } %8, 0
  %11 = extractvalue { ptr, ptr } %8, 1
  call void @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #9
  %12 = call noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %13 = getelementptr inbounds i8, ptr %12, i64 144
  store ptr %10, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %11, i64 96
  store i8 1, ptr %14, align 8, !tbaa !25
  ret void

15:                                               ; preds = %2
  %16 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %4, i64 noundef 152) #10
  br label %22

17:                                               ; preds = %5
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %21

19:                                               ; preds = %6
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #9
  br label %21

21:                                               ; preds = %19, %17
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #9
  call void @_ZN2vl3PtrINS_14regex_internal9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  br label %22

22:                                               ; preds = %21, %15
  %.pn.pn = phi { ptr, i32 } [ %.pn, %21 ], [ %16, %15 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2vl14regex_internal24RegexExpressionAlgorithmINS0_10EpsilonNfaEPNS0_9AutomatonEE6InvokeEPNS0_10ExpressionES4_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

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

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

declare void @_ZN2vl14regex_internal9AutomatonC1Ev(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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { 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, !12, i64 144}
!6 = !{!"_ZTSN2vl14regex_internal9AutomatonE", !7, i64 0, !17, i64 48, !21, i64 96, !12, i64 144}
!7 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_14regex_internal5StateEEEPS4_EE", !8, i64 0}
!8 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_14regex_internal5StateEEEPS4_EE", !9, i64 0, !15, i64 24, !16, i64 32}
!9 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEEE", !10, i64 0, !12, i64 8, !15, i64 16}
!10 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_14regex_internal5StateEEELb0EEE", !11, i64 0}
!11 = !{!"_ZTSN2vl6ObjectE"}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"long", !13, i64 0}
!16 = !{!"bool", !13, i64 0}
!17 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_14regex_internal10TransitionEEEPS4_EE", !18, i64 0}
!18 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_14regex_internal10TransitionEEEPS4_EE", !19, i64 0, !15, i64 24, !16, i64 32}
!19 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal10TransitionEEEEE", !20, i64 0, !12, i64 8, !15, i64 16}
!20 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_14regex_internal10TransitionEEELb0EEE", !11, i64 0}
!21 = !{!"_ZTSN2vl11collections4ListINS_12ObjectStringIwEES3_EE", !22, i64 0}
!22 = !{!"_ZTSN2vl11collections8ListBaseINS_12ObjectStringIwEES3_EE", !23, i64 0, !15, i64 24, !16, i64 32}
!23 = !{!"_ZTSN2vl11collections9ArrayBaseINS_12ObjectStringIwEEEE", !24, i64 0, !12, i64 8, !15, i64 16}
!24 = !{!"_ZTSN2vl11collections9ListStoreINS_12ObjectStringIwEELb0EEE", !11, i64 0}
!25 = !{!26, !16, i64 96}
!26 = !{!"_ZTSN2vl14regex_internal5StateE", !27, i64 0, !27, i64 48, !16, i64 96, !12, i64 104}
!27 = !{!"_ZTSN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EE", !28, i64 0}
!28 = !{!"_ZTSN2vl11collections8ListBaseIPNS_14regex_internal10TransitionES4_EE", !29, i64 0, !15, i64 24, !16, i64 32}
!29 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEEE", !30, i64 0, !12, i64 8, !15, i64 16}
!30 = !{!"_ZTSN2vl11collections9ListStoreIPNS_14regex_internal10TransitionELb1EEE", !11, i64 0}


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