; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/UI/Console (UserInputUtils)

; 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.CStdInStream = type <{ ptr, i8, [7 x i8] }>
%class.AString = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@g_StdIn = external global %class.CStdInStream, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z20ScanUserYesNoAllQuitP13CStdOutStream(ptr noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %class.AString, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %13

10:                                               ; preds = %1
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZN13CStdOutStreamlsEPKc(ptr noundef nonnull align 8 dereferenceable(10) %11, ptr noundef @.str) #6
  br label %13

13:                                               ; preds = %10, %1
  br label %14

14:                                               ; preds = %62, %13
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %22

17:                                               ; preds = %14
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZN13CStdOutStreamlsEPKc(ptr noundef nonnull align 8 dereferenceable(10) %18, ptr noundef @.str.1) #6
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = call noundef zeroext i1 @_ZN13CStdOutStream5FlushEv(ptr noundef nonnull align 8 dereferenceable(10) %20) #6
  br label %22

22:                                               ; preds = %17, %14
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %23 = invoke noundef zeroext i1 @_ZN12CStdInStream23ScanAStringUntilNewLineER7AString(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %24 unwind label %26

24:                                               ; preds = %22
  br i1 %23, label %30, label %25

25:                                               ; preds = %24
  store i32 7, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

26:                                               ; preds = %46, %44, %40, %34, %33, %22
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %5, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %6, align 4
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  br label %65

30:                                               ; preds = %24
  %31 = call noundef zeroext i1 @_ZNK12CStdInStream5ErrorEv(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn) #6
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  store i32 7, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

33:                                               ; preds = %30
  invoke void @_ZN7AString4TrimEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %34 unwind label %26

34:                                               ; preds = %33
  %35 = invoke noundef zeroext i1 @_ZNK7AString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %36 unwind label %26

36:                                               ; preds = %34
  br i1 %35, label %37, label %40

37:                                               ; preds = %36
  %38 = call noundef zeroext i1 @_ZNK12CStdInStream3EofEv(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn) #6
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  store i32 6, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

40:                                               ; preds = %37, %36
  %41 = invoke noundef i32 @_ZNK7AString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %42 unwind label %26

42:                                               ; preds = %40
  %43 = icmp eq i32 %41, 1
  br i1 %43, label %44, label %59

44:                                               ; preds = %42
  %45 = invoke noundef ptr @_ZNK7AStringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %46 unwind label %26

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %45, i64 0
  %48 = load i8, ptr %47, align 1, !tbaa !9
  %49 = invoke noundef signext i8 @_Z17MyCharLower_Asciic(i8 noundef signext %48)
          to label %50 unwind label %26

50:                                               ; preds = %46
  %51 = sext i8 %49 to i32
  switch i32 %51, label %58 [
    i32 121, label %52
    i32 110, label %53
    i32 97, label %54
    i32 115, label %55
    i32 117, label %56
    i32 113, label %57
  ]

52:                                               ; preds = %50
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

53:                                               ; preds = %50
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

54:                                               ; preds = %50
  store i32 2, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

55:                                               ; preds = %50
  store i32 3, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

56:                                               ; preds = %50
  store i32 4, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

57:                                               ; preds = %50
  store i32 5, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %60

58:                                               ; preds = %50
  br label %59

59:                                               ; preds = %58, %42
  store i32 0, ptr %7, align 4
  br label %60

60:                                               ; preds = %59, %57, %56, %55, %54, %53, %52, %39, %32, %25
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  %61 = load i32, ptr %7, align 4
  switch i32 %61, label %70 [
    i32 0, label %62
    i32 1, label %63
  ]

62:                                               ; preds = %60
  br label %14, !llvm.loop !10

63:                                               ; preds = %60
  %64 = load i32, ptr %2, align 4
  ret i32 %64

65:                                               ; preds = %26
  %66 = load ptr, ptr %5, align 8
  %67 = load i32, ptr %6, align 4
  %68 = insertvalue { ptr, i32 } poison, ptr %66, 0
  %69 = insertvalue { ptr, i32 } %68, i32 %67, 1
  resume { ptr, i32 } %69

70:                                               ; preds = %60
  unreachable
}

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN13CStdOutStream5FlushEv(ptr noundef nonnull align 8 dereferenceable(10)) #2

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

declare void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare noundef zeroext i1 @_ZN12CStdInStream23ScanAStringUntilNewLineER7AString(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(16)) #4

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_Z17MyCharLower_Asciic(i8 noundef signext) #5

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

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

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

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

%class.CStdInStream = type <{ ptr, i8, [7 x i8] }>
%class.AString = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@g_StdIn = external global %class.CStdInStream, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z20ScanUserYesNoAllQuitP13CStdOutStream(ptr noundef %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.AString, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.split.us, label %3

3:                                                ; preds = %1
  %4 = tail call noundef nonnull align 8 dereferenceable(10) ptr @_ZN13CStdOutStreamlsEPKc(ptr noundef nonnull align 8 dereferenceable(10) %0, ptr noundef nonnull @.str) #6
  br label %.split

.split.us:                                        ; preds = %1, %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %5 = invoke noundef zeroext i1 @_ZN12CStdInStream23ScanAStringUntilNewLineER7AString(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %6 unwind label %.split16.us

6:                                                ; preds = %.split.us
  br i1 %5, label %7, label %.loopexit

7:                                                ; preds = %6
  %8 = call noundef zeroext i1 @_ZNK12CStdInStream5ErrorEv(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn) #6
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %7
  call void @_ZN7AString4TrimEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %10 = call noundef zeroext i1 @_ZNK7AString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %10, label %11, label %13

11:                                               ; preds = %9
  %12 = call noundef zeroext i1 @_ZNK12CStdInStream3EofEv(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn) #6
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %11, %9
  %14 = call noundef i32 @_ZNK7AString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %15 = icmp eq i32 %14, 1
  br i1 %15, label %16, label %20

16:                                               ; preds = %13
  %17 = call noundef ptr @_ZNK7AStringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = call noundef signext i8 @_Z17MyCharLower_Asciic(i8 noundef signext %18)
  switch i8 %19, label %20 [
    i8 121, label %.loopexit
    i8 110, label %.split19.us.loopexit
    i8 97, label %.split19.us.loopexit35
    i8 115, label %.split19.us.loopexit42
    i8 117, label %.split19.us.loopexit48
    i8 113, label %.split19.us
  ]

20:                                               ; preds = %16, %13
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %.split.us

.split16.us:                                      ; preds = %.split.us
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %27

.split:                                           ; preds = %3, %41
  %22 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZN13CStdOutStreamlsEPKc(ptr noundef nonnull align 8 dereferenceable(10) %0, ptr noundef nonnull @.str.1) #6
  %23 = call noundef zeroext i1 @_ZN13CStdOutStream5FlushEv(ptr noundef nonnull align 8 dereferenceable(10) %0) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %24 = invoke noundef zeroext i1 @_ZN12CStdInStream23ScanAStringUntilNewLineER7AString(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %25 unwind label %.split16

25:                                               ; preds = %.split
  br i1 %24, label %28, label %.loopexit

.split16:                                         ; preds = %.split
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %27

27:                                               ; preds = %.split16.us, %.split16
  %.us-phi = phi { ptr, i32 } [ %26, %.split16 ], [ %21, %.split16.us ]
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  resume { ptr, i32 } %.us-phi

28:                                               ; preds = %25
  %29 = call noundef zeroext i1 @_ZNK12CStdInStream5ErrorEv(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn) #6
  br i1 %29, label %.loopexit, label %30

30:                                               ; preds = %28
  call void @_ZN7AString4TrimEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %31 = call noundef zeroext i1 @_ZNK7AString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %31, label %32, label %34

32:                                               ; preds = %30
  %33 = call noundef zeroext i1 @_ZNK12CStdInStream3EofEv(ptr noundef nonnull align 8 dereferenceable(9) @g_StdIn) #6
  br i1 %33, label %.loopexit, label %34

34:                                               ; preds = %32, %30
  %35 = call noundef i32 @_ZNK7AString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %41

37:                                               ; preds = %34
  %38 = call noundef ptr @_ZNK7AStringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %39 = load i8, ptr %38, align 1, !tbaa !5
  %40 = call noundef signext i8 @_Z17MyCharLower_Asciic(i8 noundef signext %39)
  switch i8 %40, label %41 [
    i8 121, label %.loopexit
    i8 110, label %.split19.us.loopexit30
    i8 97, label %.split19.us.loopexit38
    i8 115, label %.split19.us.loopexit45
    i8 117, label %.split19.us.loopexit51
    i8 113, label %.split19.us
  ]

41:                                               ; preds = %34, %37
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %.split

.loopexit:                                        ; preds = %25, %28, %32, %37, %6, %7, %11, %16
  %.us-phi17 = phi i32 [ 7, %6 ], [ 7, %7 ], [ 6, %11 ], [ 0, %16 ], [ 7, %25 ], [ 7, %28 ], [ 6, %32 ], [ 0, %37 ]
  br label %.split19.us

.split19.us.loopexit:                             ; preds = %16
  br label %.split19.us

.split19.us.loopexit30:                           ; preds = %37
  br label %.split19.us

.split19.us.loopexit35:                           ; preds = %16
  br label %.split19.us

.split19.us.loopexit38:                           ; preds = %37
  br label %.split19.us

.split19.us.loopexit42:                           ; preds = %16
  br label %.split19.us

.split19.us.loopexit45:                           ; preds = %37
  br label %.split19.us

.split19.us.loopexit48:                           ; preds = %16
  br label %.split19.us

.split19.us.loopexit51:                           ; preds = %37
  br label %.split19.us

.split19.us:                                      ; preds = %16, %37, %.split19.us.loopexit51, %.split19.us.loopexit48, %.split19.us.loopexit45, %.split19.us.loopexit42, %.split19.us.loopexit38, %.split19.us.loopexit35, %.split19.us.loopexit30, %.split19.us.loopexit, %.loopexit
  %.1.ph = phi i32 [ %.us-phi17, %.loopexit ], [ 1, %.split19.us.loopexit ], [ 1, %.split19.us.loopexit30 ], [ 2, %.split19.us.loopexit35 ], [ 2, %.split19.us.loopexit38 ], [ 3, %.split19.us.loopexit42 ], [ 3, %.split19.us.loopexit45 ], [ 4, %.split19.us.loopexit48 ], [ 4, %.split19.us.loopexit51 ], [ 5, %37 ], [ 5, %16 ]
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret i32 %.1.ph
}

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN13CStdOutStream5FlushEv(ptr noundef nonnull align 8 dereferenceable(10)) local_unnamed_addr #2

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

declare void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare noundef zeroext i1 @_ZN12CStdInStream23ScanAStringUntilNewLineER7AString(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_Z17MyCharLower_Asciic(i8 noundef signext) local_unnamed_addr #5

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass