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

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

@.str.521 = external hidden unnamed_addr constant [6 x i32], align 4
@_ZTIN2vl17ArgumentExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.539 = external hidden unnamed_addr constant [54 x i32], align 4
@.str.540 = external hidden unnamed_addr constant [29 x i32], align 4

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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) #4

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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2vl14regex_internal6IsCharERPKww(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef signext) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl14regex_internal9ParseJoinERPKw(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1009") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl14regex_internal8ParseAltERPKw(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1009") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"class.vl::Ptr.1009", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.vl::ObjectString", align 8
  %11 = alloca %"class.vl::ObjectString", align 8
  %12 = alloca %"class.vl::ObjectString", align 8
  %13 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN2vl14regex_internal9ParseJoinERPKw(ptr dead_on_unwind writable sret(%"class.vl::Ptr.1009") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %14)
  br label %15

15:                                               ; preds = %88, %2
  br label %16

16:                                               ; preds = %15
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call noundef zeroext i1 @_ZN2vl14regex_internal6IsCharERPKww(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef signext 124)
  br i1 %18, label %19, label %87

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #7
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN2vl14regex_internal9ParseJoinERPKw(ptr dead_on_unwind writable sret(%"class.vl::Ptr.1009") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %21 unwind label %39

21:                                               ; preds = %19
  %22 = invoke noundef zeroext i1 @_ZNK2vl3PtrINS_14regex_internal10ExpressionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %23 unwind label %43

23:                                               ; preds = %21
  br i1 %22, label %24, label %56

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %25 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 72) #8
          to label %26 unwind label %47

26:                                               ; preds = %24
  invoke void @_ZN2vl14regex_internal19AlternateExpressionC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %25)
          to label %27 unwind label %51

27:                                               ; preds = %26
  store ptr %25, ptr %9, align 8, !tbaa !5
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.vl::regex_internal::AlternateExpression", ptr %28, i32 0, i32 1
  %30 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_14regex_internal10ExpressionEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %31 unwind label %47

31:                                               ; preds = %27
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.vl::regex_internal::AlternateExpression", ptr %32, i32 0, i32 2
  %34 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_14regex_internal10ExpressionEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %35 unwind label %47

35:                                               ; preds = %31
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_14regex_internal10ExpressionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %36)
          to label %38 unwind label %47

38:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %84

39:                                               ; preds = %19
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %7, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %8, align 4
  br label %86

43:                                               ; preds = %21
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  br label %85

47:                                               ; preds = %35, %31, %27, %24
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  br label %55

51:                                               ; preds = %26
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %25, i64 noundef 72) #9
  br label %55

55:                                               ; preds = %51, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %85

56:                                               ; preds = %23
  store i1 true, ptr %13, align 1
  %57 = call ptr @__cxa_allocate_exception(i64 152) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #7
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef @.str.539, i1 noundef zeroext true)
          to label %58 unwind label %62

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #7
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef @.str.540, i1 noundef zeroext true)
          to label %59 unwind label %66

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #7
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef @.str.521, i1 noundef zeroext true)
          to label %60 unwind label %70

60:                                               ; preds = %59
  invoke void @_ZN2vl17ArgumentExceptionC1ERKNS_12ObjectStringIwEES4_S4_(ptr noundef nonnull align 8 dereferenceable(152) %57, ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %61 unwind label %74

61:                                               ; preds = %60
  store i1 false, ptr %13, align 1
  invoke void @__cxa_throw(ptr %57, ptr @_ZTIN2vl17ArgumentExceptionE, ptr @_ZN2vl17ArgumentExceptionD2Ev) #10
          to label %98 unwind label %74

62:                                               ; preds = %56
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  br label %80

66:                                               ; preds = %58
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  br label %79

70:                                               ; preds = %59
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  br label %78

74:                                               ; preds = %61, %60
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #7
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  br label %79

79:                                               ; preds = %78, %66
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #7
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  br label %80

80:                                               ; preds = %79, %62
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  %81 = load i1, ptr %13, align 1
  br i1 %81, label %82, label %83

82:                                               ; preds = %80
  call void @__cxa_free_exception(ptr %57) #7
  br label %83

83:                                               ; preds = %82, %80
  br label %85

84:                                               ; preds = %38
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  br label %88

85:                                               ; preds = %83, %55, %43
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %86

86:                                               ; preds = %85, %39
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  br label %93

87:                                               ; preds = %16
  br label %89

88:                                               ; preds = %84
  br label %15, !llvm.loop !9

89:                                               ; preds = %87
  store i1 true, ptr %5, align 1
  %90 = load i1, ptr %5, align 1
  br i1 %90, label %92, label %91

91:                                               ; preds = %89
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  br label %92

92:                                               ; preds = %91, %89
  ret void

93:                                               ; preds = %86
  %94 = load ptr, ptr %7, align 8
  %95 = load i32, ptr %8, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97

98:                                               ; preds = %61
  unreachable
}

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

