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

; 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_internal::RichInterpretor" = type { %"class.vl::Object", %"class.vl::Ptr.991", ptr }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.991" = type { ptr, ptr, ptr, ptr }
%"class.vl::regex_internal::Automaton" = type { %"class.vl::collections::List.1054", %"class.vl::collections::List.1062", %"class.vl::collections::List", ptr }
%"class.vl::collections::List.1054" = type { %"class.vl::collections::ListBase.base.1060", %"class.vl::collections::IEnumerable.1058" }
%"class.vl::collections::ListBase.base.1060" = type <{ %"class.vl::collections::ArrayBase.base.1059", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1059" = type { %"class.vl::collections::ListStore.1057", ptr, i64 }
%"class.vl::collections::ListStore.1057" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1058" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::collections::List.1062" = type { %"class.vl::collections::ListBase.base.1068", %"class.vl::collections::IEnumerable.1066" }
%"class.vl::collections::ListBase.base.1068" = type <{ %"class.vl::collections::ArrayBase.base.1067", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1067" = type { %"class.vl::collections::ListStore.1065", ptr, i64 }
%"class.vl::collections::ListStore.1065" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1066" = type { %"class.vl::Interface" }
%"class.vl::collections::List" = type { %"class.vl::collections::ListBase.base", %"class.vl::collections::IEnumerable.2" }
%"class.vl::collections::ListBase.base" = type <{ %"class.vl::collections::ArrayBase.base.3", i64, i8 }>
%"class.vl::collections::ArrayBase.base.3" = type { %"class.vl::collections::ListStore.1", ptr, i64 }
%"class.vl::collections::ListStore.1" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.2" = type { %"class.vl::Interface" }
%"class.vl::regex_internal::State" = type { %"class.vl::collections::List.1071", %"class.vl::collections::List.1071", i8, ptr }
%"class.vl::collections::List.1071" = type { %"class.vl::collections::ListBase.base.1077", %"class.vl::collections::IEnumerable.1075" }
%"class.vl::collections::ListBase.base.1077" = type <{ %"class.vl::collections::ArrayBase.base.1076", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1076" = type { %"class.vl::collections::ListStore.1074", ptr, i64 }
%"class.vl::collections::ListStore.1074" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1075" = type { %"class.vl::Interface" }
%"class.vl::regex_internal::Transition" = type { ptr, ptr, %"class.vl::regex_internal::CharRange", i32, i64, i64 }
%"class.vl::regex_internal::CharRange" = type { i32, i32 }
%"class.vl::regex_internal::RichInterpretor::UserData" = type { i8 }

@_ZTVN2vl14regex_internal15RichInterpretorE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl14regex_internal15RichInterpretorC2ENS_3PtrINS0_9AutomatonEEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN2vl14regex_internal15RichInterpretorE, i32 0, i32 0, i32 2), ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor", ptr %14, i32 0, i32 1
  invoke void @_ZN2vl3PtrINS_14regex_internal9AutomatonEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %16 unwind label %36

16:                                               ; preds = %2
  %17 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor", ptr %14, i32 0, i32 1
  %18 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %19 unwind label %40

19:                                               ; preds = %16
  %20 = getelementptr inbounds %"class.vl::regex_internal::Automaton", ptr %18, i32 0, i32 0
  %21 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %22 unwind label %40

22:                                               ; preds = %19
  %23 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %21) #6
          to label %24 unwind label %40

24:                                               ; preds = %22
  %25 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor", ptr %14, i32 0, i32 2
  store ptr %23, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !15
  br label %26

26:                                               ; preds = %143, %24
  %27 = load i64, ptr %7, align 8, !tbaa !15
  %28 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor", ptr %14, i32 0, i32 1
  %29 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %30 unwind label %44

30:                                               ; preds = %26
  %31 = getelementptr inbounds %"class.vl::regex_internal::Automaton", ptr %29, i32 0, i32 0
  %32 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %33 unwind label %44

33:                                               ; preds = %30
  %34 = icmp slt i64 %27, %32
  br i1 %34, label %48, label %35

35:                                               ; preds = %33
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %148

36:                                               ; preds = %2
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  br label %150

40:                                               ; preds = %22, %19, %16
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %5, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %6, align 4
  br label %149

44:                                               ; preds = %30, %26
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %5, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %6, align 4
  br label %147

48:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %49 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor", ptr %14, i32 0, i32 1
  %50 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %51 unwind label %66

51:                                               ; preds = %48
  %52 = getelementptr inbounds %"class.vl::regex_internal::Automaton", ptr %50, i32 0, i32 0
  %53 = load i64, ptr %7, align 8, !tbaa !15
  %54 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_14regex_internal5StateEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %52, i64 noundef %53)
          to label %55 unwind label %66

55:                                               ; preds = %51
  %56 = invoke noundef ptr @_ZNK2vl3PtrINS_14regex_internal5StateEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %54)
          to label %57 unwind label %66

57:                                               ; preds = %55
  store ptr %56, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 0, ptr %12, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !15
  br label %58

58:                                               ; preds = %112, %57
  %59 = load i64, ptr %13, align 8, !tbaa !15
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.vl::regex_internal::State", ptr %60, i32 0, i32 0
  %62 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
          to label %63 unwind label %70

63:                                               ; preds = %58
  %64 = icmp slt i64 %59, %62
  br i1 %64, label %74, label %65

65:                                               ; preds = %63
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %115

66:                                               ; preds = %55, %51, %48
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %5, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %6, align 4
  br label %146

70:                                               ; preds = %97, %87, %74, %58
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %5, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %146

74:                                               ; preds = %63
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.vl::regex_internal::State", ptr %75, i32 0, i32 0
  %77 = load i64, ptr %13, align 8, !tbaa !15
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %76, i64 noundef %77)
          to label %79 unwind label %70

79:                                               ; preds = %74
  %80 = load ptr, ptr %78, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.vl::regex_internal::Transition", ptr %80, i32 0, i32 3
  %82 = load i32, ptr %81, align 8, !tbaa !19
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %79
  %85 = load i64, ptr %10, align 8, !tbaa !15
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %10, align 8, !tbaa !15
  br label %111

87:                                               ; preds = %79
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.vl::regex_internal::State", ptr %88, i32 0, i32 0
  %90 = load i64, ptr %13, align 8, !tbaa !15
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %89, i64 noundef %90)
          to label %92 unwind label %70

92:                                               ; preds = %87
  %93 = load ptr, ptr %91, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.vl::regex_internal::Transition", ptr %93, i32 0, i32 3
  %95 = load i32, ptr %94, align 8, !tbaa !19
  %96 = icmp eq i32 %95, 8
  br i1 %96, label %107, label %97

97:                                               ; preds = %92
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.vl::regex_internal::State", ptr %98, i32 0, i32 0
  %100 = load i64, ptr %13, align 8, !tbaa !15
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %99, i64 noundef %100)
          to label %102 unwind label %70

102:                                              ; preds = %97
  %103 = load ptr, ptr %101, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.vl::regex_internal::Transition", ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 8, !tbaa !19
  %106 = icmp eq i32 %105, 7
  br i1 %106, label %107, label %108

107:                                              ; preds = %102, %92
  store i8 1, ptr %12, align 1, !tbaa !17
  br label %108

108:                                              ; preds = %107, %102
  %109 = load i64, ptr %11, align 8, !tbaa !15
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %11, align 8, !tbaa !15
  br label %111

111:                                              ; preds = %108, %84
  br label %112

112:                                              ; preds = %111
  %113 = load i64, ptr %13, align 8, !tbaa !15
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %13, align 8, !tbaa !15
  br label %58, !llvm.loop !24

115:                                              ; preds = %65
  %116 = load i8, ptr %12, align 1, !tbaa !17, !range !26, !noundef !27
  %117 = trunc i8 %116 to i1
  br i1 %117, label %129, label %118

118:                                              ; preds = %115
  %119 = load i64, ptr %11, align 8, !tbaa !15
  %120 = icmp sgt i64 %119, 1
  br i1 %120, label %129, label %121

121:                                              ; preds = %118
  %122 = load i64, ptr %11, align 8, !tbaa !15
  %123 = icmp ne i64 %122, 0
  br i1 %123, label %124, label %127

124:                                              ; preds = %121
  %125 = load i64, ptr %10, align 8, !tbaa !15
  %126 = icmp ne i64 %125, 0
  br label %127

127:                                              ; preds = %124, %121
  %128 = phi i1 [ false, %121 ], [ %126, %124 ]
  br label %129

129:                                              ; preds = %127, %118, %115
  %130 = phi i1 [ true, %118 ], [ true, %115 ], [ %128, %127 ]
  %131 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor", ptr %14, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !11
  %133 = load i64, ptr %7, align 8, !tbaa !15
  %134 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor::UserData", ptr %132, i64 %133
  %135 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor::UserData", ptr %134, i32 0, i32 0
  %136 = zext i1 %130 to i8
  store i8 %136, ptr %135, align 1, !tbaa !28
  %137 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor", ptr %14, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !11
  %139 = load i64, ptr %7, align 8, !tbaa !15
  %140 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor::UserData", ptr %138, i64 %139
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.vl::regex_internal::State", ptr %141, i32 0, i32 3
  store ptr %140, ptr %142, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %143

143:                                              ; preds = %129
  %144 = load i64, ptr %7, align 8, !tbaa !15
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %7, align 8, !tbaa !15
  br label %26, !llvm.loop !36

