; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint June/Problem E/E.ll (Z8generateii)

; 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::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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] }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>

@s = external dso_local global %"class.std::unordered_set", align 8
@dp = external dso_local global [2 x [610 x %"class.std::unordered_set"]], align 16
@_Z1gB5cxx11 = external dso_local global [2 x %"class.std::__cxx11::basic_string"], align 16
@n = external dso_local global i32, align 4
@pw = external dso_local global [1220 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8generateii(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i128, align 16
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.std::pair", align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %13 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %13, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %14 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %14, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  store i128 0, ptr %7, align 16, !tbaa !9
  br label %15

15:                                               ; preds = %18, %2
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = icmp sge i32 %16, 0
  br i1 %17, label %18, label %37

18:                                               ; preds = %15
  %19 = load i128, ptr %7, align 16, !tbaa !9
  %20 = mul nsw i128 %19, 26
  %21 = srem i128 %20, 1344409044431
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %23
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %24, 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 = add nsw i32 %30, 1
  %32 = sext i32 %31 to i128
  %33 = add nsw i128 %21, %32
  %34 = srem i128 %33, 1344409044431
  store i128 %34, ptr %7, align 16, !tbaa !9
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = add nsw i32 %35, -1
  store i32 %36, ptr %6, align 4, !tbaa !5
  br label %15, !llvm.loop !12

37:                                               ; preds = %15
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = xor i32 %38, 1
  store i32 %39, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %44, %37
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %44, label %63

44:                                               ; preds = %40
  %45 = load i128, ptr %7, align 16, !tbaa !9
  %46 = mul nsw i128 %45, 26
  %47 = srem i128 %46, 1344409044431
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %49
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef %52)
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = sub nsw i32 %55, 97
  %57 = add nsw i32 %56, 1
  %58 = sext i32 %57 to i128
  %59 = add nsw i128 %47, %58
  %60 = srem i128 %59, 1344409044431
  store i128 %60, ptr %7, align 16, !tbaa !9
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %6, align 4, !tbaa !5
  br label %40, !llvm.loop !14

63:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = mul nsw i32 2, %64
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = mul nsw i32 2, %67
  %69 = sub nsw i32 %65, %68
  store i32 %69, ptr %8, align 4, !tbaa !5
  %70 = load i128, ptr %7, align 16, !tbaa !9
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [1220 x i64], ptr @pw, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !15
  %75 = sext i64 %74 to i128
  %76 = mul nsw i128 %70, %75
  %77 = srem i128 %76, 1344409044431
  store i128 %77, ptr %7, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = xor i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %80
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr %81, i64 0, i64 %84
  %86 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %85) #3
  %87 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %9, i32 0, i32 0
  %88 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %87, i32 0, i32 0
  store ptr %86, ptr %88, align 8
  br label %89

89:                                               ; preds = %116, %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = xor i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %92
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [610 x %"class.std::unordered_set"], ptr %93, i64 0, i64 %96
  %98 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %97) #3
  %99 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %10, i32 0, i32 0
  %100 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %99, i32 0, i32 0
  store ptr %98, ptr %100, align 8
  %101 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br i1 %101, label %103, label %102

102:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %118

103:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %104 = load i128, ptr %7, align 16, !tbaa !9
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %106 = load i64, ptr %105, align 8, !tbaa !15
  %107 = sext i64 %106 to i128
  %108 = add nsw i128 %104, %107
  %109 = srem i128 %108, 1344409044431
  %110 = trunc i128 %109 to i64
  store i64 %110, ptr %11, align 8, !tbaa !15
  %111 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) @s, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %112 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %113 = extractvalue { ptr, i8 } %111, 0
  store ptr %113, ptr %112, align 8
  %114 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %115 = extractvalue { ptr, i8 } %111, 1
  store i8 %115, ptr %114, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %116

116:                                              ; preds = %103
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  br label %89, !llvm.loop !17

118:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #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 dso_local { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"__int128", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!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::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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] }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@s = external dso_local global %"class.std::unordered_set", align 8
@dp = external dso_local global [2 x [610 x %"class.std::unordered_set"]], align 16
@_Z1gB5cxx11 = external dso_local global [2 x %"class.std::__cxx11::basic_string"], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@pw = external dso_local local_unnamed_addr global [1220 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8generateii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %5 = alloca i64, align 8
  %6 = icmp sgt i32 %1, -1
  br i1 %6, label %.lr.ph, label %._crit_edge.._crit_edge34_crit_edge

.lr.ph:                                           ; preds = %2
  %7 = sext i32 %0 to i64
  %8 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %7
  %9 = zext nneg i32 %1 to i64
  br label %10

10:                                               ; preds = %.lr.ph, %10
  %indvars.iv = phi i64 [ %9, %.lr.ph ], [ %indvars.iv.next, %10 ]
  %.02227 = phi i128 [ 0, %.lr.ph ], [ %.sext, %10 ]
  %11 = mul nsw i128 %.02227, 26
  %12 = srem i128 %11, 1344409044431
  %13 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv)
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = sext i8 %14 to i32
  %16 = add nsw i32 %15, -96
  %17 = sext i32 %16 to i128
  %18 = add nsw i128 %12, %17
  %.lhs.trunc = trunc nsw i128 %18 to i64
  %19 = srem i64 %.lhs.trunc, 1344409044431
  %.sext = sext i64 %19 to i128
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %.not = icmp eq i64 %indvars.iv, 0
  br i1 %.not, label %.lr.ph33, label %10, !llvm.loop !8

._crit_edge.._crit_edge34_crit_edge:              ; preds = %2
  %20 = xor i32 %0, 1
  %21 = sext i32 %20 to i64
  %.pre = add nsw i32 %1, 1
  br label %._crit_edge34

.lr.ph33:                                         ; preds = %10
  %22 = xor i32 %0, 1
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr @_Z1gB5cxx11, i64 0, i64 %23
  %25 = add nuw i32 %1, 1
  %wide.trip.count = zext i32 %25 to i64
  br label %26

26:                                               ; preds = %.lr.ph33, %26
  %indvars.iv40 = phi i64 [ 0, %.lr.ph33 ], [ %indvars.iv.next41, %26 ]
  %.12330 = phi i128 [ %.sext, %.lr.ph33 ], [ %.sext26, %26 ]
  %27 = mul nsw i128 %.12330, 26
  %28 = srem i128 %27, 1344409044431
  %29 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %24, i64 noundef %indvars.iv40)
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = sext i8 %30 to i32
  %32 = add nsw i32 %31, -96
  %33 = sext i32 %32 to i128
  %34 = add nsw i128 %28, %33
  %.lhs.trunc25 = trunc nsw i128 %34 to i64
  %35 = srem i64 %.lhs.trunc25, 1344409044431
  %.sext26 = sext i64 %35 to i128
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next41, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge34, label %26, !llvm.loop !10

._crit_edge34:                                    ; preds = %26, %._crit_edge.._crit_edge34_crit_edge
  %.pre-phi44 = phi i64 [ %21, %._crit_edge.._crit_edge34_crit_edge ], [ %23, %26 ]
  %.pre-phi = phi i32 [ %.pre, %._crit_edge.._crit_edge34_crit_edge ], [ %25, %26 ]
  %.123.lcssa = phi i128 [ 0, %._crit_edge.._crit_edge34_crit_edge ], [ %.sext26, %26 ]
  %36 = load i32, ptr @n, align 4, !tbaa !11
  %37 = sub nsw i32 %36, %.pre-phi
  %38 = shl nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [1220 x i64], ptr @pw, i64 0, i64 %39
  %41 = load i64, ptr %40, align 16, !tbaa !13
  %42 = sext i64 %41 to i128
  %43 = mul nsw i128 %.123.lcssa, %42
  %44 = srem i128 %43, 1344409044431
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %45 = sext i32 %.pre-phi to i64
  %46 = getelementptr inbounds [2 x [610 x %"class.std::unordered_set"]], ptr @dp, i64 0, i64 %.pre-phi44, i64 %45
  %47 = tail call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %46) #3
  store ptr %47, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %48 = tail call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %46) #3
  store ptr %48, ptr %4, align 8
  %49 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %49, label %.lr.ph37, label %._crit_edge38

._crit_edge38:                                    ; preds = %.lr.ph37, %._crit_edge34
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void

.lr.ph37:                                         ; preds = %._crit_edge34, %.lr.ph37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %51 = load i64, ptr %50, align 8, !tbaa !13
  %52 = sext i64 %51 to i128
  %53 = add nsw i128 %44, %52
  %54 = srem i128 %53, 1344409044431
  %55 = trunc nsw i128 %54 to i64
  store i64 %55, ptr %5, align 8, !tbaa !13
  %56 = call { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) @s, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %58 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %46) #3
  store ptr %58, ptr %4, align 8
  %59 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %59, label %.lr.ph37, label %._crit_edge38, !llvm.loop !15
}

; 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 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 nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) 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 dso_local { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

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


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