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

; 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::regex::RegexNode" = type { %"class.vl::Object", %"class.vl::Ptr.1009" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.1009" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.1098" = type { ptr, ptr, ptr, ptr }
%"class.vl::regex_internal::CharSetExpression" = type <{ %"class.vl::regex_internal::Expression", %"class.vl::collections::SortedList.1001", i8, [7 x i8] }>
%"class.vl::regex_internal::Expression" = type { %"class.vl::Object" }
%"class.vl::collections::SortedList.1001" = type { %"class.vl::collections::ListBase.base.1007", %"class.vl::collections::IEnumerable.1005" }
%"class.vl::collections::ListBase.base.1007" = type <{ %"class.vl::collections::ArrayBase.base.1006", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1006" = type { %"class.vl::collections::ListStore.1004", ptr, i64 }
%"class.vl::collections::ListStore.1004" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1005" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }

@_ZTIN2vl5ErrorE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN2vl14regex_internal10ExpressionE = external dso_local constant { ptr, ptr, i32, i32, ptr, i64, ptr, i64 }, align 8
@_ZTIN2vl14regex_internal17CharSetExpressionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.554 = external hidden unnamed_addr constant [75 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(...)

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections8CopyFromINS0_10SortedListINS_14regex_internal9CharRangeES4_EES5_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(33), i1 noundef zeroext) #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2vl5regex9RegexNodentEv(ptr dead_on_unwind noalias writable sret(%"class.vl::regex::RegexNode") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.vl::Ptr.1098", align 8
  %9 = alloca %"class.vl::Ptr.1009", 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %11 = getelementptr inbounds %"class.vl::regex::RegexNode", ptr %10, i32 0, i32 1
  %12 = call noundef ptr @_ZNK2vl3PtrINS_14regex_internal10ExpressionEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %16, label %14

14:                                               ; preds = %2
  %15 = call ptr @__dynamic_cast(ptr %12, ptr @_ZTIN2vl14regex_internal10ExpressionE, ptr @_ZTIN2vl14regex_internal17CharSetExpressionE, i64 0) #7
  br label %17

16:                                               ; preds = %2
  br label %17

17:                                               ; preds = %16, %14
  %18 = phi ptr [ %15, %14 ], [ null, %16 ]
  store ptr %18, ptr %5, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %17
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %29, label %22

22:                                               ; preds = %19
  %23 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.554)
          to label %24 unwind label %25

24:                                               ; preds = %22
  call void @__cxa_throw(ptr %23, ptr @_ZTIN2vl5ErrorE, ptr null) #8
  unreachable

25:                                               ; preds = %22
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %6, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %7, align 4
  call void @__cxa_free_exception(ptr %23) #7
  br label %65

29:                                               ; preds = %19
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  %32 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #9
  invoke void @_ZN2vl14regex_internal17CharSetExpressionC2Ev(ptr noundef nonnull align 8 dereferenceable(57) %32)
          to label %33 unwind label %51

33:                                               ; preds = %31
  call void @_ZN2vl3PtrINS_14regex_internal17CharSetExpressionEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %32)
  %34 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal17CharSetExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %35 unwind label %55

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"class.vl::regex_internal::CharSetExpression", ptr %34, i32 0, i32 1
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.vl::regex_internal::CharSetExpression", ptr %37, i32 0, i32 1
  invoke void @_ZN2vl11collections8CopyFromINS0_10SortedListINS_14regex_internal9CharRangeES4_EES5_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %36, ptr noundef nonnull align 8 dereferenceable(33) %38, i1 noundef zeroext false)
          to label %39 unwind label %55

39:                                               ; preds = %35
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.vl::regex_internal::CharSetExpression", ptr %40, i32 0, i32 2
  %42 = load i8, ptr %41, align 8, !tbaa !9, !range !19, !noundef !20
  %43 = trunc i8 %42 to i1
  %44 = xor i1 %43, true
  %45 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal17CharSetExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %46 unwind label %55

46:                                               ; preds = %39
  %47 = getelementptr inbounds %"class.vl::regex_internal::CharSetExpression", ptr %45, i32 0, i32 2
  %48 = zext i1 %44 to i8
  store i8 %48, ptr %47, align 8, !tbaa !9
  invoke void @_ZN2vl3PtrINS_14regex_internal10ExpressionEEC2INS1_17CharSetExpressionEEERKNS0_IT_EE(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %49 unwind label %55

49:                                               ; preds = %46
  invoke void @_ZN2vl5regex9RegexNodeC1ENS_3PtrINS_14regex_internal10ExpressionEEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %9)
          to label %50 unwind label %59

50:                                               ; preds = %49
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZN2vl3PtrINS_14regex_internal17CharSetExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void

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

55:                                               ; preds = %46, %39, %35, %33
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %6, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %7, align 4
  br label %63

59:                                               ; preds = %49
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %63

63:                                               ; preds = %59, %55
  call void @_ZN2vl3PtrINS_14regex_internal17CharSetExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %64

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

65:                                               ; preds = %64, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %66

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

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #6

declare void @_ZN2vl5ErrorC1EPKw(ptr, ptr)

declare void @_ZN2vl5regex9RegexNodeC1ENS_3PtrINS_14regex_internal10ExpressionEEE(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 = { 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 #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 = { 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { builtin allocsize(0) }
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, !18, i64 56}
!10 = !{!"_ZTSN2vl14regex_internal17CharSetExpressionE", !11, i64 0, !13, i64 8, !18, i64 56}
!11 = !{!"_ZTSN2vl14regex_internal10ExpressionE", !12, i64 0}
!12 = !{!"_ZTSN2vl6ObjectE"}
!13 = !{!"_ZTSN2vl11collections10SortedListINS_14regex_internal9CharRangeES3_EE", !14, i64 0}
!14 = !{!"_ZTSN2vl11collections8ListBaseINS_14regex_internal9CharRangeES3_EE", !15, i64 0, !17, i64 24, !18, i64 32}
!15 = !{!"_ZTSN2vl11collections9ArrayBaseINS_14regex_internal9CharRangeEEE", !16, i64 0, !6, i64 8, !17, i64 16}
!16 = !{!"_ZTSN2vl11collections9ListStoreINS_14regex_internal9CharRangeELb1EEE", !12, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


; 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::regex::RegexNode" = type { %"class.vl::Object", %"class.vl::Ptr.1009" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.1009" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.1098" = type { ptr, ptr, ptr, ptr }

@_ZTIN2vl5ErrorE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN2vl14regex_internal10ExpressionE = external dso_local constant { ptr, ptr, i32, i32, ptr, i64, ptr, i64 }, align 8
@_ZTIN2vl14regex_internal17CharSetExpressionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.554 = external hidden unnamed_addr constant [75 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(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections8CopyFromINS0_10SortedListINS_14regex_internal9CharRangeES4_EES5_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(33), i1 noundef zeroext) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2vl5regex9RegexNodentEv(ptr dead_on_unwind noalias writable sret(%"class.vl::regex::RegexNode") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.vl::Ptr.1098", align 8
  %4 = alloca %"class.vl::Ptr.1009", align 8
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = tail call noundef ptr @_ZNK2vl3PtrINS_14regex_internal10ExpressionEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %7 = icmp eq ptr %6, null
  br i1 %7, label %.thread, label %8

8:                                                ; preds = %2
  %9 = tail call ptr @__dynamic_cast(ptr nonnull %6, ptr nonnull @_ZTIN2vl14regex_internal10ExpressionE, ptr nonnull @_ZTIN2vl14regex_internal17CharSetExpressionE, i64 0) #7
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %.thread, label %14

.thread:                                          ; preds = %2, %8
  %10 = tail call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @.str.554)
          to label %11 unwind label %12

11:                                               ; preds = %.thread
  tail call void @__cxa_throw(ptr %10, ptr nonnull @_ZTIN2vl5ErrorE, ptr null) #8
  unreachable

12:                                               ; preds = %.thread
  %13 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %10) #7
  br label %36

14:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  %15 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #9
  invoke void @_ZN2vl14regex_internal17CharSetExpressionC2Ev(ptr noundef nonnull align 8 dereferenceable(57) %15)
          to label %16 unwind label %28

16:                                               ; preds = %14
  call void @_ZN2vl3PtrINS_14regex_internal17CharSetExpressionEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %15)
  %17 = call noundef ptr @_ZNK2vl3PtrINS_14regex_internal17CharSetExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = getelementptr inbounds i8, ptr %9, i64 8
  invoke void @_ZN2vl11collections8CopyFromINS0_10SortedListINS_14regex_internal9CharRangeES4_EES5_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %18, ptr noundef nonnull align 8 dereferenceable(33) %19, i1 noundef zeroext false)
          to label %20 unwind label %30

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %9, i64 56
  %22 = load i8, ptr %21, align 8, !tbaa !5, !range !18, !noundef !19
  %23 = xor i8 %22, 1
  %24 = call noundef ptr @_ZNK2vl3PtrINS_14regex_internal17CharSetExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %25 = getelementptr inbounds i8, ptr %24, i64 56
  store i8 %23, ptr %25, align 8, !tbaa !5
  invoke void @_ZN2vl3PtrINS_14regex_internal10ExpressionEEC2INS1_17CharSetExpressionEEERKNS0_IT_EE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %26 unwind label %30

26:                                               ; preds = %20
  invoke void @_ZN2vl5regex9RegexNodeC1ENS_3PtrINS_14regex_internal10ExpressionEEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %4)
          to label %27 unwind label %32

27:                                               ; preds = %26
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @_ZN2vl3PtrINS_14regex_internal17CharSetExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  ret void

28:                                               ; preds = %14
  %29 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %15, i64 noundef 64) #10
  br label %35

30:                                               ; preds = %20, %16
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %34

32:                                               ; preds = %26
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %34

34:                                               ; preds = %32, %30
  %.pn = phi { ptr, i32 } [ %33, %32 ], [ %31, %30 ]
  call void @_ZN2vl3PtrINS_14regex_internal17CharSetExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %35

35:                                               ; preds = %34, %28
  %.pn.pn = phi { ptr, i32 } [ %.pn, %34 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %36

36:                                               ; preds = %35, %12
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %35 ], [ %13, %12 ]
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #6

declare void @_ZN2vl5ErrorC1EPKw(ptr, ptr) local_unnamed_addr

declare void @_ZN2vl5regex9RegexNodeC1ENS_3PtrINS_14regex_internal10ExpressionEEE(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 = { 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 #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 = { 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 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 nofree nounwind willreturn memory(read) }
attributes #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { builtin allocsize(0) }
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, !17, i64 56}
!6 = !{!"_ZTSN2vl14regex_internal17CharSetExpressionE", !7, i64 0, !9, i64 8, !17, i64 56}
!7 = !{!"_ZTSN2vl14regex_internal10ExpressionE", !8, i64 0}
!8 = !{!"_ZTSN2vl6ObjectE"}
!9 = !{!"_ZTSN2vl11collections10SortedListINS_14regex_internal9CharRangeES3_EE", !10, i64 0}
!10 = !{!"_ZTSN2vl11collections8ListBaseINS_14regex_internal9CharRangeES3_EE", !11, i64 0, !16, i64 24, !17, i64 32}
!11 = !{!"_ZTSN2vl11collections9ArrayBaseINS_14regex_internal9CharRangeEEE", !12, i64 0, !13, i64 8, !16, i64 16}
!12 = !{!"_ZTSN2vl11collections9ListStoreINS_14regex_internal9CharRangeELb1EEE", !8, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"long", !14, i64 0}
!17 = !{!"bool", !14, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}


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