; LLVM IR from Tunghohin/Competitive_Coding :: Nowcoder/21791_H.ll/Z3dfsiRNSt7 (cxx1112basic_stringIcSt11char_traitsIcESaIcEEE)

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

@num_cnt = external dso_local global [10 x i32], align 16
@fact = external dso_local global [20 x i64], align 16
@ans = external dso_local global i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = icmp eq i32 %12, 10
  br i1 %13, label %14, label %125

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

15:                                               ; preds = %29, %14
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 10
  br i1 %17, label %19, label %18

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

19:                                               ; preds = %15
  %20 = load ptr, ptr %4, align 8, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %20, i64 noundef %22)
  %24 = load i8, ptr %23, align 1, !tbaa !11
  %25 = sext i8 %24 to i32
  %26 = sub nsw i32 %25, 48
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = add nsw i32 %27, %26
  store i32 %28, ptr %5, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %19
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %6, align 4, !tbaa !5
  br label %15, !llvm.loop !12

32:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !14
  store i64 %36, ptr %7, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %63, %32
  %38 = load i32, ptr %8, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 10
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %66

41:                                               ; preds = %37
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %42, i64 noundef %44)
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = sext i8 %46 to i32
  %48 = icmp ne i32 %47, 48
  br i1 %48, label %49, label %62

49:                                               ; preds = %41
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef %52)
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = sub nsw i32 %55, 48
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !14
  %60 = load i64, ptr %7, align 8, !tbaa !14
  %61 = sdiv i64 %60, %59
  store i64 %61, ptr %7, align 8, !tbaa !14
  br label %62

62:                                               ; preds = %49, %41
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %8, align 4, !tbaa !5
  br label %37, !llvm.loop !16

66:                                               ; preds = %40
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef 0)
  %69 = load i8, ptr %68, align 1, !tbaa !11
  %70 = sext i8 %69 to i32
  %71 = icmp ne i32 %70, 48
  br i1 %71, label %72, label %121

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sub nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !14
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %78, i64 noundef 0)
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  %82 = sub nsw i32 %81, 48
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !14
  %87 = sdiv i64 %77, %86
  store i64 %87, ptr %9, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %114, %72
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = icmp slt i32 %89, 10
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %117

92:                                               ; preds = %88
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %93, i64 noundef %95)
  %97 = load i8, ptr %96, align 1, !tbaa !11
  %98 = sext i8 %97 to i32
  %99 = icmp ne i32 %98, 48
  br i1 %99, label %100, label %113

100:                                              ; preds = %92
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %101, i64 noundef %103)
  %105 = load i8, ptr %104, align 1, !tbaa !11
  %106 = sext i8 %105 to i32
  %107 = sub nsw i32 %106, 48
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !14
  %111 = load i64, ptr %9, align 8, !tbaa !14
  %112 = sdiv i64 %111, %110
  store i64 %112, ptr %9, align 8, !tbaa !14
  br label %113

113:                                              ; preds = %100, %92
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %10, align 4, !tbaa !5
  br label %88, !llvm.loop !17

117:                                              ; preds = %91
  %118 = load i64, ptr %9, align 8, !tbaa !14
  %119 = load i64, ptr %7, align 8, !tbaa !14
  %120 = sub nsw i64 %119, %118
  store i64 %120, ptr %7, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %121

121:                                              ; preds = %117, %66
  %122 = load i64, ptr %7, align 8, !tbaa !14
  %123 = load i64, ptr @ans, align 8, !tbaa !14
  %124 = add nsw i64 %123, %122
  store i64 %124, ptr @ans, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %158

125:                                              ; preds = %2
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [10 x i32], ptr @num_cnt, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %135, label %131

131:                                              ; preds = %125
  %132 = load i32, ptr %3, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  %134 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_Z3dfsiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %133, ptr noundef nonnull align 8 dereferenceable(32) %134)
  br label %158

135:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %155, %135
  %137 = load i32, ptr %11, align 4, !tbaa !5
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [10 x i32], ptr @num_cnt, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = icmp sle i32 %137, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %158

144:                                              ; preds = %136
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = add nsw i32 %145, 48
  %147 = trunc i32 %146 to i8
  %148 = load ptr, ptr %4, align 8, !tbaa !9
  %149 = load i32, ptr %3, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %148, i64 noundef %150)
  store i8 %147, ptr %151, align 1, !tbaa !11
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  %154 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_Z3dfsiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %153, ptr noundef nonnull align 8 dereferenceable(32) %154)
  br label %155

