; LLVM IR from facebook/redex :: libredex/TypeUtil.ll (ZN4type8is_validESt17basic_string_viewIcSt11char_traitsIcEE)

; 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.std::basic_string_view" = type { i64, ptr }

; 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4type8is_validESt17basic_string_viewIcSt11char_traitsIcEE(i64 %0, ptr %1) #1 {
  %3 = alloca i1, align 1
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca %"class.std::basic_string_view", align 8
  %11 = getelementptr inbounds { i64, ptr }, ptr %4, i32 0, i32 0
  store i64 %0, ptr %11, align 8
  %12 = getelementptr inbounds { i64, ptr }, ptr %4, i32 0, i32 1
  store ptr %1, ptr %12, align 8
  %13 = call noundef zeroext i1 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %123

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %28, %15
  %17 = load i64, ptr %5, align 8, !tbaa !5
  %18 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %19 = icmp ult i64 %17, %18
  br i1 %19, label %20, label %26

20:                                               ; preds = %16
  %21 = load i64, ptr %5, align 8, !tbaa !5
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %21) #4
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %24 = sext i8 %23 to i32
  %25 = icmp eq i32 %24, 91
  br label %26

26:                                               ; preds = %20, %16
  %27 = phi i1 [ false, %16 ], [ %25, %20 ]
  br i1 %27, label %28, label %31

28:                                               ; preds = %26
  %29 = load i64, ptr %5, align 8, !tbaa !5
  %30 = add i64 %29, 1
  store i64 %30, ptr %5, align 8, !tbaa !5
  br label %16, !llvm.loop !10

31:                                               ; preds = %26
  %32 = load i64, ptr %5, align 8, !tbaa !5
  %33 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %34 = icmp eq i64 %32, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  store i1 false, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %122

36:                                               ; preds = %31
  %37 = load i64, ptr %5, align 8, !tbaa !5
  %38 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %37) #4
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = sext i8 %39 to i32
  switch i32 %40, label %46 [
    i32 90, label %41
    i32 66, label %41
    i32 83, label %41
    i32 67, label %41
    i32 73, label %41
    i32 74, label %41
    i32 70, label %41
    i32 68, label %41
    i32 86, label %41
    i32 76, label %47
  ]

41:                                               ; preds = %36, %36, %36, %36, %36, %36, %36, %36, %36
  %42 = load i64, ptr %5, align 8, !tbaa !5
  %43 = add i64 %42, 1
  %44 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %45 = icmp eq i64 %43, %44
  store i1 %45, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %122

46:                                               ; preds = %36
  store i1 false, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %122

47:                                               ; preds = %36
  %48 = load i64, ptr %5, align 8, !tbaa !5
  %49 = add i64 %48, 3
  %50 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %51 = icmp ugt i64 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %47
  store i1 false, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %122

53:                                               ; preds = %47
  %54 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %55 = sub i64 %54, 1
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %55) #4
  %57 = load i8, ptr %56, align 1, !tbaa !9
  %58 = sext i8 %57 to i32
  %59 = icmp ne i32 %58, 59
  br i1 %59, label %60, label %61

60:                                               ; preds = %53
  store i1 false, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %122

61:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %62 = load i64, ptr %5, align 8, !tbaa !5
  %63 = add i64 %62, 1
  store i64 %63, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %64 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %64, ptr %8, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %96, %61
  %66 = load i64, ptr %8, align 8, !tbaa !5
  %67 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %68 = sub i64 %67, 1
  %69 = icmp ne i64 %66, %68
  br i1 %69, label %70, label %99

70:                                               ; preds = %65
  %71 = load i64, ptr %8, align 8, !tbaa !5
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %71) #4
  %73 = load i8, ptr %72, align 1, !tbaa !9
  %74 = sext i8 %73 to i32
  %75 = icmp eq i32 %74, 47
  br i1 %75, label %76, label %95

76:                                               ; preds = %70
  %77 = load i64, ptr %7, align 8, !tbaa !5
  %78 = load i64, ptr %8, align 8, !tbaa !5
  %79 = load i64, ptr %7, align 8, !tbaa !5
  %80 = sub i64 %78, %79
  %81 = call { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %77, i64 noundef %80)
  %82 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %83 = extractvalue { i64, ptr } %81, 0
  store i64 %83, ptr %82, align 8
  %84 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %85 = extractvalue { i64, ptr } %81, 1
  store ptr %85, ptr %84, align 8
  %86 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %87 = load i64, ptr %86, align 8
  %88 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8
  %90 = call noundef zeroext i1 @_Z19is_valid_identifierSt17basic_string_viewIcSt11char_traitsIcEE(i64 %87, ptr %89)
  br i1 %90, label %92, label %91

