; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x28-IDA-Star/181. 回转游戏 (main)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@a = external dso_local global [7 x [7 x i32]], align 16
@e = external dso_local global i32, align 4
@_Z3ansB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1

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

; 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
declare dso_local noundef zeroext i1 @_Z3dfsic(i32 noundef, i8 noundef signext) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  br label %4

4:                                                ; preds = %105, %0
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr %5, i64 %8
  %10 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %9)
  br i1 %10, label %11, label %14

11:                                               ; preds = %4
  %12 = load i32, ptr %2, align 4, !tbaa !8
  %13 = icmp ne i32 %12, 0
  br label %14

14:                                               ; preds = %11, %4
  %15 = phi i1 [ false, %4 ], [ %13, %11 ]
  br i1 %15, label %16, label %106

16:                                               ; preds = %14
  %17 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %17, ptr getelementptr inbounds ([7 x i32], ptr @a, i64 0, i64 2), align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !8
  br label %18

18:                                               ; preds = %93, %16
  %19 = load i32, ptr %3, align 4, !tbaa !8
  %20 = icmp sle i32 %19, 23
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %96

22:                                               ; preds = %18
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %24 = load i32, ptr %3, align 4, !tbaa !8
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %28

26:                                               ; preds = %22
  %27 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %27, ptr getelementptr inbounds ([7 x i32], ptr @a, i64 0, i64 4), align 16, !tbaa !8
  br label %28

28:                                               ; preds = %26, %22
  %29 = load i32, ptr %3, align 4, !tbaa !8
  %30 = icmp eq i32 %29, 2
  br i1 %30, label %31, label %33

31:                                               ; preds = %28
  %32 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %32, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 1), i64 0, i64 2), align 4, !tbaa !8
  br label %33

33:                                               ; preds = %31, %28
  %34 = load i32, ptr %3, align 4, !tbaa !8
  %35 = icmp eq i32 %34, 3
  br i1 %35, label %36, label %38

36:                                               ; preds = %33
  %37 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %37, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 1), i64 0, i64 4), align 4, !tbaa !8
  br label %38

38:                                               ; preds = %36, %33
  %39 = load i32, ptr %3, align 4, !tbaa !8
  %40 = icmp sge i32 %39, 4
  br i1 %40, label %41, label %50

41:                                               ; preds = %38
  %42 = load i32, ptr %3, align 4, !tbaa !8
  %43 = icmp sle i32 %42, 10
  br i1 %43, label %44, label %50

44:                                               ; preds = %41
  %45 = load i32, ptr %2, align 4, !tbaa !8
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = sub nsw i32 %46, 4
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 2), i64 0, i64 %48
  store i32 %45, ptr %49, align 4, !tbaa !8
  br label %50

50:                                               ; preds = %44, %41, %38
  %51 = load i32, ptr %3, align 4, !tbaa !8
  %52 = icmp eq i32 %51, 11
  br i1 %52, label %53, label %55

53:                                               ; preds = %50
  %54 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %54, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 3), i64 0, i64 2), align 4, !tbaa !8
  br label %55

55:                                               ; preds = %53, %50
  %56 = load i32, ptr %3, align 4, !tbaa !8
  %57 = icmp eq i32 %56, 12
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %59, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 3), i64 0, i64 4), align 4, !tbaa !8
  br label %60

60:                                               ; preds = %58, %55
  %61 = load i32, ptr %3, align 4, !tbaa !8
  %62 = icmp sge i32 %61, 13
  br i1 %62, label %63, label %72

63:                                               ; preds = %60
  %64 = load i32, ptr %3, align 4, !tbaa !8
  %65 = icmp sle i32 %64, 19
  br i1 %65, label %66, label %72

66:                                               ; preds = %63
  %67 = load i32, ptr %2, align 4, !tbaa !8
  %68 = load i32, ptr %3, align 4, !tbaa !8
  %69 = sub nsw i32 %68, 13
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 4), i64 0, i64 %70
  store i32 %67, ptr %71, align 4, !tbaa !8
  br label %72

72:                                               ; preds = %66, %63, %60
  %73 = load i32, ptr %3, align 4, !tbaa !8
  %74 = icmp eq i32 %73, 20
  br i1 %74, label %75, label %77

75:                                               ; preds = %72
  %76 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %76, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 5), i64 0, i64 2), align 4, !tbaa !8
  br label %77

77:                                               ; preds = %75, %72
  %78 = load i32, ptr %3, align 4, !tbaa !8
  %79 = icmp eq i32 %78, 21
  br i1 %79, label %80, label %82

80:                                               ; preds = %77
  %81 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %81, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 5), i64 0, i64 4), align 4, !tbaa !8
  br label %82

82:                                               ; preds = %80, %77
  %83 = load i32, ptr %3, align 4, !tbaa !8
  %84 = icmp eq i32 %83, 22
  br i1 %84, label %85, label %87

85:                                               ; preds = %82
  %86 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %86, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 6), i64 0, i64 2), align 8, !tbaa !8
  br label %87

87:                                               ; preds = %85, %82
  %88 = load i32, ptr %3, align 4, !tbaa !8
  %89 = icmp eq i32 %88, 23
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %91, ptr getelementptr inbounds ([7 x i32], ptr getelementptr inbounds ([7 x [7 x i32]], ptr @a, i64 0, i64 6), i64 0, i64 4), align 8, !tbaa !8
  br label %92

92:                                               ; preds = %90, %87
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %3, align 4, !tbaa !8
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %3, align 4, !tbaa !8
  br label %18, !llvm.loop !11

96:                                               ; preds = %21
  store i32 0, ptr @e, align 4, !tbaa !8
  br label %97

97:                                               ; preds = %102, %96
  br label %98

98:                                               ; preds = %97
  %99 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3ansB5cxx11, ptr noundef @.str.3)
  %100 = call noundef zeroext i1 @_Z3dfsic(i32 noundef 0, i8 noundef signext 32)
  br i1 %100, label %101, label %102

101:                                              ; preds = %98
  br label %105

102:                                              ; preds = %98
  %103 = load i32, ptr @e, align 4, !tbaa !8
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr @e, align 4, !tbaa !8
  br label %97, !llvm.loop !13

105:                                              ; preds = %101
  br label %4, !llvm.loop !14

106:                                              ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr 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 norecurse 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@a = external dso_local local_unnamed_addr global [7 x [7 x i32]], align 16
@e = external dso_local local_unnamed_addr global i32, align 4
@_Z3ansB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsic(i32 noundef, i8 noundef signext) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr %2, i64 %5
  %7 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %6)
  %8 = load i32, ptr %1, align 4
  %9 = icmp ne i32 %8, 0
  %10 = select i1 %7, i1 %9, i1 false
  br i1 %10, label %.lr.ph30, label %._crit_edge

.loopexit:                                        ; preds = %.lr.ph, %.preheader
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr %11, i64 %14
  %16 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %15)
  %17 = load i32, ptr %1, align 4
  %18 = icmp ne i32 %17, 0
  %19 = select i1 %16, i1 %18, i1 false
  br i1 %19, label %.lr.ph30, label %._crit_edge, !llvm.loop !8

.lr.ph30:                                         ; preds = %0, %.loopexit
  %20 = phi i32 [ %17, %.loopexit ], [ %8, %0 ]
  store i32 %20, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !10
  br label %23

.preheader:                                       ; preds = %.thread23.thread
  store i32 0, ptr @e, align 4, !tbaa !10
  %21 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3ansB5cxx11, ptr noundef nonnull @.str.3)
  %22 = call noundef zeroext i1 @_Z3dfsic(i32 noundef 0, i8 noundef signext 32)
  br i1 %22, label %.loopexit, label %.lr.ph

23:                                               ; preds = %.lr.ph30, %.thread23.thread
  %indvars.iv = phi i64 [ 1, %.lr.ph30 ], [ %indvars.iv.next, %.thread23.thread ]
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %25 = trunc nuw nsw i64 %indvars.iv to i32
  switch i32 %25, label %32 [
    i32 1, label %26
    i32 2, label %28
    i32 3, label %30
  ]

26:                                               ; preds = %23
  %27 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %27, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !10
  br label %.thread23.thread

28:                                               ; preds = %23
  %29 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %29, ptr getelementptr inbounds (i8, ptr @a, i64 36), align 4, !tbaa !10
  br label %.thread23.thread

30:                                               ; preds = %23
  %31 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %31, ptr getelementptr inbounds (i8, ptr @a, i64 44), align 4, !tbaa !10
  br label %.thread23.thread

32:                                               ; preds = %23
  %33 = add nsw i64 %indvars.iv, -4
  %or.cond = icmp ult i64 %33, 7
  br i1 %or.cond, label %34, label %.thread

34:                                               ; preds = %32
  %35 = load i32, ptr %1, align 4, !tbaa !10
  %36 = getelementptr inbounds [7 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 56), i64 0, i64 %33
  store i32 %35, ptr %36, align 4, !tbaa !10
  br label %.thread

.thread:                                          ; preds = %34, %32
  switch i32 %25, label %41 [
    i32 11, label %37
    i32 12, label %39
  ]

37:                                               ; preds = %.thread
  %38 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %38, ptr getelementptr inbounds (i8, ptr @a, i64 92), align 4, !tbaa !10
  br label %.thread23.thread

39:                                               ; preds = %.thread
  %40 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %40, ptr getelementptr inbounds (i8, ptr @a, i64 100), align 4, !tbaa !10
  br label %.thread23.thread

41:                                               ; preds = %.thread
  %42 = add nsw i64 %indvars.iv, -13
  %or.cond3 = icmp ult i64 %42, 7
  br i1 %or.cond3, label %43, label %.thread23

43:                                               ; preds = %41
  %44 = load i32, ptr %1, align 4, !tbaa !10
  %45 = getelementptr inbounds [7 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 112), i64 0, i64 %42
  store i32 %44, ptr %45, align 4, !tbaa !10
  br label %.thread23

.thread23:                                        ; preds = %43, %41
  switch i32 %25, label %.thread23.thread [
    i32 20, label %46
    i32 21, label %48
    i32 22, label %50
    i32 23, label %52
  ]

46:                                               ; preds = %.thread23
  %47 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %47, ptr getelementptr inbounds (i8, ptr @a, i64 148), align 4, !tbaa !10
  br label %.thread23.thread

48:                                               ; preds = %.thread23
  %49 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %49, ptr getelementptr inbounds (i8, ptr @a, i64 156), align 4, !tbaa !10
  br label %.thread23.thread

50:                                               ; preds = %.thread23
  %51 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %51, ptr getelementptr inbounds (i8, ptr @a, i64 176), align 16, !tbaa !10
  br label %.thread23.thread

52:                                               ; preds = %.thread23
  %53 = load i32, ptr %1, align 4, !tbaa !10
  store i32 %53, ptr getelementptr inbounds (i8, ptr @a, i64 184), align 8, !tbaa !10
  br label %.thread23.thread

.thread23.thread:                                 ; preds = %28, %26, %30, %37, %39, %50, %48, %46, %.thread23, %52
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 24
  br i1 %exitcond.not, label %.preheader, label %23, !llvm.loop !13

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %54 = load i32, ptr @e, align 4, !tbaa !10
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr @e, align 4, !tbaa !10
  %56 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3ansB5cxx11, ptr noundef nonnull @.str.3)
  %57 = call noundef zeroext i1 @_Z3dfsic(i32 noundef 0, i8 noundef signext 32)
  br i1 %57, label %.loopexit, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.loopexit, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

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

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


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