155:                                              ; preds = %144
  %156 = load i32, ptr %11, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %11, align 4, !tbaa !5
  br label %136, !llvm.loop !18

158:                                              ; preds = %143, %131, %121
  ret void
}

; 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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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

@num_cnt = external dso_local local_unnamed_addr global [10 x i32], align 16
@fact = external dso_local local_unnamed_addr global [20 x i64], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z3dfsiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #0 {
  %3 = icmp eq i32 %0, 10
  br i1 %3, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %4 = sext i32 %0 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %tailrecurse, %2
  %5 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %6 = load i8, ptr %5, align 1, !tbaa !5
  %7 = sext i8 %6 to i32
  %8 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %9 = load i8, ptr %8, align 1, !tbaa !5
  %10 = sext i8 %9 to i32
  %11 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
  %12 = load i8, ptr %11, align 1, !tbaa !5
  %13 = sext i8 %12 to i32
  %14 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = sext i8 %15 to i32
  %17 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = sext i8 %18 to i32
  %20 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
  %21 = load i8, ptr %20, align 1, !tbaa !5
  %22 = sext i8 %21 to i32
  %23 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
  %24 = load i8, ptr %23, align 1, !tbaa !5
  %25 = sext i8 %24 to i32
  %26 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %28 = sext i8 %27 to i32
  %29 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = sext i8 %30 to i32
  %32 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
  %33 = load i8, ptr %32, align 1, !tbaa !5
  %34 = sext i8 %33 to i32
  %op.rdx = add nsw i32 %7, -480
  %op.rdx84 = add nsw i32 %10, %13
  %op.rdx85 = add nsw i32 %16, %19
  %op.rdx86 = add nsw i32 %22, %25
  %op.rdx87 = add nsw i32 %28, %31
  %op.rdx88 = add nsw i32 %op.rdx, %op.rdx84
  %op.rdx89 = add nsw i32 %op.rdx85, %op.rdx86
  %op.rdx90 = add nsw i32 %op.rdx87, %34
  %op.rdx91 = add nsw i32 %op.rdx88, %op.rdx89
  %op.rdx92 = add nsw i32 %op.rdx91, %op.rdx90
  %35 = sext i32 %op.rdx92 to i64
  %36 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %35
  %37 = load i64, ptr %36, align 8, !tbaa !8
  %38 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %39 = load i8, ptr %38, align 1, !tbaa !5
  %.not48 = icmp eq i8 %39, 48
  br i1 %.not48, label %48, label %40

40:                                               ; preds = %.preheader
  %41 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %42 = load i8, ptr %41, align 1, !tbaa !5
  %43 = sext i8 %42 to i64
  %44 = add nsw i64 %43, -48
  %45 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !8
  %47 = sdiv i64 %37, %46
  br label %48

48:                                               ; preds = %.preheader, %40
  %.141 = phi i64 [ %47, %40 ], [ %37, %.preheader ]
  %49 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %.not48.1 = icmp eq i8 %50, 48
  br i1 %.not48.1, label %59, label %51

51:                                               ; preds = %48
  %52 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %53 = load i8, ptr %52, align 1, !tbaa !5
  %54 = sext i8 %53 to i64
  %55 = add nsw i64 %54, -48
  %56 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !8
  %58 = sdiv i64 %.141, %57
  br label %59

59:                                               ; preds = %51, %48
  %.141.1 = phi i64 [ %58, %51 ], [ %.141, %48 ]
  %60 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
  %61 = load i8, ptr %60, align 1, !tbaa !5
  %.not48.2 = icmp eq i8 %61, 48
  br i1 %.not48.2, label %70, label %62

62:                                               ; preds = %59
  %63 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
  %64 = load i8, ptr %63, align 1, !tbaa !5
  %65 = sext i8 %64 to i64
  %66 = add nsw i64 %65, -48
  %67 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !8
  %69 = sdiv i64 %.141.1, %68
  br label %70

70:                                               ; preds = %62, %59
  %.141.2 = phi i64 [ %69, %62 ], [ %.141.1, %59 ]
  %71 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %72 = load i8, ptr %71, align 1, !tbaa !5
  %.not48.3 = icmp eq i8 %72, 48
  br i1 %.not48.3, label %81, label %73

73:                                               ; preds = %70
  %74 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %75 = load i8, ptr %74, align 1, !tbaa !5
  %76 = sext i8 %75 to i64
  %77 = add nsw i64 %76, -48
  %78 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !8
  %80 = sdiv i64 %.141.2, %79
  br label %81

81:                                               ; preds = %73, %70
  %.141.3 = phi i64 [ %80, %73 ], [ %.141.2, %70 ]
  %82 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %83 = load i8, ptr %82, align 1, !tbaa !5
  %.not48.4 = icmp eq i8 %83, 48
  br i1 %.not48.4, label %92, label %84

84:                                               ; preds = %81
  %85 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %86 = load i8, ptr %85, align 1, !tbaa !5
  %87 = sext i8 %86 to i64
  %88 = add nsw i64 %87, -48
  %89 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !8
  %91 = sdiv i64 %.141.3, %90
  br label %92

92:                                               ; preds = %84, %81
  %.141.4 = phi i64 [ %91, %84 ], [ %.141.3, %81 ]
  %93 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
  %94 = load i8, ptr %93, align 1, !tbaa !5
  %.not48.5 = icmp eq i8 %94, 48
  br i1 %.not48.5, label %103, label %95

95:                                               ; preds = %92
  %96 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
  %97 = load i8, ptr %96, align 1, !tbaa !5
  %98 = sext i8 %97 to i64
  %99 = add nsw i64 %98, -48
  %100 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !8
  %102 = sdiv i64 %.141.4, %101
  br label %103

103:                                              ; preds = %95, %92
  %.141.5 = phi i64 [ %102, %95 ], [ %.141.4, %92 ]
  %104 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
  %105 = load i8, ptr %104, align 1, !tbaa !5
  %.not48.6 = icmp eq i8 %105, 48
  br i1 %.not48.6, label %114, label %106

106:                                              ; preds = %103
  %107 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
  %108 = load i8, ptr %107, align 1, !tbaa !5
  %109 = sext i8 %108 to i64
  %110 = add nsw i64 %109, -48
  %111 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !8
  %113 = sdiv i64 %.141.5, %112
  br label %114

114:                                              ; preds = %106, %103
  %.141.6 = phi i64 [ %113, %106 ], [ %.141.5, %103 ]
  %115 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
  %116 = load i8, ptr %115, align 1, !tbaa !5
  %.not48.7 = icmp eq i8 %116, 48
  br i1 %.not48.7, label %125, label %117

117:                                              ; preds = %114
  %118 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
  %119 = load i8, ptr %118, align 1, !tbaa !5
  %120 = sext i8 %119 to i64
  %121 = add nsw i64 %120, -48
  %122 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !8
  %124 = sdiv i64 %.141.6, %123
  br label %125

125:                                              ; preds = %117, %114
  %.141.7 = phi i64 [ %124, %117 ], [ %.141.6, %114 ]
  %126 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
  %127 = load i8, ptr %126, align 1, !tbaa !5
  %.not48.8 = icmp eq i8 %127, 48
  br i1 %.not48.8, label %136, label %128

128:                                              ; preds = %125
  %129 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
  %130 = load i8, ptr %129, align 1, !tbaa !5
  %131 = sext i8 %130 to i64
  %132 = add nsw i64 %131, -48
  %133 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !8
  %135 = sdiv i64 %.141.7, %134
  br label %136

136:                                              ; preds = %128, %125
  %.141.8 = phi i64 [ %135, %128 ], [ %.141.7, %125 ]
  %137 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
  %138 = load i8, ptr %137, align 1, !tbaa !5
  %.not48.9 = icmp eq i8 %138, 48
  br i1 %.not48.9, label %147, label %139

139:                                              ; preds = %136
  %140 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
  %141 = load i8, ptr %140, align 1, !tbaa !5
  %142 = sext i8 %141 to i64
  %143 = add nsw i64 %142, -48
  %144 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %143
  %145 = load i64, ptr %144, align 8, !tbaa !8
  %146 = sdiv i64 %.141.8, %145
  br label %147

147:                                              ; preds = %139, %136
  %.141.9 = phi i64 [ %146, %139 ], [ %.141.8, %136 ]
  %148 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %149 = load i8, ptr %148, align 1, !tbaa !5
  %.not46 = icmp eq i8 %149, 48
  br i1 %.not46, label %262, label %150

