; LLVM IR from eyangch/competitive-programming :: mBIT/2021_spring (pokemon_permutation)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::allocator" = type { i8 }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@occ = external dso_local global [26 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %13 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %15
  %17 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef null)
  %18 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %19 = call 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) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %20

20:                                               ; preds = %35, %0
  %21 = load i64, ptr %2, align 8, !tbaa !8
  %22 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #6
  %23 = icmp slt i64 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %38

25:                                               ; preds = %20
  %26 = load i64, ptr %2, align 8, !tbaa !8
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %26)
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i32
  %30 = sub nsw i32 %29, 97
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [26 x i64], ptr @occ, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !8
  %34 = add nsw i64 %33, 1
  store i64 %34, ptr %32, align 8, !tbaa !8
  br label %35

35:                                               ; preds = %25
  %36 = load i64, ptr %2, align 8, !tbaa !8
  %37 = add nsw i64 %36, 1
  store i64 %37, ptr %2, align 8, !tbaa !8
  br label %20, !llvm.loop !12

38:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !8
  br label %39

39:                                               ; preds = %63, %38
  %40 = load i64, ptr %4, align 8, !tbaa !8
  %41 = icmp slt i64 %40, 26
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %39
  %44 = load i64, ptr %4, align 8, !tbaa !8
  %45 = getelementptr inbounds [26 x i64], ptr @occ, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !8
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %43
  br label %63

49:                                               ; preds = %43
  %50 = load i64, ptr %3, align 8, !tbaa !8
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = load i64, ptr %4, align 8, !tbaa !8
  %54 = getelementptr inbounds [26 x i64], ptr @occ, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !8
  store i64 %55, ptr %3, align 8, !tbaa !8
  br label %62

56:                                               ; preds = %49
  %57 = load i64, ptr %4, align 8, !tbaa !8
  %58 = getelementptr inbounds [26 x i64], ptr @occ, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !8
  %60 = load i64, ptr %3, align 8, !tbaa !8
  %61 = call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %59, i64 noundef %60) #6
  store i64 %61, ptr %3, align 8, !tbaa !8
  br label %62

62:                                               ; preds = %56, %52
  br label %63

63:                                               ; preds = %62, %48
  %64 = load i64, ptr %4, align 8, !tbaa !8
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %4, align 8, !tbaa !8
  br label %39, !llvm.loop !14

66:                                               ; preds = %42
  %67 = load i64, ptr %3, align 8, !tbaa !8
  %68 = icmp eq i64 %67, 1
  br i1 %68, label %69, label %72

69:                                               ; preds = %66
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %70, i8 noundef signext 10)
  br label %134

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %73 unwind label %78

73:                                               ; preds = %72
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %74

74:                                               ; preds = %106, %73
  %75 = load i64, ptr %9, align 8, !tbaa !8
  %76 = icmp slt i64 %75, 26
  br i1 %76, label %82, label %77

77:                                               ; preds = %74
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %109

78:                                               ; preds = %72
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %133

82:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %83

83:                                               ; preds = %98, %82
  %84 = load i64, ptr %11, align 8, !tbaa !8
  %85 = load i64, ptr %9, align 8, !tbaa !8
  %86 = getelementptr inbounds [26 x i64], ptr @occ, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !8
  %88 = load i64, ptr %3, align 8, !tbaa !8
  %89 = sdiv i64 %87, %88
  %90 = icmp slt i64 %84, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %83
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %105

92:                                               ; preds = %83
  %93 = load i64, ptr %9, align 8, !tbaa !8
  %94 = add nsw i64 %93, 97
  %95 = trunc i64 %94 to i8
  %96 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext %95)
          to label %97 unwind label %101

97:                                               ; preds = %92
  br label %98

98:                                               ; preds = %97
  %99 = load i64, ptr %11, align 8, !tbaa !8
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %11, align 8, !tbaa !8
  br label %83, !llvm.loop !15

101:                                              ; preds = %92
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %132

105:                                              ; preds = %91
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %9, align 8, !tbaa !8
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %9, align 8, !tbaa !8
  br label %74, !llvm.loop !16

109:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !8
  br label %110

110:                                              ; preds = %118, %109
  %111 = load i64, ptr %12, align 8, !tbaa !8
  %112 = load i64, ptr %3, align 8, !tbaa !8
  %113 = icmp slt i64 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %125

115:                                              ; preds = %110
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %117 unwind label %121

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117
  %119 = load i64, ptr %12, align 8, !tbaa !8
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %12, align 8, !tbaa !8
  br label %110, !llvm.loop !17

121:                                              ; preds = %115
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %132

125:                                              ; preds = %114
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %127 unwind label %128

127:                                              ; preds = %125
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %134

128:                                              ; preds = %125
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  br label %132

132:                                              ; preds = %128, %121, %101
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %133

133:                                              ; preds = %132, %78
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %136

134:                                              ; preds = %127, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %135 = load i32, ptr %1, align 4
  ret i32 %135

136:                                              ; preds = %133
  %137 = load ptr, ptr %7, align 8
  %138 = load i32, ptr %8, align 4
  %139 = insertvalue { ptr, i32 } poison, ptr %137, 0
  %140 = insertvalue { ptr, i32 } %139, i32 %138, 1
  resume { ptr, i32 } %140
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #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)) #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef, i64 noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::allocator" = type { i8 }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@occ = external dso_local local_unnamed_addr global [26 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::allocator", align 1
  %3 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %5
  %7 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %6, ptr noundef null)
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = tail call 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) @_Z1sB5cxx11)
  %10 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #6
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.lr.ph, label %.preheader36

.preheader36:                                     ; preds = %.lr.ph, %0
  %12 = load i64, ptr @occ, align 16, !tbaa !8
  %13 = icmp eq i64 %12, 0
  %14 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 8), align 8, !tbaa !8
  %15 = icmp eq i64 %14, 0
  br i1 %13, label %.thread, label %26

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.03137 = phi i64 [ %23, %.lr.ph ], [ 0, %0 ]
  %16 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.03137)
  %17 = load i8, ptr %16, align 1, !tbaa !11
  %18 = sext i8 %17 to i64
  %19 = add nsw i64 %18, -97
  %20 = getelementptr inbounds [26 x i64], ptr @occ, i64 0, i64 %19
  %21 = load i64, ptr %20, align 8, !tbaa !8
  %22 = add nsw i64 %21, 1
  store i64 %22, ptr %20, align 8, !tbaa !8
  %23 = add nuw nsw i64 %.03137, 1
  %24 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #6
  %25 = icmp slt i64 %23, %24
  br i1 %25, label %.lr.ph, label %.preheader36, !llvm.loop !12

26:                                               ; preds = %.preheader36
  br i1 %15, label %.thread49, label %27

.thread:                                          ; preds = %.preheader36
  br i1 %15, label %.thread51, label %.thread49

27:                                               ; preds = %26
  %28 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %14, i64 noundef %12) #6
  br label %.thread49

.thread49:                                        ; preds = %.thread, %27, %26
  %.130.1 = phi i64 [ %12, %26 ], [ %28, %27 ], [ %14, %.thread ]
  %29 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 16), align 16, !tbaa !8
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %.thread54, label %33

.thread51:                                        ; preds = %.thread
  %31 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 16), align 16, !tbaa !8
  %32 = icmp eq i64 %31, 0
  br i1 %32, label %.thread56, label %.thread54

33:                                               ; preds = %.thread49
  %34 = icmp eq i64 %.130.1, 0
  br i1 %34, label %.thread54, label %35

35:                                               ; preds = %33
  %36 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %29, i64 noundef %.130.1) #6
  br label %.thread54

.thread54:                                        ; preds = %.thread51, %35, %33, %.thread49
  %.130.2 = phi i64 [ %.130.1, %.thread49 ], [ %36, %35 ], [ %29, %33 ], [ %31, %.thread51 ]
  %37 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 24), align 8, !tbaa !8
  %38 = icmp eq i64 %37, 0
  br i1 %38, label %.thread59, label %41

.thread56:                                        ; preds = %.thread51
  %39 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 24), align 8, !tbaa !8
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %.thread61, label %.thread59

41:                                               ; preds = %.thread54
  %42 = icmp eq i64 %.130.2, 0
  br i1 %42, label %.thread59, label %43

43:                                               ; preds = %41
  %44 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %37, i64 noundef %.130.2) #6
  br label %.thread59

.thread59:                                        ; preds = %.thread56, %43, %41, %.thread54
  %.130.3 = phi i64 [ %.130.2, %.thread54 ], [ %44, %43 ], [ %37, %41 ], [ %39, %.thread56 ]
  %45 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 32), align 16, !tbaa !8
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %.thread64, label %49