declare void @_ZN2vl17ArgumentExceptionC1ERKNS_12ObjectStringIwEES4_S4_(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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { noreturn }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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

@.str.521 = external hidden unnamed_addr constant [6 x i32], align 4
@_ZTIN2vl17ArgumentExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.539 = external hidden unnamed_addr constant [54 x i32], align 4
@.str.540 = external hidden unnamed_addr constant [29 x i32], align 4

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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 #4

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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2vl14regex_internal6IsCharERPKww(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef signext) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl14regex_internal9ParseJoinERPKw(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1009") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl14regex_internal8ParseAltERPKw(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1009") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.vl::Ptr.1009", align 8
  %4 = alloca %"class.vl::ObjectString", align 8
  %5 = alloca %"class.vl::ObjectString", align 8
  %6 = alloca %"class.vl::ObjectString", align 8
  tail call void @_ZN2vl14regex_internal9ParseJoinERPKw(ptr dead_on_unwind writable sret(%"class.vl::Ptr.1009") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %7 = tail call noundef zeroext i1 @_ZN2vl14regex_internal6IsCharERPKww(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef signext 124)
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  invoke void @_ZN2vl14regex_internal9ParseJoinERPKw(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr.1009") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %8 unwind label %23

8:                                                ; preds = %.lr.ph
  %9 = call noundef zeroext i1 @_ZNK2vl3PtrINS_14regex_internal10ExpressionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  br i1 %9, label %10, label %29

10:                                               ; preds = %8
  %11 = invoke noalias noundef nonnull dereferenceable(72) ptr @_Znwm(i64 noundef 72) #8
          to label %12 unwind label %25

12:                                               ; preds = %10
  invoke void @_ZN2vl14regex_internal19AlternateExpressionC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %13 unwind label %27

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %11, i64 8
  %15 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_14regex_internal10ExpressionEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %16 unwind label %25

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %11, i64 40
  %18 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_14regex_internal10ExpressionEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %19 unwind label %25

19:                                               ; preds = %16
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_14regex_internal10ExpressionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %11)
          to label %21 unwind label %25

21:                                               ; preds = %19
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  %22 = call noundef zeroext i1 @_ZN2vl14regex_internal6IsCharERPKww(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef signext 124)
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !5

23:                                               ; preds = %.lr.ph
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %44

25:                                               ; preds = %19, %16, %13, %10
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %43

27:                                               ; preds = %12
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 72) #9
  br label %43

29:                                               ; preds = %8
  %30 = call ptr @__cxa_allocate_exception(i64 152) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #7
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull @.str.539, i1 noundef zeroext true)
          to label %31 unwind label %.thread

31:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #7
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull @.str.540, i1 noundef zeroext true)
          to label %32 unwind label %.thread29

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull @.str.521, i1 noundef zeroext true)
          to label %33 unwind label %37

33:                                               ; preds = %32
  invoke void @_ZN2vl17ArgumentExceptionC1ERKNS_12ObjectStringIwEES4_S4_(ptr noundef nonnull align 8 dereferenceable(152) %30, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %34 unwind label %39

34:                                               ; preds = %33
  invoke void @__cxa_throw(ptr %30, ptr nonnull @_ZTIN2vl17ArgumentExceptionE, ptr nonnull @_ZN2vl17ArgumentExceptionD2Ev) #10
          to label %45 unwind label %39

.thread:                                          ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  br label %42

.thread29:                                        ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  br label %42

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %41

39:                                               ; preds = %34, %33
  %.0 = phi i1 [ false, %34 ], [ true, %33 ]
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  br label %41

41:                                               ; preds = %37, %39
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  %.1 = phi i1 [ %.0, %39 ], [ true, %37 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  br i1 %.1, label %42, label %43

42:                                               ; preds = %.thread29, %.thread, %41
  %.pn.pn.pn28 = phi { ptr, i32 } [ %35, %.thread ], [ %.pn, %41 ], [ %36, %.thread29 ]
  call void @__cxa_free_exception(ptr %30) #7
  br label %43

43:                                               ; preds = %25, %27, %41, %42
  %.pn22.pn = phi { ptr, i32 } [ %.pn.pn.pn28, %42 ], [ %.pn, %41 ], [ %26, %25 ], [ %28, %27 ]
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %44

44:                                               ; preds = %43, %23
  %.pn22.pn.pn = phi { ptr, i32 } [ %.pn22.pn, %43 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZN2vl3PtrINS_14regex_internal10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  resume { ptr, i32 } %.pn22.pn.pn

._crit_edge:                                      ; preds = %21, %2
  ret void

45:                                               ; preds = %34
  unreachable
}

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

declare void @_ZN2vl17ArgumentExceptionC1ERKNS_12ObjectStringIwEES4_S4_(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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { noreturn }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass