; LLVM IR from DionysiosB/CodeForces :: 0900-0999 (915C-PermuteDigits)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca [10 x i64], align 16
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %17 unwind label %26

17:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %19 unwind label %30

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #7
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %46, %19
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %24 = icmp ult i64 %22, %23
  br i1 %24, label %34, label %25

25:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %53

26:                                               ; preds = %0
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %3, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %4, align 4
  br label %152

30:                                               ; preds = %17
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %3, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %4, align 4
  br label %151

34:                                               ; preds = %20
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %36)
          to label %38 unwind label %49

38:                                               ; preds = %34
  %39 = load i8, ptr %37, align 1, !tbaa !9
  %40 = sext i8 %39 to i32
  %41 = sub nsw i32 %40, 48
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10 x i64], ptr %6, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !10
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %43, align 8, !tbaa !10
  br label %46

46:                                               ; preds = %38
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %7, align 4, !tbaa !5
  br label %20, !llvm.loop !12

49:                                               ; preds = %34
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %3, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %150

53:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %136, %53
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %58 = icmp ule i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %139

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %61 = load i64, ptr %8, align 8, !tbaa !10
  store i64 %61, ptr %11, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 9, ptr %12, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %131, %60
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = icmp sge i32 %63, 0
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 8, ptr %10, align 4
  br label %134

66:                                               ; preds = %62
  %67 = load i32, ptr %12, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [10 x i64], ptr %6, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !10
  %71 = icmp sle i64 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %66
  br label %131

73:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %74 = load i64, ptr %11, align 8, !tbaa !10
  %75 = mul nsw i64 %74, 10
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = add nsw i64 %75, %77
  store i64 %78, ptr %13, align 8, !tbaa !10
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [10 x i64], ptr %6, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !10
  %83 = add nsw i64 %82, -1
  store i64 %83, ptr %81, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %108, %73
  %85 = load i32, ptr %14, align 4, !tbaa !5
  %86 = icmp sle i32 %85, 9
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %111

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %104, %88
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10 x i64], ptr %6, i64 0, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !10
  %96 = icmp slt i64 %91, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %89
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %107

98:                                               ; preds = %89
  %99 = load i64, ptr %13, align 8, !tbaa !10
  %100 = mul nsw i64 %99, 10
  %101 = load i32, ptr %14, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = add nsw i64 %100, %102
  store i64 %103, ptr %13, align 8, !tbaa !10
  br label %104

104:                                              ; preds = %98
  %105 = load i32, ptr %15, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %15, align 4, !tbaa !5
  br label %89, !llvm.loop !14

107:                                              ; preds = %97
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %14, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %14, align 4, !tbaa !5
  br label %84, !llvm.loop !15

111:                                              ; preds = %87
  %112 = load i64, ptr %13, align 8, !tbaa !10
  %113 = load i64, ptr %5, align 8, !tbaa !10
  %114 = icmp sle i64 %112, %113
  br i1 %114, label %115, label %122

115:                                              ; preds = %111
  %116 = load i64, ptr %8, align 8, !tbaa !10
  %117 = mul nsw i64 %116, 10
  %118 = mul nsw i64 %117, 1
  %119 = load i32, ptr %12, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = add nsw i64 %118, %120
  store i64 %121, ptr %8, align 8, !tbaa !10
  store i32 8, ptr %10, align 4
  br label %128

122:                                              ; preds = %111
  %123 = load i32, ptr %12, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [10 x i64], ptr %6, i64 0, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !10
  %127 = add nsw i64 %126, 1
  store i64 %127, ptr %125, align 8, !tbaa !10
  store i32 0, ptr %10, align 4
  br label %128

128:                                              ; preds = %122, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %129 = load i32, ptr %10, align 4
  switch i32 %129, label %134 [
    i32 0, label %130
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130, %72
  %132 = load i32, ptr %12, align 4, !tbaa !5
  %133 = add nsw i32 %132, -1
  store i32 %133, ptr %12, align 4, !tbaa !5
  br label %62, !llvm.loop !16

134:                                              ; preds = %128, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %9, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %9, align 4, !tbaa !5
  br label %54, !llvm.loop !17

139:                                              ; preds = %59
  %140 = load i64, ptr %8, align 8, !tbaa !10
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %140)
          to label %142 unwind label %146

142:                                              ; preds = %139
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %144 unwind label %146

144:                                              ; preds = %142
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  %145 = load i32, ptr %1, align 4
  ret i32 %145

146:                                              ; preds = %142, %139
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %3, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %150

150:                                              ; preds = %146, %49
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #7
  br label %151

151:                                              ; preds = %150, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %152

152:                                              ; preds = %151, %26
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  br label %153

153:                                              ; preds = %152
  %154 = load ptr, ptr %3, align 8
  %155 = load i32, ptr %4, align 4
  %156 = insertvalue { ptr, i32 } poison, ptr %154, 0
  %157 = insertvalue { ptr, i32 } %156, i32 %155, 1
  resume { ptr, i32 } %157
}

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

attributes #0 = { 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 #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 = { "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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint 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 #7 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !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"

%"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i64, align 8
  %3 = alloca [10 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %4 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %5 unwind label %19

5:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %6 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %7 unwind label %21

7:                                                ; preds = %5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %3, i8 0, i64 80, i1 false)
  %8 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %.not59 = icmp eq i64 %8, 0
  br i1 %.not59, label %.preheader46, label %.lr.ph

.preheader46:                                     ; preds = %.lr.ph, %7
  %9 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %.not54 = icmp eq i64 %9, 0
  br i1 %.not54, label %._crit_edge57, label %.preheader45.preheader

.preheader45.preheader:                           ; preds = %.preheader46
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  %11 = getelementptr inbounds i8, ptr %3, i64 16
  %12 = getelementptr inbounds i8, ptr %3, i64 24
  %13 = getelementptr inbounds i8, ptr %3, i64 32
  %14 = getelementptr inbounds i8, ptr %3, i64 40
  %15 = getelementptr inbounds i8, ptr %3, i64 48
  %16 = getelementptr inbounds i8, ptr %3, i64 56
  %17 = getelementptr inbounds i8, ptr %3, i64 64
  %18 = getelementptr inbounds i8, ptr %3, i64 72
  br label %.preheader45

19:                                               ; preds = %0
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %117

21:                                               ; preds = %5
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %116

.lr.ph:                                           ; preds = %7, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %7 ]
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %24 = load i8, ptr %23, align 1, !tbaa !5
  %25 = sext i8 %24 to i64
  %26 = add nsw i64 %25, -48
  %27 = getelementptr inbounds [10 x i64], ptr %3, i64 0, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !8
  %29 = add nsw i64 %28, 1
  store i64 %29, ptr %27, align 8, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %31 = icmp ugt i64 %30, %indvars.iv.next
  br i1 %31, label %.lr.ph, label %.preheader46, !llvm.loop !10

.preheader45:                                     ; preds = %.preheader45.preheader, %.loopexit
  %indvars.iv73 = phi i64 [ 1, %.preheader45.preheader ], [ %indvars.iv.next74, %.loopexit ]
  %.03255 = phi i64 [ 0, %.preheader45.preheader ], [ %.4, %.loopexit ]
  %32 = mul nsw i64 %.03255, 10
  %33 = load i64, ptr %2, align 8
  br label %35

._crit_edge57:                                    ; preds = %.loopexit, %.preheader46
  %.032.lcssa = phi i64 [ 0, %.preheader46 ], [ %.4, %.loopexit ]
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.032.lcssa)
          to label %111 unwind label %114

35:                                               ; preds = %.preheader45, %109
  %indvars.iv70 = phi i64 [ 9, %.preheader45 ], [ %indvars.iv.next71, %109 ]
  %36 = getelementptr inbounds [10 x i64], ptr %3, i64 0, i64 %indvars.iv70
  %37 = load i64, ptr %36, align 8, !tbaa !8
  %38 = icmp slt i64 %37, 1
  br i1 %38, label %109, label %.preheader

.preheader:                                       ; preds = %35
  %39 = add nsw i64 %32, %indvars.iv70
  %40 = add nsw i64 %37, -1
  store i64 %40, ptr %36, align 8, !tbaa !8
  %41 = load i64, ptr %3, align 16, !tbaa !8
  %42 = icmp sgt i64 %41, 0
  br i1 %42, label %.lr.ph50.preheader, label %._crit_edge

.lr.ph50.preheader:                               ; preds = %.preheader
  %xtraiter = and i64 %41, 7
  %43 = icmp ult i64 %41, 8
  br i1 %43, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph50.preheader.new

