; LLVM IR from abeaumont/competitive-programming :: kattis (greetingcard)

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

@X = external dso_local global [12 x i32], align 16
@Y = external dso_local global [12 x i32], align 16
@_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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::unordered_set", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 56, ptr %5) #7
  call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %41, %0
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = load i64, ptr %2, align 8, !tbaa !9
  %24 = icmp slt i64 %22, %23
  br i1 %24, label %26, label %25

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

26:                                               ; preds = %20
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %28 unwind label %44

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %30 unwind label %44

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %31 = load i64, ptr %3, align 8, !tbaa !9
  %32 = mul nsw i64 %31, 2147483648
  %33 = load i64, ptr %4, align 8, !tbaa !9
  %34 = add nsw i64 %32, %33
  store i64 %34, ptr %9, align 8, !tbaa !9
  %35 = invoke { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %36 unwind label %48

36:                                               ; preds = %30
  %37 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 0
  %38 = extractvalue { ptr, i8 } %35, 0
  store ptr %38, ptr %37, align 8
  %39 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 1
  %40 = extractvalue { ptr, i8 } %35, 1
  store i8 %40, ptr %39, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %41

41:                                               ; preds = %36
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %6, align 4, !tbaa !5
  br label %20, !llvm.loop !11

44:                                               ; preds = %28, %26
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %7, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %8, align 4
  br label %52

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

52:                                               ; preds = %48, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %123

53:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr %5, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %54 = load ptr, ptr %12, align 8, !tbaa !13
  %55 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %54) #7
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %13, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %56, i32 0, i32 0
  store ptr %55, ptr %57, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %58 = load ptr, ptr %12, align 8, !tbaa !13
  %59 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %58) #7
  %60 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %14, i32 0, i32 0
  %61 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %60, i32 0, i32 0
  store ptr %59, ptr %61, align 8
  br label %62

62:                                               ; preds = %108, %53
  %63 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %63, label %65, label %64

64:                                               ; preds = %62
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %110

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %67 = load i64, ptr %66, align 8, !tbaa !9
  store i64 %67, ptr %16, align 8, !tbaa !9
  %68 = load i64, ptr %16, align 8, !tbaa !9
  %69 = sdiv i64 %68, 2147483648
  store i64 %69, ptr %3, align 8, !tbaa !9
  %70 = load i64, ptr %16, align 8, !tbaa !9
  %71 = srem i64 %70, 2147483648
  store i64 %71, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %104, %65
  %73 = load i32, ptr %17, align 4, !tbaa !5
  %74 = icmp slt i32 %73, 12
  br i1 %74, label %76, label %75

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

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %77 = load i64, ptr %3, align 8, !tbaa !9
  %78 = load i32, ptr %17, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [12 x i32], ptr @X, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = add nsw i64 %77, %82
  %84 = mul nsw i64 %83, 2147483648
  %85 = load i64, ptr %4, align 8, !tbaa !9
  %86 = add nsw i64 %84, %85
  %87 = load i32, ptr %17, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [12 x i32], ptr @Y, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = add nsw i64 %86, %91
  store i64 %92, ptr %18, align 8, !tbaa !9
  %93 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %94 unwind label %99

94:                                               ; preds = %76
  %95 = icmp ne i64 %93, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br i1 %95, label %96, label %103

96:                                               ; preds = %94
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %11, align 4, !tbaa !5
  br label %103

99:                                               ; preds = %76
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %122

103:                                              ; preds = %96, %94
  br label %104

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

107:                                              ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %108

108:                                              ; preds = %107
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %62

110:                                              ; preds = %64
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = sdiv i32 %111, 2
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %112)
          to label %114 unwind label %118

114:                                              ; preds = %110
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %116 unwind label %118

116:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %117 = load i32, ptr %1, align 4
  ret i32 %117

118:                                              ; preds = %114, %110
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %7, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %8, align 4
  br label %122

122:                                              ; preds = %118, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %123

123:                                              ; preds = %122, %52
  call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %124

124:                                              ; preds = %123
  %125 = load ptr, ptr %7, align 8
  %126 = load i32, ptr %8, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

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

; 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)) #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 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)) #3

; 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)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56), 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)) #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #6 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 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 = { 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 #4 = { "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 = { 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 #6 = { inlinehint 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 #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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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::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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@X = external dso_local local_unnamed_addr global [12 x i32], align 16
@Y = external dso_local local_unnamed_addr global [12 x i32], align 16
@_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 i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::unordered_set", align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #7
  call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %24, %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %12 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  store ptr %12, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %13 = call ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  store ptr %13, ptr %7, align 8
  %14 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %14, label %.lr.ph33, label %._crit_edge34

.lr.ph:                                           ; preds = %0, %24
  %indvars.iv = phi i64 [ %indvars.iv.next, %24 ], [ 0, %0 ]
  %15 = 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 %16 unwind label %27

16:                                               ; preds = %.lr.ph
  %17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %18 unwind label %27

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %20 = shl nsw i64 %19, 31
  %21 = load i64, ptr %3, align 8, !tbaa !5
  %22 = add nsw i64 %20, %21
  store i64 %22, ptr %5, align 8, !tbaa !5
  %23 = invoke { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %24 unwind label %29

24:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %25 = load i64, ptr %1, align 8, !tbaa !5
  %26 = icmp sgt i64 %25, %indvars.iv.next
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !9

27:                                               ; preds = %16, %.lr.ph
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %200

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %200

._crit_edge34.loopexit:                           ; preds = %178
  %31 = sdiv i32 %spec.select.11, 2
  br label %._crit_edge34

._crit_edge34:                                    ; preds = %._crit_edge34.loopexit, %._crit_edge
  %.016.lcssa = phi i32 [ 0, %._crit_edge ], [ %31, %._crit_edge34.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.016.lcssa)
          to label %195 unwind label %198

.lr.ph33:                                         ; preds = %._crit_edge, %178
  %.01631 = phi i32 [ %spec.select.11, %178 ], [ 0, %._crit_edge ]
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIxLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = sdiv i64 %34, 2147483648
  store i64 %35, ptr %2, align 8, !tbaa !5
  %36 = srem i64 %34, 2147483648
  store i64 %36, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %37 = load i32, ptr @X, align 16, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = add nsw i64 %35, %38
  %40 = shl nsw i64 %39, 31
  %41 = add nsw i64 %40, %36
  %42 = load i32, ptr @Y, align 16, !tbaa !11
  %43 = sext i32 %42 to i64
  %44 = add nsw i64 %41, %43
  store i64 %44, ptr %8, align 8, !tbaa !5
  %45 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %46 unwind label %193

46:                                               ; preds = %.lr.ph33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %47 = load i64, ptr %2, align 8, !tbaa !5
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 4), align 4, !tbaa !11
  %49 = sext i32 %48 to i64
  %50 = add nsw i64 %47, %49
  %51 = shl nsw i64 %50, 31
  %52 = load i64, ptr %3, align 8, !tbaa !5
  %53 = add nsw i64 %51, %52
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 4), align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = add nsw i64 %53, %55
  store i64 %56, ptr %8, align 8, !tbaa !5
  %57 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %58 unwind label %193

58:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %59 = load i64, ptr %2, align 8, !tbaa !5
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 8), align 8, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = add nsw i64 %59, %61
  %63 = shl nsw i64 %62, 31
  %64 = load i64, ptr %3, align 8, !tbaa !5
  %65 = add nsw i64 %63, %64
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 8), align 8, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = add nsw i64 %65, %67
  store i64 %68, ptr %8, align 8, !tbaa !5
  %69 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %70 unwind label %193

70:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %71 = load i64, ptr %2, align 8, !tbaa !5
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 12), align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = add nsw i64 %71, %73
  %75 = shl nsw i64 %74, 31
  %76 = load i64, ptr %3, align 8, !tbaa !5
  %77 = add nsw i64 %75, %76
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 12), align 4, !tbaa !11
  %79 = sext i32 %78 to i64
  %80 = add nsw i64 %77, %79
  store i64 %80, ptr %8, align 8, !tbaa !5
  %81 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %82 unwind label %193

82:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %83 = load i64, ptr %2, align 8, !tbaa !5
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 16), align 16, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = add nsw i64 %83, %85
  %87 = shl nsw i64 %86, 31
  %88 = load i64, ptr %3, align 8, !tbaa !5
  %89 = add nsw i64 %87, %88
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 16), align 16, !tbaa !11
  %91 = sext i32 %90 to i64
  %92 = add nsw i64 %89, %91
  store i64 %92, ptr %8, align 8, !tbaa !5
  %93 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %94 unwind label %193

94:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %95 = load i64, ptr %2, align 8, !tbaa !5
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 20), align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = add nsw i64 %95, %97
  %99 = shl nsw i64 %98, 31
  %100 = load i64, ptr %3, align 8, !tbaa !5
  %101 = add nsw i64 %99, %100
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 20), align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = add nsw i64 %101, %103
  store i64 %104, ptr %8, align 8, !tbaa !5
  %105 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %106 unwind label %193

106:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %107 = load i64, ptr %2, align 8, !tbaa !5
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 24), align 8, !tbaa !11
  %109 = sext i32 %108 to i64
  %110 = add nsw i64 %107, %109
  %111 = shl nsw i64 %110, 31
  %112 = load i64, ptr %3, align 8, !tbaa !5
  %113 = add nsw i64 %111, %112
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 24), align 8, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = add nsw i64 %113, %115
  store i64 %116, ptr %8, align 8, !tbaa !5
  %117 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %118 unwind label %193

118:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %119 = load i64, ptr %2, align 8, !tbaa !5
  %120 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 28), align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = add nsw i64 %119, %121
  %123 = shl nsw i64 %122, 31
  %124 = load i64, ptr %3, align 8, !tbaa !5
  %125 = add nsw i64 %123, %124
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 28), align 4, !tbaa !11
  %127 = sext i32 %126 to i64
  %128 = add nsw i64 %125, %127
  store i64 %128, ptr %8, align 8, !tbaa !5
  %129 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %130 unwind label %193

130:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %131 = load i64, ptr %2, align 8, !tbaa !5
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 32), align 16, !tbaa !11
  %133 = sext i32 %132 to i64
  %134 = add nsw i64 %131, %133
  %135 = shl nsw i64 %134, 31
  %136 = load i64, ptr %3, align 8, !tbaa !5
  %137 = add nsw i64 %135, %136
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 32), align 16, !tbaa !11
  %139 = sext i32 %138 to i64
  %140 = add nsw i64 %137, %139
  store i64 %140, ptr %8, align 8, !tbaa !5
  %141 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %142 unwind label %193

142:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %143 = load i64, ptr %2, align 8, !tbaa !5
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 36), align 4, !tbaa !11
  %145 = sext i32 %144 to i64
  %146 = add nsw i64 %143, %145
  %147 = shl nsw i64 %146, 31
  %148 = load i64, ptr %3, align 8, !tbaa !5
  %149 = add nsw i64 %147, %148
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 36), align 4, !tbaa !11
  %151 = sext i32 %150 to i64
  %152 = add nsw i64 %149, %151
  store i64 %152, ptr %8, align 8, !tbaa !5
  %153 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %154 unwind label %193

154:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %155 = load i64, ptr %2, align 8, !tbaa !5
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 40), align 8, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = add nsw i64 %155, %157
  %159 = shl nsw i64 %158, 31
  %160 = load i64, ptr %3, align 8, !tbaa !5
  %161 = add nsw i64 %159, %160
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 40), align 8, !tbaa !11
  %163 = sext i32 %162 to i64
  %164 = add nsw i64 %161, %163
  store i64 %164, ptr %8, align 8, !tbaa !5
  %165 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %166 unwind label %193

166:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %167 = load i64, ptr %2, align 8, !tbaa !5
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @X, i64 44), align 4, !tbaa !11
  %169 = sext i32 %168 to i64
  %170 = add nsw i64 %167, %169
  %171 = shl nsw i64 %170, 31
  %172 = load i64, ptr %3, align 8, !tbaa !5
  %173 = add nsw i64 %171, %172
  %174 = load i32, ptr getelementptr inbounds (i8, ptr @Y, i64 44), align 4, !tbaa !11
  %175 = sext i32 %174 to i64
  %176 = add nsw i64 %173, %175
  store i64 %176, ptr %8, align 8, !tbaa !5
  %177 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %178 unwind label %193

178:                                              ; preds = %166
  %.not = icmp ne i64 %45, 0
  %179 = zext i1 %.not to i32
  %spec.select = add nsw i32 %.01631, %179
  %.not.1 = icmp ne i64 %57, 0
  %180 = zext i1 %.not.1 to i32
  %spec.select.1 = add nsw i32 %spec.select, %180
  %.not.2 = icmp ne i64 %69, 0
  %181 = zext i1 %.not.2 to i32
  %spec.select.2 = add nsw i32 %spec.select.1, %181
  %.not.3 = icmp ne i64 %81, 0
  %182 = zext i1 %.not.3 to i32
  %spec.select.3 = add nsw i32 %spec.select.2, %182
  %.not.4 = icmp ne i64 %93, 0
  %183 = zext i1 %.not.4 to i32
  %spec.select.4 = add nsw i32 %spec.select.3, %183
  %.not.5 = icmp ne i64 %105, 0
  %184 = zext i1 %.not.5 to i32
  %spec.select.5 = add nsw i32 %spec.select.4, %184
  %.not.6 = icmp ne i64 %117, 0
  %185 = zext i1 %.not.6 to i32
  %spec.select.6 = add nsw i32 %spec.select.5, %185
  %.not.7 = icmp ne i64 %129, 0
  %186 = zext i1 %.not.7 to i32
  %spec.select.7 = add nsw i32 %spec.select.6, %186
  %.not.8 = icmp ne i64 %141, 0
  %187 = zext i1 %.not.8 to i32
  %spec.select.8 = add nsw i32 %spec.select.7, %187
  %.not.9 = icmp ne i64 %153, 0
  %188 = zext i1 %.not.9 to i32
  %spec.select.9 = add nsw i32 %spec.select.8, %188
  %.not.10 = icmp ne i64 %165, 0
  %189 = zext i1 %.not.10 to i32
  %spec.select.10 = add nsw i32 %spec.select.9, %189
  %.not.11 = icmp ne i64 %177, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %190 = zext i1 %.not.11 to i32
  %spec.select.11 = add nsw i32 %spec.select.10, %190
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIxLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %192 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIxLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %192, label %.lr.ph33, label %._crit_edge34.loopexit

193:                                              ; preds = %166, %154, %142, %130, %118, %106, %94, %82, %70, %58, %46, %.lr.ph33
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %200

195:                                              ; preds = %._crit_edge34
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %197 unwind label %198

197:                                              ; preds = %195
  call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0

198:                                              ; preds = %195, %._crit_edge34
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %200

200:                                              ; preds = %193, %198, %27, %29
  %.pn23.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ], [ %194, %193 ], [ %199, %198 ]
  call void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn23.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 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 #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 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 #3

; 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56), 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 #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; 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 #2 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)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #6 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 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 = { 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 #4 = { "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 = { 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 #6 = { inlinehint 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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