; LLVM IR from stan-dev/math :: lib/boost_1.84.0/tools/quickbook/src/glob.ll (ZN9quickbook13match_sectionERPKcS1_S2_S2_)

; 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"

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@_ZTIN9quickbook10glob_errorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.4 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZN9quickbook13match_sectionERPKcS1_S2_S2_ = external hidden unnamed_addr constant [96 x i8], align 1

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

declare ptr @__cxa_allocate_exception(i64)

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

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9quickbook13match_sectionERPKcS1_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %16, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %18, ptr %11, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %108, %4
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = icmp ne ptr %20, %21
  br i1 %22, label %23, label %28

23:                                               ; preds = %19
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = load i8, ptr %24, align 1, !tbaa !9
  %26 = sext i8 %25 to i32
  %27 = icmp ne i32 %26, 42
  br label %28

28:                                               ; preds = %23, %19
  %29 = phi i1 [ false, %19 ], [ %27, %23 ]
  br i1 %29, label %30, label %109

30:                                               ; preds = %28
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = icmp eq ptr %31, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %30
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %124

36:                                               ; preds = %30
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = sext i8 %38 to i32
  switch i32 %39, label %94 [
    i32 42, label %40
    i32 91, label %41
    i32 93, label %50
    i32 63, label %57
    i32 92, label %62
  ]

40:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.4, i32 noundef 186, ptr noundef @__PRETTY_FUNCTION__._ZN9quickbook13match_sectionERPKcS1_S2_S2_) #5
  unreachable

41:                                               ; preds = %36
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = call noundef zeroext i1 @_ZN9quickbook11match_rangeERPKcS1_c(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %42, i8 noundef signext %44)
  br i1 %45, label %47, label %46

46:                                               ; preds = %41
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %124

47:                                               ; preds = %41
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i32 1
  store ptr %49, ptr %11, align 8, !tbaa !5
  br label %108

50:                                               ; preds = %36
  %51 = call ptr @__cxa_allocate_exception(i64 16) #4
  invoke void @_ZN9quickbook10glob_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef @.str)
          to label %52 unwind label %53

52:                                               ; preds = %50
  call void @__cxa_throw(ptr %51, ptr @_ZTIN9quickbook10glob_errorE, ptr @_ZNSt13runtime_errorD2Ev) #6
  unreachable

53:                                               ; preds = %50
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %13, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %14, align 4
  call void @__cxa_free_exception(ptr %51) #4
  br label %126

57:                                               ; preds = %36
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i32 1
  store ptr %59, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i32 1
  store ptr %61, ptr %11, align 8, !tbaa !5
  br label %108

62:                                               ; preds = %36
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i32 1
  store ptr %64, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = icmp eq ptr %65, %66
  br i1 %67, label %68, label %75

68:                                               ; preds = %62
  %69 = call ptr @__cxa_allocate_exception(i64 16) #4
  invoke void @_ZN9quickbook10glob_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef @.str.6)
          to label %70 unwind label %71

70:                                               ; preds = %68
  call void @__cxa_throw(ptr %69, ptr @_ZTIN9quickbook10glob_errorE, ptr @_ZNSt13runtime_errorD2Ev) #6
  unreachable

71:                                               ; preds = %68
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  call void @__cxa_free_exception(ptr %69) #4
  br label %126

75:                                               ; preds = %62
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = sext i8 %77 to i32
  %79 = icmp eq i32 %78, 92
  br i1 %79, label %85, label %80

80:                                               ; preds = %75
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %83 = sext i8 %82 to i32
  %84 = icmp eq i32 %83, 47
  br i1 %84, label %85, label %92

85:                                               ; preds = %80, %75
  %86 = call ptr @__cxa_allocate_exception(i64 16) #4
  invoke void @_ZN9quickbook10glob_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef @.str.7)
          to label %87 unwind label %88

87:                                               ; preds = %85
  call void @__cxa_throw(ptr %86, ptr @_ZTIN9quickbook10glob_errorE, ptr @_ZNSt13runtime_errorD2Ev) #6
  unreachable

88:                                               ; preds = %85
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %13, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %14, align 4
  call void @__cxa_free_exception(ptr %86) #4
  br label %126

92:                                               ; preds = %80
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93, %36
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = load i8, ptr %95, align 1, !tbaa !9
  %97 = sext i8 %96 to i32
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = load i8, ptr %98, align 1, !tbaa !9
  %100 = sext i8 %99 to i32
  %101 = icmp ne i32 %97, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %94
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %124

103:                                              ; preds = %94
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i32 1
  store ptr %105, ptr %10, align 8, !tbaa !5
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i32 1
  store ptr %107, ptr %11, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %103, %57, %47
  br label %19, !llvm.loop !10

109:                                              ; preds = %28
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = icmp eq ptr %110, %111
  br i1 %112, label %113, label %119

113:                                              ; preds = %109
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = icmp ne ptr %114, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %113
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %124

119:                                              ; preds = %113, %109
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %120, ptr %121, align 8, !tbaa !5
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %122, ptr %123, align 8, !tbaa !5
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %124

124:                                              ; preds = %119, %118, %102, %46, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %125 = load i1, ptr %5, align 1
  ret i1 %125

126:                                              ; preds = %88, %71, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %13, align 8
  %129 = load i32, ptr %14, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9quickbook11match_rangeERPKcS1_c(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i8 noundef signext) #1

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

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@_ZTIN9quickbook10glob_errorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9quickbook13match_sectionERPKcS1_S2_S2_(ptr nocapture noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, ptr nocapture noundef nonnull align 8 dereferenceable(8) %2, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  store ptr %6, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %.not40 = icmp eq ptr %6, %1
  br i1 %.not40, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %4, %45
  %8 = phi ptr [ %46, %45 ], [ %6, %4 ]
  %.02141 = phi ptr [ %.1, %45 ], [ %7, %4 ]
  %9 = load i8, ptr %8, align 1, !tbaa !9
  %.not28 = icmp eq i8 %9, 42
  br i1 %.not28, label %.critedge, label %10

10:                                               ; preds = %.lr.ph
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = icmp eq ptr %.02141, %11
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %10
  switch i8 %9, label %39 [
    i8 92, label %24
    i8 91, label %14
    i8 93, label %17
    i8 63, label %22
  ]

14:                                               ; preds = %13
  %15 = load i8, ptr %.02141, align 1, !tbaa !9
  %16 = call noundef zeroext i1 @_ZN9quickbook11match_rangeERPKcS1_c(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %1, i8 noundef signext %15)
  br i1 %16, label %._crit_edge, label %.loopexit

._crit_edge:                                      ; preds = %14
  %.pre = load ptr, ptr %5, align 8, !tbaa !5
  br label %45

17:                                               ; preds = %13
  %18 = call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZN9quickbook10glob_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull @.str)
          to label %19 unwind label %20

19:                                               ; preds = %17
  call void @__cxa_throw(ptr nonnull %18, ptr nonnull @_ZTIN9quickbook10glob_errorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #4
  unreachable

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

22:                                               ; preds = %13
  %23 = getelementptr inbounds i8, ptr %8, i64 1
  store ptr %23, ptr %5, align 8, !tbaa !5
  br label %45

24:                                               ; preds = %13
  %25 = getelementptr inbounds i8, ptr %8, i64 1
  store ptr %25, ptr %5, align 8, !tbaa !5
  %26 = icmp eq ptr %25, %1
  br i1 %26, label %27, label %32

27:                                               ; preds = %24
  %28 = call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZN9quickbook10glob_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull @.str.6)
          to label %29 unwind label %30

29:                                               ; preds = %27
  call void @__cxa_throw(ptr nonnull %28, ptr nonnull @_ZTIN9quickbook10glob_errorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #4
  unreachable

30:                                               ; preds = %27
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %50

32:                                               ; preds = %24
  %33 = load i8, ptr %25, align 1, !tbaa !9
  switch i8 %33, label %39 [
    i8 92, label %34
    i8 47, label %34
  ]

34:                                               ; preds = %32, %32
  %35 = call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZN9quickbook10glob_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull @.str.7)
          to label %36 unwind label %37

36:                                               ; preds = %34
  call void @__cxa_throw(ptr nonnull %35, ptr nonnull @_ZTIN9quickbook10glob_errorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #4
  unreachable

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

39:                                               ; preds = %32, %13
  %40 = phi i8 [ %33, %32 ], [ %9, %13 ]
  %41 = phi ptr [ %25, %32 ], [ %8, %13 ]
  %42 = load i8, ptr %.02141, align 1, !tbaa !9
  %.not31 = icmp eq i8 %40, %42
  br i1 %.not31, label %43, label %.loopexit

43:                                               ; preds = %39
  %44 = getelementptr inbounds i8, ptr %41, i64 1
  store ptr %44, ptr %5, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %._crit_edge, %43, %22
  %46 = phi ptr [ %.pre, %._crit_edge ], [ %44, %43 ], [ %23, %22 ]
  %.1 = getelementptr inbounds i8, ptr %.02141, i64 1
  %.not = icmp eq ptr %46, %1
  br i1 %.not, label %.critedge, label %.lr.ph, !llvm.loop !10

.critedge:                                        ; preds = %.lr.ph, %45, %4
  %.021.lcssa = phi ptr [ %7, %4 ], [ %.1, %45 ], [ %.02141, %.lr.ph ]
  %.lcssa = phi ptr [ %6, %4 ], [ %46, %45 ], [ %8, %.lr.ph ]
  %47 = icmp ne ptr %.lcssa, %1
  %48 = load ptr, ptr %3, align 8
  %.not29 = icmp eq ptr %.021.lcssa, %48
  %or.cond = select i1 %47, i1 true, i1 %.not29
  br i1 %or.cond, label %49, label %.loopexit

49:                                               ; preds = %.critedge
  store ptr %.lcssa, ptr %0, align 8, !tbaa !5
  store ptr %.021.lcssa, ptr %2, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %39, %14, %10, %.critedge, %49
  %.022 = phi i1 [ true, %49 ], [ false, %.critedge ], [ false, %10 ], [ false, %14 ], [ false, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i1 %.022

50:                                               ; preds = %37, %30, %20
  %.sink = phi ptr [ %35, %37 ], [ %28, %30 ], [ %18, %20 ]
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %31, %30 ], [ %21, %20 ]
  call void @__cxa_free_exception(ptr %.sink) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9quickbook11match_rangeERPKcS1_c(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i8 noundef signext) local_unnamed_addr #1

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass