; LLVM IR from ritikbanger/Hacktoberfest2022-DSA :: 09. String (validate_IP_address)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z7isValidNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %13 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  %14 = trunc i64 %13 to i32
  store i32 %14, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 -1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %121, %1
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %124

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %20 = load i32, ptr %5, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %21)
  %23 = load i8, ptr %22, align 1, !tbaa !11
  %24 = sext i8 %23 to i32
  store i32 %24, ptr %11, align 4, !tbaa !9
  %25 = load i32, ptr %11, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 48
  br i1 %26, label %30, label %27

27:                                               ; preds = %19
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = icmp sgt i32 %28, 57
  br i1 %29, label %30, label %38

30:                                               ; preds = %27, %19
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %32)
  %34 = load i8, ptr %33, align 1, !tbaa !11
  %35 = sext i8 %34 to i32
  %36 = icmp ne i32 %35, 46
  br i1 %36, label %37, label %38

37:                                               ; preds = %30
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %118

38:                                               ; preds = %30, %27
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %40)
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = sext i8 %42 to i32
  %44 = icmp eq i32 %43, 46
  br i1 %44, label %45, label %71

45:                                               ; preds = %38
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = sub nsw i32 %46, %47
  %49 = icmp sgt i32 %48, 4
  br i1 %49, label %58, label %50

50:                                               ; preds = %45
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sub nsw i32 %51, %52
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %58, label %55

55:                                               ; preds = %50
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %55, %50, %45
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %118

59:                                               ; preds = %55
  %60 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %60, ptr %8, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %59
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %10, align 4, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %61
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = icmp sgt i32 %67, 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %118

70:                                               ; preds = %66, %61
  store i32 0, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %83

71:                                               ; preds = %38
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = mul nsw i32 %74, 10
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %77)
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = sext i8 %79 to i32
  %81 = add nsw i32 %75, %80
  %82 = sub nsw i32 %81, 48
  store i32 %82, ptr %9, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %71, %70
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = icmp sge i32 %84, 0
  br i1 %85, label %86, label %93

86:                                               ; preds = %83
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = icmp slt i32 %87, 10
  br i1 %88, label %89, label %93

89:                                               ; preds = %86
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = icmp sgt i32 %90, 1
  br i1 %91, label %92, label %93

92:                                               ; preds = %89
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %118

93:                                               ; preds = %89, %86, %83
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = icmp sge i32 %94, 10
  br i1 %95, label %96, label %103

96:                                               ; preds = %93
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = icmp slt i32 %97, 99
  br i1 %98, label %99, label %103

99:                                               ; preds = %96
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = icmp sgt i32 %100, 2
  br i1 %101, label %102, label %103

102:                                              ; preds = %99
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %118

103:                                              ; preds = %99, %96, %93
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = icmp sge i32 %104, 100
  br i1 %105, label %106, label %113

106:                                              ; preds = %103
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = icmp slt i32 %107, 256
  br i1 %108, label %109, label %113

109:                                              ; preds = %106
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = icmp sgt i32 %110, 3
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %118

113:                                              ; preds = %109, %106, %103
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = icmp sgt i32 %114, 255
  br i1 %115, label %116, label %117

116:                                              ; preds = %113
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %118

117:                                              ; preds = %113
  store i32 0, ptr %12, align 4
  br label %118

118:                                              ; preds = %117, %116, %112, %102, %92, %69, %58, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %119 = load i32, ptr %12, align 4
  switch i32 %119, label %137 [
    i32 0, label %120
  ]

120:                                              ; preds = %118
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %5, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %5, align 4, !tbaa !9
  br label %15, !llvm.loop !12

124:                                              ; preds = %15
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = icmp eq i32 %125, 3
  br i1 %126, label %127, label %136

127:                                              ; preds = %124
  %128 = load i32, ptr %4, align 4, !tbaa !9
  %129 = sub nsw i32 %128, 1
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %130)
  %132 = load i8, ptr %131, align 1, !tbaa !11
  %133 = sext i8 %132 to i32
  %134 = icmp ne i32 %133, 46
  br i1 %134, label %135, label %136

135:                                              ; preds = %127
  store i32 1, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %137

136:                                              ; preds = %127, %124
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %137

137:                                              ; preds = %136, %135, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %138 = load i32, ptr %2, align 4
  ret i32 %138
}

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

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z7isValidNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %0) local_unnamed_addr #0 {
  %2 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #1
  %3 = trunc i64 %2 to i32
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %1
  %wide.trip.count = and i64 %2, 2147483647
  %5 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
  %6 = load i8, ptr %5, align 1, !tbaa !5
  %7 = add i8 %6, -58
  %or.cond.peel = icmp ult i8 %7, -10
  br i1 %or.cond.peel, label %8, label %11

8:                                                ; preds = %.lr.ph.preheader
  %9 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
  %10 = load i8, ptr %9, align 1, !tbaa !5
  %.not67.peel = icmp eq i8 %10, 46
  br i1 %.not67.peel, label %11, label %.thread110

11:                                               ; preds = %8, %.lr.ph.preheader
  %12 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
  %13 = load i8, ptr %12, align 1, !tbaa !5
  %14 = icmp eq i8 %13, 46
  br i1 %14, label %.thread110, label %.thread100.peel