146:                                              ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %147

147:                                              ; preds = %146, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %149

148:                                              ; preds = %35
  ret void

149:                                              ; preds = %147, %40
  call void @_ZN2vl3PtrINS_14regex_internal9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %150

150:                                              ; preds = %149, %36
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %151

151:                                              ; preds = %150
  %152 = load ptr, ptr %5, align 8
  %153 = load i32, ptr %6, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 40}
!12 = !{!"_ZTSN2vl14regex_internal15RichInterpretorE", !13, i64 0, !14, i64 8, !6, i64 40}
!13 = !{!"_ZTSN2vl6ObjectE"}
!14 = !{!"_ZTSN2vl3PtrINS_14regex_internal9AutomatonEEE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !23, i64 24}
!20 = !{!"_ZTSN2vl14regex_internal10TransitionE", !6, i64 0, !6, i64 8, !21, i64 16, !23, i64 24, !16, i64 32, !16, i64 40}
!21 = !{!"_ZTSN2vl14regex_internal9CharRangeE", !22, i64 0, !22, i64 4}
!22 = !{!"wchar_t", !7, i64 0}
!23 = !{!"_ZTSN2vl14regex_internal10Transition4TypeE", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !18, i64 0}
!29 = !{!"_ZTSN2vl14regex_internal15RichInterpretor8UserDataE", !18, i64 0}
!30 = !{!31, !6, i64 104}
!31 = !{!"_ZTSN2vl14regex_internal5StateE", !32, i64 0, !32, i64 48, !18, i64 96, !6, i64 104}
!32 = !{!"_ZTSN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EE", !33, i64 0}
!33 = !{!"_ZTSN2vl11collections8ListBaseIPNS_14regex_internal10TransitionES4_EE", !34, i64 0, !16, i64 24, !18, i64 32}
!34 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEEE", !35, i64 0, !6, i64 8, !16, i64 16}
!35 = !{!"_ZTSN2vl11collections9ListStoreIPNS_14regex_internal10TransitionELb1EEE", !13, i64 0}
!36 = distinct !{!36, !25}


; 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_internal::RichInterpretor::UserData" = type { i8 }

@_ZTVN2vl14regex_internal15RichInterpretorE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EixEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl14regex_internal15RichInterpretorC2ENS_3PtrINS0_9AutomatonEEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN2vl14regex_internal15RichInterpretorE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZN2vl3PtrINS_14regex_internal9AutomatonEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %4 unwind label %13

4:                                                ; preds = %2
  %5 = tail call noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %6 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %7 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %6) #5
          to label %8 unwind label %15

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %7, ptr %9, align 8, !tbaa !8
  %10 = tail call noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %11 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph50, label %._crit_edge51

._crit_edge51:                                    ; preds = %61, %8
  ret void

13:                                               ; preds = %2
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %72

15:                                               ; preds = %4
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %71

.lr.ph50:                                         ; preds = %8, %61
  %.03248 = phi i64 [ %67, %61 ], [ 0, %8 ]
  %17 = tail call noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %18 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_14regex_internal5StateEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %17, i64 noundef %.03248)
          to label %19 unwind label %24

19:                                               ; preds = %.lr.ph50
  %20 = tail call noundef ptr @_ZNK2vl3PtrINS_14regex_internal5StateEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
  %21 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = icmp sgt i64 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %53, %19
  %.027.lcssa = phi i64 [ 0, %19 ], [ %.128, %53 ]
  %.025.lcssa = phi i64 [ 0, %19 ], [ %.126, %53 ]
  %.024.lcssa = phi i1 [ false, %19 ], [ %.2, %53 ]
  %23 = icmp sgt i64 %.025.lcssa, 1
  %or.cond = select i1 %.024.lcssa, i1 true, i1 %23
  br i1 %or.cond, label %61, label %57

24:                                               ; preds = %.lr.ph50
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %71

26:                                               ; preds = %43, %36, %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %71

.lr.ph:                                           ; preds = %19, %53
  %.045 = phi i64 [ %54, %53 ], [ 0, %19 ]
  %.02444 = phi i1 [ %.2, %53 ], [ false, %19 ]
  %.02543 = phi i64 [ %.126, %53 ], [ 0, %19 ]
  %.02742 = phi i64 [ %.128, %53 ], [ 0, %19 ]
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %20, i64 noundef %.045)
          to label %29 unwind label %26

29:                                               ; preds = %.lr.ph
  %30 = load ptr, ptr %28, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %30, i64 24
  %32 = load i32, ptr %31, align 8, !tbaa !15
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %29
  %35 = add nsw i64 %.02742, 1
  br label %53

36:                                               ; preds = %29
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %20, i64 noundef %.045)
          to label %38 unwind label %26

38:                                               ; preds = %36
  %39 = load ptr, ptr %37, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = icmp eq i32 %41, 8
  br i1 %42, label %50, label %43

43:                                               ; preds = %38
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %20, i64 noundef %.045)
          to label %45 unwind label %26

45:                                               ; preds = %43
  %46 = load ptr, ptr %44, align 8, !tbaa !14
  %47 = getelementptr inbounds i8, ptr %46, i64 24
  %48 = load i32, ptr %47, align 8, !tbaa !15
  %49 = icmp eq i32 %48, 7
  br i1 %49, label %50, label %51

50:                                               ; preds = %45, %38
  br label %51

51:                                               ; preds = %50, %45
  %.1 = phi i1 [ true, %50 ], [ %.02444, %45 ]
  %52 = add nsw i64 %.02543, 1
  br label %53

53:                                               ; preds = %34, %51
  %.128 = phi i64 [ %35, %34 ], [ %.02742, %51 ]
  %.126 = phi i64 [ %.02543, %34 ], [ %52, %51 ]
  %.2 = phi i1 [ %.02444, %34 ], [ %.1, %51 ]
  %54 = add nuw nsw i64 %.045, 1
  %55 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %56 = icmp slt i64 %54, %55
  br i1 %56, label %.lr.ph, label %._crit_edge, !llvm.loop !21

57:                                               ; preds = %._crit_edge
  %58 = icmp ne i64 %.025.lcssa, 0
  %59 = icmp ne i64 %.027.lcssa, 0
  %60 = select i1 %58, i1 %59, i1 false
  br label %61

61:                                               ; preds = %57, %._crit_edge
  %62 = phi i1 [ true, %._crit_edge ], [ %60, %57 ]
  %63 = load ptr, ptr %9, align 8, !tbaa !8
  %64 = getelementptr inbounds %"class.vl::regex_internal::RichInterpretor::UserData", ptr %63, i64 %.03248
  %65 = zext i1 %62 to i8
  store i8 %65, ptr %64, align 1, !tbaa !23
  %66 = getelementptr inbounds i8, ptr %20, i64 104
  store ptr %64, ptr %66, align 8, !tbaa !26
  %67 = add nuw nsw i64 %.03248, 1
  %68 = tail call noundef ptr @_ZNK2vl3PtrINS_14regex_internal9AutomatonEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %69 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_14regex_internal5StateEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %68)
  %70 = icmp slt i64 %67, %69
  br i1 %70, label %.lr.ph50, label %._crit_edge51, !llvm.loop !32

71:                                               ; preds = %24, %26, %15
  %.pn.pn = phi { ptr, i32 } [ %16, %15 ], [ %27, %26 ], [ %25, %24 ]
  tail call void @_ZN2vl3PtrINS_14regex_internal9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %72

72:                                               ; preds = %71, %13
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %71 ], [ %14, %13 ]
  tail call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

attributes #0 = { 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 #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 = { 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 #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 = { nounwind }
attributes #5 = { builtin allocsize(0) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 40}
!9 = !{!"_ZTSN2vl14regex_internal15RichInterpretorE", !10, i64 0, !11, i64 8, !12, i64 40}
!10 = !{!"_ZTSN2vl6ObjectE"}
!11 = !{!"_ZTSN2vl3PtrINS_14regex_internal9AutomatonEEE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !19, i64 24}
!16 = !{!"_ZTSN2vl14regex_internal10TransitionE", !12, i64 0, !12, i64 8, !17, i64 16, !19, i64 24, !20, i64 32, !20, i64 40}
!17 = !{!"_ZTSN2vl14regex_internal9CharRangeE", !18, i64 0, !18, i64 4}
!18 = !{!"wchar_t", !13, i64 0}
!19 = !{!"_ZTSN2vl14regex_internal10Transition4TypeE", !13, i64 0}
!20 = !{!"long", !13, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTSN2vl14regex_internal15RichInterpretor8UserDataE", !25, i64 0}
!25 = !{!"bool", !13, i64 0}
!26 = !{!27, !12, i64 104}
!27 = !{!"_ZTSN2vl14regex_internal5StateE", !28, i64 0, !28, i64 48, !25, i64 96, !12, i64 104}
!28 = !{!"_ZTSN2vl11collections4ListIPNS_14regex_internal10TransitionES4_EE", !29, i64 0}
!29 = !{!"_ZTSN2vl11collections8ListBaseIPNS_14regex_internal10TransitionES4_EE", !30, i64 0, !20, i64 24, !25, i64 32}
!30 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_14regex_internal10TransitionEEE", !31, i64 0, !12, i64 8, !20, i64 16}
!31 = !{!"_ZTSN2vl11collections9ListStoreIPNS_14regex_internal10TransitionELb1EEE", !10, i64 0}
!32 = distinct !{!32, !22}


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