150:                                              ; preds = %147
  %151 = add nsw i32 %op.rdx92, -1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !8
  %155 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %156 = load i8, ptr %155, align 1, !tbaa !5
  %157 = sext i8 %156 to i64
  %158 = add nsw i64 %157, -49
  %159 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !8
  %161 = sdiv i64 %154, %160
  %162 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %163 = load i8, ptr %162, align 1, !tbaa !5
  %.not47 = icmp eq i8 %163, 48
  br i1 %.not47, label %172, label %164

164:                                              ; preds = %150
  %165 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %166 = load i8, ptr %165, align 1, !tbaa !5
  %167 = sext i8 %166 to i64
  %168 = add nsw i64 %167, -48
  %169 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !8
  %171 = sdiv i64 %161, %170
  br label %172

172:                                              ; preds = %150, %164
  %.1 = phi i64 [ %171, %164 ], [ %161, %150 ]
  %173 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
  %174 = load i8, ptr %173, align 1, !tbaa !5
  %.not47.1 = icmp eq i8 %174, 48
  br i1 %.not47.1, label %183, label %175

175:                                              ; preds = %172
  %176 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
  %177 = load i8, ptr %176, align 1, !tbaa !5
  %178 = sext i8 %177 to i64
  %179 = add nsw i64 %178, -48
  %180 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !8
  %182 = sdiv i64 %.1, %181
  br label %183

183:                                              ; preds = %175, %172
  %.1.1 = phi i64 [ %182, %175 ], [ %.1, %172 ]
  %184 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %185 = load i8, ptr %184, align 1, !tbaa !5
  %.not47.2 = icmp eq i8 %185, 48
  br i1 %.not47.2, label %194, label %186

186:                                              ; preds = %183
  %187 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %188 = load i8, ptr %187, align 1, !tbaa !5
  %189 = sext i8 %188 to i64
  %190 = add nsw i64 %189, -48
  %191 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %190
  %192 = load i64, ptr %191, align 8, !tbaa !8
  %193 = sdiv i64 %.1.1, %192
  br label %194

194:                                              ; preds = %186, %183
  %.1.2 = phi i64 [ %193, %186 ], [ %.1.1, %183 ]
  %195 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %196 = load i8, ptr %195, align 1, !tbaa !5
  %.not47.3 = icmp eq i8 %196, 48
  br i1 %.not47.3, label %205, label %197

197:                                              ; preds = %194
  %198 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %199 = load i8, ptr %198, align 1, !tbaa !5
  %200 = sext i8 %199 to i64
  %201 = add nsw i64 %200, -48
  %202 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %201
  %203 = load i64, ptr %202, align 8, !tbaa !8
  %204 = sdiv i64 %.1.2, %203
  br label %205

205:                                              ; preds = %197, %194
  %.1.3 = phi i64 [ %204, %197 ], [ %.1.2, %194 ]
  %206 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
  %207 = load i8, ptr %206, align 1, !tbaa !5
  %.not47.4 = icmp eq i8 %207, 48
  br i1 %.not47.4, label %216, label %208

208:                                              ; preds = %205
  %209 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
  %210 = load i8, ptr %209, align 1, !tbaa !5
  %211 = sext i8 %210 to i64
  %212 = add nsw i64 %211, -48
  %213 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !8
  %215 = sdiv i64 %.1.3, %214
  br label %216

216:                                              ; preds = %208, %205
  %.1.4 = phi i64 [ %215, %208 ], [ %.1.3, %205 ]
  %217 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
  %218 = load i8, ptr %217, align 1, !tbaa !5
  %.not47.5 = icmp eq i8 %218, 48
  br i1 %.not47.5, label %227, label %219

219:                                              ; preds = %216
  %220 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
  %221 = load i8, ptr %220, align 1, !tbaa !5
  %222 = sext i8 %221 to i64
  %223 = add nsw i64 %222, -48
  %224 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %223
  %225 = load i64, ptr %224, align 8, !tbaa !8
  %226 = sdiv i64 %.1.4, %225
  br label %227

227:                                              ; preds = %219, %216
  %.1.5 = phi i64 [ %226, %219 ], [ %.1.4, %216 ]
  %228 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
  %229 = load i8, ptr %228, align 1, !tbaa !5
  %.not47.6 = icmp eq i8 %229, 48
  br i1 %.not47.6, label %238, label %230

230:                                              ; preds = %227
  %231 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
  %232 = load i8, ptr %231, align 1, !tbaa !5
  %233 = sext i8 %232 to i64
  %234 = add nsw i64 %233, -48
  %235 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %234
  %236 = load i64, ptr %235, align 8, !tbaa !8
  %237 = sdiv i64 %.1.5, %236
  br label %238

238:                                              ; preds = %230, %227
  %.1.6 = phi i64 [ %237, %230 ], [ %.1.5, %227 ]
  %239 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
  %240 = load i8, ptr %239, align 1, !tbaa !5
  %.not47.7 = icmp eq i8 %240, 48
  br i1 %.not47.7, label %249, label %241

241:                                              ; preds = %238
  %242 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
  %243 = load i8, ptr %242, align 1, !tbaa !5
  %244 = sext i8 %243 to i64
  %245 = add nsw i64 %244, -48
  %246 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !8
  %248 = sdiv i64 %.1.6, %247
  br label %249

249:                                              ; preds = %241, %238
  %.1.7 = phi i64 [ %248, %241 ], [ %.1.6, %238 ]
  %250 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
  %251 = load i8, ptr %250, align 1, !tbaa !5
  %.not47.8 = icmp eq i8 %251, 48
  br i1 %.not47.8, label %260, label %252

252:                                              ; preds = %249
  %253 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
  %254 = load i8, ptr %253, align 1, !tbaa !5
  %255 = sext i8 %254 to i64
  %256 = add nsw i64 %255, -48
  %257 = getelementptr inbounds [20 x i64], ptr @fact, i64 0, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !8
  %259 = sdiv i64 %.1.7, %258
  br label %260

260:                                              ; preds = %252, %249
  %.1.8 = phi i64 [ %259, %252 ], [ %.1.7, %249 ]
  %261 = sub nsw i64 %.141.9, %.1.8
  br label %262

262:                                              ; preds = %260, %147
  %.2 = phi i64 [ %261, %260 ], [ %.141.9, %147 ]
  %263 = load i64, ptr @ans, align 8, !tbaa !8
  %264 = add nsw i64 %263, %.2
  store i64 %264, ptr @ans, align 8, !tbaa !8
  br label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.preheader, %tailrecurse
  %indvars.iv = phi i64 [ %4, %.lr.ph.preheader ], [ %indvars.iv.next, %tailrecurse ]
  %265 = getelementptr inbounds [10 x i32], ptr @num_cnt, i64 0, i64 %indvars.iv
  %266 = load i32, ptr %265, align 4, !tbaa !10
  %.not = icmp eq i32 %266, 0
  br i1 %.not, label %tailrecurse, label %.preheader50

.preheader50:                                     ; preds = %.lr.ph
  %267 = getelementptr inbounds [10 x i32], ptr @num_cnt, i64 0, i64 %indvars.iv
  %.not4555 = icmp slt i32 %266, 1
  br i1 %.not4555, label %.loopexit, label %.lr.ph57

.lr.ph57:                                         ; preds = %.preheader50
  %268 = trunc nsw i64 %indvars.iv to i32
  %269 = add nsw i32 %268, 1
  br label %271

tailrecurse:                                      ; preds = %.lr.ph
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %270 = icmp eq i64 %indvars.iv.next, 10
  br i1 %270, label %.preheader, label %.lr.ph

271:                                              ; preds = %.lr.ph57, %271
  %.056 = phi i32 [ 1, %.lr.ph57 ], [ %275, %271 ]
  %272 = trunc i32 %.056 to i8
  %273 = add i8 %272, 48
  %274 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  store i8 %273, ptr %274, align 1, !tbaa !5
  tail call void @_Z3dfsiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %269, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %275 = add nuw nsw i32 %.056, 1
  %276 = load i32, ptr %267, align 4, !tbaa !10
  %.not45.not = icmp slt i32 %.056, %276
  br i1 %.not45.not, label %271, label %.loopexit, !llvm.loop !12

.loopexit:                                        ; preds = %271, %.preheader50, %262
  ret void
}

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

!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 = !{!9, !9, i64 0}
!9 = !{!"long long", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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