.thread100.peel:                                  ; preds = %11
  %15 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
  %exitcond.peel.not = icmp eq i64 %wide.trip.count, 1
  br i1 %exitcond.peel.not, label %._crit_edge.thread, label %.lr.ph.preheader131

.lr.ph.preheader131:                              ; preds = %.thread100.peel
  %16 = load i8, ptr %15, align 1, !tbaa !5
  %.fr128 = freeze i8 %16
  %17 = sext i8 %.fr128 to i32
  %18 = add nsw i32 %17, -48
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader131, %.thread100
  %indvars.iv = phi i64 [ %indvars.iv.next, %.thread100 ], [ 1, %.lr.ph.preheader131 ]
  %.052122 = phi i32 [ %.254, %.thread100 ], [ 0, %.lr.ph.preheader131 ]
  %.055121 = phi i32 [ %.257, %.thread100 ], [ %18, %.lr.ph.preheader131 ]
  %.058120 = phi i32 [ %.260, %.thread100 ], [ -1, %.lr.ph.preheader131 ]
  %.061119 = phi i32 [ %.263, %.thread100 ], [ 1, %.lr.ph.preheader131 ]
  %19 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = add i8 %20, -58
  %or.cond = icmp ult i8 %21, -10
  br i1 %or.cond, label %22, label %25

22:                                               ; preds = %.lr.ph
  %23 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
  %24 = load i8, ptr %23, align 1, !tbaa !5
  %.not67 = icmp eq i8 %24, 46
  br i1 %.not67, label %25, label %.thread110

25:                                               ; preds = %.lr.ph, %22
  %26 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %28 = icmp eq i8 %27, 46
  br i1 %28, label %29, label %38

29:                                               ; preds = %25
  %30 = trunc nuw nsw i64 %indvars.iv to i32
  %31 = sub nsw i32 %30, %.058120
  %32 = icmp sgt i32 %31, 4
  %33 = icmp eq i32 %31, 1
  %or.cond130 = or i1 %32, %33
  br i1 %or.cond130, label %.thread110, label %34

34:                                               ; preds = %29
  %35 = add nsw i32 %.052122, 1
  %36 = icmp eq i32 %.055121, 0
  %37 = icmp sgt i32 %.061119, 1
  %or.cond5 = select i1 %36, i1 %37, i1 false
  br i1 %or.cond5, label %.thread110, label %.thread100

38:                                               ; preds = %25
  %39 = add nsw i32 %.061119, 1
  %40 = mul nsw i32 %.055121, 10
  %41 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
  %42 = load i8, ptr %41, align 1, !tbaa !5
  %43 = sext i8 %42 to i32
  %44 = add nsw i32 %40, %43
  %.fr = freeze i32 %44
  %45 = add nsw i32 %.fr, -48
  %or.cond7 = icmp ult i32 %45, 10
  %46 = icmp sgt i32 %.061119, 0
  %or.cond9 = select i1 %or.cond7, i1 %46, i1 false
  br i1 %or.cond9, label %.thread110, label %47

47:                                               ; preds = %38
  %48 = add i32 %.fr, -58
  %or.cond11 = icmp ult i32 %48, 89
  %49 = icmp sgt i32 %.061119, 1
  %or.cond13 = select i1 %or.cond11, i1 %49, i1 false
  br i1 %or.cond13, label %.thread110, label %50

50:                                               ; preds = %47
  %51 = add i32 %.fr, -148
  %or.cond15 = icmp ult i32 %51, 156
  %52 = icmp sgt i32 %.061119, 2
  %or.cond17 = select i1 %or.cond15, i1 %52, i1 false
  %53 = icmp sgt i32 %.fr, 303
  %or.cond116 = or i1 %53, %or.cond17
  br i1 %or.cond116, label %.thread110, label %.thread100

.thread100:                                       ; preds = %50, %34
  %.263 = phi i32 [ 0, %34 ], [ %39, %50 ]
  %.260 = phi i32 [ %30, %34 ], [ %.058120, %50 ]
  %.257 = phi i32 [ 0, %34 ], [ %45, %50 ]
  %.254 = phi i32 [ %35, %34 ], [ %.052122, %50 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %.thread100
  %54 = icmp eq i32 %.254, 3
  br i1 %54, label %55, label %._crit_edge.thread

55:                                               ; preds = %._crit_edge
  %56 = shl i64 %2, 32
  %sext = add nsw i64 %56, -4294967296
  %57 = ashr exact i64 %sext, 32
  %58 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %57)
  %59 = load i8, ptr %58, align 1, !tbaa !5
  %.not = icmp eq i8 %59, 46
  br i1 %.not, label %._crit_edge.thread, label %.thread110

._crit_edge.thread:                               ; preds = %.thread100.peel, %1, %55, %._crit_edge
  br label %.thread110

.thread110:                                       ; preds = %50, %47, %38, %34, %29, %22, %8, %11, %55, %._crit_edge.thread
  %.2 = phi i32 [ 0, %._crit_edge.thread ], [ 1, %55 ], [ 0, %11 ], [ 0, %8 ], [ 0, %22 ], [ 0, %29 ], [ 0, %34 ], [ 0, %38 ], [ 0, %47 ], [ 0, %50 ]
  ret i32 %.2
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 = { 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, !10}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass