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

; 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.1000" = type { ptr, ptr, ptr, ptr }
%"class.vl::regex_internal::RichResult" = type { i64, i64, %"class.vl::collections::List.983" }
%"class.vl::collections::List.983" = type { %"class.vl::collections::ListBase.base.989", %"class.vl::collections::IEnumerable.987" }
%"class.vl::collections::ListBase.base.989" = type <{ %"class.vl::collections::ArrayBase.base.988", i64, i8 }>
%"class.vl::collections::ArrayBase.base.988" = type { %"class.vl::collections::ListStore.986", ptr, i64 }
%"class.vl::collections::ListStore.986" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.987" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::regex_internal::PureResult" = type { i64, i64, i64, i64 }
%"class.vl::regex::Regex" = type { %"class.vl::Object", ptr, ptr }

; 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 noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2vl14regex_internal15PureInterpretor5MatchEPKwS3_RNS0_10PureResultE(ptr noundef nonnull align 8 dereferenceable(8912952), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2vl5regex5Regex5MatchERKNS_12ObjectStringIwEE(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1000") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %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 %"class.vl::regex_internal::RichResult", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.vl::regex_internal::PureResult", align 8
  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
  %12 = load ptr, ptr %5, align 8
  %13 = getelementptr inbounds %"class.vl::regex::Regex", ptr %12, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %47

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #7
  call void @_ZN2vl14regex_internal10RichResultC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7)
  %17 = getelementptr inbounds %"class.vl::regex::Regex", ptr %12, i32 0, i32 2
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = invoke noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %21 unwind label %35

21:                                               ; preds = %16
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = invoke noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %22)
          to label %24 unwind label %35

24:                                               ; preds = %21
  %25 = invoke noundef zeroext i1 @_ZN2vl14regex_internal15RichInterpretor5MatchEPKwS3_RNS0_10RichResultE(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef %20, ptr noundef %23, ptr noundef nonnull align 8 dereferenceable(64) %7)
          to label %26 unwind label %35

26:                                               ; preds = %24
  br i1 %25, label %27, label %43

27:                                               ; preds = %26
  %28 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 248) #8
          to label %29 unwind label %35

29:                                               ; preds = %27
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.vl::regex::Regex", ptr %12, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  invoke void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10RichResultEPNS6_15RichInterpretorE(ptr noundef nonnull align 8 dereferenceable(248) %28, ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef %7, ptr noundef %32)
          to label %33 unwind label %39

33:                                               ; preds = %29
  invoke void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %28)
          to label %34 unwind label %35

34:                                               ; preds = %33
  store i32 1, ptr %10, align 4
  br label %45

35:                                               ; preds = %43, %33, %27, %24, %21, %16
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  br label %46

39:                                               ; preds = %29
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %28, i64 noundef 248) #9
  br label %46

43:                                               ; preds = %26
  invoke void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
          to label %44 unwind label %35

44:                                               ; preds = %43
  store i32 1, ptr %10, align 4
  br label %45

45:                                               ; preds = %44, %34
  call void @_ZN2vl14regex_internal10RichResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #7
  br label %65

46:                                               ; preds = %39, %35
  call void @_ZN2vl14regex_internal10RichResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #7
  br label %66

47:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  %48 = getelementptr inbounds %"class.vl::regex::Regex", ptr %12, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %50)
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = call noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %52)
  %54 = call noundef zeroext i1 @_ZN2vl14regex_internal15PureInterpretor5MatchEPKwS3_RNS0_10PureResultE(ptr noundef nonnull align 8 dereferenceable(8912952) %49, ptr noundef %51, ptr noundef %53, ptr noundef nonnull align 8 dereferenceable(32) %11)
  br i1 %54, label %55, label %63

55:                                               ; preds = %47
  %56 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 248) #8
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10PureResultE(ptr noundef nonnull align 8 dereferenceable(248) %56, ptr noundef nonnull align 8 dereferenceable(48) %57, ptr noundef %11)
          to label %58 unwind label %59

58:                                               ; preds = %55
  call void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %56)
  store i32 1, ptr %10, align 4
  br label %64

59:                                               ; preds = %55
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %56, i64 noundef 248) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %66

63:                                               ; preds = %47
  call void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
  store i32 1, ptr %10, align 4
  br label %64

64:                                               ; preds = %63, %58
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %65

65:                                               ; preds = %64, %45
  ret void

66:                                               ; preds = %59, %46
  %67 = load ptr, ptr %8, align 8
  %68 = load i32, ptr %9, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

declare void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10PureResultE(ptr, ptr, ptr)

declare void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10RichResultEPNS6_15RichInterpretorE(ptr, 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 = { 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 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 16}
!10 = !{!"_ZTSN2vl5regex5RegexE", !11, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!"_ZTSN2vl6ObjectE"}
!12 = !{!10, !6, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.vl::Ptr.1000" = type { ptr, ptr, ptr, ptr }
%"class.vl::regex_internal::RichResult" = type { i64, i64, %"class.vl::collections::List.983" }
%"class.vl::collections::List.983" = type { %"class.vl::collections::ListBase.base.989", %"class.vl::collections::IEnumerable.987" }
%"class.vl::collections::ListBase.base.989" = type <{ %"class.vl::collections::ArrayBase.base.988", i64, i8 }>
%"class.vl::collections::ArrayBase.base.988" = type { %"class.vl::collections::ListStore.986", ptr, i64 }
%"class.vl::collections::ListStore.986" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.987" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::regex_internal::PureResult" = type { i64, i64, i64, i64 }

; 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 noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2vl14regex_internal15PureInterpretor5MatchEPKwS3_RNS0_10PureResultE(ptr noundef nonnull align 8 dereferenceable(8912952), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2vl5regex5Regex5MatchERKNS_12ObjectStringIwEE(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1000") align 8 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vl::regex_internal::RichResult", align 8
  %5 = alloca %"class.vl::regex_internal::PureResult", align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %28, label %8

8:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @_ZN2vl14regex_internal10RichResultC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4)
  %9 = load ptr, ptr %6, align 8, !tbaa !5
  %10 = invoke noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %11 unwind label %21

11:                                               ; preds = %8
  %12 = invoke noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %13 unwind label %21

13:                                               ; preds = %11
  %14 = invoke noundef zeroext i1 @_ZN2vl14regex_internal15RichInterpretor5MatchEPKwS3_RNS0_10RichResultE(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef %10, ptr noundef %12, ptr noundef nonnull align 8 dereferenceable(64) %4)
          to label %15 unwind label %21

15:                                               ; preds = %13
  br i1 %14, label %16, label %25

16:                                               ; preds = %15
  %17 = invoke noalias noundef nonnull dereferenceable(248) ptr @_Znwm(i64 noundef 248) #8
          to label %18 unwind label %21

18:                                               ; preds = %16
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10RichResultEPNS6_15RichInterpretorE(ptr noundef nonnull align 8 dereferenceable(248) %17, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull %4, ptr noundef %19)
          to label %20 unwind label %23

20:                                               ; preds = %18
  invoke void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %17)
          to label %26 unwind label %21

21:                                               ; preds = %25, %20, %16, %13, %11, %8
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %27

23:                                               ; preds = %18
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %17, i64 noundef 248) #9
  br label %27

25:                                               ; preds = %15
  invoke void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
          to label %26 unwind label %21

26:                                               ; preds = %25, %20
  call void @_ZN2vl14regex_internal10RichResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  br label %41

27:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %22, %21 ], [ %24, %23 ]
  call void @_ZN2vl14regex_internal10RichResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  br label %42

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  %29 = getelementptr inbounds i8, ptr %1, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = tail call noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  %32 = tail call noundef ptr @_ZNK2vl12ObjectStringIwE6BufferEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  %33 = call noundef zeroext i1 @_ZN2vl14regex_internal15PureInterpretor5MatchEPKwS3_RNS0_10PureResultE(ptr noundef nonnull align 8 dereferenceable(8912952) %30, ptr noundef %31, ptr noundef %32, ptr noundef nonnull align 8 dereferenceable(32) %5)
  br i1 %33, label %34, label %39

34:                                               ; preds = %28
  %35 = call noalias noundef nonnull dereferenceable(248) ptr @_Znwm(i64 noundef 248) #8
  invoke void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10PureResultE(ptr noundef nonnull align 8 dereferenceable(248) %35, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull %5)
          to label %36 unwind label %37

36:                                               ; preds = %34
  call void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %35)
  br label %40

37:                                               ; preds = %34
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %35, i64 noundef 248) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %42

39:                                               ; preds = %28
  call void @_ZN2vl3PtrINS_5regex10RegexMatchEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
  br label %40

40:                                               ; preds = %39, %36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %41

41:                                               ; preds = %40, %26
  ret void

42:                                               ; preds = %37, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn, %27 ], [ %38, %37 ]
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10PureResultE(ptr, ptr, ptr) local_unnamed_addr

declare void @_ZN2vl5regex10RegexMatchC1ERKNS_12ObjectStringIwEEPNS_14regex_internal10RichResultEPNS6_15RichInterpretorE(ptr, 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 = { 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 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 16}
!6 = !{!"_ZTSN2vl5regex5RegexE", !7, i64 0, !8, i64 8, !8, i64 16}
!7 = !{!"_ZTSN2vl6ObjectE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!6, !8, i64 8}


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