91:                                               ; preds = %76
  store i1 false, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %121

92:                                               ; preds = %76
  %93 = load i64, ptr %8, align 8, !tbaa !5
  %94 = add i64 %93, 1
  store i64 %94, ptr %7, align 8, !tbaa !5
  br label %95

95:                                               ; preds = %92, %70
  br label %96

96:                                               ; preds = %95
  %97 = load i64, ptr %8, align 8, !tbaa !5
  %98 = add i64 %97, 1
  store i64 %98, ptr %8, align 8, !tbaa !5
  br label %65, !llvm.loop !12

99:                                               ; preds = %65
  %100 = load i64, ptr %7, align 8, !tbaa !5
  %101 = load i64, ptr %8, align 8, !tbaa !5
  %102 = icmp ne i64 %100, %101
  br i1 %102, label %103, label %120

103:                                              ; preds = %99
  %104 = load i64, ptr %7, align 8, !tbaa !5
  %105 = load i64, ptr %8, align 8, !tbaa !5
  %106 = load i64, ptr %7, align 8, !tbaa !5
  %107 = sub i64 %105, %106
  %108 = call { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %104, i64 noundef %107)
  %109 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 0
  %110 = extractvalue { i64, ptr } %108, 0
  store i64 %110, ptr %109, align 8
  %111 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 1
  %112 = extractvalue { i64, ptr } %108, 1
  store ptr %112, ptr %111, align 8
  %113 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 0
  %114 = load i64, ptr %113, align 8
  %115 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8
  %117 = call noundef zeroext i1 @_Z19is_valid_identifierSt17basic_string_viewIcSt11char_traitsIcEE(i64 %114, ptr %116)
  br i1 %117, label %119, label %118

118:                                              ; preds = %103
  store i1 false, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %121

119:                                              ; preds = %103
  br label %120

120:                                              ; preds = %119, %99
  store i1 true, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %121

121:                                              ; preds = %120, %118, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %122

122:                                              ; preds = %121, %60, %52, %46, %41, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %123

123:                                              ; preds = %122, %14
  %124 = load i1, ptr %3, align 1
  ret i1 %124
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

declare noundef zeroext i1 @_Z19is_valid_identifierSt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #3