.thread61:                                        ; preds = %.thread56
  %47 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 32), align 16, !tbaa !8
  %48 = icmp eq i64 %47, 0
  br i1 %48, label %.thread66, label %.thread64

49:                                               ; preds = %.thread59
  %50 = icmp eq i64 %.130.3, 0
  br i1 %50, label %.thread64, label %51

51:                                               ; preds = %49
  %52 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %45, i64 noundef %.130.3) #6
  br label %.thread64

.thread64:                                        ; preds = %.thread61, %51, %49, %.thread59
  %.130.4 = phi i64 [ %.130.3, %.thread59 ], [ %52, %51 ], [ %45, %49 ], [ %47, %.thread61 ]
  %53 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 40), align 8, !tbaa !8
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %.thread69, label %57

.thread66:                                        ; preds = %.thread61
  %55 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 40), align 8, !tbaa !8
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %.thread71, label %.thread69

57:                                               ; preds = %.thread64
  %58 = icmp eq i64 %.130.4, 0
  br i1 %58, label %.thread69, label %59

59:                                               ; preds = %57
  %60 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %53, i64 noundef %.130.4) #6
  br label %.thread69

.thread69:                                        ; preds = %.thread66, %59, %57, %.thread64
  %.130.5 = phi i64 [ %.130.4, %.thread64 ], [ %60, %59 ], [ %53, %57 ], [ %55, %.thread66 ]
  %61 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 48), align 16, !tbaa !8
  %62 = icmp eq i64 %61, 0
  br i1 %62, label %.thread74, label %65

.thread71:                                        ; preds = %.thread66
  %63 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 48), align 16, !tbaa !8
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %.thread76, label %.thread74

65:                                               ; preds = %.thread69
  %66 = icmp eq i64 %.130.5, 0
  br i1 %66, label %.thread74, label %67

67:                                               ; preds = %65
  %68 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %61, i64 noundef %.130.5) #6
  br label %.thread74

.thread74:                                        ; preds = %.thread71, %67, %65, %.thread69
  %.130.6 = phi i64 [ %.130.5, %.thread69 ], [ %68, %67 ], [ %61, %65 ], [ %63, %.thread71 ]
  %69 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 56), align 8, !tbaa !8
  %70 = icmp eq i64 %69, 0
  br i1 %70, label %.thread79, label %73

.thread76:                                        ; preds = %.thread71
  %71 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 56), align 8, !tbaa !8
  %72 = icmp eq i64 %71, 0
  br i1 %72, label %.thread81, label %.thread79

73:                                               ; preds = %.thread74
  %74 = icmp eq i64 %.130.6, 0
  br i1 %74, label %.thread79, label %75

75:                                               ; preds = %73
  %76 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %69, i64 noundef %.130.6) #6
  br label %.thread79

.thread79:                                        ; preds = %.thread76, %75, %73, %.thread74
  %.130.7 = phi i64 [ %.130.6, %.thread74 ], [ %76, %75 ], [ %69, %73 ], [ %71, %.thread76 ]
  %77 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 64), align 16, !tbaa !8
  %78 = icmp eq i64 %77, 0
  br i1 %78, label %.thread84, label %81

.thread81:                                        ; preds = %.thread76
  %79 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 64), align 16, !tbaa !8
  %80 = icmp eq i64 %79, 0
  br i1 %80, label %.thread86, label %.thread84

81:                                               ; preds = %.thread79
  %82 = icmp eq i64 %.130.7, 0
  br i1 %82, label %.thread84, label %83

83:                                               ; preds = %81
  %84 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %77, i64 noundef %.130.7) #6
  br label %.thread84

.thread84:                                        ; preds = %.thread81, %83, %81, %.thread79
  %.130.8 = phi i64 [ %.130.7, %.thread79 ], [ %84, %83 ], [ %77, %81 ], [ %79, %.thread81 ]
  %85 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 72), align 8, !tbaa !8
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %.thread89, label %89

.thread86:                                        ; preds = %.thread81
  %87 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 72), align 8, !tbaa !8
  %88 = icmp eq i64 %87, 0
  br i1 %88, label %.thread91, label %.thread89

89:                                               ; preds = %.thread84
  %90 = icmp eq i64 %.130.8, 0
  br i1 %90, label %.thread89, label %91

91:                                               ; preds = %89
  %92 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %85, i64 noundef %.130.8) #6
  br label %.thread89

.thread89:                                        ; preds = %.thread86, %91, %89, %.thread84
  %.130.9 = phi i64 [ %.130.8, %.thread84 ], [ %92, %91 ], [ %85, %89 ], [ %87, %.thread86 ]
  %93 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 80), align 16, !tbaa !8
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %.thread94, label %97

.thread91:                                        ; preds = %.thread86
  %95 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 80), align 16, !tbaa !8
  %96 = icmp eq i64 %95, 0
  br i1 %96, label %.thread96, label %.thread94

97:                                               ; preds = %.thread89
  %98 = icmp eq i64 %.130.9, 0
  br i1 %98, label %.thread94, label %99

99:                                               ; preds = %97
  %100 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %93, i64 noundef %.130.9) #6
  br label %.thread94

.thread94:                                        ; preds = %.thread91, %99, %97, %.thread89
  %.130.10 = phi i64 [ %.130.9, %.thread89 ], [ %100, %99 ], [ %93, %97 ], [ %95, %.thread91 ]
  %101 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 88), align 8, !tbaa !8
  %102 = icmp eq i64 %101, 0
  br i1 %102, label %.thread99, label %105

.thread96:                                        ; preds = %.thread91
  %103 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 88), align 8, !tbaa !8
  %104 = icmp eq i64 %103, 0
  br i1 %104, label %.thread101, label %.thread99

105:                                              ; preds = %.thread94
  %106 = icmp eq i64 %.130.10, 0
  br i1 %106, label %.thread99, label %107

107:                                              ; preds = %105
  %108 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %101, i64 noundef %.130.10) #6
  br label %.thread99

.thread99:                                        ; preds = %.thread96, %107, %105, %.thread94
  %.130.11 = phi i64 [ %.130.10, %.thread94 ], [ %108, %107 ], [ %101, %105 ], [ %103, %.thread96 ]
  %109 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 96), align 16, !tbaa !8
  %110 = icmp eq i64 %109, 0
  br i1 %110, label %.thread104, label %113

.thread101:                                       ; preds = %.thread96
  %111 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 96), align 16, !tbaa !8
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %.thread106, label %.thread104

113:                                              ; preds = %.thread99
  %114 = icmp eq i64 %.130.11, 0
  br i1 %114, label %.thread104, label %115

115:                                              ; preds = %113
  %116 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %109, i64 noundef %.130.11) #6
  br label %.thread104

.thread104:                                       ; preds = %.thread101, %115, %113, %.thread99
  %.130.12 = phi i64 [ %.130.11, %.thread99 ], [ %116, %115 ], [ %109, %113 ], [ %111, %.thread101 ]
  %117 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 104), align 8, !tbaa !8
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %.thread109, label %121

.thread106:                                       ; preds = %.thread101
  %119 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 104), align 8, !tbaa !8
  %120 = icmp eq i64 %119, 0
  br i1 %120, label %.thread111, label %.thread109

121:                                              ; preds = %.thread104
  %122 = icmp eq i64 %.130.12, 0
  br i1 %122, label %.thread109, label %123

123:                                              ; preds = %121
  %124 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %117, i64 noundef %.130.12) #6
  br label %.thread109

.thread109:                                       ; preds = %.thread106, %123, %121, %.thread104
  %.130.13 = phi i64 [ %.130.12, %.thread104 ], [ %124, %123 ], [ %117, %121 ], [ %119, %.thread106 ]
  %125 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 112), align 16, !tbaa !8
  %126 = icmp eq i64 %125, 0
  br i1 %126, label %.thread114, label %129

.thread111:                                       ; preds = %.thread106
  %127 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 112), align 16, !tbaa !8
  %128 = icmp eq i64 %127, 0
  br i1 %128, label %.thread116, label %.thread114

129:                                              ; preds = %.thread109
  %130 = icmp eq i64 %.130.13, 0
  br i1 %130, label %.thread114, label %131

131:                                              ; preds = %129
  %132 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %125, i64 noundef %.130.13) #6
  br label %.thread114