.lr.ph50.preheader.new:                           ; preds = %.lr.ph50.preheader
  %unroll_iter = and i64 %41, 9223372036854775800
  br label %.lr.ph50

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph50, %.lr.ph50.preheader
  %.lcssa.ph = phi i64 [ poison, %.lr.ph50.preheader ], [ %108, %.lr.ph50 ]
  %.148.unr = phi i64 [ %39, %.lr.ph50.preheader ], [ %108, %.lr.ph50 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph50.epil

.lr.ph50.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph50.epil
  %.148.epil = phi i64 [ %44, %.lr.ph50.epil ], [ %.148.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph50.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %44 = mul nsw i64 %.148.epil, 10
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph50.epil, !llvm.loop !12

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph50.epil, %.preheader
  %.1.lcssa = phi i64 [ %39, %.preheader ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %44, %.lr.ph50.epil ]
  %45 = load i64, ptr %10, align 8, !tbaa !8
  %46 = icmp sgt i64 %45, 0
  br i1 %46, label %.lr.ph50.1.preheader, label %._crit_edge.1

.lr.ph50.1.preheader:                             ; preds = %._crit_edge
  %xtraiter133 = and i64 %45, 7
  %47 = icmp ult i64 %45, 8
  br i1 %47, label %._crit_edge.1.loopexit.unr-lcssa, label %.lr.ph50.1.preheader.new

.lr.ph50.1.preheader.new:                         ; preds = %.lr.ph50.1.preheader
  %unroll_iter137 = and i64 %45, 9223372036854775800
  br label %.lr.ph50.1

.lr.ph50.1:                                       ; preds = %.lr.ph50.1, %.lr.ph50.1.preheader.new
  %.148.1 = phi i64 [ %.1.lcssa, %.lr.ph50.1.preheader.new ], [ %49, %.lr.ph50.1 ]
  %niter138 = phi i64 [ 0, %.lr.ph50.1.preheader.new ], [ %niter138.next.7, %.lr.ph50.1 ]
  %48 = mul i64 %.148.1, 100000000
  %49 = add i64 %48, 11111111
  %niter138.next.7 = add i64 %niter138, 8
  %niter138.ncmp.7 = icmp eq i64 %niter138.next.7, %unroll_iter137
  br i1 %niter138.ncmp.7, label %._crit_edge.1.loopexit.unr-lcssa, label %.lr.ph50.1, !llvm.loop !14

._crit_edge.1.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.1, %.lr.ph50.1.preheader
  %.lcssa95.ph = phi i64 [ poison, %.lr.ph50.1.preheader ], [ %49, %.lr.ph50.1 ]
  %.148.1.unr = phi i64 [ %.1.lcssa, %.lr.ph50.1.preheader ], [ %49, %.lr.ph50.1 ]
  %lcmp.mod135.not = icmp eq i64 %xtraiter133, 0
  br i1 %lcmp.mod135.not, label %._crit_edge.1, label %.lr.ph50.1.epil

.lr.ph50.1.epil:                                  ; preds = %._crit_edge.1.loopexit.unr-lcssa, %.lr.ph50.1.epil
  %.148.1.epil = phi i64 [ %51, %.lr.ph50.1.epil ], [ %.148.1.unr, %._crit_edge.1.loopexit.unr-lcssa ]
  %epil.iter134 = phi i64 [ %epil.iter134.next, %.lr.ph50.1.epil ], [ 0, %._crit_edge.1.loopexit.unr-lcssa ]
  %50 = mul nsw i64 %.148.1.epil, 10
  %51 = or disjoint i64 %50, 1
  %epil.iter134.next = add i64 %epil.iter134, 1
  %epil.iter134.cmp.not = icmp eq i64 %epil.iter134.next, %xtraiter133
  br i1 %epil.iter134.cmp.not, label %._crit_edge.1, label %.lr.ph50.1.epil, !llvm.loop !15

._crit_edge.1:                                    ; preds = %._crit_edge.1.loopexit.unr-lcssa, %.lr.ph50.1.epil, %._crit_edge
  %.1.lcssa.1 = phi i64 [ %.1.lcssa, %._crit_edge ], [ %.lcssa95.ph, %._crit_edge.1.loopexit.unr-lcssa ], [ %51, %.lr.ph50.1.epil ]
  %52 = load i64, ptr %11, align 16, !tbaa !8
  %53 = icmp sgt i64 %52, 0
  br i1 %53, label %.lr.ph50.2.preheader, label %._crit_edge.2

.lr.ph50.2.preheader:                             ; preds = %._crit_edge.1
  %xtraiter139 = and i64 %52, 7
  %54 = icmp ult i64 %52, 8
  br i1 %54, label %._crit_edge.2.loopexit.unr-lcssa, label %.lr.ph50.2.preheader.new

.lr.ph50.2.preheader.new:                         ; preds = %.lr.ph50.2.preheader
  %unroll_iter143 = and i64 %52, 9223372036854775800
  br label %.lr.ph50.2

.lr.ph50.2:                                       ; preds = %.lr.ph50.2, %.lr.ph50.2.preheader.new
  %.148.2 = phi i64 [ %.1.lcssa.1, %.lr.ph50.2.preheader.new ], [ %56, %.lr.ph50.2 ]
  %niter144 = phi i64 [ 0, %.lr.ph50.2.preheader.new ], [ %niter144.next.7, %.lr.ph50.2 ]
  %55 = mul i64 %.148.2, 100000000
  %56 = add i64 %55, 22222222
  %niter144.next.7 = add i64 %niter144, 8
  %niter144.ncmp.7 = icmp eq i64 %niter144.next.7, %unroll_iter143
  br i1 %niter144.ncmp.7, label %._crit_edge.2.loopexit.unr-lcssa, label %.lr.ph50.2, !llvm.loop !14

._crit_edge.2.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.2, %.lr.ph50.2.preheader
  %.lcssa96.ph = phi i64 [ poison, %.lr.ph50.2.preheader ], [ %56, %.lr.ph50.2 ]
  %.148.2.unr = phi i64 [ %.1.lcssa.1, %.lr.ph50.2.preheader ], [ %56, %.lr.ph50.2 ]
  %lcmp.mod141.not = icmp eq i64 %xtraiter139, 0
  br i1 %lcmp.mod141.not, label %._crit_edge.2, label %.lr.ph50.2.epil

.lr.ph50.2.epil:                                  ; preds = %._crit_edge.2.loopexit.unr-lcssa, %.lr.ph50.2.epil
  %.148.2.epil = phi i64 [ %58, %.lr.ph50.2.epil ], [ %.148.2.unr, %._crit_edge.2.loopexit.unr-lcssa ]
  %epil.iter140 = phi i64 [ %epil.iter140.next, %.lr.ph50.2.epil ], [ 0, %._crit_edge.2.loopexit.unr-lcssa ]
  %57 = mul nsw i64 %.148.2.epil, 10
  %58 = add nsw i64 %57, 2
  %epil.iter140.next = add i64 %epil.iter140, 1
  %epil.iter140.cmp.not = icmp eq i64 %epil.iter140.next, %xtraiter139
  br i1 %epil.iter140.cmp.not, label %._crit_edge.2, label %.lr.ph50.2.epil, !llvm.loop !16

._crit_edge.2:                                    ; preds = %._crit_edge.2.loopexit.unr-lcssa, %.lr.ph50.2.epil, %._crit_edge.1
  %.1.lcssa.2 = phi i64 [ %.1.lcssa.1, %._crit_edge.1 ], [ %.lcssa96.ph, %._crit_edge.2.loopexit.unr-lcssa ], [ %58, %.lr.ph50.2.epil ]
  %59 = load i64, ptr %12, align 8, !tbaa !8
  %60 = icmp sgt i64 %59, 0
  br i1 %60, label %.lr.ph50.3.preheader, label %._crit_edge.3

.lr.ph50.3.preheader:                             ; preds = %._crit_edge.2
  %xtraiter145 = and i64 %59, 7
  %61 = icmp ult i64 %59, 8
  br i1 %61, label %._crit_edge.3.loopexit.unr-lcssa, label %.lr.ph50.3.preheader.new

.lr.ph50.3.preheader.new:                         ; preds = %.lr.ph50.3.preheader
  %unroll_iter149 = and i64 %59, 9223372036854775800
  br label %.lr.ph50.3

.lr.ph50.3:                                       ; preds = %.lr.ph50.3, %.lr.ph50.3.preheader.new
  %.148.3 = phi i64 [ %.1.lcssa.2, %.lr.ph50.3.preheader.new ], [ %63, %.lr.ph50.3 ]
  %niter150 = phi i64 [ 0, %.lr.ph50.3.preheader.new ], [ %niter150.next.7, %.lr.ph50.3 ]
  %62 = mul i64 %.148.3, 100000000
  %63 = add i64 %62, 33333333
  %niter150.next.7 = add i64 %niter150, 8
  %niter150.ncmp.7 = icmp eq i64 %niter150.next.7, %unroll_iter149
  br i1 %niter150.ncmp.7, label %._crit_edge.3.loopexit.unr-lcssa, label %.lr.ph50.3, !llvm.loop !14

._crit_edge.3.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.3, %.lr.ph50.3.preheader
  %.lcssa97.ph = phi i64 [ poison, %.lr.ph50.3.preheader ], [ %63, %.lr.ph50.3 ]
  %.148.3.unr = phi i64 [ %.1.lcssa.2, %.lr.ph50.3.preheader ], [ %63, %.lr.ph50.3 ]
  %lcmp.mod147.not = icmp eq i64 %xtraiter145, 0
  br i1 %lcmp.mod147.not, label %._crit_edge.3, label %.lr.ph50.3.epil

.lr.ph50.3.epil:                                  ; preds = %._crit_edge.3.loopexit.unr-lcssa, %.lr.ph50.3.epil
  %.148.3.epil = phi i64 [ %65, %.lr.ph50.3.epil ], [ %.148.3.unr, %._crit_edge.3.loopexit.unr-lcssa ]
  %epil.iter146 = phi i64 [ %epil.iter146.next, %.lr.ph50.3.epil ], [ 0, %._crit_edge.3.loopexit.unr-lcssa ]
  %64 = mul nsw i64 %.148.3.epil, 10
  %65 = add nsw i64 %64, 3
  %epil.iter146.next = add i64 %epil.iter146, 1
  %epil.iter146.cmp.not = icmp eq i64 %epil.iter146.next, %xtraiter145
  br i1 %epil.iter146.cmp.not, label %._crit_edge.3, label %.lr.ph50.3.epil, !llvm.loop !17

._crit_edge.3:                                    ; preds = %._crit_edge.3.loopexit.unr-lcssa, %.lr.ph50.3.epil, %._crit_edge.2
  %.1.lcssa.3 = phi i64 [ %.1.lcssa.2, %._crit_edge.2 ], [ %.lcssa97.ph, %._crit_edge.3.loopexit.unr-lcssa ], [ %65, %.lr.ph50.3.epil ]
  %66 = load i64, ptr %13, align 16, !tbaa !8
  %67 = icmp sgt i64 %66, 0
  br i1 %67, label %.lr.ph50.4.preheader, label %._crit_edge.4

.lr.ph50.4.preheader:                             ; preds = %._crit_edge.3
  %xtraiter151 = and i64 %66, 7
  %68 = icmp ult i64 %66, 8
  br i1 %68, label %._crit_edge.4.loopexit.unr-lcssa, label %.lr.ph50.4.preheader.new

.lr.ph50.4.preheader.new:                         ; preds = %.lr.ph50.4.preheader
  %unroll_iter155 = and i64 %66, 9223372036854775800
  br label %.lr.ph50.4

.lr.ph50.4:                                       ; preds = %.lr.ph50.4, %.lr.ph50.4.preheader.new
  %.148.4 = phi i64 [ %.1.lcssa.3, %.lr.ph50.4.preheader.new ], [ %70, %.lr.ph50.4 ]
  %niter156 = phi i64 [ 0, %.lr.ph50.4.preheader.new ], [ %niter156.next.7, %.lr.ph50.4 ]
  %69 = mul i64 %.148.4, 100000000
  %70 = add i64 %69, 44444444
  %niter156.next.7 = add i64 %niter156, 8
  %niter156.ncmp.7 = icmp eq i64 %niter156.next.7, %unroll_iter155
  br i1 %niter156.ncmp.7, label %._crit_edge.4.loopexit.unr-lcssa, label %.lr.ph50.4, !llvm.loop !14

._crit_edge.4.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.4, %.lr.ph50.4.preheader
  %.lcssa98.ph = phi i64 [ poison, %.lr.ph50.4.preheader ], [ %70, %.lr.ph50.4 ]
  %.148.4.unr = phi i64 [ %.1.lcssa.3, %.lr.ph50.4.preheader ], [ %70, %.lr.ph50.4 ]
  %lcmp.mod153.not = icmp eq i64 %xtraiter151, 0
  br i1 %lcmp.mod153.not, label %._crit_edge.4, label %.lr.ph50.4.epil

.lr.ph50.4.epil:                                  ; preds = %._crit_edge.4.loopexit.unr-lcssa, %.lr.ph50.4.epil
  %.148.4.epil = phi i64 [ %72, %.lr.ph50.4.epil ], [ %.148.4.unr, %._crit_edge.4.loopexit.unr-lcssa ]
  %epil.iter152 = phi i64 [ %epil.iter152.next, %.lr.ph50.4.epil ], [ 0, %._crit_edge.4.loopexit.unr-lcssa ]
  %71 = mul nsw i64 %.148.4.epil, 10
  %72 = add nsw i64 %71, 4
  %epil.iter152.next = add i64 %epil.iter152, 1
  %epil.iter152.cmp.not = icmp eq i64 %epil.iter152.next, %xtraiter151
  br i1 %epil.iter152.cmp.not, label %._crit_edge.4, label %.lr.ph50.4.epil, !llvm.loop !18

._crit_edge.4:                                    ; preds = %._crit_edge.4.loopexit.unr-lcssa, %.lr.ph50.4.epil, %._crit_edge.3
  %.1.lcssa.4 = phi i64 [ %.1.lcssa.3, %._crit_edge.3 ], [ %.lcssa98.ph, %._crit_edge.4.loopexit.unr-lcssa ], [ %72, %.lr.ph50.4.epil ]
  %73 = load i64, ptr %14, align 8, !tbaa !8
  %74 = icmp sgt i64 %73, 0
  br i1 %74, label %.lr.ph50.5.preheader, label %._crit_edge.5

.lr.ph50.5.preheader:                             ; preds = %._crit_edge.4
  %xtraiter157 = and i64 %73, 7
  %75 = icmp ult i64 %73, 8
  br i1 %75, label %._crit_edge.5.loopexit.unr-lcssa, label %.lr.ph50.5.preheader.new

.lr.ph50.5.preheader.new:                         ; preds = %.lr.ph50.5.preheader
  %unroll_iter161 = and i64 %73, 9223372036854775800
  br label %.lr.ph50.5

.lr.ph50.5:                                       ; preds = %.lr.ph50.5, %.lr.ph50.5.preheader.new
  %.148.5 = phi i64 [ %.1.lcssa.4, %.lr.ph50.5.preheader.new ], [ %77, %.lr.ph50.5 ]
  %niter162 = phi i64 [ 0, %.lr.ph50.5.preheader.new ], [ %niter162.next.7, %.lr.ph50.5 ]
  %76 = mul i64 %.148.5, 100000000
  %77 = add i64 %76, 55555555
  %niter162.next.7 = add i64 %niter162, 8
  %niter162.ncmp.7 = icmp eq i64 %niter162.next.7, %unroll_iter161
  br i1 %niter162.ncmp.7, label %._crit_edge.5.loopexit.unr-lcssa, label %.lr.ph50.5, !llvm.loop !14

._crit_edge.5.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.5, %.lr.ph50.5.preheader
  %.lcssa99.ph = phi i64 [ poison, %.lr.ph50.5.preheader ], [ %77, %.lr.ph50.5 ]
  %.148.5.unr = phi i64 [ %.1.lcssa.4, %.lr.ph50.5.preheader ], [ %77, %.lr.ph50.5 ]
  %lcmp.mod159.not = icmp eq i64 %xtraiter157, 0
  br i1 %lcmp.mod159.not, label %._crit_edge.5, label %.lr.ph50.5.epil

.lr.ph50.5.epil:                                  ; preds = %._crit_edge.5.loopexit.unr-lcssa, %.lr.ph50.5.epil
  %.148.5.epil = phi i64 [ %79, %.lr.ph50.5.epil ], [ %.148.5.unr, %._crit_edge.5.loopexit.unr-lcssa ]
  %epil.iter158 = phi i64 [ %epil.iter158.next, %.lr.ph50.5.epil ], [ 0, %._crit_edge.5.loopexit.unr-lcssa ]
  %78 = mul nsw i64 %.148.5.epil, 10
  %79 = add nsw i64 %78, 5
  %epil.iter158.next = add i64 %epil.iter158, 1
  %epil.iter158.cmp.not = icmp eq i64 %epil.iter158.next, %xtraiter157
  br i1 %epil.iter158.cmp.not, label %._crit_edge.5, label %.lr.ph50.5.epil, !llvm.loop !19

._crit_edge.5:                                    ; preds = %._crit_edge.5.loopexit.unr-lcssa, %.lr.ph50.5.epil, %._crit_edge.4
  %.1.lcssa.5 = phi i64 [ %.1.lcssa.4, %._crit_edge.4 ], [ %.lcssa99.ph, %._crit_edge.5.loopexit.unr-lcssa ], [ %79, %.lr.ph50.5.epil ]
  %80 = load i64, ptr %15, align 16, !tbaa !8
  %81 = icmp sgt i64 %80, 0
  br i1 %81, label %.lr.ph50.6.preheader, label %._crit_edge.6

.lr.ph50.6.preheader:                             ; preds = %._crit_edge.5
  %xtraiter163 = and i64 %80, 7
  %82 = icmp ult i64 %80, 8
  br i1 %82, label %._crit_edge.6.loopexit.unr-lcssa, label %.lr.ph50.6.preheader.new

.lr.ph50.6.preheader.new:                         ; preds = %.lr.ph50.6.preheader
  %unroll_iter167 = and i64 %80, 9223372036854775800
  br label %.lr.ph50.6

.lr.ph50.6:                                       ; preds = %.lr.ph50.6, %.lr.ph50.6.preheader.new
  %.148.6 = phi i64 [ %.1.lcssa.5, %.lr.ph50.6.preheader.new ], [ %84, %.lr.ph50.6 ]
  %niter168 = phi i64 [ 0, %.lr.ph50.6.preheader.new ], [ %niter168.next.7, %.lr.ph50.6 ]
  %83 = mul i64 %.148.6, 100000000
  %84 = add i64 %83, 66666666
  %niter168.next.7 = add i64 %niter168, 8
  %niter168.ncmp.7 = icmp eq i64 %niter168.next.7, %unroll_iter167
  br i1 %niter168.ncmp.7, label %._crit_edge.6.loopexit.unr-lcssa, label %.lr.ph50.6, !llvm.loop !14

._crit_edge.6.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.6, %.lr.ph50.6.preheader
  %.lcssa100.ph = phi i64 [ poison, %.lr.ph50.6.preheader ], [ %84, %.lr.ph50.6 ]
  %.148.6.unr = phi i64 [ %.1.lcssa.5, %.lr.ph50.6.preheader ], [ %84, %.lr.ph50.6 ]
  %lcmp.mod165.not = icmp eq i64 %xtraiter163, 0
  br i1 %lcmp.mod165.not, label %._crit_edge.6, label %.lr.ph50.6.epil

.lr.ph50.6.epil:                                  ; preds = %._crit_edge.6.loopexit.unr-lcssa, %.lr.ph50.6.epil
  %.148.6.epil = phi i64 [ %86, %.lr.ph50.6.epil ], [ %.148.6.unr, %._crit_edge.6.loopexit.unr-lcssa ]
  %epil.iter164 = phi i64 [ %epil.iter164.next, %.lr.ph50.6.epil ], [ 0, %._crit_edge.6.loopexit.unr-lcssa ]
  %85 = mul nsw i64 %.148.6.epil, 10
  %86 = add nsw i64 %85, 6
  %epil.iter164.next = add i64 %epil.iter164, 1
  %epil.iter164.cmp.not = icmp eq i64 %epil.iter164.next, %xtraiter163
  br i1 %epil.iter164.cmp.not, label %._crit_edge.6, label %.lr.ph50.6.epil, !llvm.loop !20

._crit_edge.6:                                    ; preds = %._crit_edge.6.loopexit.unr-lcssa, %.lr.ph50.6.epil, %._crit_edge.5
  %.1.lcssa.6 = phi i64 [ %.1.lcssa.5, %._crit_edge.5 ], [ %.lcssa100.ph, %._crit_edge.6.loopexit.unr-lcssa ], [ %86, %.lr.ph50.6.epil ]
  %87 = load i64, ptr %16, align 8, !tbaa !8
  %88 = icmp sgt i64 %87, 0
  br i1 %88, label %.lr.ph50.7.preheader, label %._crit_edge.7

.lr.ph50.7.preheader:                             ; preds = %._crit_edge.6
  %xtraiter169 = and i64 %87, 7
  %89 = icmp ult i64 %87, 8
  br i1 %89, label %._crit_edge.7.loopexit.unr-lcssa, label %.lr.ph50.7.preheader.new

.lr.ph50.7.preheader.new:                         ; preds = %.lr.ph50.7.preheader
  %unroll_iter173 = and i64 %87, 9223372036854775800
  br label %.lr.ph50.7

.lr.ph50.7:                                       ; preds = %.lr.ph50.7, %.lr.ph50.7.preheader.new
  %.148.7 = phi i64 [ %.1.lcssa.6, %.lr.ph50.7.preheader.new ], [ %91, %.lr.ph50.7 ]
  %niter174 = phi i64 [ 0, %.lr.ph50.7.preheader.new ], [ %niter174.next.7, %.lr.ph50.7 ]
  %90 = mul i64 %.148.7, 100000000
  %91 = add i64 %90, 77777777
  %niter174.next.7 = add i64 %niter174, 8
  %niter174.ncmp.7 = icmp eq i64 %niter174.next.7, %unroll_iter173
  br i1 %niter174.ncmp.7, label %._crit_edge.7.loopexit.unr-lcssa, label %.lr.ph50.7, !llvm.loop !14

._crit_edge.7.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.7, %.lr.ph50.7.preheader
  %.lcssa101.ph = phi i64 [ poison, %.lr.ph50.7.preheader ], [ %91, %.lr.ph50.7 ]
  %.148.7.unr = phi i64 [ %.1.lcssa.6, %.lr.ph50.7.preheader ], [ %91, %.lr.ph50.7 ]
  %lcmp.mod171.not = icmp eq i64 %xtraiter169, 0
  br i1 %lcmp.mod171.not, label %._crit_edge.7, label %.lr.ph50.7.epil

.lr.ph50.7.epil:                                  ; preds = %._crit_edge.7.loopexit.unr-lcssa, %.lr.ph50.7.epil
  %.148.7.epil = phi i64 [ %93, %.lr.ph50.7.epil ], [ %.148.7.unr, %._crit_edge.7.loopexit.unr-lcssa ]
  %epil.iter170 = phi i64 [ %epil.iter170.next, %.lr.ph50.7.epil ], [ 0, %._crit_edge.7.loopexit.unr-lcssa ]
  %92 = mul nsw i64 %.148.7.epil, 10
  %93 = add nsw i64 %92, 7
  %epil.iter170.next = add i64 %epil.iter170, 1
  %epil.iter170.cmp.not = icmp eq i64 %epil.iter170.next, %xtraiter169
  br i1 %epil.iter170.cmp.not, label %._crit_edge.7, label %.lr.ph50.7.epil, !llvm.loop !21

._crit_edge.7:                                    ; preds = %._crit_edge.7.loopexit.unr-lcssa, %.lr.ph50.7.epil, %._crit_edge.6
  %.1.lcssa.7 = phi i64 [ %.1.lcssa.6, %._crit_edge.6 ], [ %.lcssa101.ph, %._crit_edge.7.loopexit.unr-lcssa ], [ %93, %.lr.ph50.7.epil ]
  %94 = load i64, ptr %17, align 16, !tbaa !8
  %95 = icmp sgt i64 %94, 0
  br i1 %95, label %.lr.ph50.8.preheader, label %._crit_edge.8

.lr.ph50.8.preheader:                             ; preds = %._crit_edge.7
  %xtraiter175 = and i64 %94, 7
  %96 = icmp ult i64 %94, 8
  br i1 %96, label %._crit_edge.8.loopexit.unr-lcssa, label %.lr.ph50.8.preheader.new

.lr.ph50.8.preheader.new:                         ; preds = %.lr.ph50.8.preheader
  %unroll_iter179 = and i64 %94, 9223372036854775800
  br label %.lr.ph50.8

.lr.ph50.8:                                       ; preds = %.lr.ph50.8, %.lr.ph50.8.preheader.new
  %.148.8 = phi i64 [ %.1.lcssa.7, %.lr.ph50.8.preheader.new ], [ %98, %.lr.ph50.8 ]
  %niter180 = phi i64 [ 0, %.lr.ph50.8.preheader.new ], [ %niter180.next.7, %.lr.ph50.8 ]
  %97 = mul i64 %.148.8, 100000000
  %98 = add i64 %97, 88888888
  %niter180.next.7 = add i64 %niter180, 8
  %niter180.ncmp.7 = icmp eq i64 %niter180.next.7, %unroll_iter179
  br i1 %niter180.ncmp.7, label %._crit_edge.8.loopexit.unr-lcssa, label %.lr.ph50.8, !llvm.loop !14

._crit_edge.8.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.8, %.lr.ph50.8.preheader
  %.lcssa102.ph = phi i64 [ poison, %.lr.ph50.8.preheader ], [ %98, %.lr.ph50.8 ]
  %.148.8.unr = phi i64 [ %.1.lcssa.7, %.lr.ph50.8.preheader ], [ %98, %.lr.ph50.8 ]
  %lcmp.mod177.not = icmp eq i64 %xtraiter175, 0
  br i1 %lcmp.mod177.not, label %._crit_edge.8, label %.lr.ph50.8.epil

.lr.ph50.8.epil:                                  ; preds = %._crit_edge.8.loopexit.unr-lcssa, %.lr.ph50.8.epil
  %.148.8.epil = phi i64 [ %100, %.lr.ph50.8.epil ], [ %.148.8.unr, %._crit_edge.8.loopexit.unr-lcssa ]
  %epil.iter176 = phi i64 [ %epil.iter176.next, %.lr.ph50.8.epil ], [ 0, %._crit_edge.8.loopexit.unr-lcssa ]
  %99 = mul nsw i64 %.148.8.epil, 10
  %100 = add nsw i64 %99, 8
  %epil.iter176.next = add i64 %epil.iter176, 1
  %epil.iter176.cmp.not = icmp eq i64 %epil.iter176.next, %xtraiter175
  br i1 %epil.iter176.cmp.not, label %._crit_edge.8, label %.lr.ph50.8.epil, !llvm.loop !22

._crit_edge.8:                                    ; preds = %._crit_edge.8.loopexit.unr-lcssa, %.lr.ph50.8.epil, %._crit_edge.7
  %.1.lcssa.8 = phi i64 [ %.1.lcssa.7, %._crit_edge.7 ], [ %.lcssa102.ph, %._crit_edge.8.loopexit.unr-lcssa ], [ %100, %.lr.ph50.8.epil ]
  %101 = load i64, ptr %18, align 8, !tbaa !8
  %102 = icmp sgt i64 %101, 0
  br i1 %102, label %.lr.ph50.9.preheader, label %._crit_edge.9

.lr.ph50.9.preheader:                             ; preds = %._crit_edge.8
  %xtraiter181 = and i64 %101, 7
  %103 = icmp ult i64 %101, 8
  br i1 %103, label %._crit_edge.9.loopexit.unr-lcssa, label %.lr.ph50.9.preheader.new

.lr.ph50.9.preheader.new:                         ; preds = %.lr.ph50.9.preheader
  %unroll_iter185 = and i64 %101, 9223372036854775800
  br label %.lr.ph50.9

.lr.ph50.9:                                       ; preds = %.lr.ph50.9, %.lr.ph50.9.preheader.new
  %.148.9 = phi i64 [ %.1.lcssa.8, %.lr.ph50.9.preheader.new ], [ %105, %.lr.ph50.9 ]
  %niter186 = phi i64 [ 0, %.lr.ph50.9.preheader.new ], [ %niter186.next.7, %.lr.ph50.9 ]
  %104 = mul i64 %.148.9, 100000000
  %105 = add i64 %104, 99999999
  %niter186.next.7 = add i64 %niter186, 8
  %niter186.ncmp.7 = icmp eq i64 %niter186.next.7, %unroll_iter185
  br i1 %niter186.ncmp.7, label %._crit_edge.9.loopexit.unr-lcssa, label %.lr.ph50.9, !llvm.loop !14

._crit_edge.9.loopexit.unr-lcssa:                 ; preds = %.lr.ph50.9, %.lr.ph50.9.preheader
  %.lcssa103.ph = phi i64 [ poison, %.lr.ph50.9.preheader ], [ %105, %.lr.ph50.9 ]
  %.148.9.unr = phi i64 [ %.1.lcssa.8, %.lr.ph50.9.preheader ], [ %105, %.lr.ph50.9 ]
  %lcmp.mod183.not = icmp eq i64 %xtraiter181, 0
  br i1 %lcmp.mod183.not, label %._crit_edge.9, label %.lr.ph50.9.epil

.lr.ph50.9.epil:                                  ; preds = %._crit_edge.9.loopexit.unr-lcssa, %.lr.ph50.9.epil
  %.148.9.epil = phi i64 [ %107, %.lr.ph50.9.epil ], [ %.148.9.unr, %._crit_edge.9.loopexit.unr-lcssa ]
  %epil.iter182 = phi i64 [ %epil.iter182.next, %.lr.ph50.9.epil ], [ 0, %._crit_edge.9.loopexit.unr-lcssa ]
  %106 = mul nsw i64 %.148.9.epil, 10
  %107 = add nsw i64 %106, 9
  %epil.iter182.next = add i64 %epil.iter182, 1
  %epil.iter182.cmp.not = icmp eq i64 %epil.iter182.next, %xtraiter181
  br i1 %epil.iter182.cmp.not, label %._crit_edge.9, label %.lr.ph50.9.epil, !llvm.loop !23

._crit_edge.9:                                    ; preds = %._crit_edge.9.loopexit.unr-lcssa, %.lr.ph50.9.epil, %._crit_edge.8
  %.1.lcssa.9 = phi i64 [ %.1.lcssa.8, %._crit_edge.8 ], [ %.lcssa103.ph, %._crit_edge.9.loopexit.unr-lcssa ], [ %107, %.lr.ph50.9.epil ]
  %.not43 = icmp sgt i64 %.1.lcssa.9, %33
  br i1 %.not43, label %.thread, label %.loopexit

.lr.ph50:                                         ; preds = %.lr.ph50, %.lr.ph50.preheader.new
  %.148 = phi i64 [ %39, %.lr.ph50.preheader.new ], [ %108, %.lr.ph50 ]
  %niter = phi i64 [ 0, %.lr.ph50.preheader.new ], [ %niter.next.7, %.lr.ph50 ]
  %108 = mul i64 %.148, 100000000
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph50, !llvm.loop !14

.thread:                                          ; preds = %._crit_edge.9
  store i64 %37, ptr %36, align 8, !tbaa !8
  br label %109

109:                                              ; preds = %.thread, %35
  %indvars.iv.next71 = add nsw i64 %indvars.iv70, -1
  %.not76 = icmp eq i64 %indvars.iv70, 0
  br i1 %.not76, label %.loopexit, label %35, !llvm.loop !24

.loopexit:                                        ; preds = %109, %._crit_edge.9
  %.4 = phi i64 [ %39, %._crit_edge.9 ], [ %.03255, %109 ]
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %110 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %.not.not = icmp ugt i64 %110, %indvars.iv73
  br i1 %.not.not, label %.preheader45, label %._crit_edge57, !llvm.loop !25

111:                                              ; preds = %._crit_edge57
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %113 unwind label %114

113:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret i32 0

114:                                              ; preds = %111, %._crit_edge57
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #7
  br label %116

116:                                              ; preds = %114, %21
  %.pn = phi { ptr, i32 } [ %115, %114 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %117

117:                                              ; preds = %116, %19
  %.pn.pn = phi { ptr, i32 } [ %.pn, %116 ], [ %20, %19 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #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) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

attributes #0 = { 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 #1 = { mustprogress 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 = { "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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint 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 #7 = { 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 = !{!9, !9, i64 0}
!9 = !{!"long long", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}
!24 = distinct !{!24, !11}
!25 = distinct !{!25, !11}


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