; Function Attrs: mustprogress uwtable
declare dso_local { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #1 align 2

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 = { 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 = { "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 }

!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 = !{!"long", !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"}
!12 = distinct !{!12, !11}


; 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.std::basic_string_view" = type { i64, ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4type8is_validESt17basic_string_viewIcSt11char_traitsIcEE(i64 %0, ptr %1) local_unnamed_addr #0 {
  %3 = alloca %"class.std::basic_string_view", align 8
  store i64 %0, ptr %3, align 8
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %1, ptr %4, align 8
  %5 = call noundef zeroext i1 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  br i1 %5, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %2
  %6 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %.not40 = icmp eq i64 %6, 0
  br i1 %.not40, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %10
  %.02331 = phi i64 [ %11, %10 ], [ 0, %.preheader ]
  %7 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.02331) #3
  %8 = load i8, ptr %7, align 1, !tbaa !5
  %9 = icmp eq i8 %8, 91
  br i1 %9, label %10, label %.critedge

10:                                               ; preds = %.lr.ph
  %11 = add nuw i64 %.02331, 1
  %12 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %13 = icmp ult i64 %11, %12
  br i1 %13, label %.lr.ph, label %.critedge, !llvm.loop !8

.critedge:                                        ; preds = %.lr.ph, %10, %.preheader
  %.023.lcssa = phi i64 [ 0, %.preheader ], [ %11, %10 ], [ %.02331, %.lr.ph ]
  %14 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %15 = icmp eq i64 %.023.lcssa, %14
  br i1 %15, label %.loopexit, label %16

16:                                               ; preds = %.critedge
  %17 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.023.lcssa) #3
  %18 = load i8, ptr %17, align 1, !tbaa !5
  switch i8 %18, label %.loopexit [
    i8 90, label %19
    i8 66, label %19
    i8 83, label %19
    i8 67, label %19
    i8 73, label %19
    i8 74, label %19
    i8 70, label %19
    i8 68, label %19
    i8 86, label %19
    i8 76, label %23
  ]

19:                                               ; preds = %16, %16, %16, %16, %16, %16, %16, %16, %16
  %20 = add i64 %.023.lcssa, 1
  %21 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %22 = icmp eq i64 %20, %21
  br label %.loopexit

23:                                               ; preds = %16
  %24 = add i64 %.023.lcssa, 3
  %25 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %26 = icmp ugt i64 %24, %25
  br i1 %26, label %.loopexit, label %27

27:                                               ; preds = %23
  %28 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %29 = add i64 %28, -1
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %29) #3
  %31 = load i8, ptr %30, align 1, !tbaa !5
  %.not = icmp eq i8 %31, 59
  br i1 %.not, label %32, label %.loopexit

32:                                               ; preds = %27
  %33 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %34 = add i64 %33, -2
  %.not2734 = icmp eq i64 %.023.lcssa, %34
  br i1 %.not2734, label %._crit_edge.thread, label %.lr.ph37.preheader

.lr.ph37.preheader:                               ; preds = %32
  %35 = add i64 %.023.lcssa, 1
  br label %.lr.ph37

.lr.ph37:                                         ; preds = %.lr.ph37.preheader, %47
  %.02436 = phi i64 [ %.125, %47 ], [ %35, %.lr.ph37.preheader ]
  %.02635 = phi i64 [ %.pre-phi, %47 ], [ %35, %.lr.ph37.preheader ]
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.02635) #3
  %37 = load i8, ptr %36, align 1, !tbaa !5
  %38 = icmp eq i8 %37, 47
  br i1 %38, label %39, label %.lr.ph37._crit_edge

.lr.ph37._crit_edge:                              ; preds = %.lr.ph37
  %.pre = add i64 %.02635, 1
  br label %47

39:                                               ; preds = %.lr.ph37
  %40 = sub i64 %.02635, %.02436
  %41 = call { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.02436, i64 noundef %40)
  %42 = extractvalue { i64, ptr } %41, 0
  %43 = extractvalue { i64, ptr } %41, 1
  %44 = call noundef zeroext i1 @_Z19is_valid_identifierSt17basic_string_viewIcSt11char_traitsIcEE(i64 %42, ptr %43)
  br i1 %44, label %45, label %.loopexit

45:                                               ; preds = %39
  %46 = add i64 %.02635, 1
  br label %47

47:                                               ; preds = %.lr.ph37._crit_edge, %45
  %.pre-phi = phi i64 [ %.pre, %.lr.ph37._crit_edge ], [ %46, %45 ]
  %.125 = phi i64 [ %.02436, %.lr.ph37._crit_edge ], [ %46, %45 ]
  %48 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  %49 = add i64 %48, -2
  %.not27 = icmp eq i64 %.02635, %49
  br i1 %.not27, label %._crit_edge, label %.lr.ph37, !llvm.loop !10

._crit_edge:                                      ; preds = %47
  %.not28 = icmp eq i64 %.125, %.pre-phi
  br i1 %.not28, label %._crit_edge.thread, label %50

50:                                               ; preds = %._crit_edge
  %51 = sub i64 %.pre-phi, %.125
  %52 = call { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.125, i64 noundef %51)
  %53 = extractvalue { i64, ptr } %52, 0
  %54 = extractvalue { i64, ptr } %52, 1
  %55 = call noundef zeroext i1 @_Z19is_valid_identifierSt17basic_string_viewIcSt11char_traitsIcEE(i64 %53, ptr %54)
  br i1 %55, label %._crit_edge.thread, label %.loopexit

._crit_edge.thread:                               ; preds = %32, %50, %._crit_edge
  br label %.loopexit

.loopexit:                                        ; preds = %39, %19, %.critedge, %16, %23, %27, %50, %._crit_edge.thread, %2
  %.2 = phi i1 [ false, %2 ], [ %22, %19 ], [ false, %.critedge ], [ false, %16 ], [ false, %23 ], [ false, %27 ], [ true, %._crit_edge.thread ], [ false, %50 ], [ false, %39 ]
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

declare noundef zeroext i1 @_Z19is_valid_identifierSt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 = { "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 }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


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