.thread114:                                       ; preds = %.thread111, %131, %129, %.thread109
  %.130.14 = phi i64 [ %.130.13, %.thread109 ], [ %132, %131 ], [ %125, %129 ], [ %127, %.thread111 ]
  %133 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 120), align 8, !tbaa !8
  %134 = icmp eq i64 %133, 0
  br i1 %134, label %.thread119, label %137

.thread116:                                       ; preds = %.thread111
  %135 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 120), align 8, !tbaa !8
  %136 = icmp eq i64 %135, 0
  br i1 %136, label %.thread121, label %.thread119

137:                                              ; preds = %.thread114
  %138 = icmp eq i64 %.130.14, 0
  br i1 %138, label %.thread119, label %139

139:                                              ; preds = %137
  %140 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %133, i64 noundef %.130.14) #6
  br label %.thread119

.thread119:                                       ; preds = %.thread116, %139, %137, %.thread114
  %.130.15 = phi i64 [ %.130.14, %.thread114 ], [ %140, %139 ], [ %133, %137 ], [ %135, %.thread116 ]
  %141 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 128), align 16, !tbaa !8
  %142 = icmp eq i64 %141, 0
  br i1 %142, label %.thread124, label %145

.thread121:                                       ; preds = %.thread116
  %143 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 128), align 16, !tbaa !8
  %144 = icmp eq i64 %143, 0
  br i1 %144, label %.thread126, label %.thread124

145:                                              ; preds = %.thread119
  %146 = icmp eq i64 %.130.15, 0
  br i1 %146, label %.thread124, label %147

147:                                              ; preds = %145
  %148 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %141, i64 noundef %.130.15) #6
  br label %.thread124

.thread124:                                       ; preds = %.thread121, %147, %145, %.thread119
  %.130.16 = phi i64 [ %.130.15, %.thread119 ], [ %148, %147 ], [ %141, %145 ], [ %143, %.thread121 ]
  %149 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 136), align 8, !tbaa !8
  %150 = icmp eq i64 %149, 0
  br i1 %150, label %.thread129, label %153

.thread126:                                       ; preds = %.thread121
  %151 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 136), align 8, !tbaa !8
  %152 = icmp eq i64 %151, 0
  br i1 %152, label %.thread131, label %.thread129

153:                                              ; preds = %.thread124
  %154 = icmp eq i64 %.130.16, 0
  br i1 %154, label %.thread129, label %155

155:                                              ; preds = %153
  %156 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %149, i64 noundef %.130.16) #6
  br label %.thread129

.thread129:                                       ; preds = %.thread126, %155, %153, %.thread124
  %.130.17 = phi i64 [ %.130.16, %.thread124 ], [ %156, %155 ], [ %149, %153 ], [ %151, %.thread126 ]
  %157 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 144), align 16, !tbaa !8
  %158 = icmp eq i64 %157, 0
  br i1 %158, label %.thread134, label %161

.thread131:                                       ; preds = %.thread126
  %159 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 144), align 16, !tbaa !8
  %160 = icmp eq i64 %159, 0
  br i1 %160, label %.thread136, label %.thread134

161:                                              ; preds = %.thread129
  %162 = icmp eq i64 %.130.17, 0
  br i1 %162, label %.thread134, label %163

163:                                              ; preds = %161
  %164 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %157, i64 noundef %.130.17) #6
  br label %.thread134

.thread134:                                       ; preds = %.thread131, %163, %161, %.thread129
  %.130.18 = phi i64 [ %.130.17, %.thread129 ], [ %164, %163 ], [ %157, %161 ], [ %159, %.thread131 ]
  %165 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 152), align 8, !tbaa !8
  %166 = icmp eq i64 %165, 0
  br i1 %166, label %.thread139, label %169

.thread136:                                       ; preds = %.thread131
  %167 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 152), align 8, !tbaa !8
  %168 = icmp eq i64 %167, 0
  br i1 %168, label %.thread141, label %.thread139

169:                                              ; preds = %.thread134
  %170 = icmp eq i64 %.130.18, 0
  br i1 %170, label %.thread139, label %171

171:                                              ; preds = %169
  %172 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %165, i64 noundef %.130.18) #6
  br label %.thread139

.thread139:                                       ; preds = %.thread136, %171, %169, %.thread134
  %.130.19 = phi i64 [ %.130.18, %.thread134 ], [ %172, %171 ], [ %165, %169 ], [ %167, %.thread136 ]
  %173 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 160), align 16, !tbaa !8
  %174 = icmp eq i64 %173, 0
  br i1 %174, label %.thread144, label %177

.thread141:                                       ; preds = %.thread136
  %175 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 160), align 16, !tbaa !8
  %176 = icmp eq i64 %175, 0
  br i1 %176, label %.thread146, label %.thread144

177:                                              ; preds = %.thread139
  %178 = icmp eq i64 %.130.19, 0
  br i1 %178, label %.thread144, label %179

179:                                              ; preds = %177
  %180 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %173, i64 noundef %.130.19) #6
  br label %.thread144

.thread144:                                       ; preds = %.thread141, %179, %177, %.thread139
  %.130.20 = phi i64 [ %.130.19, %.thread139 ], [ %180, %179 ], [ %173, %177 ], [ %175, %.thread141 ]
  %181 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 168), align 8, !tbaa !8
  %182 = icmp eq i64 %181, 0
  br i1 %182, label %.thread149, label %185

.thread146:                                       ; preds = %.thread141
  %183 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 168), align 8, !tbaa !8
  %184 = icmp eq i64 %183, 0
  br i1 %184, label %.thread151, label %.thread149

185:                                              ; preds = %.thread144
  %186 = icmp eq i64 %.130.20, 0
  br i1 %186, label %.thread149, label %187

187:                                              ; preds = %185
  %188 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %181, i64 noundef %.130.20) #6
  br label %.thread149

.thread149:                                       ; preds = %.thread146, %187, %185, %.thread144
  %.130.21 = phi i64 [ %.130.20, %.thread144 ], [ %188, %187 ], [ %181, %185 ], [ %183, %.thread146 ]
  %189 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 176), align 16, !tbaa !8
  %190 = icmp eq i64 %189, 0
  br i1 %190, label %.thread154, label %193

.thread151:                                       ; preds = %.thread146
  %191 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 176), align 16, !tbaa !8
  %192 = icmp eq i64 %191, 0
  br i1 %192, label %.thread156, label %.thread154

193:                                              ; preds = %.thread149
  %194 = icmp eq i64 %.130.21, 0
  br i1 %194, label %.thread154, label %195

195:                                              ; preds = %193
  %196 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %189, i64 noundef %.130.21) #6
  br label %.thread154

.thread154:                                       ; preds = %.thread151, %195, %193, %.thread149
  %.130.22 = phi i64 [ %.130.21, %.thread149 ], [ %196, %195 ], [ %189, %193 ], [ %191, %.thread151 ]
  %197 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 184), align 8, !tbaa !8
  %198 = icmp eq i64 %197, 0
  br i1 %198, label %.thread159, label %201

.thread156:                                       ; preds = %.thread151
  %199 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 184), align 8, !tbaa !8
  %200 = icmp eq i64 %199, 0
  br i1 %200, label %.thread161, label %.thread159

201:                                              ; preds = %.thread154
  %202 = icmp eq i64 %.130.22, 0
  br i1 %202, label %.thread159, label %203

203:                                              ; preds = %201
  %204 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %197, i64 noundef %.130.22) #6
  br label %.thread159

.thread159:                                       ; preds = %.thread156, %203, %201, %.thread154
  %.130.23 = phi i64 [ %.130.22, %.thread154 ], [ %204, %203 ], [ %197, %201 ], [ %199, %.thread156 ]
  %205 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 192), align 16, !tbaa !8
  %206 = icmp eq i64 %205, 0
  br i1 %206, label %.thread164, label %209

.thread161:                                       ; preds = %.thread156
  %207 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 192), align 16, !tbaa !8
  %208 = icmp eq i64 %207, 0
  br i1 %208, label %.thread166, label %.thread164

209:                                              ; preds = %.thread159
  %210 = icmp eq i64 %.130.23, 0
  br i1 %210, label %.thread164, label %211

211:                                              ; preds = %209
  %212 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %205, i64 noundef %.130.23) #6
  br label %.thread164

.thread164:                                       ; preds = %.thread161, %211, %209, %.thread159
  %.130.24 = phi i64 [ %.130.23, %.thread159 ], [ %212, %211 ], [ %205, %209 ], [ %207, %.thread161 ]
  %213 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 200), align 8, !tbaa !8
  %214 = icmp eq i64 %213, 0
  br i1 %214, label %.thread169, label %217

.thread166:                                       ; preds = %.thread161
  %215 = load i64, ptr getelementptr inbounds (i8, ptr @occ, i64 200), align 8, !tbaa !8
  %216 = icmp eq i64 %215, 0
  br i1 %216, label %.thread171, label %.thread169

217:                                              ; preds = %.thread164
  %218 = icmp eq i64 %.130.24, 0
  br i1 %218, label %.thread169, label %219

219:                                              ; preds = %217
  %220 = tail call noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef %213, i64 noundef %.130.24) #6
  br label %.thread169

.thread169:                                       ; preds = %.thread166, %219, %217, %.thread164
  %.130.25 = phi i64 [ %.130.24, %.thread164 ], [ %220, %219 ], [ %213, %217 ], [ %215, %.thread166 ]
  %221 = icmp eq i64 %.130.25, 1
  br i1 %221, label %222, label %.thread171

222:                                              ; preds = %.thread169
  %223 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %224 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %223, i8 noundef signext 10)
  br label %256

.thread171:                                       ; preds = %.thread166, %.thread169
  %.130.25173 = phi i64 [ %.130.25, %.thread169 ], [ 0, %.thread166 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %225 unwind label %233

225:                                              ; preds = %.thread171
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #6
  br label %.preheader35

.preheader35:                                     ; preds = %225, %._crit_edge
  %.02442 = phi i64 [ 0, %225 ], [ %235, %._crit_edge ]
  %226 = getelementptr inbounds [26 x i64], ptr @occ, i64 0, i64 %.02442
  %227 = load i64, ptr %226, align 8, !tbaa !8
  %228 = sdiv i64 %227, %.130.25173
  %229 = icmp sgt i64 %228, 0
  br i1 %229, label %.lr.ph41, label %._crit_edge

.lr.ph41:                                         ; preds = %.preheader35
  %230 = trunc nuw i64 %.02442 to i8
  %231 = add nuw i8 %230, 97
  br label %236

.preheader:                                       ; preds = %._crit_edge
  %232 = icmp sgt i64 %.130.25173, 0
  br i1 %232, label %.lr.ph44, label %._crit_edge45

233:                                              ; preds = %.thread171
  %234 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #6
  br label %255

._crit_edge:                                      ; preds = %238, %.preheader35
  %235 = add nuw nsw i64 %.02442, 1
  %exitcond.not = icmp eq i64 %235, 26
  br i1 %exitcond.not, label %.preheader, label %.preheader35, !llvm.loop !14

236:                                              ; preds = %.lr.ph41, %238
  %.02340 = phi i64 [ 0, %.lr.ph41 ], [ %239, %238 ]
  %237 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %1, i8 noundef signext %231)
          to label %238 unwind label %243

238:                                              ; preds = %236
  %239 = add nuw nsw i64 %.02340, 1
  %240 = load i64, ptr %226, align 8, !tbaa !8
  %241 = sdiv i64 %240, %.130.25173
  %242 = icmp slt i64 %239, %241
  br i1 %242, label %236, label %._crit_edge, !llvm.loop !15

243:                                              ; preds = %236
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %254

._crit_edge45:                                    ; preds = %247, %.preheader
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %251 unwind label %252

.lr.ph44:                                         ; preds = %.preheader, %247
  %.043 = phi i64 [ %248, %247 ], [ 0, %.preheader ]
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %247 unwind label %249

247:                                              ; preds = %.lr.ph44
  %248 = add nuw nsw i64 %.043, 1
  %exitcond46.not = icmp eq i64 %248, %.130.25173
  br i1 %exitcond46.not, label %._crit_edge45, label %.lr.ph44, !llvm.loop !16

249:                                              ; preds = %.lr.ph44
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %254

251:                                              ; preds = %._crit_edge45
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  br label %256

252:                                              ; preds = %._crit_edge45
  %253 = landingpad { ptr, i32 }
          cleanup
  br label %254

254:                                              ; preds = %252, %249, %243
  %.pn = phi { ptr, i32 } [ %244, %243 ], [ %250, %249 ], [ %253, %252 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  br label %255

255:                                              ; preds = %254, %233
  %.pn.pn = phi { ptr, i32 } [ %.pn, %254 ], [ %234, %233 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn

256:                                              ; preds = %251, %222
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #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 #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3gcdIxxENSt11common_typeIJT_T0_EE4typeES1_S2_(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #5 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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